<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__oP0uAbNY5HY681bqQBO">
  <name>新增</name>
  <parentId>__WvmJVaojPRkDOsoZgz0</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>43</type>
  <onActionForm></onActionForm>
  <onActionView></onActionView>
  <colorType>success</colorType>
  <beforeActionScript><![CDATA[(function(){
  var classId=decodeURI(getParameter("classId"));
   classId = new Packages.cn.myapps.common.util.cache.MemoryCacheUtil.getFromPrivateSpace("classId", getWebUser());//读缓存
  println("classId--------------->"+classId)
  var applyInfo = findDocument(classId);
  var endtime = applyInfo.findItem("graduationTheoryTextEndTime").getValue();
  println("endtime--------------->"+endtime)
  var today = format(getToday(),"yyyy-MM-dd HH:mm:ss");
  println("today--------------->"+today)
  if(today>=endtime){
     return "该场考试已过期！";
  }
})()]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <hiddenScript><![CDATA[]]></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 registerprovince1= map1.get("place_of_register_province_name");
      println("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"+registerprovince1)

      if("北京市".equals(registerprovince1)){
      //  return true
      }
    }
  }
  var doc=getCurrentDocument();    
  var classStatus=decodeURI(getParameter("classStatus"));  
  var classId=decodeURI(getParameter("classId"));
  //classId = new Packages.cn.myapps.common.util.cache.MemoryCacheUtil.getFromPrivateSpace("classId", getWebUser());//读缓存
  println("classId-------------------"+classId)
  var classInfoDoc=findDocument(classId); 
  println("classInfoDoc-------------------"+classInfoDoc)
  var  testResultConfirmationStatus=classInfoDoc.findItem("testResultConfirmationStatus").getValue();

  println("classStatus--------------------"+classStatus);
  println("testResultConfirmationStatus--------------------"+testResultConfirmationStatus);
  if(("0".equals(classStatus)||"1".equals(classStatus))&&("0".equals(testResultConfirmationStatus))){
    return false;
  }
  return true;
})();]]></readonlyScript>
  <editMode>0</editMode>
  <fileNameScript><![CDATA[]]></fileNameScript>
  <orderno>2</orderno>
  <parentView>__WvmJVaojPRkDOsoZgz0</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 classId = new Packages.cn.myapps.common.util.cache.MemoryCacheUtil.getFromPrivateSpace("classId", getWebUser());//读缓存

println("classId--------------------"+classId);
var exparams = "&classId="+classId+"";  //拼接参数                 
var applicationId=getApplication();                         
var domainid=getDomainid();             
var formId="__QkLCjmHNVTLRZelpi7Z";  
    //println("========>1");
 //var url=  geturl.form(applicationId,formId); //获取普通表单url
  //println("========>2");
  var url="/static/portal/vue/index.html#/open?appId="+getApplication()+"&actionContent="+formId+"&opentarget=detail&linkType=00"
  url = url + exparams;
  println("跳转的"+url);
  //var res = url.replace(/\s*/g,"");
  println("========>3");
//var request = $WEB.getParamsTable().getHttpRequest();   
//var urlt="http://" + request.getServerName()+":" + request.getServerPort() + request.getContextPath(); //获取地址跟项目   
//var url = urlt + "/portal/good/html/form.html?appId="+appId+"&formId="+formid+"&containTitle=新增班级人员B&opentarget=detail"+exparams+"";   
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>__WvmJVaojPRkDOsoZgz0|</targetList>
  <label><![CDATA[]]></label>
</activity>