b6ffe2aa1147a43b67c2daa8327072b3623afa40.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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[炼钢作业 >> 炼钢作业实绩 >> 连铸实绩查询与录入(UIG020070)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <INIT_CHARGE_NO/>
  13. </initData>
  14. <searchData>
  15. <CHARGE_NO/>
  16. <L2DEMO/>
  17. </searchData>
  18. <gridData>
  19. <grid1/>
  20. <grid2/>
  21. <grid4>
  22. </grid4>
  23. <grid5/>
  24. <grid3/>
  25. <grid7/>
  26. </gridData>
  27. <resData/>
  28. <reqData/>
  29. <wkResult>
  30. <WkShiftResult>
  31. </WkShiftResult>
  32. <WkGroupResult>
  33. </WkGroupResult>
  34. <WkEmpResult/>
  35. </wkResult>
  36. <searchEmp>
  37. <WK_GROUP/>
  38. </searchEmp>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. init();
  44. ]]>
  45. </script>
  46. </model>
  47. <script type="javascript" src="../../js/boaCommon.js"/>
  48. <script type="javascript" src="../../js/boaMsg.js"/>
  49. <script type="javascript" src="../../js/G02.js"/>
  50. <script type="javascript">
  51. <![CDATA[
  52. function init(){
  53. model1.makeValue("/root/formData/SUBPROC","");
  54. commSendReq("/root/searchData");
  55. commSubmit("UIG020020-service","init","glueAction.do");
  56. commAppendData("/root/initData/INIT_CHARGE_NO/InitDataResult_VO","/root/resData/InitDataResult_VO");
  57. model.refresh();
  58. }
  59. function dynamicChemGridDisplay(grid,ref){
  60. var grid = document.all(grid);
  61. grid.rebuild();
  62. for(var i = grid.cols ; i >= 1 ; i--){
  63. grid.deleteColumn(1,false);
  64. }
  65. for(var i = grid.rows ; i >= 1 ; i--){
  66. grid.deleteRow(1,false);
  67. }
  68. model.removenode(ref + "/JchmResult_VO");
  69. var node = instance1.selectSingleNode("/root/resData/ChemNM_VO");
  70. var nodeList = node.childNodes;
  71. grid.addRow();
  72. var xx = "项目";
  73. while (childNode = nodeList.nextNode())
  74. {
  75. var chargeNo = childNode.CHEM_CD.value;
  76. grid.addColumn("ref:" + chargeNo, false);
  77. grid.colWidth(grid.colRef(chargeNo)) = 60;
  78. xx = xx + "^" + chargeNo;
  79. }
  80. grid.caption = xx;
  81. commAppendData(ref + "/JchmResult_VO","/root/resData/JchmResult_VO");
  82. }
  83. /**
  84. *查询操作
  85. */
  86. function find()
  87. {
  88. if(model.getValue("/root/searchData/CHARGE_NO") == "" )
  89. {
  90. alert("炉次号不能为空!");
  91. }
  92. else
  93. {
  94. commSendReq("/root/searchData");
  95. model.makeValue("/root/reqData/SUBPROC","J"); //查询条件,“L”表示LF炉
  96. commSubmit("UIG020070-service","find","glueAction.do");
  97. dynamicChemGridDisplay("datagrid7","/root/gridData/grid7");
  98. // 将查询结果Apped到datagrid上
  99. commAppendData("/root/gridData/grid1/CCMResult_VO","/root/resData/CCMResult_VO");
  100. commAppendData("/root/gridData/grid2/CCMResult_VO","/root/resData/CCMResult_VO");
  101. commAppendData("/root/gridData/grid3/CCMResult_VO","/root/resData/CCMResult_VO");
  102. commAppendData("/root/gridData/grid5/CCMResult_VO","/root/resData/CCMResult_VO");
  103. //把班次组作业人的数据对象从返回接点移到wkResult
  104. commAppendData("/root/wkResult/WkShiftResult/ShiftResult_VO","/root/resData/ShiftResult_VO");
  105. commAppendData("/root/wkResult/WkGroupResult/GroupResult_VO","/root/resData/GroupResult_VO");
  106. model.setValue("/root/searchData/L2DEMO",model.getValue("/root/resData/LDEMORS_VO/LDEMORS_Row/L2DEMO"));
  107. model.refresh();
  108. //判断datagrid1中是否有数据存在,无数据则为其增加一行使能输入
  109. if(datagrid1.rows==1)
  110. {
  111. datagrid1.addRow();
  112. }
  113. //判断datagrid2中是否有数据存在,无数据则为其增加一行使能输入
  114. if(datagrid2.rows==3)
  115. {
  116. datagrid2.addRow();
  117. }
  118. }
  119. }
  120. /*
  121. * 录入
  122. */
  123. function save()
  124. {
  125. if(model.getValue("/root/searchData/CHARGE_NO") == "" )
  126. {
  127. alert("炉次号不能为空!");
  128. return;
  129. }
  130. else
  131. {
  132. model.removenode("/root/reqData");
  133. model.makeNode("/root/reqData");
  134. //将修改的节点复制到searchData节点下,
  135. model.makeValue("/root/reqData/CHARGE_NO",model1.getValue("/root/searchData/CHARGE_NO"));
  136. model.makeValue("/root/reqData/PLAN_CHARGE_NO",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/PLAN_CHARGE_NO"));
  137. model.makeValue("/root/reqData/CAST_END_YN",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/CAST_END_YN"));
  138. model.makeValue("/root/reqData/XIN_DATE",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/XIN_DATE"));
  139. model.makeValue("/root/reqData/CC_DEVNO",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/CC_DEVNO"));
  140. model.makeValue("/root/reqData/WKSHIFT",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/WKSHIFT"));
  141. model.makeValue("/root/reqData/WKGROUP",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/WKGROUP"));
  142. model.makeValue("/root/reqData/REG_ID",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/REG_ID"));
  143. model.makeValue("/root/reqData/STLMELT_WGT",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/STLMELT_WGT"));
  144. model.makeValue("/root/reqData/CC_END_STLMELT_USE_WGT",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_END_STLMELT_USE_WGT"));
  145. model.makeValue("/root/reqData/REM_WGT_IN_TD",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/REM_WGT_IN_TD"));
  146. model.makeValue("/root/reqData/CC_YIELD",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_YIELD"));
  147. model.makeValue("/root/reqData/STLMELT_TEMP",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/STLMELT_TEMP"));
  148. model.makeValue("/root/reqData/PRE_CHARGE_NO",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/PRE_CHARGE_NO"));
  149. model.makeValue("/root/reqData/STEEL_DENSITY",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/STEEL_DENSITY"));
  150. model.makeValue("/root/reqData/CC_SPEED_AVG1",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_SPEED_AVG1"));
  151. model.makeValue("/root/reqData/CC_SPEED_AVG2",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_SPEED_AVG2"));
  152. model.makeValue("/root/reqData/SUBPROC","J"); //查询条件,“L”表示LF炉
  153. model.makeValue("/root/reqData/status","u");
  154. commSubmit("UIG020070-service","save","glueAction.do");
  155. //将查询结果Apped到datagrid上
  156. commAppendData("/root/gridData/grid1/CCMResult_VO","/root/resData/CCMResult_VO");
  157. commAppendData("/root/gridData/grid2/CCMResult_VO","/root/resData/CCMResult_VO");
  158. commAppendData("/root/gridData/grid3/CCMResult_VO","/root/resData/CCMResult_VO");
  159. commAppendData("/root/gridData/grid5/CCMResult_VO","/root/resData/CCMResult_VO");
  160. model.refresh();
  161. }
  162. }
  163. //通过选择组信息获得相应的作业人,这里是查询CCM的相关作业人
  164. function selOnClick()
  165. {
  166. var nodeSet1 = datagrid1.nodeset;
  167. var WkGroup = model1.getValue(nodeSet1+"[1]/WKGROUP");
  168. model.setValue("/root/searchEmp/WK_GROUP", WkGroup);
  169. model.removenode("/root/reqData");
  170. model.makeNode("/root/reqData");
  171. model.duplicate("/root/reqData","/root/searchEmp/WK_GROUP");
  172. commSubmit("UIG020070-service","onclick","glueAction.do");
  173. commAppendData("/root/wkResult/WkEmpResult/onclickResult_VO","/root/resData/onclickResult_VO");
  174. model.refresh();
  175. }
  176. function rightClick(){
  177. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  178. if(checkValue == null || checkValue == "")return;
  179. var tstvalue = parseInt(checkValue.substr(4,5),10);
  180. tstvalue = (tstvalue + 1) + "";
  181. var strLen = tstvalue.length;
  182. checkValue = checkValue.substr(0,4);
  183. for(var i = 0 ; i < (5 - strLen) ; i++){
  184. checkValue = checkValue + "0";
  185. }
  186. checkValue = checkValue + tstvalue + "A";
  187. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  188. find();
  189. }
  190. function leftClick(){
  191. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  192. if(checkValue == null || checkValue == "")return;
  193. var tstvalue = parseInt(checkValue.substr(4,5),10);
  194. tstvalue = (tstvalue - 1) + "";
  195. var strLen = tstvalue.length;
  196. checkValue = checkValue.substr(0,4);
  197. for(var i = 0 ; i < (5 - strLen) ; i++){
  198. checkValue = checkValue + "0";
  199. }
  200. checkValue = checkValue + tstvalue + "A";
  201. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  202. find();
  203. }
  204. ]]>
  205. </script>
  206. </xhtml:head>
  207. <xhtml:body guideline="1,980;2,615;">
  208. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/CCMResult_VO/CCMResult_Row" allowuserresize="false" caption="主原料用量^主原料用量^主原料用量^主原料用量^主原料用量^主原料用量^主原料用量^上台大包温度&#xA;^铸造速度^铸造速度^铸造速度^铸造速度^铸造速度^铸造速度^中间包温度^中间包温度^中间包温度|上台大包重量(kg)^浇钢重量(kg)^钢包剩余钢水量(kg)^中包剩余钢水量(kg)^浇次内上一炉次号^钢水密度^回收率^上台大包温度&#xA;^平均1^最低1^最高1^平均2^最低2^最高2^平均^最低^最高|上台大包重量(kg)^浇钢重量(kg)^钢包剩余钢水量(kg)^中包剩余钢水量(kg)^浇次内上一炉次号^钢水密度^回收率^上台大包温度&#xA;^平均1^最低1^最高1^平均2^最低2^最高2^平均^最低^最高" colwidth="70, 70, 70, 70, 95, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" defaultrows="4" mergecellsfixedrows="bycolrec" selectionmode="free" rowsep="|" colsep="^" style="left:0px; top:97px; width:980px; height:89px; ">
  209. <col ref="STLMELT_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
  210. <col ref="CC_END_STLMELT_USE_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
  211. <col ref="REM_WGT_IN_LD" type="input" format="#,###" style="background-color:#ffff99; "/>
  212. <col ref="REM_WGT_IN_TD" type="input" format="#,###" style="background-color:#ffff99; "/>
  213. <col ref="PRE_CHARGE_NO" type="combo" visibility="hidden" editmode="input" style="background-color:#ffff99; ">
  214. <choices>
  215. <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
  216. <label ref="LABEL"/>
  217. <value ref="VALUE"/>
  218. </itemset>
  219. </choices>
  220. </col>
  221. <col ref="STEEL_DENSITY" type="input" style="background-color:#ffff99; "/>
  222. <col ref="CC_YIELD" visibility="hidden"/>
  223. <col ref="STLMELT_TEMP" type="input" format="#,###" style="left:410px; top:42px; width:60px; height:27px; background-color:#ffff99; "/>
  224. <col ref="CC_SPEED_AVG1" type="input" style="background-color:#ffff99; "/>
  225. <col ref="CC_SPEED_MIN1"/>
  226. <col ref="CC_SPEED_MAX1"/>
  227. <col ref="CC_SPEED_AVG2" type="input" style="background-color:#ffff99; "/>
  228. <col ref="CC_SPEED_MIN2"/>
  229. <col ref="CC_SPEED_MAX2"/>
  230. <col ref="TD_TEMP_AVG"/>
  231. <col ref="TD_TEMP_MIN"/>
  232. <col ref="TD_TEMP_MAX"/>
  233. </datagrid>
  234. <datagrid id="datagrid3" nodeset="/root/gridData/grid3/CCMResult_VO/CCMResult_Row" caption="比水量^作业时刻^作业时刻^作业时刻^作业时刻^作业时刻^浇注&#xA;时间|比水量^钢包到达^浇注开始^水口打开^水口关闭^浇注结束^浇注&#xA;时间" colwidth="75, 150, 150, 150, 150, 150, 153" defaultrows="3" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" disabled="true" style="left:0px; top:197px; width:980px; height:64px; ">
  235. <col ref="COOLWAT_WGT"/>
  236. <col ref="LD_ARRV_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  237. <col ref="CC_STA_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  238. <col ref="LD_OPEN_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  239. <col ref="LD_CLOSE_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  240. <col ref="CC_END_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  241. <col ref="CC_HOUR"/>
  242. </datagrid>
  243. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/CCMResult_VO/CCMResult_Row" allowuserresize="false" caption="预定炉次号&#xA;^钢种^连浇炉^浇次号^浇次完成区分^统计日^连铸机编号^班次&#xA;^组^作业人^钢包包号^钢包打开时间^中间包号" colwidth="95, 65, 92, 98, 112, 140, 92, 110, 60, 70, 60, 98, 63" defaultrows="2" selectionmode="free" rowsep="|" colsep="^" style="left:0px; top:37px; width:980px; height:44px; ">
  244. <col ref="PLAN_CHARGE_NO"/>
  245. <col ref="STL_GRD"/>
  246. <col ref="CAST_SEQ"/>
  247. <col ref="CAST_NO"/>
  248. <col ref="CAST_END_YN" type="combo" style="background-color:#ffff99; ">
  249. <choices>
  250. <item>
  251. <label/>
  252. <value/>
  253. </item>
  254. <item>
  255. <label>完成</label>
  256. <value>E</value>
  257. </item>
  258. </choices>
  259. </col>
  260. <col ref="XIN_DATE" type="inputdate" style="background-color:#ffff99; "/>
  261. <col ref="CC_DEVNO" type="combo" style="background-color:#ffff99; ">
  262. <choices>
  263. <item>
  264. <label>1#</label>
  265. <value>J1</value>
  266. </item>
  267. <item>
  268. <label>2#</label>
  269. <value>J2</value>
  270. </item>
  271. </choices>
  272. </col>
  273. <col ref="WKSHIFT" type="combo" editmode="inputsearch" style="background-color:#ffff99; ">
  274. <choices>
  275. <itemset nodeset="/root/wkResult/WkShiftResult/ShiftResult_VO/ShiftResult_Row">
  276. <label ref="LABEL"/>
  277. <value ref="VALUE"/>
  278. </itemset>
  279. </choices>
  280. </col>
  281. <col ref="WKGROUP" type="combo" visibility="hidden" editmode="inputsearch" style="background-color:#ffff99; ">
  282. <choices>
  283. <itemset nodeset="/root/wkResult/WkGroupResult/GroupResult_VO/GroupResult_Row">
  284. <label ref="LABEL"/>
  285. <value ref="VALUE"/>
  286. </itemset>
  287. </choices>
  288. </col>
  289. <col ref="REG_ID" type="combo" visibility="hidden" editmode="inputsearch" style="background-color:#ffff99; ">
  290. <choices>
  291. <itemset nodeset="/root/wkResult/WkEmpResult/onclickResult_VO/onclickResult_Row">
  292. <label ref="LABEL"/>
  293. <value ref="VALUE"/>
  294. </itemset>
  295. </choices>
  296. </col>
  297. <col ref="LD_NO" visibility="hidden"/>
  298. <col ref="LD_OPEN_YN" visibility="hidden"/>
  299. <col ref="TD_NO" visibility="hidden"/>
  300. <script type="javascript" ev:event="xforms-select">
  301. <![CDATA[
  302. //确定选中的位置是组的话,带出相应的作业人
  303. if (datagrid1.col == datagrid1.colRef("WKGROUP")) {
  304. selOnClick();
  305. }
  306. ]]>
  307. </script>
  308. </datagrid>
  309. <datagrid id="datagrid5" nodeset="/root/gridData/grid5/CCMResult_VO/CCMResult_Row" visibility="hidden" caption="结晶器1^结晶器1^结晶器1^结晶器1^结晶器1^结晶器2^结晶器2^结晶器2^结晶器2^结晶器2|高度^上宽^下宽^振频^振幅^高度^上宽^下宽^振频^振幅" colwidth="98, 98, 98, 98, 98, 98, 98, 98, 98, 96" defaultrows="3" mergecellsfixedrows="bycolrec" selectionmode="free" rowsep="|" colsep="^" disabled="true" style="left:0px; top:272px; width:980px; height:64px; ">
  310. <col ref="MD_LVL1"/>
  311. <col ref="MD_UPPER_WTH1"/>
  312. <col ref="MD_LOWER_WTH1"/>
  313. <col ref="MD_VIBRATE_CNT1"/>
  314. <col ref="MD_VIBRATE_WTH1"/>
  315. <col ref="MD_LVL2"/>
  316. <col ref="MD_UPPER_WTH2"/>
  317. <col ref="MD_LOWER_WTH2"/>
  318. <col ref="MD_VIBRATE_CNT2"/>
  319. <col ref="MD_VIBRATE_WTH2"/>
  320. </datagrid>
  321. <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">炉次号</caption>
  322. <select1 id="combo1" ref="/root/searchData/CHARGE_NO" appearance="minimal" editmode="input" style="left:92px; top:5px; width:100px; height:20px; ">
  323. <choices>
  324. <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
  325. <label ref="LABEL"/>
  326. <value ref="VALUE"/>
  327. </itemset>
  328. </choices>
  329. <script type="javascript" ev:event="xforms-value-changed">
  330. <![CDATA[
  331. find();
  332. ]]>
  333. </script>
  334. </select1>
  335. <datagrid id="datagrid7" nodeset="/root/gridData/grid7/JchmResult_VO/JchmResult_Row" caption="项目" colwidth="100" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:345px; width:980px; height:265px; ">
  336. <col ref="xm"/>
  337. </datagrid>
  338. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  339. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  340. <button id="button3" style="left:220px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  341. <caption/>
  342. <script type="javascript" ev:event="DOMActivate">
  343. <![CDATA[
  344. rightClick();
  345. ]]>
  346. </script>
  347. </button>
  348. <button id="button4" style="left:195px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  349. <caption/>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. leftClick();
  353. ]]>
  354. </script>
  355. </button>
  356. <caption id="caption2" style="left:300px; top:5px; width:86px; height:20px; background-color:#ffcc99; ">中厚板特殊要求</caption>
  357. <input id="input1" ref="/root/searchData/L2DEMO" style="left:390px; top:5px; width:585px; height:20px; background-color:#ffff99; "/>
  358. </xhtml:body>
  359. </xhtml:html>