<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__6hgFGYdlKIs9mvsoUsr">
  <name>提交审核</name>
  <parentId>__mXoiau3poUK5yLDnxR1</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>1</type>
  <onActionForm></onActionForm>
  <onActionView>__mXoiau3poUK5yLDnxR1</onActionView>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[(function(){
  var selectId = getParameterAsText("_selects");
  var arrto = splitText(selectId, ";"); 
  var inWhere = "('"
  if(isNotNull(selectId)){
    for (var i = 0; i < arrto.length; i++) { 
      inWhere+=arrto[i]+"','"
    }
    inWhere+="1')"
    println(inWhere)
    var checksql="select 1 from tlk_train_plan where id in "+inWhere+" and item_audit_status in ('审核中','审核通过')"
    var datas = queryByDSName("tms",checksql);
    if(datas.size()>0){
      return "只能勾选待提交或者审核不通过的数据！"
    }else{
      var upsql="update tlk_train_plan set item_audit_status='审核中',item_submit_person='"+getWebUser().getName()+"',item_submit_time='"+format(getToday(),"yyyy-MM-dd HH:mm:ss")+"',item_audit_time=NULL,item_audit_person='',item_audit_info='' where id in "+inWhere
      updateByDSName("tms",upsql);
    }
  }else{
    return "请勾选要提交审核的数据！"
  }
})()]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <hiddenScript><![CDATA[]]></hiddenScript>
  <readonlyScript><![CDATA[]]></readonlyScript>
  <editMode>0</editMode>
  <fileNameScript><![CDATA[]]></fileNameScript>
  <orderno>2</orderno>
  <parentView>__mXoiau3poUK5yLDnxR1</parentView>
  <impmappingconfigid></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>