<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__zC2oh8Xvu9pwh1XAwPU">
  <name>导入成绩</name>
  <parentId>__4OmOocgSJDtNQu7hz7F</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>27</type>
  <onActionForm></onActionForm>
  <onActionView></onActionView>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[/*#include "sysfunction";
(function(){         
  var selectId = getParameterAsText("_selects"); 
  var process = getDocumentProcess();
  println("selectId==>" + selectId); 
  var arrto = splitText(selectId,";");   
  for(var i=0;i<arrto.length;i++){   
    var examPersonId =  arrto[i];//拿到考试人员id
    println("examPersonId--------------"+examPersonId)
    var examPersonInfo = findDocument(examPersonId);
    examPersonInfo.findItem("apptype").setValue("1");
    process.doUpdate(examPersonInfo); 
  }
})()*/]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <hiddenScript><![CDATA[(function(){
  var domainid = getDomainid();
  var sqlq = "select item_isenter from organizationauth.tlk_confirmconfig where domainid = '"+domainid+"'";
  var datasq = queryByDSName("tms",sqlq);
  if(datasq!="[]"){
    for(var iterator = datasq.iterator();iterator.hasNext();){
      var map1 = iterator.next();//取值
      var item_isenter= map1.get("item_isenter");
      if("0".equals(item_isenter)){
        return true;
      }
    }
  }
  var areacode = "";
  var sqlp = "SELECT tk.domainid,dl.ITEM_REGIONId FROM organizationauth.tlk_DepartmentLevel dl JOIN baibaodunflow.tlk_SetSupervise tk ON dl.id = tk.item_registerPoliceAddressID WHERE tk.domainid IN ('"+domainid+"')"
  println("sqlp---------------"+sqlp)
  var datasp = queryByDSName("tms",sqlp);
  if(datasp!=null){
    for(var iterator = datasp.iterator();iterator.hasNext();){
      var map1 = iterator.next();//取值
      areacode= map1.get("ITEM_REGIONId");
      println("areacode----------------"+areacode)
    }
  }
  if(isNotNull(areacode)){
    areacode = areacode.substr(0,2);
    println("areacode2------------------"+areacode)
  }
  if("64".equals(areacode)){
    if(!"505303218683641856--__AOkTvsah9VLicJhQ1FO".equals(domainid) && !"bdjaI4oc".equals(domainid)){
      return true
    }
  }



  return false


})()]]></hiddenScript>
  <readonlyScript><![CDATA[(function() { 

  //除了北京地区的需要审核其他地区的不需要审核直接通过
  var domainid = getDomainid();
  var sql="select place_of_register_district_name,place_of_register_province_name from baibaodunflow.vw_organization where id='"+domainid+"'";
  println("sql---------------->"+sql);
  var datas = queryByDSName("tms",sql);
  if(datas!=null){//一家公司只有一条数据
    for(var iterator = datas.iterator();iterator.hasNext();){
      var map1 = iterator.next();//取值
      var place_of_register_province_name= map1.get("place_of_register_province_name");
      var place_of_register_district_name= map1.get("selectplace_of_register_district_name");
      
      println("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"+place_of_register_province_name)
      println("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"+place_of_register_district_name)
      if("北京市".equals(place_of_register_province_name)){
        println("北京欢迎你")
        var examState=decodeURI(getParameter("examState")); //examine
        var examine=decodeURI(getParameter("examine"));
        println("sssssssssssssssssssssssssssssssssssssssssssssss"+examine)//考试审核状态
        /**
      待提交 0 ：可删除、可添加、可导出、 可导入成绩
      待审核 3：可返回、可导出
      审核通过 1 ：可删除、可添加、可导出 、可导入成绩
      审核不通过 2：返回、导出
      **/
        println("examState考试状态-->"+examState)//0是正常 1是取消
        if("0".equals(examState)&&("审核通过".equals(examine))){
          println(examine+" 这个状态是可以进行确认成绩操作的")
          return false;
        }else{
          println("我进考试校验");
          return true;
        }
      }else if("广西壮族自治区".equals(place_of_register_province_name)){
        if("南宁市".equals(place_of_register_district_name)){
          println("南宁市欢迎你")
          var examState=decodeURI(getParameter("examState")); //examine
          var examine=decodeURI(getParameter("examine"));
          println("sssssssssssssssssssssssssssssssssssssssssssssss"+examine)//考试审核状态
                  /**
          待提交 0 ：可删除、可添加、可导出、 可导入成绩
          待审核 3：可返回、可导出
          审核通过 1 ：可删除、可添加、可导出 、可导入成绩
          审核不通过 2：返回、导出
          **/
          println("examState考试状态-->"+examState)//0是正常 1是取消
          if("0".equals(examState)&&("审核通过".equals(examine))){
            println(examine+" 这个状态是可以进行确认成绩操作的")
            return false;
          }else{
            println("我进考试校验");
            return true;
          }
        }else{
          println("广西下的其他市")

        }
      }else{ //其他城市不需要校验

      }
    }
  } 
})();]]></readonlyScript>
  <editMode>0</editMode>
  <fileNameScript><![CDATA[]]></fileNameScript>
  <orderno>4</orderno>
  <parentView>__4OmOocgSJDtNQu7hz7F</parentView>
  <impmappingconfigid>__RHrPEJFlMxA61kcuNza</impmappingconfigid>
  <jumpType>0</jumpType>
  <expSub>false</expSub>
  <icon></icon>
  <disableFlowNode>false</disableFlowNode>
  <changeFlowOperator>false</changeFlowOperator>
  <changeFlowCc>false</changeFlowCc>
  <multiLanguageLabel></multiLanguageLabel>
  <dispatcherMode>0</dispatcherMode>
  <dispatcherUrl><![CDATA[]]></dispatcherUrl>
  <dispatcherParams><![CDATA[[{"paramKey":"","paramValue":""}]]]></dispatcherParams>
  <jumpMode>0</jumpMode>
  <jumpActOpenType>0</jumpActOpenType>
  <withOld>false</withOld>
  <actionType>0</actionType>
  <actionSelection>0</actionSelection>
  <workFlowType>0</workFlowType>
  <contextMenu>true</contextMenu>
  <showInToolbar>true</showInToolbar>
  <label><![CDATA[]]></label>
</activity>