UIH010010.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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[热轧作业>>轧辊/热轧标准>>热轧操作标准登录与查询(UIH010010)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <PRODNM_CD/>
  13. <SPEC_ABBSYM/>
  14. <THK_TGT/>
  15. <STL_GRD/>
  16. <SEASON>SU</SEASON>
  17. </formData>
  18. <gridata>
  19. <grid1/>
  20. <grid2/>
  21. <grid3/>
  22. </gridata>
  23. <resData/>
  24. <reqData/>
  25. <selectData>
  26. <SPEC_ABBSYM/>
  27. </selectData>
  28. <THKTGT/>
  29. <codeData/>
  30. <initData>
  31. <searchInfo>
  32. <LG_CD>B01118,B01001</LG_CD>
  33. </searchInfo>
  34. </initData>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. initPage();
  40. commSendReq("/root/initData");
  41. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  42. model.copyNode("/root/codeData","/root/resData");
  43. commSendReq("root/reqData");
  44. model.refresh();
  45. ]]>
  46. </script>
  47. </model>
  48. <script type="javascript" src="../../js/boaCommon.js"/>
  49. <script type="javascript">
  50. <![CDATA[
  51. function Init(node) {
  52. InitParams(node);
  53. }
  54. //调用公共的初始化方法获得登录用户名
  55. function InitParams(node) {
  56. if (typeof node == "undefined" && typeof node != "object") return;
  57. model.removenode("/root/initData/rcvInfo");
  58. model.makeNode("/root/initData/rcvInfo");
  59. var nodeList = node.childNodes;
  60. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  61. for (var i = 0; i < nodeList.length; i++)
  62. node.appendChild(nodeList.item(i));
  63. }
  64. function find()
  65. {
  66. model.removenode("/root/reqData");
  67. model.makeNode("/root/reqData");
  68. commSendReq("/root/formData");
  69. commSubmit("UIH010010-service","find","glueAction.do");
  70. commAppendData("/root/gridata/grid1/MillSTDResult_VO","/root/resData/MillSTDResult_VO");
  71. commAppendData("/root/gridata/grid2/MillSTDResult_VO","/root/resData/MillSTDResult_VO");
  72. commAppendData("/root/gridata/grid3/MillSTDResult_VO","/root/resData/MillSTDResult_VO");
  73. //厚度组标准信息,放在钢号选择地方带出
  74. //commAppendData("/root/THKTGT_VO","/root/resData/THKTGT_VO");
  75. model.refresh();
  76. //这里在没有查询结果的情况下,需要为各个表格新增一行
  77. if(datagrid1.rows <= 2){
  78. datagrid1.addRow();
  79. }
  80. if(datagrid2.rows <= 2){
  81. datagrid2.addRow();
  82. }
  83. if(datagrid3.rows <= 2){
  84. datagrid3.addRow();
  85. }
  86. }
  87. function save(){
  88. model.removenode("/root/reqData");
  89. model.makeNode("/root/reqData");
  90. //判断主键不能为空
  91. var PRODNM_CD = model.getValue("/root/formData/PRODNM_CD");
  92. alert(PRODNM_CD);
  93. var SPEC_ABBSYM = model.getValue("/root/formData/SPEC_ABBSYM");
  94. var STL_GRD = model.getValue("/root/formData/STL_GRD");
  95. if(PRODNM_CD == ""){
  96. alert(" 产品名称信息不能为空,请选择产品名称! ");
  97. return;
  98. }
  99. if(SPEC_ABBSYM == ""){
  100. alert(" 标准号信息不能为空,请输入标准号! ");
  101. return;
  102. }
  103. if(STL_GRD == ""){
  104. alert(" 标准钢号信息不能为空,请输入标准钢号! ");
  105. return;
  106. }
  107. //如果表格没有改变的话,人工的给予行状态
  108. var nodeSet1 = datagrid1.nodeset;
  109. var nodeSet2 = datagrid2.nodeset;
  110. var nodeSet3 = datagrid3.nodeset;
  111. for(var i=0;i<=datagrid1.rows;i++){
  112. datagrid1.rowStatus(i) = 3;
  113. }
  114. for(var j=0;j<=datagrid2.rows;j++){
  115. datagrid2.rowStatus(j) = 3;
  116. }
  117. for(var k=0;k<=datagrid3.rows;k++){
  118. datagrid3.rowStatus(k) = 3;
  119. }
  120. //每次保存标准都只能对应一条记录,因此控制表格行数
  121. if(datagrid1.rows > 3 || datagrid2.rows > 3 || datagrid3.rows > 3){
  122. alert(" 标准信息只能是唯一的一组,请确认后重新保存! ");
  123. }
  124. //需要把表头数据也发送到后台
  125. commSendReq("/root/formData");
  126. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts1");
  127. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStuts2");
  128. commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts3");
  129. //这里加入登录用户名,会不会与已有的initData冲突
  130. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  131. commSubmit("UIH010010-service","save","glueAction.do");
  132. model.refresh();
  133. //find();
  134. }
  135. function initPage()
  136. {
  137. //?里就必?作?子?面操作了
  138. if(window.parent != null){
  139. var openWindow = window.parent;
  140. model.setValue("/root/formData/PRODNM_CD",openWindow.model.getValue("/root/tempData/PRODNM_CD"));
  141. model.setValue("/root/formData/SPEC_ABBSYM",openWindow.model.getValue("/root/tempData/SPEC_ABBSYM"));
  142. model.setValue("/root/formData/STL_GRD",openWindow.model.getValue("/root/tempData/STL_GRD"));
  143. find();
  144. }
  145. }
  146. function remove(){
  147. model.removenode("/root/reqData");
  148. model.makeNode("/root/reqData");
  149. commSendReq("/root/formData");
  150. commSubmit("UIH010010-service","del","glueAction.do");
  151. model.refresh();
  152. find();
  153. }
  154. ]]>
  155. </script>
  156. </xhtml:head>
  157. <xhtml:body>
  158. <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; vertical-align:middle; border-color:#000000; ">交货状态</caption>
  159. <caption id="caption2" class="cell" style="left:207px; top:5px; width:90px; height:20px; vertical-align:middle; border-color:#000000; ">标准号</caption>
  160. <caption id="caption4" class="cell" style="left:491px; top:5px; width:90px; height:20px; vertical-align:middle; border-color:#000000; ">标准钢号</caption>
  161. <input id="input4" ref="/root/formData/STL_GRD" maxlength="30" style="left:583px; top:5px; width:110px; height:20px; background-color:#ffff99; ">
  162. <script type="javascript" ev:event="ondblclick">
  163. <![CDATA[
  164. //这里提供双击事件,带出相应的系统已有的钢号
  165. window.load("./UIH02_SELECT_STL_GRD.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
  166. model.refresh();
  167. //得到选中的钢号后,需要把相应的钢号带到标准表中获得相应的标准信息
  168. model.removenode("/root/reqData");
  169. model.makeNode("/root/reqData");
  170. //清空厚度组标准信息节点
  171. model.removenode("/root/formData/THK_TGT");
  172. model.makeNode("/root/formData/THK_TGT");
  173. model.duplicate("/root/reqData","/root/formData/STL_GRD");
  174. commSubmit("UIH010010-service","findTHK","glueAction.do");
  175. commAppendData("/root/THKTGT_VO","/root/resData/THKTGT_VO");
  176. model.refresh();
  177. ]]>
  178. </script>
  179. <hint>
  180. <![CDATA[选择钢号获取相应的厚度组标准]]>
  181. </hint>
  182. </input>
  183. <caption id="caption5" class="cell" style="left:0px; top:35px; width:90px; height:20px; vertical-align:middle; border-color:#000000; ">板坯标准</caption>
  184. <datagrid id="datagrid1" nodeset="/root/gridata/grid1/MillSTDResult_VO/MillSTDResult_Row" caption="出炉温度^出炉温度^出炉温度^出炉均热度^出炉均热度^在炉时间(分钟)^在炉时间(分钟)^均热时间(分钟)^均热时间(分钟)^RT2温度^RT2温度^RT2温度|目标^上限^下限^目标^上限^下限^上限^下限^上限^目标^上限^下限" colsep="^" colwidth="110, 110, 110, 110, 110, 110, 110, 90, 105, 100, 100, 100" defaultrows="6" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:55px; width:975px; height:165px; ">
  185. <col ref="EXTRACT_TGT_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  186. <col ref="EXTRACT_MAX_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  187. <col ref="EXTRACT_MIN_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  188. <col ref="CHARGING_TGT_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  189. <col ref="CHARGING_MAX_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  190. <col ref="INFUR_MIN_HOUR" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  191. <col ref="INFUR_MAX_HOUR" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  192. <col ref="EQ_HT_MIN_HOUR" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  193. <col ref="EQ_HT_MAX_HOUR" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  194. <col ref="RT2_EXIT_TGT_TEMP" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  195. <col ref="RT2_EXIT_MIN_TEMP" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  196. <col ref="RT2_EXIT_MAX_TEMP" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  197. </datagrid>
  198. <caption id="caption6" class="cell" style="left:0px; top:235px; width:90px; height:20px; vertical-align:middle; border-color:#000000; ">钢卷标准</caption>
  199. <datagrid id="datagrid2" nodeset="/root/gridata/grid2/MillSTDResult_VO/MillSTDResult_Row" scroll="both" caption="铁素体变换^铁素体变换^铁素体变换^R2出口温度^R2出口温度^R2出口温度^额定精轧温度^额定精轧温度^额定精轧温度^额定精轧温度^额定精轧温度^额定精轧温度^额定钢卷凸度(μ)^额定钢卷凸度(μ)^额定钢卷凸度(μ)^额定钢卷凸度(μ)^额定钢卷凸度(μ)^额定钢卷凸度(μ)^平直度偏差(I-Unit)^平直度偏差(I-Unit)|轧制模式^开始温度^结束温度^目标^公差(-)^公差(+)^目标(1)^目标(2)^目标(3)^目标(4)^公差(-)^公差(+)^目标^目标2^目标3^目标4^最小值^最大值^对称^非对称" colsep="^" colwidth="54, 59, 62, 58, 61, 56, 56, 49, 50, 59, 58, 58, 56, 56, 49, 52, 53, 54, 59, 65" defaultrows="6" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:260px; width:975px; height:165px; ">
  200. <col ref="FERR_MODE" type="input" maxlength="1"/>
  201. <col ref="FERR_CON_STA_TGT_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  202. <col ref="FERR_CON_END_TGT_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  203. <col ref="RM2_EXIT_TGT_TEMP" type="input" visibility="visible" format="999999-9999999" maxlength="4"/>
  204. <col ref="RM2_EXIT_MIN_TEMP" type="input" visibility="visible" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  205. <col ref="RM2_EXIT_MAX_TEMP" type="input" visibility="visible" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  206. <col ref="STRIP_TGT_TEMP1" type="input" format="999999-9999999" maxlength="4"/>
  207. <col ref="STRIP_TGT_TEMP2" type="input" format="999999-9999999" maxlength="4"/>
  208. <col ref="STRIP_TGT_TEMP3" type="input" format="999999-9999999" maxlength="4"/>
  209. <col ref="STRIP_TGT_TEMP4" type="input" format="999999-9999999" maxlength="4"/>
  210. <col ref="STRIP_MIN_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  211. <col ref="STRIP_MAX_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  212. <col ref="FM_ENT_TGT_CROWN_40" type="input" maxlength="3"/>
  213. <col ref="FM_ENT_TGT_CROWN_401" type="input"/>
  214. <col ref="FM_ENT_TGT_CROWN_402" type="input"/>
  215. <col ref="FM_ENT_TGT_CROWN_403" type="input"/>
  216. <col ref="FM_ENT_MIN_CROWN_40" type="input" maxlength="3" style="text-align:right; "/>
  217. <col ref="FM_ENT_MAX_CROWN_40" type="input" maxlength="3" style="text-align:right; "/>
  218. <col ref="SYM_FLATNESS_DEV" type="input" maxlength="3"/>
  219. <col ref="ASY_FLATNESS_DEV" type="input" maxlength="3"/>
  220. <hint>
  221. <![CDATA[下限输入目标(小),上限输入目标(大)]]>
  222. </hint>
  223. </datagrid>
  224. <datagrid id="datagrid3" nodeset="/root/gridata/grid3/MillSTDResult_VO/MillSTDResult_Row" scroll="both" caption="钢板契型(mm)^钢板契型(mm)^两阶段轧制^两阶段轧制^两阶段轧制^不冷却长度^不冷却长度^不冷却长度^冷却速率(%)^冷却速率(%)^卷取温度^卷取温度^卷取温度^卷取温度^卷取温度^卷取温度^打捆条数^打捆条数|最小值^最大值^标记^温度^时间^头部^尾部^全部^头部^尾部^目标(1)^目标(2)^目标(3)^目标(4)^公差(-)^公差(+)^横向^纵向" colsep="^" colwidth="54, 55, 56, 54, 65, 54, 45, 47, 52, 51, 62, 49, 51, 60, 58, 56, 47, 52" defaultrows="6" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:430px; width:975px; height:165px; ">
  225. <col ref="STRIP_WED_MIN" type="input" maxlength="3" style="text-align:right; "/>
  226. <col ref="STRIP_WED_MAX" type="input" maxlength="3" style="text-align:right; "/>
  227. <col ref="DUAL_PHASE_CLF" type="combo" maxlength="1">
  228. <choices>
  229. <item>
  230. <label>两阶段轧</label>
  231. <value>1</value>
  232. </item>
  233. <item>
  234. <label>非两阶段轧</label>
  235. <value>0</value>
  236. </item>
  237. </choices>
  238. </col>
  239. <col ref="DUAL_PHASE_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  240. <col ref="DUAL_PHASE_TIME" type="input" format="999999-9999999" maxlength="5" style="text-align:right; "/>
  241. <col ref="NON_COOL_LEN_HEAD" type="input" format="9999999999999" maxlength="8" style="text-align:right; "/>
  242. <col ref="NON_COOL_LEN_TAIL" type="input" format="9999999999999" maxlength="8" style="text-align:right; "/>
  243. <col ref="NON_COOL_LEN_NOR" type="input" format="9999999999999" maxlength="8" style="text-align:right; "/>
  244. <col ref="COOL_TOP_RATE" type="input" maxlength="2" style="text-align:right; "/>
  245. <col ref="COOL_BOT_RATE" type="input" maxlength="2" style="text-align:right; "/>
  246. <col ref="COILING_TGT_TEMP1" type="input" format="999999-9999999" maxlength="4"/>
  247. <col ref="COILING_TGT_TEMP2" type="input" format="999999-9999999" maxlength="4"/>
  248. <col ref="COILING_TGT_TEMP3" type="input" format="999999-9999999" maxlength="4"/>
  249. <col ref="COILING_TGT_TEMP4" type="input" format="999999-9999999" maxlength="4"/>
  250. <col ref="COILING_MAX_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  251. <col ref="COILING_MIN_TEMP" type="input" format="999999-9999999" maxlength="4" style="text-align:right; "/>
  252. <col ref="BINDING_WGT_CIR" type="input" format="999999-9999999" maxlength="1" style="text-align:right; "/>
  253. <col ref="BINDING_WGT_RAD" type="input" format="999999-9999999" maxlength="1" style="text-align:right; "/>
  254. <hint>
  255. <![CDATA[下限输入目标(小),上限输入目标(大)]]>
  256. </hint>
  257. </datagrid>
  258. <line id="line2" style="x1:5px; y1:25px; x2:974px; y2:25px; "/>
  259. <line id="line1" style="x1:0px; y1:227px; x2:974px; y2:227px; "/>
  260. <line id="line3" style="x1:0px; y1:425px; x2:974px; y2:425px; "/>
  261. <select1 id="combo1" ref="/root/formData/PRODNM_CD" appearance="minimal" style="left:92px; top:5px; width:110px; height:20px; background-color:#ffff99; ">
  262. <choices>
  263. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'B01118']">
  264. <label ref="SM_CFNM"/>
  265. <value ref="SM_CFNM"/>
  266. </itemset>
  267. </choices>
  268. <script type="javascript" ev:event="xforms-select">
  269. <![CDATA[
  270. //通过选择方法来获得相应的标准号
  271. model.removenode("/root/reqData");
  272. model.makeNode("/root/reqData");
  273. commSubmit("UIH010010-service","select","glueAction.do");
  274. commAppendData("/root/selectData/SPEC_ABBSYM","/root/resData/SPEC_VO");
  275. model.refresh();
  276. ]]>
  277. </script>
  278. <hint>
  279. <![CDATA[选择产品名称获取相应的标准号]]>
  280. </hint>
  281. </select1>
  282. <select1 id="combo2" ref="/root/formData/SPEC_ABBSYM" appearance="minimal" editmode="inputsearch" style="left:299px; top:5px; width:186px; height:20px; background-color:#ffff99; ">
  283. <choices>
  284. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'B01001']">
  285. <label ref="SM_CD"/>
  286. <value ref="SM_CD"/>
  287. </itemset>
  288. </choices>
  289. </select1>
  290. <caption id="caption7" class="cell" style="left:700px; top:5px; width:90px; height:20px; vertical-align:middle; border-color:#000000; ">季节类型</caption>
  291. <select1 id="combo4" ref="/root/formData/SEASON" appearance="minimal" style="left:792px; top:5px; width:110px; height:20px; background-color:#ffff99; ">
  292. <choices>
  293. <item>
  294. <label>冬</label>
  295. <value>WI</value>
  296. </item>
  297. <item>
  298. <label>夏</label>
  299. <value>SU</value>
  300. </item>
  301. </choices>
  302. <script type="javascript" ev:event="xforms-select">
  303. <![CDATA[
  304. //通过选择方法来获得相应的标准号
  305. model.removenode("/root/reqData");
  306. model.makeNode("/root/reqData");
  307. commSubmit("UIH010010-service","select","glueAction.do");
  308. commAppendData("/root/selectData/SPEC_ABBSYM","/root/resData/SPEC_VO");
  309. model.refresh();
  310. ]]>
  311. </script>
  312. <hint>
  313. <![CDATA[选择产品名称获取相应的标准号]]>
  314. </hint>
  315. </select1>
  316. </xhtml:body>
  317. </xhtml:html>