f51fd868d8eaa0caae3ba558d816c1fcf8cad5aa.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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[炼钢作业 >> 炼钢作业实绩 >> 板坯计量称重(UIG020062)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <INTI_DATA/>
  12. <formData>
  13. <PLAN_CHARGE_NO/>
  14. <STL_GRD/>
  15. <CAST_SEQ/>
  16. <CC_DEVNO>J1</CC_DEVNO>
  17. <LD_NO/>
  18. <LD_IN_DTIME/>
  19. <RCPT_TAP_QTY/>
  20. <CUT_WKSHIFT/>
  21. <CUT_WKGROUP/>
  22. <CUT_EMP_ID/>
  23. <SLAB_CNT/>
  24. </formData>
  25. <gridData/>
  26. <searchData>
  27. <CHARGE_NO/>
  28. <PLAN_CHARGE_NO/>
  29. <startTime/>
  30. <endTime/>
  31. </searchData>
  32. <shiftData>
  33. <FAC_CD>J</FAC_CD>
  34. <PROC_CD>S</PROC_CD>
  35. <GROUP_CD/>
  36. </shiftData>
  37. <resData/>
  38. <reqData/>
  39. <initData>
  40. <INIT_CHARGE_NO/>
  41. <LG_CD>Z05002,Z05001,G02003</LG_CD>
  42. </initData>
  43. <wkResult>
  44. <WkShiftResult/>
  45. <WkGroupResult/>
  46. <WkEmpResult/>
  47. </wkResult>
  48. <SearchEmp>
  49. <WK_GROUP/>
  50. </SearchEmp>
  51. <tempData/>
  52. <comboData>
  53. <reg_id/>
  54. </comboData>
  55. <codeData/>
  56. </root>
  57. </instance>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. //InitParamsEE();
  61. ]]>
  62. </script>
  63. </model>
  64. <script type="javascript" src="../../js/boaCommon.js"/>
  65. <script type="javascript" src="../../js/boaMsg.js"/>
  66. <script type="javascript" src="../../js/Common.js"/>
  67. <script type="javascript" src="../../js/mesCommon.js"/>
  68. <script type="javascript" src="../../js/b01.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. /*
  72. *全局变量,函数
  73. */
  74. // 记录表格选中行数
  75. var SELECTED_SLAB_COUNT1 = 0;
  76. var SELECTED_SLAB_COUNT2 = 0;
  77. function InitParams(node) {
  78. if (typeof node == "undefined" && typeof node != "object") return;
  79. model.removenode("/root/initData/rcvInfo");
  80. model.makeNode("/root/initData/rcvInfo");
  81. var nodeList = node.childNodes;
  82. for (var i = 0; i < nodeList.length; i++)
  83. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  84. }
  85. function InitParamsEE()
  86. {
  87. model1.makeValue("/root/formData/SUBPROC","");
  88. commSubmit("UIG020020-service","success","glueAction.do");
  89. commAppendData("/root/initData/INIT_CHARGE_NO/InitDataResult_VO","/root/resData/InitDataResult_VO");
  90. commSendReq("/root/initData");
  91. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  92. model.copyNode("/root/codeData","/root/resData");
  93. model.refresh();
  94. }
  95. function Init(node) {
  96. InitParams(node);
  97. InitParamsEE();
  98. //shiftSearch();
  99. }
  100. /*
  101. *查询操作
  102. */
  103. function find()
  104. {
  105. //shiftSearch(); model.getValue("/root/searchData/CHARGE_NO") == null ||
  106. // 检查查询修改条件是否为空
  107. if(model.getValue("/root/searchData/CHARGE_NO") == "" )
  108. {
  109. alert("炉次号不能为空!");
  110. }
  111. else
  112. {
  113. model.removenode("/root/reqData");
  114. model.makeNode("/root/reqData");
  115. //document.writeIniFile("session1" , "UIB020220" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  116. model.makeValue("/root/reqData/CHARGE_NO" , combo1.value.Trim()+"%");//炉次号
  117. model.makeValue("/root/reqData/startTime" , input5.value+"0000");
  118. model.makeValue("/root/reqData/endTime" , input6.value+"9999");
  119. if(combo1.value == "" && input5.value == "")
  120. {
  121. window.alert("炉次号或者生产时间必须选择一个进行查询" , "提示");
  122. return;
  123. }
  124. // if(model.getValue("/root/reqData/startTime") != "0000" )
  125. // {
  126. // if(AddDate(input5.value.Trim()) < input6.value.Trim())
  127. // {
  128. // window.alert("查询日期不可以超过7天,否则可能导致内存溢出!", "提示");
  129. // return;
  130. // }
  131. // alert("asdasdasd");
  132. // }
  133. commSubmit("UIG020062-service" , "find" , "glueAction.do");
  134. commAppendData("/root/gridData/SlabCutting0_VO","/root/resData/SlabCutting0_VO");
  135. // model.copyNode("/root/datagrid3" , "/root/resData/SlabCutting0_VO");
  136. datagrid3.clearStatus();//将更新的状态清除
  137. model.refresh();
  138. }
  139. }
  140. /*
  141. * 录入
  142. */
  143. function save()
  144. {
  145. if(model.getValue("/root/searchData/CHARGE_NO") == "" )
  146. {
  147. alert("炉次号不能为空!");
  148. return;
  149. }
  150. else
  151. {
  152. model.removenode("/root/reqData");
  153. model.makeNode("/root/reqData");
  154. b01MultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
  155. //model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
  156. commSubmit("UIG020062-service","save","glueAction.do");
  157. errMSG = model.getValue("/root/resData/errorData");
  158. if(errMSG != "")
  159. {
  160. window.alert(errMSG," 警告 ");
  161. return;
  162. }
  163. //model.copyNode("/root/datagrid1","/root/resData/SeqChemResult_VO");
  164. //model.refresh();
  165. //清除删除、插入、修改状态,防止在第二次修改时候出问题
  166. datagrid3.clearStatus();
  167. }
  168. }
  169. function rightClick(){
  170. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  171. if(checkValue == null || checkValue == "")return;
  172. var tstvalue = parseInt(checkValue.substr(4,5),10);
  173. tstvalue = (tstvalue + 1) + "";
  174. var strLen = tstvalue.length;
  175. checkValue = checkValue.substr(0,4);
  176. for(var i = 0 ; i < (5 - strLen) ; i++){
  177. checkValue = checkValue + "0";
  178. }
  179. checkValue = checkValue + tstvalue + "A";
  180. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  181. find();
  182. }
  183. function leftClick(){
  184. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  185. if(checkValue == null || checkValue == "")return;
  186. var tstvalue = parseInt(checkValue.substr(4,5),10);
  187. tstvalue = (tstvalue - 1) + "";
  188. var strLen = tstvalue.length;
  189. checkValue = checkValue.substr(0,4);
  190. for(var i = 0 ; i < (5 - strLen) ; i++){
  191. checkValue = checkValue + "0";
  192. }
  193. checkValue = checkValue + tstvalue + "A";
  194. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  195. find();
  196. }
  197. ]]>
  198. </script>
  199. </xhtml:head>
  200. <xhtml:body guideline="1,981;1,981;1,981;1,980;" style="border-color:#000000; ">
  201. <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; ">炉次号</caption>
  202. <select1 id="combo1" ref="/root/searchData/CHARGE_NO" appearance="minimal" editmode="input" style="left:102px; top:5px; width:110px; height:20px; border-color:#000000; ">
  203. <choices>
  204. <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
  205. <label ref="LABEL"/>
  206. <value ref="VALUE"/>
  207. </itemset>
  208. </choices>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. //alert("sdf");
  212. //find();
  213. ]]>
  214. </script>
  215. </select1>
  216. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  217. <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  218. <datagrid id="datagrid3" nodeset="/root/gridData/SlabCutting0_VO/SlabCutting0_Row" visibility="visible" caption="选择^炉号^板坯号^铸机号^钢种^标识^板坯状态^板坯规格^板坯规格^板坯规格^板坯规格^称重序号^支数^实际重量^最后发送时间^自动化返回时间^最后更新时间^炉次结束^切割时间|选择^炉号^板坯号^铸机号^钢种^标识^板坯状态^厚度^宽度^长度^理论重量^称重序号^支数^实际重量^最后发送时间^自动化返回时间^最后更新时间^炉次结束^切割时间" colsep="^" colwidth="30, 50, 35, 54, 41, 45, 34, 33, 37, 36, 72, 36, 46, 38, 54, 70, 100, 50, 105" extendlastcol="false" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:30px; width:981px; height:560px; border-color:#000000; ">
  219. <col explorerbar="sort" checkvalue="Y,N" ref="CHK" type="checkbox"/>
  220. <col editable="true" ref="CHARGE_NO" type="input"/>
  221. <col editable="false" ref="SLAB_NO" type="input"/>
  222. <col ref="CC_DEVNO" type="input"/>
  223. <col ref="STL_GRD" type="input"/>
  224. <col ref="STATE" type="input"/>
  225. <col ref="FLAG" type="input"/>
  226. <col ref="ply" type="input" format="#,###" maxlength="6"/>
  227. <col editable="false" ref="width" type="input" format="#,###" maxlength="6"/>
  228. <col editable="false" ref="len" type="input" format="#,###" maxlength="9"/>
  229. <col editable="false" ref="THEOR_WGT" type="input" format="#,###" maxlength="9"/>
  230. <col ref="WGT_SEQ" type="input"/>
  231. <col ref="QUANTITY" type="input"/>
  232. <col ref="REAL_WGT" type="input"/>
  233. <col ref="SEDN_TIME" type="input"/>
  234. <col ref="REVERT_TIME" type="input"/>
  235. <col ref="LAST_UPDATETIME" type="input"/>
  236. <col ref="heatoverflag" type="combo">
  237. <choices>
  238. <item>
  239. <label/>
  240. <value/>
  241. </item>
  242. <item>
  243. <label>结束</label>
  244. <value>E</value>
  245. </item>
  246. </choices>
  247. </col>
  248. <col ref="CUTTIME" type="input"/>
  249. </datagrid>
  250. <button id="button2" style="left:240px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  251. <caption/>
  252. <script type="javascript" ev:event="onclick">
  253. <![CDATA[
  254. rightClick();
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="button3" style="left:215px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  259. <caption/>
  260. <script type="javascript" ev:event="onclick">
  261. <![CDATA[
  262. leftClick();
  263. ]]>
  264. </script>
  265. </button>
  266. <input id="input5" ref="/root/searchData/startTime" inputtype="date" style="left:430px; top:5px; width:100px; height:20px; "/>
  267. <input id="input6" ref="/root/searchData/endTime" inputtype="date" style="left:540px; top:5px; width:100px; height:20px; "/>
  268. <caption id="caption1" class="cell" style="left:325px; top:5px; width:100px; height:20px; ">切割时间</caption>
  269. <button id="button4" style="left:785px; top:5px; width:50px; height:20px; background-color:#ffff00; ">
  270. <caption>查询</caption>
  271. <script type="javascript" ev:event="onclick">
  272. <![CDATA[
  273. find();
  274. ]]>
  275. </script>
  276. </button>
  277. <button id="button1" style="left:870px; top:5px; width:45px; height:20px; background-color:#999999; ">
  278. <caption>接收</caption>
  279. <script type="javascript" ev:event="onclick">
  280. <![CDATA[
  281. save();
  282. ]]>
  283. </script>
  284. </button>
  285. </xhtml:body>
  286. </xhtml:html>