4cbe7124f755eec57225fbf137b9303fc9cf2e83.svn-base 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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. <model id="model1">
  6. <instance id="instance1">
  7. <root xmlns="">
  8. <reqData>
  9. </reqData>
  10. <detailData>
  11. <gridData>
  12. <grid1>
  13. <CAST_MANA_NO/>
  14. <CAST_CHARGE_SEQ/>
  15. <PRC_LINE/>
  16. <CHARGE_MANA_NO/>
  17. <STL_GRD/>
  18. <PREV_CHARGE_WGT/>
  19. <LINE_PROC_CD/>
  20. <CCM_THK/>
  21. <CCM_WTH/>
  22. <ORD_SLAB_CNT/>
  23. <NONORD_SLAB_CNT/>
  24. <PRE_BOF_STR_DTIME/>
  25. <PROG_CD/>
  26. <STATUS_CD/>
  27. <HCR_CLF/>
  28. <L2_SEND/>
  29. <MILL_FL/>
  30. </grid1>
  31. <grid2>
  32. <CHARGE_SLAB_SEQ/>
  33. <SLAB_EDT_SEQ/>
  34. <SLAB_MANA_NO/>
  35. <STL_GRD/>
  36. <SLAB_THK/>
  37. <SLAB_WTH/>
  38. <SLAB_LEN/>
  39. <SLAB_WGT/>
  40. <HCR_CLF/>
  41. <EMGMTR_NMG_CLF/>
  42. <OVER_ROLL_YN/>
  43. <ORD_FL/>
  44. <ORD_THK/>
  45. <ORD_WTH/>
  46. <ORD_USEAGE_CD/>
  47. <DELV_REQ_DATE/>
  48. <SLAB_RT/>
  49. </grid2>
  50. </gridData>
  51. </detailData>
  52. <initResult/>
  53. <gridData>
  54. </gridData>
  55. <errorMsg/>
  56. <formData>
  57. <searchForm>
  58. <CCM/>
  59. <RH/>
  60. <LF/>
  61. <StaCharge/>
  62. <EndCharge/>
  63. <AimCharge/>
  64. <OutPut1/>
  65. <OutPut2/>
  66. <OutPut3/>
  67. <change/>
  68. <VD/>
  69. <PRC_PATH>1</PRC_PATH>
  70. <STL_GRD/>
  71. <PRC_LINE/>
  72. <CCM_PRC_LINE/>
  73. <BOF/>
  74. <CAS/>
  75. <PATH_LENTH/>
  76. </searchForm>
  77. </formData>
  78. <g1Data>
  79. <rs1_VO/>
  80. </g1Data>
  81. <g2Data/>
  82. <g3Data/>
  83. <g4Data/>
  84. <tempreqData>
  85. <CHARGE_MANA_NO/>
  86. <CHK_RH/>
  87. <CHK_LF/>
  88. <CHK_CCM/>
  89. <MSG_ID/>
  90. <REG_ID/>
  91. <STL_GRD/>
  92. <PRC_LINE/>
  93. <CCM_PRC_LINE/>
  94. </tempreqData>
  95. <initData>
  96. <LG_CD>G02003</LG_CD>
  97. </initData>
  98. <codeData>
  99. </codeData>
  100. <cdCode/>
  101. </root>
  102. </instance>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. CHARGE_MANA_NO = model.property("CHARGE_MANA_NO");
  106. var Number = model.property("Number");
  107. //var LINE_PROC_CD = model.property("LINE_PROC_CD");
  108. var ST = model.property("ST");
  109. var STL_GRD = model.property("STL_GRD");
  110. // model.setValue("/root/tempreqData/STL_GRD",STL_GRD);
  111. // model.setValue("/root/tempreqData/PRC_LINE",Number);
  112. model.setValue("/root/formData/searchForm/STL_GRD",STL_GRD);
  113. model.setValue("/root/formData/searchForm/PRC_LINE",Number);
  114. // for(var i = 0;i<LINE_PROC_CD.length;i=i+2) {
  115. // var procd = LINE_PROC_CD.substr(i, 2);
  116. // if(procd.substr(0,1) == "R"){
  117. // checkbox1.value = "R";
  118. // }
  119. // if(procd.substr(0,1) == "L"){
  120. // checkbox2.value = "L";
  121. // }
  122. // if(procd.substr(0,1) == "J"){
  123. // cur_ccm_prc_line = procd.substr(1,1);
  124. //// model.setValue("/root/tempreqData/CCM_PRC_LINE",cur_ccm_prc_line);
  125. // }
  126. // }
  127. commSendReq("/root/initData");
  128. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  129. model.copyNode("/root/codeData","/root/resData");
  130. model.refresh();
  131. ]]>
  132. </script>
  133. <script type="javascript" src="../../js/boaMsg.js"/>
  134. <script type="javascript" src="../../js/boaCommon.js"/>
  135. <script type="javascript" src="../../js/dCommon.js"/>
  136. <script type="javascript" src="../../js/F.js"/>
  137. <bind id="bind1" ref="/root/gridData2/EmpListResult_VO/EmpListResult_Row/SLAB_WGT" calculate="../SLAB_LEN * ../SLAB_THK * ../SLAB_WTH * ../GRAVITY div 1000000000"/>
  138. <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post"/>
  139. </model>
  140. <script type="javascript">
  141. <![CDATA[
  142. var cur_ccm_prc_line ;
  143. var change_ccm_prc_line;
  144. var CHARGE_MANA_NO
  145. var CHK_RH ="";
  146. var CHG_LF = "";
  147. var CHK_CCM = "";;
  148. function setTitle()
  149. {
  150. return "炼钢管制 >> 炼钢管制指示 >> 经过工序调整"; // 如:return "进程管理 >> 订单进程现况查询";
  151. }
  152. function InitParams(node) {
  153. if (typeof node == "undefined" && typeof node != "object") return;
  154. model.removenode("/root/initData/rcvInfo");
  155. model.makeNode("/root/initData/rcvInfo");
  156. var nodeList = node.childNodes;
  157. for (var i = 0; i < nodeList.length; i++)
  158. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  159. }
  160. function Init(node) {
  161. InitParams(node);
  162. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//设置第0行的checkbox的属性为true 便于进行全选操作
  163. datagrid1.colStatus(0)=false; //设置第0列也即为checkbox所在列的列状态为false。
  164. commSubmit("UIF012040-service","success","glueAction.do");//提交服务
  165. model.duplicate("/root/initResult","/root/resData");//复制结点
  166. model.refresh();
  167. }
  168. function find() {
  169. model.removenode("/root/lastResult/resData");
  170. model.removenode("/root/reqData");
  171. commSendReq("/root/formData/searchForm");
  172. commSubmit("UIF012040-service","findProcChange","glueAction.do");
  173. commAppendData("/root/g1Data/rs1_VO","/root/resData/rs1_VO");
  174. model.refresh();
  175. }
  176. function close() {
  177. window.close();//关闭窗口
  178. }
  179. function save() {
  180. model.removenode("/root/reqData");
  181. model.makeNode("/root/reqData");
  182. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  183. model.makeValue("/root/reqData/PRC_PATH",model.getValue("/root/formData/searchForm/PRC_PATH"));
  184. model.makeValue("/root/reqData/MSG_ID","NIF012170");
  185. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  186. commSubmit("UIF012040-service","save","glueAction.do");
  187. model.refresh();
  188. find();
  189. }
  190. ]]>
  191. </script>
  192. </xhtml:head>
  193. <xhtml:body pagewidth="980" pageheight="620" guideline="1,981;">
  194. <line id="line3" style="x1:1px; y1:59px; x2:980px; y2:59px; border-color:#ff00ff; "/>
  195. <datagrid id="datagrid1" nodeset="/root/g1Data/rs1_VO/rs1_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^浇次管理号^浇次内顺序^转炉号^炉次管理号^钢号^预定出钢量^处理路径^浇铸厚度^浇铸宽度^订单板坯块数^余材板坯块数^计划出钢开始^进程^状态区分^热送^L2传送|选择^浇次管理号^浇次内顺序^转炉号^炉次管理号^钢号^预定出钢量^处理路径^浇铸厚度^浇铸宽度^订单板坯块数^余材板坯块数^计划出钢开始^进程^状态区分^热送^L2传送" colsep="^" colwidth="30, 38, 31, 23, 66, 66, 50, 209, 29, 29, 29, 31, 120, 84, 38, 21, 24" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:63px; width:980px; height:287px; color:#000000; text-align:center; ">
  196. <col checkvalue="true,false" ref="CHK" type="checkbox"/>
  197. <col autonext="true" ref="CAST_MANA_NO" style="text-align:center; "/>
  198. <col ref="CAST_CHARGE_SEQ" type="output" style="text-align:right; "/>
  199. <col ref="PRC_LINE"/>
  200. <col ref="CHARGE_MANA_NO"/>
  201. <col disabled="true" editmode="search" ref="STL_GRD" style="text-align:left; "/>
  202. <col ref="PREV_CHARGE_WGT" format="#,##0" style="text-align:right; "/>
  203. <col ref="LINE_PROC_CD" style="text-align:left; "/>
  204. <col ref="CCM_THK" style="text-align:right; "/>
  205. <col ref="CCM_WTH" format="#,##0" style="text-align:right; "/>
  206. <col ref="ORD_SLAB_CNT" format="#,##0" style="text-align:right; "/>
  207. <col ref="NONORD_SLAB_CNT" format="#,##0" style="text-align:right; "/>
  208. <col ref="PRE_BOF_STR_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  209. <col disabled="true" editmode="search" ref="PROG_CD" style="text-align:left; "/>
  210. <col disabled="true" editmode="search" ref="STATUS_CD"/>
  211. <col disabled="true" editmode="search" ref="HCR_CLF"/>
  212. <col ref="L2_SEND"/>
  213. <script type="javascript" ev:event="onclick">
  214. <![CDATA[
  215. var i ;
  216. i = datagrid1.row;//记录点击行
  217. if(datagrid1.row <= 1) return;
  218. if (!datagrid1.isCell(event.target)) return;
  219. var CHARGE_EDT_SEQ = model.getValue("/root/g1Data/rs1_VO/rs1_Row["+(i-1)+"]/CHARGE_EDT_SEQ");//记录当前行的炉次编制号
  220. model.removenode("/root/reqData");
  221. model.makeNode("/root/reqData");
  222. model.makeNode("/root/gData/CHARGE_EDT_SEQ");
  223. model.setValue("/root/gData/CHARGE_EDT_SEQ",CHARGE_EDT_SEQ);
  224. model.duplicate("/root/reqData","/root/gData/CHARGE_EDT_SEQ");//将炉次编制号做为请求变量复制到root/reqData结点中
  225. commSubmit("UIF012040-service","findChargeInfo","glueAction.do");
  226. commAppendData("/root/g2Data/rs2_VO","/root/resData/rs2_VO");//将/root/resData/rs3_VO的值复制到/root/g3Data/rs3_VO中
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </datagrid>
  231. <datagrid id="datagrid2" nodeset="/root/g2Data/rs2_VO/rs2_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="炉次内顺序^板坯编制号^板坯管理号^钢号^板坯厚度^板坯宽度^板坯长度^重量^热送^紧急材^过量生产判断^订单材余材区分^订单厚度^订单宽度^订单用途^交货期^板坯去向|炉次内顺序^板坯编制号^板坯管理号^钢号^板坯厚度^板坯宽度^板坯长度^重量^热送^紧急材^过量生产判断^订单材余材区分^订单厚度^订单宽度^订单用途^交货期^板坯去向" colsep="^" colwidth="58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58" defaultrows="0" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:360px; width:980px; height:260px; text-align:center; ">
  232. <col ref="CHARGE_SLAB_SEQ"/>
  233. <col ref="SLAB_EDT_SEQ" type="output" visibility="hidden"/>
  234. <col disabled="true" ref="SLAB_MANA_NO" style="background-color:#ffffff; "/>
  235. <col disabled="true" editmode="search" ref="STL_GRD" style="text-align:left; "/>
  236. <col ref="SLAB_THK" format="#,##0" style="text-align:right; background-color:#ffffff; "/>
  237. <col ref="SLAB_WTH" format="#,##0" style="text-align:right; background-color:#ffffff; "/>
  238. <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
  239. <col ref="SLAB_WGT" format="#,##0" style="text-align:right; background-color:#ffffff; "/>
  240. <col disabled="true" editmode="search" ref="HCR_CLF"/>
  241. <col ref="EMGMTR_NMG_CLF"/>
  242. <col ref="OVER_ROLL_YN"/>
  243. <col disabled="true" editmode="search" ref="ORD_FL"/>
  244. <col ref="ORD_THK" style="text-align:right; "/>
  245. <col ref="ORD_WTH" format="#,##0" style="text-align:right; "/>
  246. <col disabled="true" editmode="search" ref="ORD_USEAGE_CD" style="text-align:left; "/>
  247. <col ref="DELV_REQ_DATE" format="yyyy-mm-dd"/>
  248. <col disabled="true" editmode="search" ref="SLAB_RT"/>
  249. </datagrid>
  250. <line id="line1" style="x1:1px; y1:306px; x2:980px; y2:306px; border-color:#0000ff; "/>
  251. <select1 id="combo1" ref="/root/formData/searchForm/RH" appearance="minimal" style="left:35px; top:35px; width:105px; height:20px; ">
  252. <choices>
  253. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A' or (LG_CD = 'G02003' and SM_EFNM = 'R')]">
  254. <label ref="SM_CFNM"/>
  255. <value ref="SM_CD"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <select1 id="combo2" ref="/root/formData/searchForm/LF" appearance="minimal" style="left:185px; top:35px; width:100px; height:20px; ">
  260. <choices>
  261. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A' or (LG_CD = 'G02003' and SM_EFNM = 'L')]">
  262. <label ref="SM_CFNM"/>
  263. <value ref="SM_CD"/>
  264. </itemset>
  265. </choices>
  266. </select1>
  267. <select1 id="combo3" ref="/root/formData/searchForm/VD" appearance="minimal" style="left:325px; top:35px; width:105px; height:20px; ">
  268. <choices>
  269. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A' or (LG_CD = 'G02003' and SM_EFNM = 'V')]">
  270. <label ref="SM_CFNM"/>
  271. <value ref="SM_CD"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <caption id="caption4" class="cell" style="left:145px; top:35px; width:40px; height:20px; text-align:center; border-style:solid; ">LF炉</caption>
  276. <select1 id="combo4" ref="/root/formData/searchForm/CCM" appearance="minimal" style="left:474px; top:35px; width:105px; height:20px; ">
  277. <choices>
  278. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A' or (LG_CD = 'G02003' and SM_EFNM = 'J')]">
  279. <label ref="SM_CFNM"/>
  280. <value ref="SM_CD"/>
  281. </itemset>
  282. </choices>
  283. </select1>
  284. <caption id="caption5" class="cell" style="left:290px; top:35px; width:35px; height:20px; text-align:center; border-style:solid; ">VD炉</caption>
  285. <caption id="caption8" class="cell" style="left:0px; top:35px; width:35px; height:20px; text-align:center; border-style:solid; ">RH炉</caption>
  286. <caption id="caption9" class="cell" style="left:434px; top:35px; width:40px; height:20px; text-align:center; border-style:solid; ">连铸机</caption>
  287. <caption id="caption2" class="cell" style="left:645px; top:35px; width:90px; height:20px; text-align:center; border-style:solid; ">处理路径</caption>
  288. <select1 id="combo5" ref="/root/formData/searchForm/PRC_PATH" appearance="minimal" style="left:735px; top:35px; width:226px; height:20px; ">
  289. <choices>
  290. <itemset nodeset="/root/cdCode/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'F01004' or LG_CD ='A']">
  291. <label ref="SM_CFNM"/>
  292. <value ref="SM_CD"/>
  293. </itemset>
  294. </choices>
  295. </select1>
  296. <button id="button1" style="left:580px; top:35px; width:65px; height:20px; ">
  297. <caption>确认</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. var lenth = 0;
  301. var mc = model.getValue("/root/formData/searchForm/PRC_LINE");
  302. model.setValue("/root/formData/searchForm/BOF","B" + mc);
  303. model.setValue("/root/formData/searchForm/CAS","C" + mc);
  304. if(model.getValue("/root/formData/searchForm/BOF") == ""){
  305. alert(" 转炉号不能为空! ","错误");
  306. return ;
  307. }else{
  308. lenth = lenth + 2;
  309. }
  310. if(model.getValue("/root/formData/searchForm/CAS") != ""){
  311. lenth = lenth + 2;
  312. }
  313. if(model.getValue("/root/formData/searchForm/LF") != ""){
  314. lenth = lenth + 2;
  315. }
  316. if(model.getValue("/root/formData/searchForm/RH") != ""){
  317. lenth = lenth + 2;
  318. }
  319. if(model.getValue("/root/formData/searchForm/VD") != ""){
  320. lenth = lenth + 2;
  321. }
  322. if(model.getValue("/root/formData/searchForm/CCM") == ""){
  323. alert(" 连铸机不能为空! ","错误");
  324. return ;
  325. }else{
  326. lenth = lenth + 2;
  327. }
  328. model.setValue("/root/formData/searchForm/PATH_LENTH",lenth);
  329. commSendReq("/root/formData/searchForm");
  330. commSubmit("UIF012040-service","find_path_cd","glueAction.do");
  331. model.copyNode("/root/cdCode","/root/resData");
  332. model.refresh();
  333. ]]>
  334. </script>
  335. </button>
  336. <caption id="caption1" class="cell" style="left:0px; top:0px; width:90px; height:20px; text-align:center; border-style:solid; ">转炉号</caption>
  337. <input id="input1" ref="/root/formData/searchForm/PRC_LINE" maxlength="1" format="999999-9999999" style="left:90px; top:0px; width:120px; height:20px; ">
  338. <hint>
  339. <![CDATA[必须输入转炉号:1、2]]>
  340. </hint>
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. find();
  344. ]]>
  345. </script>
  346. </input>
  347. <caption id="caption3" class="cell" style="left:215px; top:0px; width:90px; height:20px; text-align:center; border-style:solid; ">牌号</caption>
  348. <input id="input2" ref="/root/formData/searchForm/STL_GRD" style="left:305px; top:0px; width:120px; height:20px; "/>
  349. <line id="line2" style="x1:2px; y1:27px; x2:981px; y2:27px; border-color:#ff00ff; "/>
  350. </xhtml:body>
  351. </xhtml:html>