a29ec6d5ab8368f69133cf8382a49e4c9fe0652c.svn-base 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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[炼钢作业 >> 板坯库管理 >> 加回轧回入库录入(UIG040062)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <searchData>
  12. <FROM_DATE/>
  13. <TO_DATE/>
  14. <CHARGE_NO/>
  15. </searchData>
  16. <formData>
  17. <SLAB_NO/>
  18. <SLAB_THK/>
  19. <SLAB_WTH/>
  20. <SLAB_LEN/>
  21. <SLAB_WGT/>
  22. <BACK_TP>JH</BACK_TP>
  23. <SCRAP_WGT/>
  24. <CUR_LOAD_LOC/>
  25. <SHIFT/>
  26. <GROUP/>
  27. <REGID/>
  28. <ORD_NO/>
  29. <ORD_SEQ/>
  30. <ORG_ORD_NO/>
  31. <ORG_ORD_SEQ/>
  32. <CUR_PROG_CD/>
  33. <BEF_PROG_CD/>
  34. </formData>
  35. <grid1/>
  36. <reqData/>
  37. <resData/>
  38. <shiftData>
  39. <FAC_CD>R</FAC_CD>
  40. <PROC_CD>Y</PROC_CD>
  41. <GROUP_CD/>
  42. </shiftData>
  43. <comboData>
  44. <reg_id/>
  45. </comboData>
  46. <initData>
  47. <LG_CD>E01002,H02009</LG_CD>
  48. </initData>
  49. <codeData/>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. commSendReq("/root/initData");
  55. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  56. model.copyNode("/root/codeData","/root/resData");
  57. var curDate = CurentDate();
  58. if(model.getValue("/root/searchData/FROM_DATE") == null || model.getValue("/root/searchData/FROM_DATE") == ""){
  59. model.setValue("/root/searchData/FROM_DATE",curDate);
  60. }
  61. if(model.getValue("/root/searchData/TO_DATE") == null || model.getValue("/root/searchData/TO_DATE") == ""){
  62. model.setValue("/root/searchData/TO_DATE",curDate);
  63. }
  64. input6.refresh();input7.refresh();
  65. commSendReq("/root/shiftData");
  66. commSubmit("UIG020SHIFT-service","findshift","glueAction.do");
  67. model.setValue("/root/formData/SHIFT",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GR_SHIFT"));
  68. model.setValue("/root/formData/GROUP",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GROUP_CD"));
  69. model.copyNode("/root/comboData/reg_id","/root/resData/EMP_NM_RESUTL_VO");
  70. combo2.refresh();combo3.refresh();combo4.refresh();
  71. ]]>
  72. </script>
  73. </model>
  74. <script type="javascript">
  75. <![CDATA[
  76. function find(){
  77. formInput1.disabled = true;formInput2.disabled = true;
  78. formInput3.disabled = true;formInput4.disabled = true;
  79. formInput5.disabled = true;formInput6.disabled = true;
  80. var backTp = model.getValue("/root/formData/BACK_TP");
  81. if(backTp == "JH"){
  82. commSendReq("/root/searchData");
  83. commSubmit("UIG040062-service","findjh","glueAction.do");
  84. }else if(backTp == "ZH"){
  85. commSendReq("/root/searchData");
  86. commSubmit("UIG040062-service","findzh","glueAction.do");
  87. }else{
  88. alert(" 加回,轧回选择不能为空!");
  89. return;
  90. }
  91. commAppendData("/root/grid1/ZH_RESULT_VO","/root/resData/ZH_RESULT_VO");
  92. datagrid1.refresh();
  93. }
  94. function save(){
  95. var conformStr = "确定进行如下修改?\n ";
  96. conformStr = conformStr + "板坯号: " + model.getValue("/root/formData/SLAB_NO") + "\n";
  97. conformStr = conformStr + "跺位: " + model.getValue("/root/formData/CUR_LOAD_LOC") + "\n";
  98. conformStr = conformStr + "宽度: " + model.getValue("/root/formData/SLAB_THK") + "\n";
  99. conformStr = conformStr + "厚度: " + model.getValue("/root/formData/SLAB_WTH") + "\n";
  100. conformStr = conformStr + "长度: " + model.getValue("/root/formData/SLAB_LEN") + "\n";
  101. conformStr = conformStr + "重量: " + model.getValue("/root/formData/SLAB_WGT") + "\n";
  102. var answer = window.alert(conformStr,"坯料确认", 1 | 32);
  103. if (answer == "2"){
  104. return;
  105. }
  106. commSendReq("/root/formData");
  107. commSubmit("UIG040062-service","save","glueAction.do");
  108. alert(model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
  109. find();
  110. }
  111. function rightClick(){
  112. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  113. if(checkValue == null || checkValue == "")return;
  114. var tstvalue = parseInt(checkValue.substr(4,5),10);
  115. var tailValue = checkValue.substr(9,4);
  116. tstvalue = (tstvalue + 1) + "";
  117. var strLen = tstvalue.length;
  118. checkValue = checkValue.substr(0,4);
  119. for(var i = 0 ; i < (5 - strLen) ; i++){
  120. checkValue = checkValue + "0";
  121. }
  122. checkValue = checkValue + tstvalue + tailValue;
  123. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  124. find();
  125. }
  126. function leftClick(){
  127. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  128. if(checkValue == null || checkValue == "")return;
  129. if(checkValue.length < 9){
  130. alert(" 炉次号长度不符! ");
  131. return;
  132. }
  133. var tstvalue = parseInt(checkValue.substr(4,5),10);
  134. var tailValue = checkValue.substr(9,4);
  135. tstvalue = (tstvalue - 1) + "";
  136. var strLen = tstvalue.length;
  137. checkValue = checkValue.substr(0,4);
  138. for(var i = 0 ; i < (5 - strLen) ; i++){
  139. checkValue = checkValue + "0";
  140. }
  141. checkValue = checkValue + tstvalue + tailValue;
  142. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  143. find();
  144. }
  145. ]]>
  146. </script>
  147. <script type="javascript" src="../../js/boaCommon.js"/>
  148. <script type="javascript" src="../../js/G02.js"/>
  149. </xhtml:head>
  150. <xhtml:body>
  151. <caption id="caption2" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">加回/轧回</caption>
  152. <select1 id="combo1" ref="/root/formData/BACK_TP" appearance="minimal" style="left:76px; top:5px; width:85px; height:20px; ">
  153. <choices>
  154. <item>
  155. <label>加回</label>
  156. <value>JH</value>
  157. </item>
  158. <item>
  159. <label>轧回</label>
  160. <value>ZH</value>
  161. </item>
  162. </choices>
  163. <script type="javascript" ev:event="xforms-value-changed">
  164. <![CDATA[
  165. find();
  166. ]]>
  167. </script>
  168. </select1>
  169. <datagrid id="datagrid1" nodeset="/root/grid1/ZH_RESULT_VO/ZH_RESULT_Row" caption="选择^板坯号^坯料进程^板坯状态^钢种^厚度^宽度^长度^重量^废 钢 量^放置位置^加回/轧回^回送原因^回送时间^回送人^回送班次^回送班组^ORD_NO^ORD_SEQ^ORG_ORD_NO^ORG_ORD_SEQ^CUR_PROG_CD^BEF_PROG_CD|选择^板坯号^坯料进程^板坯状态^钢种^厚度^宽度^长度^重量^废 钢 量^放置位置^加回/轧回^回送原因^回送时间^回送人^回送班次^回送班组^ORD_NO^ORD_SEQ^ORG_ORD_NO^ORG_ORD_SEQ^CUR_PROG_CD^BEF_PROG_CD" colsep="^" colwidth="50, 90, 100, 50, 80, 40, 50, 60, 60, 60, 80, 48, 60, 100, 50, 40, 50, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:70px; width:980px; height:530px; ">
  170. <col ref="CHK" type="radio"/>
  171. <col editable="false" ref="SLAB_NO" type="input"/>
  172. <col disabled="true" editable="false" ref="CUR_PROG_CD" type="combo">
  173. <choices>
  174. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'E01002']">
  175. <label ref="SM_CFNM"/>
  176. <value ref="SM_CD"/>
  177. </itemset>
  178. </choices>
  179. </col>
  180. <col ref="SLAB_STAT" type="combo">
  181. <choices>
  182. <item>
  183. <label>指示</label>
  184. <value>1</value>
  185. </item>
  186. <item>
  187. <label>坯料</label>
  188. <value>2</value>
  189. </item>
  190. <item>
  191. <label>结束</label>
  192. <value>3</value>
  193. </item>
  194. </choices>
  195. </col>
  196. <col ref="STL_GRD"/>
  197. <col ref="SLAB_THK"/>
  198. <col ref="SLAB_WTH"/>
  199. <col ref="SLAB_LEN"/>
  200. <col ref="SLAB_WGT"/>
  201. <col ref="SCRAP_WGT"/>
  202. <col ref="CUR_LOAD_LOC"/>
  203. <col ref="BACK_TP"/>
  204. <col ref="MISSNO_CAUSE_CD" type="combo">
  205. <choices>
  206. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'H02009']">
  207. <label ref="SM_CFNM"/>
  208. <value ref="SM_CD"/>
  209. </itemset>
  210. </choices>
  211. </col>
  212. <col ref="MISSNO_DTIME"/>
  213. <col ref="MISSNO_WK_EMP_NO"/>
  214. <col disabled="true" ref="MISSNO_WKSHIFT" type="combo">
  215. <choices>
  216. <item>
  217. <label>早班</label>
  218. <value>1</value>
  219. </item>
  220. <item>
  221. <label>中班</label>
  222. <value>2</value>
  223. </item>
  224. <item>
  225. <label>晚班</label>
  226. <value>3</value>
  227. </item>
  228. </choices>
  229. </col>
  230. <col disabled="true" ref="MISSNO_WKGROUP" type="combo">
  231. <choices>
  232. <item>
  233. <label>甲班</label>
  234. <value>A</value>
  235. </item>
  236. <item>
  237. <label>乙班</label>
  238. <value>B</value>
  239. </item>
  240. <item>
  241. <label>丙班</label>
  242. <value>C</value>
  243. </item>
  244. <item>
  245. <label>丁班</label>
  246. <value>D</value>
  247. </item>
  248. </choices>
  249. </col>
  250. <col ref="ORD_NO"/>
  251. <col ref="ORD_SEQ"/>
  252. <col ref="ORG_ORD_NO"/>
  253. <col ref="ORG_ORD_SEQ"/>
  254. <col ref="CUR_PROG_CD"/>
  255. <col ref="BEF_PROG_CD"/>
  256. <script type="javascript" ev:event="xforms-select">
  257. <![CDATA[
  258. if(model.getValue("/root/formData/BACK_TP") == "ZH"){
  259. formInput1.disabled = false;formInput2.disabled = false;
  260. formInput3.disabled = false;formInput4.disabled = false;
  261. formInput5.disabled = false;formInput6.disabled = false;
  262. model.refresh();
  263. formInput2.attribute("background-color") = "#ffff99";
  264. formInput3.attribute("background-color") = "#ffff99";
  265. formInput4.attribute("background-color") = "#ffff99";
  266. formInput5.attribute("background-color") = "#ffff99";
  267. formInput6.attribute("background-color") = "#ffff99";
  268. formInput1.attribute("background-color") = "#ffff99";
  269. }else if (model.getValue("/root/formData/BACK_TP") == "JH"){
  270. formInput1.disabled = false;
  271. model.refresh();
  272. formInput1.attribute("background-color") = "#ffff99";
  273. formInput2.attribute("background-color") = "#ffffff";
  274. formInput3.attribute("background-color") = "#ffffff";
  275. formInput4.attribute("background-color") = "#ffffff";
  276. formInput5.attribute("background-color") = "#ffffff";
  277. formInput6.attribute("background-color") = "#ffffff";
  278. }
  279. model.setValue("/root/formData/SLAB_THK",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_THK")));
  280. model.setValue("/root/formData/SLAB_WTH",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_WTH")));
  281. model.setValue("/root/formData/SLAB_LEN",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_LEN")));
  282. model.setValue("/root/formData/SLAB_WGT",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_WGT")));
  283. model.setValue("/root/formData/SCRAP_WGT",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SCRAP_WGT")));
  284. model.setValue("/root/formData/SLAB_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_NO")));
  285. model.setValue("/root/formData/CUR_LOAD_LOC",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CUR_LOAD_LOC")));
  286. model.setValue("/root/formData/ORD_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_NO")));
  287. model.setValue("/root/formData/ORD_SEQ",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_SEQ")));
  288. model.setValue("/root/formData/ORG_ORD_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORG_ORD_NO")));
  289. model.setValue("/root/formData/ORG_ORD_SEQ",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORG_ORD_SEQ")));
  290. model.setValue("/root/formData/CUR_PROG_CD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CUR_PROG_CD")));
  291. model.setValue("/root/formData/BEF_PROG_CD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("BEF_PROG_CD")));
  292. ]]>
  293. </script>
  294. </datagrid>
  295. <select1 id="combo2" ref="/root/formData/SHIFT" appearance="minimal" style="left:0px; top:48px; width:90px; height:20px; ">
  296. <choices>
  297. <item>
  298. <label>早班</label>
  299. <value>1</value>
  300. </item>
  301. <item>
  302. <label>中班</label>
  303. <value>2</value>
  304. </item>
  305. <item>
  306. <label>晚班</label>
  307. <value>3</value>
  308. </item>
  309. </choices>
  310. </select1>
  311. <select1 id="combo3" ref="/root/formData/GROUP" appearance="minimal" style="left:90px; top:48px; width:90px; height:20px; ">
  312. <choices>
  313. <item>
  314. <label>甲班</label>
  315. <value>A</value>
  316. </item>
  317. <item>
  318. <label>乙班</label>
  319. <value>B</value>
  320. </item>
  321. <item>
  322. <label>丙班</label>
  323. <value>C</value>
  324. </item>
  325. <item>
  326. <label>丁班</label>
  327. <value>D</value>
  328. </item>
  329. </choices>
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. model.setValue("/root/shiftData/GROUP_CD",model.getValue("/root/formData/GROUP"));
  333. commSendReq("/root/shiftData");
  334. commSubmit("UIG020SHIFT-service","findgroup","glueAction.do");
  335. model.copyNode("/root/comboData/reg_id","/root/resData/EMP_NM_RESUTL_VO");
  336. combo4.refresh();
  337. ]]>
  338. </script>
  339. </select1>
  340. <select1 id="combo4" ref="/root/formData/REGID" appearance="minimal" editmode="inputsearch" style="left:180px; top:48px; width:90px; height:20px; ">
  341. <choices>
  342. <itemset nodeset="/root/comboData/reg_id/EMP_NM_RESUTL_Row">
  343. <label ref="LABEL"/>
  344. <value ref="VALUE"/>
  345. </itemset>
  346. </choices>
  347. </select1>
  348. <caption id="caption1" class="cell" style="left:290px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
  349. <input id="input1" ref="/root/formData/SLAB_NO" disabled="true" editable="false" style="left:290px; top:48px; width:90px; height:20px; "/>
  350. <caption id="caption3" class="cell" style="left:470px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">厚度</caption>
  351. <input id="formInput1" ref="/root/formData/CUR_LOAD_LOC" style="left:380px; top:48px; width:90px; height:20px; "/>
  352. <input id="formInput2" ref="/root/formData/SLAB_THK" style="left:470px; top:48px; width:90px; height:20px; "/>
  353. <caption id="caption4" class="cell" style="left:560px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">宽度</caption>
  354. <input id="formInput3" ref="/root/formData/SLAB_WTH" style="left:560px; top:48px; width:90px; height:20px; "/>
  355. <caption id="caption5" class="cell" style="left:650px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">长度</caption>
  356. <input id="formInput4" ref="/root/formData/SLAB_LEN" style="left:650px; top:48px; width:90px; height:20px; "/>
  357. <caption id="caption6" class="cell" style="left:740px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">重 量</caption>
  358. <input id="formInput5" ref="/root/formData/SLAB_WGT" style="left:740px; top:48px; width:90px; height:20px; "/>
  359. <input id="formInput6" ref="/root/formData/SCRAP_WGT" style="left:830px; top:48px; width:90px; height:20px; "/>
  360. <input id="input6" ref="/root/searchData/FROM_DATE" class="input" inputtype="date" style="left:246px; top:5px; width:95px; height:20px; ">
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. if(model.getValue("/root/searchData/TO_DATE") == null || model.getValue("/root/searchData/TO_DATE") == ""
  364. ||model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/TO_DATE")){
  365. model.setValue("/root/searchData/TO_DATE",model.getValue("/root/searchData/FROM_DATE"));
  366. input7.refresh();
  367. }
  368. ]]>
  369. </script>
  370. </input>
  371. <input id="input7" ref="/root/searchData/TO_DATE" class="input" inputtype="date" style="left:345px; top:5px; width:95px; height:20px; ">
  372. <script type="javascript" ev:event="xforms-value-changed">
  373. <![CDATA[
  374. if(model.getValue("/root/searchData/FROM_DATE") == null || model.getValue("/root/searchData/FROM_DATE") == ""
  375. ||model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/TO_DATE")){
  376. model.setValue("/root/searchData/FROM_DATE",model.getValue("/root/searchData/TO_DATE"));
  377. input6.refresh();
  378. }
  379. ]]>
  380. </script>
  381. </input>
  382. <caption id="caption7" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">加回/轧回</caption>
  383. <line id="line2" style="x1:341px; y1:15px; x2:346px; y2:15px; "/>
  384. <caption id="caption8" class="cell" style="left:170px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">时 间</caption>
  385. <caption id="caption9" class="cell" style="left:0px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">班 次</caption>
  386. <caption id="caption10" class="cell" style="left:90px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">班 组</caption>
  387. <caption id="caption11" class="cell" style="left:180px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">操 作 人</caption>
  388. <caption id="caption12" class="cell" style="left:830px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废 钢 量</caption>
  389. <caption id="caption13" class="cell" style="left:380px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">跺 位</caption>
  390. <script type="javascript" ev:event="onkeypress">
  391. <![CDATA[
  392. if(event.keyCode == 13){
  393. find();
  394. }
  395. ]]>
  396. </script>
  397. <caption id="caption14" class="cell" style="left:445px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">炉 号</caption>
  398. <input id="input2" ref="/root/searchData/CHARGE_NO" class="input" style="left:521px; top:5px; width:100px; height:20px; ">
  399. <script type="javascript" ev:event="xforms-value-changed">
  400. <![CDATA[
  401. if(model.getValue("/root/searchData/TO_DATE") == null || model.getValue("/root/searchData/TO_DATE") == ""
  402. ||model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/TO_DATE")){
  403. model.setValue("/root/searchData/TO_DATE",model.getValue("/root/searchData/FROM_DATE"));
  404. input7.refresh();
  405. }
  406. ]]>
  407. </script>
  408. </input>
  409. <button id="button2" style="left:647px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  410. <caption/>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. rightClick();
  414. ]]>
  415. </script>
  416. </button>
  417. <button id="button3" style="left:622px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  418. <caption/>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. leftClick();
  422. ]]>
  423. </script>
  424. </button>
  425. </xhtml:body>
  426. </xhtml:html>