95e5647fd98958b97a558a7f826ff4dc13ff2b8f.svn-base 15 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[炼钢作业 >> 炼钢标准 >> 包修理录入与查询(UIG010040)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <resData/>
  12. <reqData/>
  13. <searchData>
  14. <ld_type/>
  15. <ld_no/>
  16. </searchData>
  17. <selectedData>
  18. </selectedData>
  19. <formData/>
  20. <datagrid1>
  21. <LadelStatResult_VO>
  22. <LadelStatResult_Row>
  23. <LD_REP_STA_DTIME/>
  24. <LD_REP_END_DTIME/>
  25. <LD_REP_TYPE/>
  26. <LD_REP_CD/>
  27. <LD_REP_WORKER/>
  28. <LD_MID_BEF_CYC_CNT/>
  29. <LD_MID_AFT_CYC_CNT/>
  30. <LD_CYCLIC_CNT/>
  31. <LD_JG_CYCLIC_CNT/>
  32. <LD_NO/>
  33. </LadelStatResult_Row>
  34. </LadelStatResult_VO>
  35. </datagrid1>
  36. <datagrid3/>
  37. <datagrid2>
  38. <LD_EMP_WGT/>
  39. <LD_CYC_CNT_LIMIT/>
  40. <LD_CYCLIC_CNT/>
  41. <REP_CNT/>
  42. <LD_GRADE/>
  43. <LD_STAT/>
  44. </datagrid2>
  45. <tempData/>
  46. <checkData/>
  47. </root>
  48. </instance>
  49. <script type="javascript">
  50. <![CDATA[
  51. function init(node){
  52. if (window.parent != null) {
  53. var java = window.parent.javaScript;
  54. var node = java.getInitDataNode();
  55. if (node != null) {
  56. model.copyNode("/root/searchData",node);
  57. commSendReq("/root/searchData");
  58. commSubmit("UIG010040-service","find","glueAction.do");
  59. //返回包现况的接点集绑定到datagrid3
  60. commAppendData("/root/datagrid3/LadelStatResult_VO","/root/resData/LadelStatResult_VO");
  61. model.refresh();
  62. }
  63. }
  64. }
  65. function find(){
  66. commSendReq("/root/searchData");
  67. commSubmit("UIG010040-service","find","glueAction.do");
  68. //返回包现况的接点集绑定到datagrid3
  69. var t = model.getValue("/root/searchData/ld_no");
  70. if(t!=""){
  71. commAppendData("/root/datagrid1/LadelStatResult_VO","/root/resData/LadelStatResult_VO");
  72. }
  73. commAppendData("/root/datagrid3/LadelStatResult_VO","/root/resData/LadelStatResult_VO");
  74. model.refresh();
  75. }
  76. //保存,要分修理级别的保存
  77. function save(){
  78. //检查包号是否为空
  79. if(model.getValue("/root/searchData/ld_no") == "" )
  80. {
  81. alert(" 包号不能为空! ");
  82. return;
  83. }else{
  84. //非空提示 输入框的,选择的暂不考虑 TL
  85. //空包重量
  86. var STA_DTIME = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_STA_DTIME");
  87. var END_DTIME = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_END_DTIME");
  88. var REP_TYPE = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_TYPE");
  89. var REP_CD = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_CD");
  90. var REP_WORKER = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_WORKER");
  91. var BEF_CYC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_MID_BEF_CYC_CNT");
  92. var AFT_CYC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_MID_AFT_CYC_CNT");
  93. var CYCLIC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_CYCLIC_CNT");
  94. var JG_CYCLIC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_JG_CYCLIC_CNT");
  95. if(STA_DTIME == "" || END_DTIME == "" || REP_TYPE == "" || REP_CD == "" || REP_WORKER == "" || BEF_CYC_CNT == "" || AFT_CYC_CNT == "" || CYCLIC_CNT == "" || JG_CYCLIC_CNT == "")
  96. {
  97. alert(" 录入项不能为空 ");
  98. return;
  99. }
  100. commSendReq("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row");
  101. commSubmit("UIG010040-service","save","glueAction.do");
  102. alert("操作成功!");
  103. find();
  104. model.refresh();
  105. }
  106. }
  107. ]]>
  108. </script>
  109. <script type="javascript" ev:event="xforms-ready">
  110. <![CDATA[
  111. init();
  112. ]]>
  113. </script>
  114. </model>
  115. <script type="javascript" src="../../js/boaCommon.js"/>
  116. </xhtml:head>
  117. <xhtml:body guideline="1,980;2,615;" style="font-family:宋体; font-size:14pt; ">
  118. <caption id="caption11" class="cell" style="left:0px; top:5px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">包种类</caption>
  119. <select1 id="combo9" ref="/root/searchData/ld_type" appearance="minimal" style="left:102px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  120. <choices>
  121. <item>
  122. <label>钢包</label>
  123. <value>R%</value>
  124. </item>
  125. <item>
  126. <label>铁水包</label>
  127. <value>S%</value>
  128. </item>
  129. </choices>
  130. <script type="javascript" ev:event="xforms-select">
  131. <![CDATA[
  132. //传入模糊R%条件
  133. model.removenode("/root/reqData");
  134. //每次选择条件后重建接点,初始化值
  135. model.removenode("/root/selectedData");
  136. model.makeNode("/root/selectedData");
  137. model.removenode("/root/datagrid1/REP1");
  138. model.makeNode("/root/datagrid1/REP1");
  139. model.removenode("/root/datagrid1/REP2");
  140. model.makeNode("/root/datagrid1/REP2");
  141. model.removenode("/root/datagrid1/REP3");
  142. model.makeNode("/root/datagrid1/REP3");
  143. model.removenode("/root/datagrid2/LD_STAT");
  144. model.makeNode("/root/datagrid2/LD_STAT");
  145. model.removenode("/root/datagrid3");
  146. model.makeNode("/root/datagrid3");
  147. //每次选择包种类的时候,清空包号
  148. model.setValue("/root/searchData/ld_no","");
  149. //把发送条件放入reqData
  150. //commSendReq("/root/searchData");
  151. model.makeNode("/root/reqData");
  152. model.duplicate("/root/reqData","/root/searchData/ld_type");
  153. commSubmit("UIG010040-service","selectedss","glueAction.do");
  154. //返回结果放入包号选择栏位
  155. model1.duplicate("/root/selectedData","/root/resData/LadelNoResult_VO");
  156. //返回结果放入修理内容栏位
  157. var repNodeLen = instance1.selectSingleNode("/root/resData/REPResult_VO").childNodes.length;
  158. for( var i = 1;i <= repNodeLen; i++)
  159. {
  160. // //把修理内容的label和value一起取value的值
  161. var value =model.getValue("/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
  162. if(value == ""){
  163. //如果value为空的话,会报缺少对象。所以给予提示,让操作员重新操作就可以了
  164. //目前遇到的都是IOException
  165. alert(" IOException,请重新选择需要的包种类! ");
  166. return;
  167. }
  168. model1.duplicate("/root/datagrid1/REP1","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/LABEL");
  169. model1.duplicate("/root/datagrid1/REP1","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
  170. model1.duplicate("/root/datagrid1/REP2","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/LABEL");
  171. model1.duplicate("/root/datagrid1/REP2","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
  172. model1.duplicate("/root/datagrid1/REP3","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/LABEL");
  173. model1.duplicate("/root/datagrid1/REP3","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
  174. }
  175. //返回结果放入钢包状态栏位
  176. var statNodeLen = instance1.selectSingleNode("/root/resData/STATResult_VO").childNodes.length;
  177. for( var i = 1;i <= statNodeLen; i++)
  178. {
  179. model1.duplicate("/root/datagrid2/LD_STAT","/root/resData/STATResult_VO/STATResult_Row[" + i + "]/LABEL");
  180. model1.duplicate("/root/datagrid2/LD_STAT","/root/resData/STATResult_VO/STATResult_Row[" + i + "]/VALUE");
  181. }
  182. //把返回结果放入钢包现况查询栏位
  183. model1.duplicate("/root/datagrid3","/root/resData/LadelStatResult_VO");
  184. model1.refresh();
  185. ]]>
  186. </script>
  187. </select1>
  188. <caption id="caption1" class="cell" style="left:217px; top:5px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">包号</caption>
  189. <select1 id="combo1" ref="/root/searchData/ld_no" appearance="minimal" editmode="input" style="left:319px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  190. <choices>
  191. <itemset nodeset="/root/selectedData/LadelNoResult_VO/LadelNoResult_Row">
  192. <label ref="LABEL"/>
  193. <value ref="VALUE"/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <caption id="caption10" class="cell" style="left:0px; top:35px; width:110px; height:20px; font-weight:bold; border-color:#000000; ">包修理登录</caption>
  198. <datagrid id="datagrid1" nodeset="/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row" caption="修理开始时刻^修理结束时刻^修补类别^修补内容(多选)^修补队^中修前炉数^中修后炉数^总使用次数^机构炉数^" colsep="^" colwidth="156, 160, 57, 140, 120, 70, 70, 70, 70, 6" defaultrows="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:55px; width:980px; height:49px; border-color:#000000; ">
  199. <col ref="LD_REP_STA_DTIME" type="inputdate" visibility="visible" format="yyyy-mm-dd hh:nn:ss" showmask="true" navindex="6" style="background-color:#ffff99; "/>
  200. <col ref="LD_REP_END_DTIME" type="inputdate" showmask="true" navindex="6" style="background-color:#ffff99; "/>
  201. <col ref="LD_REP_TYPE" type="combo" style="text-align:left; ">
  202. <choices>
  203. <item>
  204. <label>小修</label>
  205. <value>1</value>
  206. </item>
  207. <item>
  208. <label>中修</label>
  209. <value>2</value>
  210. </item>
  211. <item>
  212. <label>大修</label>
  213. <value>3</value>
  214. </item>
  215. <item>
  216. <label>全修</label>
  217. <value>4</value>
  218. </item>
  219. </choices>
  220. </col>
  221. <col ref="LD_REP_CD" type="inputbutton" style="text-align:left; "/>
  222. <col ref="LD_REP_WORKER" type="combo">
  223. <choices>
  224. <item>
  225. <label>明业</label>
  226. <value>A</value>
  227. </item>
  228. <item>
  229. <label>苏嘉</label>
  230. <value>B</value>
  231. </item>
  232. <item>
  233. <label>武耐</label>
  234. <value>C</value>
  235. </item>
  236. <item>
  237. <label>濮耐</label>
  238. <value>D</value>
  239. </item>
  240. <item>
  241. <label>新耐</label>
  242. <value>E</value>
  243. </item>
  244. <item>
  245. <label>华鑫</label>
  246. <value>F</value>
  247. </item>
  248. </choices>
  249. </col>
  250. <col ref="LD_MID_BEF_CYC_CNT" type="input" style="background-color:#ffff99; "/>
  251. <col ref="LD_MID_AFT_CYC_CNT" type="input" style="background-color:#ffff99; "/>
  252. <col ref="LD_CYCLIC_CNT" type="input" style="background-color:#ffff99; "/>
  253. <col ref="LD_JG_CYCLIC_CNT" type="input" style="background-color:#ffff99; "/>
  254. <col ref="LD_NO" visibility="hidden"/>
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. ]]>
  258. </script>
  259. <script type="javascript" ev:event="onbuttonclick">
  260. <![CDATA[
  261. if(datagrid1.colRef("LD_REP_CD") == datagrid1.col){
  262. group1.visible = true;
  263. }
  264. ]]>
  265. </script>
  266. </datagrid>
  267. <caption id="caption2" class="cell" style="left:0px; top:115px; width:110px; height:20px; font-weight:bold; border-color:#000000; ">包现况查询</caption>
  268. <datagrid id="datagrid3" nodeset="/root/datagrid3/LadelStatResult_VO/LadelStatResult_Row" scroll="both" allowuserresize="false" caption="包号^修理开始时刻^修理结束时刻^修补类别^修补内容^修补队^中修前炉数^中修后炉数^总使用次数^机构炉数|包号^修理开始时刻^修理结束时刻^修补类别^修补内容^修补队^中修前炉数^中修后炉数^总使用次数^机构炉数" colsep="^" colwidth="54, 86, 87, 100, 100, 100, 59, 53, 56, 34" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:135px; width:980px; height:465px; border-color:#000000; ">
  269. <col ref="LD_NO" type="output" style="text-decoration:underline; color:#ff00ff; cursor:hand; ">
  270. <script type="javascript" ev:event="onclick">
  271. <![CDATA[
  272. // var openWindow = window.opener;
  273. //
  274. // openWindow.model.setValue("/root/value", newValue.value);
  275. model.setValue("/root/tempData",datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("LD_NO")));
  276. window.load("UIG010042.xrw","modal","", "left:50; top:78; width:950; height:580; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  277. ]]>
  278. </script>
  279. </col>
  280. <col ref="LD_REP_STA_DTIME" style="cursor:hand; "/>
  281. <col ref="LD_REP_END_DTIME"/>
  282. <col ref="LD_REP_TYPE"/>
  283. <col ref="LD_REP_CD1"/>
  284. <col ref="LD_REP_WORKER"/>
  285. <col ref="LD_MID_BEF_CYC_CNT" style="left:800px; top:21px; width:100px; height:21px; "/>
  286. <col ref="LD_MID_AFT_CYC_CNT"/>
  287. <col ref="LD_CYCLIC_CNT"/>
  288. <col ref="LD_JG_CYCLIC_CNT"/>
  289. </datagrid>
  290. <line id="line1" style="x1:0px; y1:110px; x2:980px; y2:110px; "/>
  291. <line id="line2" style="x1:0px; y1:110px; x2:980px; y2:110px; "/>
  292. <button id="button2" class="butt_3" style="left:928px; top:5px; width:52px; height:19px; ">
  293. <caption>空包初期</caption>
  294. <script type="javascript" ev:event="onclick">
  295. <![CDATA[
  296. window.load("UIG010041.xrw","modal","", "left:228; top:78; width:480; height:580; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  297. ]]>
  298. </script>
  299. </button>
  300. <select1 id="combo2" ref="/root/searchData/ld_no" appearance="minimal" editmode="input" style="left:305px; top:-100px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  301. <choices>
  302. <itemset nodeset="/root/selectedData/LadelNoResult_VO/LadelNoResult_Row">
  303. <label ref="LABEL"/>
  304. <value ref="VALUE"/>
  305. </itemset>
  306. </choices>
  307. </select1>
  308. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  309. <line id="line4" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  310. <group id="group1" visibility="hidden" style="left:400px; top:100px; width:145px; height:185px; ">
  311. <select id="checkbox1" ref="/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_CD" overflow="visible" appearance="full" style="left:20px; top:5px; width:100px; height:145px; border-style:none; ">
  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. <item>
  330. <label>换整体透气砖</label>
  331. <value>E</value>
  332. </item>
  333. <item>
  334. <label>换水口机构</label>
  335. <value>F</value>
  336. </item>
  337. <item>
  338. <label>倾翻器</label>
  339. <value>G</value>
  340. </item>
  341. <item>
  342. <label>自动吹氩装置</label>
  343. <value>H</value>
  344. </item>
  345. </choices>
  346. </select>
  347. <button id="button1" style="left:25px; top:155px; width:85px; height:20px; background-image:D:\workspace\xgmes3\WebContents\images\btn_save1.gif; ">
  348. <caption>确 认</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. group1.visible = false;
  352. ]]>
  353. </script>
  354. </button>
  355. </group>
  356. <caption id="caption3" style="left:340px; top:35px; width:640px; height:20px; background-color:#ff9900; ">A:修渣线 B:补包底 C:挖溶池 D:换水口座砖 E:换整体透气砖 F:换水口机构 G:倾翻器 H:自动吹氩装置</caption>
  357. </xhtml:body>
  358. </xhtml:html>