<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<activity id="__fUXtM3NV0wI9AuNA9bX">
  <name>删除</name>
  <parentId>__YsFas6sHqE1zNdbszYu</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <type>1</type>
  <onActionForm></onActionForm>
  <onActionView>__YsFas6sHqE1zNdbszYu</onActionView>
  <colorType>default</colorType>
  <beforeActionScript><![CDATA[(function(){
 var selectId = getParameterAsText("_selects");//获取所选中数据的id结果集
 var arrto = splitText(selectId, ";"); //对这个结果集进行处理，以;进行切割，放到数组arrto
 for (var i = 0; i < arrto.length; i++) {
   var sql ="select  * from  tlk_system_exam_info where ITEM_PLACEID= '"+arrto[i]+"'"
    println("sql"+sql)
   var datas = queryByDSName("tms",sql);
   println("datas"+datas)
       if(datas!="[]"){//有数据就会进入
         println("进来？")
         for(var iterator = datas.iterator();iterator.hasNext();){
             var map1 = iterator.next();//取值
             var name= map1.get("ITEM_PLACENAME");
             println("name"+name)
             return   name+ "考场已有考试关联，无法删除！"
         }
       }else{
         var sql1 = "delete from tlk_examination_room where ID='" + arrto[i] + "' ";
         println("sql1"+sql1)
         deleteByDSName("tms",sql1);
       }
  }

})()
]]></beforeActionScript>
  <afterActionScript><![CDATA[]]></afterActionScript>
  <hiddenScript><![CDATA[]]></hiddenScript>
  <readonlyScript><![CDATA[]]></readonlyScript>
  <editMode>0</editMode>
  <fileNameScript><![CDATA[]]></fileNameScript>
  <orderno>1</orderno>
  <parentView>__YsFas6sHqE1zNdbszYu</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>