84f5e299c28a34224b2430647bb05aa43620fcff.svn-base 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. <datagrid1/>
  12. <formData>
  13. <SPECSTLGRD/>
  14. <SPECABBSYM/>
  15. </formData>
  16. <comboData>
  17. <SPEC_ABBSYM/>
  18. <SPEC_STL_GRD/>
  19. </comboData>
  20. </root>
  21. </instance>
  22. <script type="javascript" ev:event="xforms-ready">
  23. <![CDATA[
  24. if(window.parent==null) Init();
  25. ]]>
  26. </script>
  27. </model>
  28. <script type="javascript" src="../../js/boaCommon.js"/>
  29. <script type="javascript" src="../../js/b01.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. function Init(node)
  33. {
  34. InitParams(node);
  35. datagrid1.colStatus(datagrid1.colRef("CHK"))=false;
  36. commSubmit("UIB010321-service", "success", "glueAction.do");
  37. model.copyNode("/root/comboData/SPEC_ABBSYM" , "/root/resData/SPEC_ABBSYM_VO");
  38. model.copyNode("/root/comboData/SPEC_STL_GRD" , "/root/resData/SPEC_STL_GRD_VO");
  39. model.refresh();
  40. }
  41. function find()
  42. {
  43. model.removenode("/root/reqData");
  44. model.makeNode("/root/reqData");
  45. commSendReq("/root/formData");
  46. commSubmit("UIB010321-service", "find", "glueAction.do");
  47. model.copyNode("/root/datagrid1" , "/root/resData/CHSPECResult_VO");
  48. model.refresh();
  49. }
  50. function save()
  51. {
  52. if(commComfirmBox("确认保存?","提示")=="0") return;
  53. model.removenode("/root/reqData");
  54. model.makeNode("/root/reqData");
  55. b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");
  56. getLoggingInInfo();//获得登录人信息
  57. commSubmit("UIB010321-service" , "save" , "glueAction.do");
  58. model.copyNode("/root/datagrid1" , "/root/resData/CHSPECResult_VO");
  59. model.refresh();
  60. datagrid1.clearStatus();//清除状态
  61. datagrid2.clearStatus();//清除状态
  62. }
  63. ]]>
  64. </script>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="980" pageheight="620">
  67. <datagrid id="datagrid1" nodeset="/root/datagrid1/CHSPECResult_Row" caption="选择^优先级^冷轧交货状态^冷轧标准号^冷轧标准牌号^订单用途CD^订单用途^冷轧厚度组^冷轧厚度组^冷轧宽度组^冷轧宽度组^基料卷交货状态^基料卷标准号^基料卷标准牌号^基料卷订单用途^基料卷订单用途CD^基料卷制造厚度^基料卷制造宽度^PRIO_LEVL1^PRDNM_CD1^SPEC_ABBSYM1^SPEC_STL_GRD1^ORD_USE_TP1^THK_MIN1^THK_MAX1^WTH_MIN1^WTH_MAX1|选择^优先级^冷轧交货状态^冷轧标准号^冷轧标准牌号^订单用途CD^订单用途^最小厚度^最大厚度^最小宽度^最大宽度^基料卷交货状态^基料卷标准号^基料卷标准牌号^基料卷订单用途^基料卷订单用途CD^基料卷制造厚度^基料卷制造宽度^PRIO_LEVL1^PRDNM_CD1^SPEC_ABBSYM1^SPEC_STL_GRD1^ORD_USE_TP1^THK_MIN1^THK_MAX1^WTH_MIN1^WTH_MAX1" colsep="^" colwidth="42, 41, 54, 122, 100, 55, 100, 62, 61, 63, 63, 55, 100, 100, 100, 75, 65, 64, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:40px; width:975px; height:565px; ">
  68. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  69. <col ref="PRIO_LEVL" type="input" style="text-align:right; background-color:#ffff99; "/>
  70. <col ref="PRDNM_CD" type="input" style="text-align:left; "/>
  71. <col ref="SPEC_ABBSYM" type="input" style="text-align:left; "/>
  72. <col ref="SPEC_STL_GRD" type="input" style="text-align:left; "/>
  73. <col ref="ORD_USE_TP" visibility="hidden" style="text-align:left; "/>
  74. <col ref="ORD_USE" type="input" style="text-align:left; "/>
  75. <col ref="THK_MIN" type="input" style="text-align:right; background-color:#ffff99; "/>
  76. <col ref="THK_MAX" type="input" style="text-align:right; background-color:#ffff99; "/>
  77. <col ref="WTH_MIN" type="input" style="text-align:right; background-color:#ffff99; "/>
  78. <col ref="WTH_MAX" type="input" style="text-align:right; background-color:#ffff99; "/>
  79. <col ref="C_PRDNM_CD" type="input" style="text-align:left; "/>
  80. <col ref="C_SPEC_ABBSYM" type="input" style="text-align:left; "/>
  81. <col ref="C_SPEC_STL_GRD" type="input" style="text-align:left; "/>
  82. <col ref="C_ORD_USE" type="input" style="text-align:left; "/>
  83. <col ref="C_ORD_USE_TP" visibility="hidden" style="text-align:left; "/>
  84. <col ref="C_MAKE_THK" type="input" style="text-align:right; background-color:#ffff99; "/>
  85. <col ref="C_MAKE_WTH" type="input" style="text-align:right; background-color:#ffff99; "/>
  86. <col ref="PRIO_LEVL1" visibility="hidden"/>
  87. <col ref="PRDNM_CD1" visibility="hidden"/>
  88. <col ref="SPEC_ABBSYM1" visibility="hidden"/>
  89. <col ref="SPEC_STL_GRD1" visibility="hidden"/>
  90. <col ref="ORD_USE_TP1" visibility="hidden"/>
  91. <col ref="THK_MIN1" visibility="hidden"/>
  92. <col ref="THK_MAX1" visibility="hidden"/>
  93. <col ref="WTH_MIN1" visibility="hidden"/>
  94. <col ref="WTH_MAX1" visibility="hidden"/>
  95. <script type="javascript" ev:event="ondblclick">
  96. <![CDATA[
  97. if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHK"))=="Y")
  98. {
  99. window.load("./_UIB010320.xrw", "modal", "",
  100. "left:500; top:300; width:350; height:450; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  101. }
  102. ]]>
  103. </script>
  104. </datagrid>
  105. <caption id="caption1" class="cell" style="left:0px; top:12px; width:100px; height:20px; ">标准号</caption>
  106. <line id="line1" style="x1:0px; y1:5px; x2:975px; y2:5px; "/>
  107. <line id="line2" style="x1:0px; y1:37px; x2:975px; y2:37px; "/>
  108. <button id="button1" visibility="hidden" style="left:595px; top:12px; width:100px; height:20px; ">
  109. <caption>FIND</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. find();
  113. ]]>
  114. </script>
  115. </button>
  116. <button id="button2" style="left:835px; top:12px; width:80px; height:20px; background-image:../../images/btn_add.gif; ">
  117. <caption>增加</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. if(datagrid1.row < datagrid1.fixedRows)
  121. {
  122. datagrid1.addRow();
  123. datagrid1.vscroll.attribute("pos") = datagrid1.rows*20;
  124. }
  125. else
  126. {
  127. datagrid1.insertRow(datagrid1.row);
  128. }
  129. datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHK")) = "Y";
  130. ]]>
  131. </script>
  132. </button>
  133. <button id="button3" style="left:900px; top:12px; width:70px; height:20px; background-image:../../images/btn_move.gif; ">
  134. <caption>删除</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. if(beGridChanged(datagrid1) == "1")
  138. {
  139. if(commComfirmBox("数据已修改,可能出现误删,确定删除?","提示")=="0") return;
  140. }
  141. if(commComfirmBox("确认删除?","提示")=="0") return;
  142. for(var i=datagrid1.rows; i >= datagrid1.fixedRows; i--)//“3”表示第一行(非标题行)
  143. {
  144. if(datagrid1.valueMatrix(i, datagrid1.colRef("CHK"))=="Y")
  145. {
  146. datagrid1.deleteRow(i,false);//删除checkbox值为y的行,自动刷新
  147. }
  148. }
  149. model.removenode("/root/reqData");
  150. model.makeNode("/root/reqData");
  151. b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatusD");
  152. getLoggingInInfo();//获得登录人信息
  153. commSubmit("UIB010321-service" , "save" , "glueAction.do");
  154. model.copyNode("/root/datagrid1" , "/root/resData/CHSPECResult_VO");
  155. model.refresh();
  156. datagrid1.clearStatus();//清除状态
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="button4" visibility="hidden" style="left:685px; top:12px; width:100px; height:20px; ">
  161. <caption>SAVE</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. save();
  165. ]]>
  166. </script>
  167. </button>
  168. <select1 id="combo1" ref="/root/formData/SPECABBSYM" appearance="minimal" editmode="input" style="left:98px; top:12px; width:182px; height:20px; border-style:solid; ">
  169. <choices>
  170. <itemset nodeset="/root/comboData/SPEC_ABBSYM/SPEC_ABBSYM_Row">
  171. <label ref="LABEL"/>
  172. <value ref="VALUE"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <caption id="caption2" class="cell" style="left:295px; top:12px; width:100px; height:20px; ">标准牌号</caption>
  177. <select1 id="combo2" ref="/root/formData/SPECSTLGRD" appearance="minimal" editmode="inputsearch" style="left:395px; top:12px; width:143px; height:20px; border-style:solid; ">
  178. <choices>
  179. <itemset nodeset="/root/comboData/SPEC_STL_GRD/SPEC_STL_GRD_Row">
  180. <label ref="LABEL"/>
  181. <value ref="VALUE"/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. </xhtml:body>
  186. </xhtml:html>