| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[进程管理 >> JOB管理 >> JOB管理对象查询与录入]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <searchInfo>
- <LG_CD>F01002,Z01001</LG_CD>
- </searchInfo>
- </initData>
- <codeData>
- </codeData>
- <formData>
- <searchInfo>
- <PLT_M/>
- </searchInfo>
- <searchInfo2>
- <PLT/>
- <MAIN_PGMID/>
- </searchInfo2>
- </formData>
- <gridData>
- </gridData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (window.parent == null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js">
- <![CDATA[
- submitID = "UIE041010-service";
- function Init(node) {
- InitParams(node);
- exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO");
- pageInit();
- }
- function pageInit(refresh) {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- if (typeof refresh == "undefined") {
- var datagrid = datagrid1;
- datagrid.rebuild();
- datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
- }
- var datagrid = datagrid2;
- datagrid.rebuild();
- colStyle(datagrid, "PRC_STS");
- }
- function find() {
- exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
- model.setValue("/root/formData/searchInfo2/PLT", "");
- model.removenode("/root/gridData/ListResult_1_VO");
- pageInit();
- }
- function save() {
- /*
- H: 保留, C: 结束, A: 等待, B: 进行, D: 取消
- */
- if (model.getValue("/root/formData/searchInfo2/PLT") == "") return;
- datagrid = datagrid2;
- var isH = false;
- var isC = true;
- var rows = datagrid.rows;
- var col = datagrid.colRef("PRC_STS");
- for (var i=datagrid.fixedRows; i<rows; i++) {
- if (datagrid.valueMatrix(i, col) == "H") {
- isH = true;
- break;
- }
- if (datagrid.valueMatrix(i, col) != "C")
- isC = false;
- }
- datagrid = datagrid1;
- var row = datagrid.row;
- col = datagrid.colRef("PRC_STS");
- if (isH) {
- if (datagrid.valueMatrix(row, col) != "H") {
- datagrid.addStatus(row, "update");
- datagrid.valueMatrix(row, col) = "H";
- }
- } else if (isC){
- if (datagrid.valueMatrix(row, col) != "C") {
- datagrid.addStatus(row, "update");
- datagrid.valueMatrix(row, col) = "C";
- }
- } else {
- if (datagrid.valueMatrix(row, col) != "B") {
- datagrid.addStatus(row, "update");
- datagrid.valueMatrix(row, col) = "B";
- }
- }
- exec("/root/formData", "datagrid1,datagrid2", "save", true,
- "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
- pageInit();
- datagrid.row = row;
- }
- function create() {}
- function remove() {}
- var onrowchanged = false;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
- <group id="group1" overflow="hidden" style="left:0px; top:0px; width:980px; height:35px; ">
- <line id="line2" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">工厂</caption>
- <select1 id="combo1" ref="/root/formData/searchInfo/PLT_M" appearance="minimal" style="left:92px; top:5px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='F01002' or LG_CD = 'A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" caption="工厂^主程序ID^主程序名称^进程状态^主要处理内容^处理开始时间^处理完毕时间^申请处理人" colsep="^" colwidth="90, 100, 150, 70, 210, 120, 120, 100" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="42" rowsep="|" style="left:0px; top:34px; width:980px; height:260px; ">
- <col key="false" ref="PLT" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='F01002']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col key="false" ref="MAIN_PGMID"/>
- <col key="false" ref="MAIN_PGMNAME" style="text-align:left; "/>
- <col ref="PRC_STS" type="combo">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='Z01001']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col key="false" ref="PRC_DESCRIPTION" style="text-align:left; "/>
- <col key="false" ref="PRC_SDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
- <col key="false" ref="PRC_EDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
- <col key="false" ref="PRC_NEED_EMP" style="text-align:left; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!onrowchanged) return;
- var datagrid = datagrid1;
- var row = datagrid.row;
- model.setValue("/root/formData/searchInfo2/PLT", datagrid.valueMatrix(row, datagrid.colRef("PLT")));
- model.setValue("/root/formData/searchInfo2/MAIN_PGMID", datagrid.valueMatrix(row, datagrid.colRef("MAIN_PGMID")));
- exec("/root/formData/searchInfo2", "", "onclick", "/root/gridData/ListResult_1_VO");
- pageInit(false);
- datagrid.row = row;
- onrowchanged = false;
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- onrowchanged = true;
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var datagrid = datagrid1;
- window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="顺序^子程序ID^子程序名称^进程状态^处理开始时间^处理完毕时间^错误内容" colsep="^" colwidth="100, 100, 150, 70, 120, 120, 220" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="42" rowsep="|" style="left:0px; top:300px; width:980px; height:320px; ">
- <col ref="SEQ"/>
- <col key="false" ref="SUB_PGMID"/>
- <col key="false" ref="SUB_PGMNAME" style="text-align:left; "/>
- <col ref="PRC_STS" type="combo">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='Z01001']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col key="false" ref="PRC_SDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
- <col key="false" ref="PRC_EDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
- <col key="false" ref="ERR_DESCRIPTION" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var datagrid = datagrid2;
- window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|