c42ea74e497db9187487c8a55274b451420638d0.svn-base 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[生产管制 >> 炼钢管制 >> 钢包移动时间标准]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <formData>
  13. </formData>
  14. <detailData>
  15. <CHK/>
  16. <STR_PROC_CD/>
  17. <END_PROC_CD/>
  18. <LADLE_MOVE_TME/>
  19. <REG_DTIME/>
  20. <REG_ID/>
  21. <MOD_DTIME/>
  22. <MOD_ID/>
  23. </detailData>
  24. <gridData>
  25. </gridData>
  26. <initResult/>
  27. <errorMsg>要细心哦!</errorMsg>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. if (window.parent == null) Init();
  33. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//设置第0行的checkbox的属性为true 便于进行全选操作
  34. datagrid1.colStatus(0)=false; //设置第0列也即为checkbox所在列的列状态为false。
  35. ]]>
  36. </script>
  37. </model>
  38. <script type="javascript" src="../../js/boaMsg.js"/>
  39. <script type="javascript" src="../../js/boaCommon.js"/>
  40. <script type="javascript" src="../../js/F.js"/>
  41. <script type="javascript">
  42. <![CDATA[
  43. var arrcol = new Array();
  44. var nullflag = false;
  45. arrcol[1] = 1;
  46. arrcol[2] = 2;
  47. function InitParams(node) {
  48. if (typeof node == "undefined" && typeof node != "object") return;
  49. model.removenode("/root/initData/rcvInfo");
  50. model.makeNode("/root/initData/rcvInfo");
  51. var nodeList = node.childNodes;
  52. for (var i = 0; i < nodeList.length; i++)
  53. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  54. }
  55. function setTitle()
  56. {
  57. return "炼钢管制 >> 炼钢管制标准 >> 钢包移动时间标准"; // 如:return "进程管理 >> 订单进程现况查询";
  58. }
  59. function sendUserinfo() {
  60. model.makeValue("/root/userInfo/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
  61. commSendReq("/root/userInfo");
  62. }
  63. function Init(node) {
  64. InitParams(node);
  65. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//设置第0行的checkbox的属性为true 便于进行全选操作
  66. datagrid1.colStatus(0)=false; //设置第0列也即为checkbox所在列的列状态为false。
  67. commSubmit("UIF011020-service","success","glueAction.do");
  68. model.duplicate("/root/initResult","/root/resData");//复制结点
  69. }
  70. function find() {
  71. clockKey(arrcol,datagrid1);
  72. model.removenode("/root/reqData");
  73. model.makeNode("/root/reqData");
  74. commSubmit("UIF011020-service","findLadleTime","glueAction.do");
  75. pageInit()
  76. }
  77. function checkNull()
  78. {
  79. var index = datagrid1.selectedRow(0);//获取选择行
  80. var str_LADLE_MOVE_TME = datagrid1.valuematrix(index, datagrid1.colRef("LADLE_MOVE_TME"));//获取选择行"LADLE_MOVE_TME"的值
  81. //检查空串
  82. if(!isNullOrEmpty(str_LADLE_MOVE_TME)) {
  83. alert("钢包移动时间不可为空");
  84. nullflag = true;
  85. return;
  86. }
  87. }
  88. function save() {
  89. model.removenode("/root/reqData");
  90. sendUserinfo();
  91. checkNull();
  92. if(nullflag ) return;
  93. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  94. commSubmit("UIF011020-service","saveLadleTime","glueAction.do");
  95. datagrid1.rebuild();
  96. pageInit();
  97. model.removenode("/root/reqData");
  98. clockKey(arrcol,datagrid1);
  99. }
  100. function create() {
  101. datagrid1.addRow();
  102. }
  103. function remove() {
  104. if(commComfirmBox("确定要删除吗?","删除对话框")=='0') return;
  105. for(var i=datagrid1.rows; i>(datagrid1.fixedRows-1) ; i--) {
  106. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK"))=='true') {
  107. if( datagrid1.rowStatus(i)==1 ||datagrid1.rowStatus(i)==3 )
  108. {
  109. datagrid1.deleteRow(i);
  110. }else
  111. {
  112. datagrid1.addStatus(i,"delete");//添加删除状态
  113. model.removenode("/root/reqData");
  114. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");//根据状态进行修改操作
  115. commSubmit("UIF011020-service","saveLadleTime","glueAction.do");
  116. datagrid1.rebuild();
  117. }
  118. }
  119. }
  120. pageInit();
  121. clockKey(arrcol,datagrid1);
  122. }
  123. function close() {
  124. window.close();//关闭窗口
  125. }
  126. ]]>
  127. </script>
  128. </xhtml:head>
  129. <xhtml:body overflow="visible" pagewidth="980" pageheight="620" style="border-color:#000000; ">
  130. <datagrid id="datagrid1" nodeset="/root/resData/rs_VO/rs_Row" caption="^出发工序^到达工序^钢包移动时间^录入时间^录入者名^变更时间^变更者名|^出发工序^到达工序^钢包移动时间^录入时间^录入者名^变更时间^变更者名" colsep="^" colwidth="50, 117, 126, 120, 123, 117, 123, 222" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:980px; height:620px; ">
  131. <col ref="CHK" type="checkbox"/>
  132. <col editmode="input" ref="STR_PROC_CD" type="combo" style="left:80px; top:40px; width:285px; height:20px; text-align:left; ">
  133. <choices>
  134. <itemset nodeset="/root/initResult/resData/resultkey0_VO/resultkey0_Row/">
  135. <label ref="SM_CFNM"/>
  136. <value ref="SM_CD"/>
  137. </itemset>
  138. </choices>
  139. </col>
  140. <col ref="END_PROC_CD" type="combo" style="left:208px; top:40px; width:285px; height:20px; text-align:left; ">
  141. <choices>
  142. <itemset nodeset="/root/initResult/resData/resultkey0_VO/resultkey0_Row/">
  143. <label ref="SM_CFNM"/>
  144. <value ref="SM_CD"/>
  145. </itemset>
  146. </choices>
  147. </col>
  148. <col ref="LADLE_MOVE_TME" type="input" style="left:336px; top:40px; width:285px; height:20px; text-align:right; background-color:#ffffcc; "/>
  149. <col editable="false" key="true" ref="REG_DTIME" secretendposition="true" secretmark="true" format="yyyy-mm-dd hh:nn:ss" showmask="false" style="left:464px; top:40px; width:285px; height:20px; text-align:center; "/>
  150. <col ref="REG_ID" style="left:592px; top:40px; width:285px; height:20px; text-align:left; "/>
  151. <col disabled="false" editable="false" editmenu="false" ref="MOD_DTIME" format="yyyy-mm-dd hh:nn:ss" showmask="false" validateformat="true" style="left:720px; top:40px; width:285px; height:20px; text-align:center; "/>
  152. <col ref="MOD_ID" style="left:864px; top:40px; width:439px; height:20px; text-align:left; "/>
  153. <script type="javascript" ev:event="onentercell">
  154. <![CDATA[
  155. datagrid1.editCell();
  156. ]]>
  157. </script>
  158. </datagrid>
  159. </xhtml:body>
  160. </xhtml:html>