<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__QBTTvPuvzDiy8Na9p2d">
  <name>确认</name>
  <parentId>__ZdvldTe8gvxkepxITCj</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>11</type>
  <onActionFlow></onActionFlow>
  <onActionPrint></onActionPrint>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[
//判断表单某字段不能为空
(function(){
  var person_order_id = getItemValueAsString("person_order_id"); 
  var refund_state = getItemValueAsString("refund_state"); 
  var exprocess = getDocProcess("__Qlqia54jXSOKQxX0rof");
  var exdoc = exprocess.doView(person_order_id);
  if("1".equals(refund_state)){
    var checksql="select p.item_plan from tlk_train_person tp inner join tlk_train_plan p on tp.item_plan_id=p.id where tp.item_order_person_id ='"+person_order_id+"' ";
    var datas = queryByDSName("tms",checksql);
    if(datas.size()>0){
      for(var iterator = datas.iterator();iterator.hasNext();){
        var map1 = iterator.next();//取值
        var plan_name= map1.get("item_plan");
      }
      return "请先把当前人员从培训计划("+plan_name+") 中移除！"
    }
    exdoc.findItem("pay_status").setValue("4")
    exdoc.findItem("refund_time").setValue(getToday())
    exprocess.doUpdate(exdoc)
  }else if("2".equals(refund_state)){
    exdoc.findItem("pay_status").setValue("2")
    exprocess.doUpdate(exdoc)
  }else {
  
  return "请选择处理结果后再提交！"
  }


})()
]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <retractBeforeActionScript><![CDATA[]]></retractBeforeActionScript>
  <retractAfterActionScript><![CDATA[]]></retractAfterActionScript>
  <hiddenScript><![CDATA[]]></hiddenScript>
  <readonlyScript><![CDATA[]]></readonlyScript>
  <startFlowScript><![CDATA[]]></startFlowScript>
  <editMode>0</editMode>
  <fileNameScript><![CDATA[]]></fileNameScript>
  <iconurl></iconurl>
  <orderno>0</orderno>
  <stateToShow></stateToShow>
  <parentForm>__ZdvldTe8gvxkepxITCj</parentForm>
  <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>
  <actionDispatcherUrlScript><![CDATA[]]></actionDispatcherUrlScript>
  <actionSelection>0</actionSelection>
  <relatedFormId></relatedFormId>
  <actionScript><![CDATA[]]></actionScript>
  <workFlowType>0</workFlowType>
  <contextMenu>false</contextMenu>
  <showInToolbar>true</showInToolbar>
  <transpond></transpond>
  <targetList>|</targetList>
  <label><![CDATA[]]></label>
</activity>