| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <searchInfo/>
- <CHGCNT_CHK_YN>Y</CHGCNT_CHK_YN>
- <CHGCNT_CHK_TP>1</CHGCNT_CHK_TP>
- <USE_YN>Y</USE_YN>
- </formData>
- <reqData/>
- <resData/>
- <gridData>
- <EmpListResult_VO>
- </EmpListResult_VO>
- <sendInfo/>
- </gridData>
- <codeData>
- <CAST_STL_GRD>
- <item>
- <label/>
- <value/>
- </item>
- </CAST_STL_GRD>
- </codeData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- datagrid1.colStatus(0)=false;
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //1、获取用户登录信息,只能在页面初始化函数中调用
- function InitParams(node)
- {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- for (var i = 0; i < nodeList.length; i++)
- model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- }
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 板坯设计 >> 厂内牌号组标准录入"; // 如:return "进程管理>>订单进程现况查询";
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- var chgcntChkYN = model.getValue("/root/formData/CHGCNT_CHK_YN");
- var chgcntChkTP = model.getValue("/root/formData/CHGCNT_CHK_TP");
- var useYN = model.getValue("/root/formData/USE_YN");
- model.makeValue("/root/reqData/chgcntChkYN",chgcntChkYN);
- model.makeValue("/root/reqData/chgcntChkTP",chgcntChkTP);
- model.makeValue("/root/reqData/useYN",useYN);
-
- commSubmit("UID010130-service","findTbStlGrdGrp","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();
- }
- // 保存按键
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var REG_ID = model.getValue("/root/initData/rcvInfo/REG_ID");
- //var REG_NM = model.getValue("/root/initData/rcvInfo/REG_NM");
- var count = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)");
- var j = 0;
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
- model.makeValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/regId",REG_ID);
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData/sendInfo","/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]");
- var FAC_STL_GRP = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/FAC_STL_GRP");
- if(FAC_STL_GRP == null || FAC_STL_GRP == "")
- {
- window.alert(" 厂内牌号组不能为空! "," 提示信息 ");
- return;
- }
- }
- else
- {
- j++;
- }
- }
- if(model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row[CHK='true'])") == 0)
- {
- window.alert(" 请选择厂内牌号组信息进行保存! "," 提示信息 ");
- return;
- }
-
- commSendReq("/root/gridData/sendInfo");
-
- commSubmit("UID010130-service","saveTbStlGrdGrp","glueAction.do");
- errorMessage();
- find();
- //model.copyNode("/root/gridData2/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();
- }
- // 新增按键
- function create()
- {
- datagrid1.addRow();
- model.setValue("/root/gridData/EmpListResult_VO/EmpListResult_Row[" + (datagrid1.row-1) + "]/CHGCNT_CHK_YN", "Y");
- model.setValue("/root/gridData/EmpListResult_VO/EmpListResult_Row[" + (datagrid1.row-1) + "]/CHGCNT_CHK_TP", "3");
- model.setValue("/root/gridData/EmpListResult_VO/EmpListResult_Row[" + (datagrid1.row-1) + "]/USE_YN", "Y");
- }
- // 删除按键
- function remove()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- if(commComfirmBox(" 确认删除厂内牌号信息? "," 提示信息 ")=='0') return;
-
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)");
- var j = 1;
- for(var i = 1; i<=count; i++)
- {
-
- var CHK = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+j+"]/CHK");
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData/sendInfo","/root/gridData/EmpListResult_VO/EmpListResult_Row["+j+"]");
- model.removenode("/root/gridData/EmpListResult_VO/EmpListResult_Row["+j+"]");
- }
- else
- {
- j++;
- }
- }
- commSendReq("/root/gridData/sendInfo");
- commSubmit("UID010130-service","deleteTbStlGrdGrp","glueAction.do");
- errorMessage();
- //model.copyNode("/root/gridData2/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="2,620;1,980;">
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <datagrid id="datagrid1" nodeset="/root/gridData/EmpListResult_VO/EmpListResult_Row" caption="选择^厂内牌号组ID^厂内牌号组名称^最小编制炉次数^最大编制炉次数^是否检查炉次编制数量^检查炉次编制数量后处理区分^使用与否^录入人^录入时间^修改人^修改时间|选择^厂内牌号组ID^厂内牌号组名称^最小编制炉次数^最大编制炉次数^是否检查炉次编制数量^检查炉次编制数量后处理区分^使用与否^录入人^录入时间^修改人^修改时间" colsep="^" colwidth="60, 90, 91, 60, 65, 79, 75, 59, 60, 142, 60, 138" defaultrows="30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:35px; width:980px; height:585px; ">
- <col ref="CHK" type="checkbox"/>
- <col ref="FAC_STL_GRP" type="input" style="text-align:left; padding-left:2; background-color:#ffff99; "/>
- <col ref="FAC_STL_GRPNM" type="input" style="text-align:left; padding-left:2; background-color:#ffff99; "/>
- <col ref="CHGCNT_MIN" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="CHGCNT_MAX" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="CHGCNT_CHK_YN" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="CHGCNT_CHK_TP" type="combo" visibility="hidden" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="USE_YN" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="REG_ID" type="output" style="text-align:left; padding:2; "/>
- <col ref="REG_DTIME" type="output"/>
- <col ref="MOD_ID" type="output" style="text-align:left; padding:2; "/>
- <col ref="MOD_DTIME"/>
- </datagrid>
- <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <caption id="caption3" class="cell" style="left:0px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">检查炉次数量</caption>
- <select1 id="combo1" ref="/root/formData/CHGCNT_CHK_YN" appearance="minimal" style="left:92px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/formData/USE_YN" appearance="minimal" style="left:295px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="cell" style="left:203px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">使用与否</caption>
- </xhtml:body>
- </xhtml:html>
|