<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__lTcSg2imCKbhWQhbO7H">
  <name>确认成绩</name>
  <parentId>__4OmOocgSJDtNQu7hz7F</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>43</type>
  <onActionForm></onActionForm>
  <onActionView></onActionView>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <hiddenScript><![CDATA[(function(){
  var domainid = getDomainid();
  var sqlq = "select item_isconfirm 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_isconfirm= map1.get("item_isconfirm");
      if("0".equals(item_isconfirm)){
        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("bdjaI4oc".equals(domainid)){
    return true
  }
  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("place_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>5</orderno>
  <parentView>__4OmOocgSJDtNQu7hz7F</parentView>
  <impmappingconfigid>__7tkXQ8UWGSqrTJkHtCB</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[#include "setUrl";//引入函数库 
//弹出层打开表单             
(function() {         
  var doc=getCurrentDocument();    
  var examId=decodeURI(getParameter("examId")); 
  var exparams = "&examId="+examId+"";  //拼接参数                 
  var appId=getApplication();                         
  var domainid=getDomainid();             
  var formid="__LbjIRMmhU8mHEwz3CA3";             
  //  var url = geturl.form( appId, formid );
  var url="/static/portal/vue/index.html#/open?appId="+getApplication()+"&actionContent="+formid+"&opentarget=detail&linkType=00"

  url=url+exparams
  //var res = url.replace(/\s*/g,"");
  //println("res ===============>" +res );
  return url;                                               
})();]]></dispatcherUrl>
  <dispatcherParams><![CDATA[[]]]></dispatcherParams>
  <jumpMode>0</jumpMode>
  <jumpActOpenType>1</jumpActOpenType>
  <withOld>false</withOld>
  <actionType>0</actionType>
  <actionSelection>0</actionSelection>
  <workFlowType>0</workFlowType>
  <contextMenu>true</contextMenu>
  <showInToolbar>true</showInToolbar>
  <targetList>__4OmOocgSJDtNQu7hz7F|</targetList>
  <label><![CDATA[]]></label>
</activity>