<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__L5zprwtkqwHlQ3eEgYo">
  <name>修改</name>
  <parentId>__t8b3WI9MCRgmpSycGIZ</parentId>
  <type>13</type>
  <onActionForm></onActionForm>
  <onActionView></onActionView>
  <onActionFlow></onActionFlow>
  <onActionPrint></onActionPrint>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[#include "sysfunction";                    
(function(){   
                        
                         var dsName = getDsName();   //mcs
                           var type="create/update";                    
                           var doc=getCurrentDocument();                    
                           var id=doc.getId(); 
println("id-------->"+id);

                           var authLessonId=doc.getItemValueAsString("authLessonId");  //课程id
                           var authUserId=doc.getItemValueAsString("authUserId");  //身份证
                           var progress=doc.getItemValueAsString("progress");  //课程进度
var STUDIED=doc.getItemValueAsString("STUDIED");  //已学习节id
var isNextC=doc.getItemValueAsString("isNextC");  //是否下一章
var isNextS=doc.getItemValueAsString("isNextS");  //是否下一节
 var doId=doc.getItemValueAsString("doId");  //是否下一节

   var sql3="UPDATE tlk_lesson_auth_base_info set ITEM_PROGRESS='" +progress+ "',ITEM_STUDIED='"+STUDIED+"',ITEM_ISNEXTC='"+isNextC+"',ITEM_ISNEXTS='"+isNextS+"'WHERE ITEM_AUTHLESSONID = '"+authLessonId+"' and ITEM_AUTHUSERID='"+authUserId+"'";          
 println("sql3------------->"+sql3);  
   updateByDSName(dsName,sql3);   
var sql = "select "+
    "'"+getDomainid()+"' as DOMAINID,"+
    "ID,"+ 
    "ID as item_ID,"+
    "ITEM_OFFICEPOLICEADDRESSID" + 
    " from tlk_setsupervise"+
    " where ITEM_DOMAIN_ID='"+getDomainid()+"'";
var datas = queryByDSName(sysfunction.DS_FLOW,sql);
if(datas!=null){
  var data = datas.iterator().next();
  var officePoliceAddressID = data.get("ITEM_OFFICEPOLICEADDRESSID");
  try{

    var errstr = sysfunction.updataDateToJgSystemByDocHZH(doc,doc.getFormid(),doId,"__TYOYT0L3vrDbDYCx4kE","__wGomeHJBz6CpLFCCl4y",officePoliceAddressID);   
println("errstr==>" + errstr);
//if(!"undefined".equals(errstr)) {
   // return errstr;
//}
  }catch(e){
    println("异常信息==>" +e);
    //return "同步数据失败，请联系管理员";
  }
}else{
  //return "提交失败，请联系管理员维护监管机构的配置信息！";
}

           })()]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <retractBeforeActionScript><![CDATA[]]></retractBeforeActionScript>
  <retractAfterActionScript><![CDATA[]]></retractAfterActionScript>
  <hiddenScript><![CDATA[]]></hiddenScript>
  <readonlyScript><![CDATA[]]></readonlyScript>
  <startFlowScript><![CDATA[							]]></startFlowScript>
  <editMode>0</editMode>
  <flowShowType>表单中显示流程操作</flowShowType>
  <fileNameScript><![CDATA[]]></fileNameScript>
  <orderno>1</orderno>
  <stateToShow></stateToShow>
  <parentView></parentView>
  <parentForm>__t8b3WI9MCRgmpSycGIZ</parentForm>
  <impmappingconfigid>__F0UarooeiCS61gI2DEI</impmappingconfigid>
  <jumpType>0</jumpType>
  <expSub>false</expSub>
  <icon></icon>
  <disableFlowNode>true</disableFlowNode>
  <changeFlowOperator>true</changeFlowOperator>
  <changeFlowCc>true</changeFlowCc>
  <multiLanguageLabel></multiLanguageLabel>
  <dispatcherMode>0</dispatcherMode>
  <dispatcherUrl><![CDATA[]]></dispatcherUrl>
  <dispatcherParams><![CDATA[]]></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>
  <isneedcomment>0</isneedcomment>
  <contextMenu>true</contextMenu>
  <showInToolbar>true</showInToolbar>
  <transpond>选择</transpond>
  <targetList>ism1EiHqAkpLpSd2Zr7|</targetList>
  <label><![CDATA[]]></label>
</activity>