<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__taXb0iDbKCvPrRTZKaF">
  <name>保存并返回</name>
  <parentId>__m9P0IztvBTahDSR5qP0</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>11</type>
  <onActionFlow></onActionFlow>
  <onActionPrint></onActionPrint>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[]]></beforeActionScript>
  <afterActionScript><![CDATA[
//表单某字段值为当前日期中的年份  (值脚本)
(function(){
//获取编号
var sqlr="select id,item_number from tlk_className where domainid='"+getDomainid()+"' limit 1 ";
  var process = getDocumentProcess();    
  var datass = queryByDSName("tms",sqlr);
if(datass.size()>0){
   for(var iterators = datass.iterator();iterators.hasNext();){
       var map2 = iterators.next();//取值
       var number=map2.get("item_number");
       var id=map2.get("id");
    }
     var ss=parseInt(number)+1;
     var aa=splitText(ss, ".")[0];
  var className=findDocument(id);
  className.findItem('number').setValue(aa);
  process.doUpdate(className);
 
  
}
})()]]></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>1</orderno>
  <stateToShow></stateToShow>
  <parentForm>__m9P0IztvBTahDSR5qP0</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>ism1EiHqAkpLpSd2Zr7|</targetList>
  <label><![CDATA[]]></label>
</activity>