UIH020030.xrw 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  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[热轧作业>>热轧作业实绩>>轧钢实绩登录与查询(UIH020030)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <COIL_NO/>
  13. <SLAB_NO/>
  14. <WK_SHIFT/>
  15. <WK_GROUP/>
  16. <OLD_SAMPL_NO/>
  17. <CHKUPD>1</CHKUPD>
  18. </formData>
  19. <gridData>
  20. <grid1/>
  21. <grid2/>
  22. <grid3/>
  23. <grid4/>
  24. <grid5/>
  25. <grid6/>
  26. <grid7/>
  27. </gridData>
  28. <initData>
  29. <INIT_COIL_NO/>
  30. <INIT_GROUP/>
  31. <INIT_SHIFT/>
  32. <INIT_EMP_NO/>
  33. <INIT_MISSNO_CLF_NO/>
  34. </initData>
  35. <resData/>
  36. <reqData/>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. //不初始化
  42. //initPage();
  43. ]]>
  44. </script>
  45. </model>
  46. <script type="javascript">
  47. <![CDATA[
  48. function Init(node) {
  49. InitParams(node);
  50. }
  51. //调用公共的初始化方法获得登录用户名
  52. function InitParams(node) {
  53. if (typeof node == "undefined" && typeof node != "object") return;
  54. model.removenode("/root/initData/rcvInfo");
  55. model.makeNode("/root/initData/rcvInfo");
  56. var nodeList = node.childNodes;
  57. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  58. for (var i = 0; i < nodeList.length; i++)
  59. node.appendChild(nodeList.item(i));
  60. }
  61. /*
  62. *查询函数
  63. */
  64. function find()
  65. {
  66. model.removenode("/root/reqData");
  67. model.makeNode("/root/reqData");
  68. model.removenode("/root/initData/INIT_MISSNO_CLF_NO");
  69. model.makeNode("/root/initData/INIT_MISSNO_CLF_NO");
  70. //这里改钢卷号为可以输入的选项,所以不能为空
  71. var coil_no = model.getValue("/root/formData/COIL_NO");
  72. model.duplicate("/root/reqData","/root/formData/COIL_NO");
  73. model.duplicate("/root/reqData","/root/formData/OLD_SAMPL_NO");
  74. model.duplicate("/root/reqData","/root/formData/SLAB_NO");
  75. commSubmit("UIH020030-service","find","glueAction.do");
  76. // 班组,作业人员信息下拉框赋值
  77. commAppendData("/root/initData/INIT_GROUP/GroupResult_VO","/root/resData/GroupResult_VO");
  78. commAppendData("/root/initData/INIT_SHIFT/ShiftResult_VO","/root/resData/ShiftResult_VO");
  79. var testnode = instance1.selectSingleNode("/root/resData/SearchCoilSpecResult_VO");
  80. var len = testnode.childNodes.length;
  81. // 如果查询的值为空,给每个表格赋一个空节点,便于输入数据,进行插入操作
  82. if(len = 0)
  83. {
  84. model1.makeNode("/root/gridData/grid1/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  85. model1.makeNode("/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  86. model1.makeNode("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  87. model1.makeNode("/root/gridData/grid4/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  88. model1.makeNode("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  89. model1.makeNode("/root/gridData/grid6/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  90. model1.makeNode("/root/gridData/grid7/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row");
  91. }
  92. else
  93. // 对相信的表格进行赋值 ,用查询出来的值
  94. {
  95. model.setValue("/root/formData/SLAB_NO",model.getValue("/root/resData/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/SLAB_NO"));
  96. //这里带出真实钢卷号,不做任何处理。只用于对比
  97. model.setValue("/root/formData/OLD_SAMPL_NO",model.getValue("/root/resData/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/OLD_SAMPL_NO"));
  98. //生产流水号
  99. model.setValue("/root/formData/COIL_NO",model.getValue("/root/resData/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_NO"));
  100. commAppendData("/root/gridData/grid1/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  101. commAppendData("/root/gridData/grid2/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  102. commAppendData("/root/gridData/grid3/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  103. commAppendData("/root/gridData/grid4/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  104. commAppendData("/root/gridData/grid5/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  105. commAppendData("/root/gridData/grid6/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  106. commAppendData("/root/gridData/grid7/SearchCoilSpecResult_VO","/root/resData/SearchCoilSpecResult_VO");
  107. model.refresh();
  108. }
  109. }
  110. function save()
  111. {
  112. // 将要修改的数据节点COPY 到reqData节点下,保存
  113. model.removenode("/root/reqData");
  114. model.makeNode("/root/reqData");
  115. // 钢卷号
  116. model.duplicate("/root/reqData","/root/formData/COIL_NO");
  117. // 板坯号
  118. model.duplicate("/root/reqData","/root/formData/SLAB_NO");
  119. // 权限操作标识
  120. // model.duplicate("/root/reqData","/root/formData/CHKUPD");
  121. // 板坯厚度
  122. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_THK");
  123. // 板坯宽度
  124. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_WTH");
  125. // 板坯长度
  126. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_LEN");
  127. // 板坯重量
  128. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/ACT_WGT");
  129. // 外径
  130. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_OUTDIA");
  131. // 内径
  132. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_INDIA");
  133. // 统计日期
  134. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/XIN_DATE");
  135. // 班次
  136. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WKSHIFT");
  137. // 工作组
  138. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WKGROUP");
  139. // 操作人员
  140. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WK_EMP_NO");
  141. // 卷取机号
  142. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_NO");
  143. // 卷取开始时间
  144. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_ON_DTIME");
  145. // 卷取结束时间
  146. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_OFF_DTIME");
  147. // 缺号区分代码
  148. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CLF_CD");
  149. // 缺号原因
  150. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CAUSE_CD");
  151. // 废弃区域
  152. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CAUSE_QY");
  153. // 缺号发生时间
  154. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_DTIME");
  155. // 缺号宽度
  156. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_THK");
  157. // 缺号厚度
  158. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_WTH");
  159. // 缺号重量
  160. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_WGT");
  161. //这里加入登录用户名,会不会与已有的initData冲突
  162. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  163. //alert(instance1.selectSingleNode("/root/reqData").xml);
  164. commSubmit("UIH020030-service","save","glueAction.do");
  165. if(model.getValue("root/resData/rs_VO/rs_Row")=="RHF_STAT"){
  166. alert(" 所选择的钢卷已经吊销或者轧回! ");
  167. return;
  168. }else if(model.getValue("root/resData/rs_VO/rs_Row")=="TST"){
  169. alert(" 实绩接收超过24小时,不允许修改! ");
  170. return;
  171. }
  172. else{
  173. alert(" @@@@ 保存成功! @@@@ ");
  174. }
  175. }
  176. function comfirm()
  177. {
  178. // 将要修改的数据节点COPY 到reqData节点下,保存
  179. model.removenode("/root/reqData");
  180. model.makeNode("/root/reqData");
  181. // 钢卷号
  182. model.duplicate("/root/reqData","/root/formData/COIL_NO");
  183. // 板坯号
  184. model.duplicate("/root/reqData","/root/formData/SLAB_NO");
  185. // 权限操作标识 只有当确认按钮才允许修改
  186. model.duplicate("/root/reqData","/root/formData/CHKUPD");
  187. // 板坯厚度
  188. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_THK");
  189. // 板坯宽度
  190. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_WTH");
  191. // 板坯长度
  192. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_LEN");
  193. // 板坯重量
  194. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/ACT_WGT");
  195. // 外径
  196. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_OUTDIA");
  197. // 内径
  198. model.duplicate("/root/reqData","/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_INDIA");
  199. // 统计日期
  200. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/XIN_DATE");
  201. // 班次
  202. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WKSHIFT");
  203. // 工作组
  204. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WKGROUP");
  205. // 操作人员
  206. model.duplicate("/root/reqData","/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WK_EMP_NO");
  207. // 卷取机号
  208. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_NO");
  209. // 卷取开始时间
  210. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_ON_DTIME");
  211. // 卷取结束时间
  212. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_OFF_DTIME");
  213. // 缺号区分代码
  214. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CLF_CD");
  215. // 缺号原因
  216. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CAUSE_CD");
  217. // 废弃区域
  218. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CAUSE_QY");
  219. // 缺号发生时间
  220. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_DTIME");
  221. // 缺号宽度
  222. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_THK");
  223. // 缺号厚度
  224. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_WTH");
  225. // 缺号重量
  226. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_WGT");
  227. //这里加入登录用户名,会不会与已有的initData冲突
  228. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  229. //alert(instance1.selectSingleNode("/root/reqData").xml);
  230. commSubmit("UIH020030-service","save","glueAction.do");
  231. if(model.getValue("root/resData/rs_VO/rs_Row")=="RHF_STAT"){
  232. alert(" 所选择的钢卷已经吊销或者轧回! ");
  233. return;
  234. }else if(model.getValue("root/resData/rs_VO/rs_Row")=="TST"){
  235. alert(" 实绩接收超过24小时,不允许修改! ");
  236. return;
  237. }
  238. else{
  239. alert(" @@@@ 保存成功! @@@@ ");
  240. }
  241. }
  242. function initPage()
  243. {
  244. //这里就必须作为子页面操作了
  245. if(window.parent != null){
  246. var openWindow = window.parent;
  247. model.setValue("/root/formData/COIL_NO",openWindow.model.getValue("/root/tempData"));
  248. //调用查询方法
  249. find();
  250. }
  251. }
  252. function selOnClick(){
  253. var WkGroup = model1.getValue("/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/WKGROUP");
  254. model.setValue("/root/formData/WK_GROUP", WkGroup);
  255. model.removenode("/root/reqData");
  256. model.makeNode("/root/reqData");
  257. model.duplicate("/root/reqData","/root/formData/WK_GROUP");
  258. commSubmit("UIH020030-service","onclick","glueAction.do");
  259. commAppendData("/root/initData/INIT_EMP_NO/onclickResult_VO","/root/resData/onclickResult_VO");
  260. model.refresh();
  261. }
  262. function vDate(){
  263. //获取系统时间 格式yyyymmddhhmmss
  264. //获取系统时间
  265. var sysDate = new Date();
  266. var year = sysDate.getYear().toString();
  267. var month = (sysDate.getMonth()+1).toString();
  268. var date = sysDate.getDate().toString();
  269. var hours = sysDate.getHours().toString();
  270. var minutes = sysDate.getMinutes().toString();
  271. //这里不精确到秒,用00代替
  272. //var second = sysDate.getMilliseconds().toString();
  273. var zero = 0;
  274. //最终结果时间串
  275. var vSysDate = null;
  276. if(month<10){
  277. if(date<10){
  278. if(hours<10){
  279. if(minutes<10){
  280. vSysDate = year+zero+month+zero+date+zero+hours+zero+minutes;
  281. }else{
  282. vSysDate = year+zero+month+zero+date+zero+hours+minutes;
  283. }
  284. }else{
  285. if(minutes<10){
  286. vSysDate = year+zero+month+zero+date+hours+zero+minutes;
  287. }else{
  288. vSysDate = year+zero+month+zero+date+hours+minutes;
  289. }
  290. }
  291. }else{
  292. if(hours<10){
  293. if(minutes<10){
  294. vSysDate = year+zero+month+date+zero+hours+zero+minutes;
  295. }else{
  296. vSysDate = year+zero+month+date+zero+hours+minutes;
  297. }
  298. }else{
  299. if(minutes<10){
  300. vSysDate = year+zero+month+date+hours+zero+minutes;
  301. }else{
  302. vSysDate = year+zero+month+date+hours+minutes;
  303. }
  304. }
  305. }
  306. }else{
  307. if(date<10){
  308. if(hours<10){
  309. if(minutes<10){
  310. vSysDate = year+month+zero+date+zero+hours+zero+minutes;
  311. }else{
  312. vSysDate = year+month+zero+date+zero+hours+minutes;
  313. }
  314. }else{
  315. if(minutes<10){
  316. vSysDate = year+month+zero+date+hours+zero+minutes;
  317. }else{
  318. vSysDate = year+month+zero+date+hours+minutes;
  319. }
  320. }
  321. }else{
  322. if(hours<10){
  323. if(minutes<10){
  324. vSysDate = year+month+date+zero+hours+zero+minutes;
  325. }else{
  326. vSysDate = year+month+date+zero+hours+minutes;
  327. }
  328. }else{
  329. if(minutes<10){
  330. vSysDate = year+month+date+hours+zero+minutes;
  331. }else{
  332. vSysDate = year+month+date+hours+minutes;
  333. }
  334. }
  335. }
  336. }
  337. return vSysDate+zero+zero;
  338. }
  339. ]]>
  340. </script>
  341. <script type="javascript" src="../../js/boaCommon.js"/>
  342. </xhtml:head>
  343. <xhtml:body pageheight="620" style="font-family:宋体; font-size:16pt; ">
  344. <caption id="caption2" class="cell" style="left:0px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">生产流水号</caption>
  345. <input id="input2" ref="/root/formData/COIL_NO" maxlength="13" style="left:92px; top:5px; width:110px; height:20px; background-color:#ffff99; ">
  346. <script type="javascript" ev:event="ondblclick">
  347. <![CDATA[
  348. //双击输入框的时候,弹出钢卷号选择子页面
  349. //人工输入处理
  350. //window.load("./UIH02_SELECT_COIL_NO.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
  351. ]]>
  352. </script>
  353. </input>
  354. <caption id="caption1" class="cell" style="left:207px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯号</caption>
  355. <line id="line1" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
  356. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="钢号^合同号^品名^订单用途^交货期^订单去向" colsep="^" colwidth="101, 100, 112, 107, 110, 101" defaultrows="2" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:35px; width:635px; height:44px; border-color:#000000; ">
  357. <col editable="false" ref="STL_GRD" type="input" style="background-color:#ffffff; "/>
  358. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  359. <col editable="false" ref="PRODNM_CD" type="input" style="background-color:#ffffff; "/>
  360. <col editable="false" ref="ORD_USE_CD" type="input" style="background-color:#ffffff; "/>
  361. <col editable="false" ref="DELV_REQ_DATE" type="input" format="yyyy-mm-dd hh:mm:ss" style="background-color:#ffffff; "/>
  362. <col editable="false" ref="INSTR_ROUTE" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  363. </datagrid>
  364. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="统计日^班次^班组^作业者" colsep="^" colwidth="101, 69, 69, 102" defaultrows="2" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:637px; top:35px; width:343px; height:44px; border-color:#000000; ">
  365. <col ref="XIN_DATE" type="inputdate" format="yyyy-mm-dd hh:mm:ss" style="background-color:#ffff99; "/>
  366. <col ref="WKSHIFT" type="combo" style="background-color:#ffff99; ">
  367. <choices>
  368. <itemset nodeset="/root/initData/INIT_SHIFT/ShiftResult_VO/ShiftResult_Row">
  369. <label ref="LABEL"/>
  370. <value ref="VALUE"/>
  371. </itemset>
  372. </choices>
  373. </col>
  374. <col ref="WKGROUP" type="combo" style="background-color:#ffff99; ">
  375. <choices>
  376. <itemset nodeset="/root/initData/INIT_GROUP/GroupResult_VO/GroupResult_Row">
  377. <label ref="LABEL"/>
  378. <value ref="VALUE"/>
  379. </itemset>
  380. </choices>
  381. </col>
  382. <col ref="WK_EMP_NO" type="combo" style="background-color:#ffff99; ">
  383. <choices>
  384. <itemset nodeset="/root/initData/INIT_EMP_NO/onclickResult_VO/onclickResult_Row">
  385. <label ref="LABEL"/>
  386. <value ref="VALUE"/>
  387. </itemset>
  388. </choices>
  389. </col>
  390. <script type="javascript" ev:event="xforms-select">
  391. <![CDATA[
  392. if (datagrid2.col == datagrid2.colRef("WKGROUP")) {
  393. selOnClick();
  394. }
  395. ]]>
  396. </script>
  397. </datagrid>
  398. <datagrid id="datagrid3" nodeset="/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="订单钢卷规格^订单钢卷规格^订单钢卷规格^订单钢卷规格^订单钢卷规格^订单钢卷规格^实际钢卷规格^实际钢卷规格^实际钢卷规格^实际钢卷规格^实际钢卷规格^实际钢卷规格^实际钢卷规格^除磷机是否^除磷机是否^除磷机是否^除磷机是否|厚度^宽度^长度^重量^外径^内径^厚度^宽度^长度^重量^计算重量^外径^内径^加热炉后^RM入口^RM出口^总道次" colsep="^" colwidth="57, 55, 56, 55, 58, 60, 58, 56, 54, 56, 58, 65, 60, 61, 53, 53, 63" defaultrows="4" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:90px; width:980px; height:64px; border-color:#000000; ">
  399. <col editable="false" ref="INSTR_COIL_THK" type="input" style="text-align:right; background-color:#ffffff; "/>
  400. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="text-align:right; background-color:#ffffff; "/>
  401. <col editable="false" ref="INSTR_COIL_LTH" type="input" style="text-align:right; background-color:#ffffff; "/>
  402. <col editable="false" ref="INSTR_COIL_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  403. <col editable="false" ref="INSTR_COIL_OUTDIA" type="input" style="text-align:right; background-color:#ffffff; "/>
  404. <col editable="false" ref="INSTR_COIL_INDIA" type="input" style="text-align:right; background-color:#ffffff; "/>
  405. <col ref="COIL_THK" type="input" maxlength="6" style="text-align:right; background-color:#ffff99; "/>
  406. <col ref="COIL_WTH" type="input" maxlength="6" style="text-align:right; background-color:#ffff99; "/>
  407. <col ref="COIL_LEN" type="input" format="9999999999999" maxlength="9" style="text-align:right; background-color:#ffff99; "/>
  408. <col editable="false" ref="ACT_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  409. <col editable="false" ref="CAL_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  410. <col ref="COIL_OUTDIA" type="input" format="9999999999999" maxlength="6" style="text-align:right; background-color:#ffff99; "/>
  411. <col ref="COIL_INDIA" style="text-align:right; "/>
  412. <col editable="false" ref="RHF_DESCAL_YN" type="input" style="background-color:#ffffff; "/>
  413. <col editable="false" ref="RM_ENT_DESCAL_YN" type="input" style="background-color:#ffffff; "/>
  414. <col editable="false" ref="RM_EXT_DESCAL_YN" type="input" style="background-color:#ffffff; "/>
  415. <col editable="false" ref="ZONG_DESCAL_YN" type="input" style="background-color:#ffffff; "/>
  416. </datagrid>
  417. <datagrid id="datagrid4" nodeset="/root/gridData/grid4/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="粗轧^粗轧^粗轧^粗轧^粗轧^粗轧^粗轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧|轧制道次^轧制道次^出口温度^出口温度^粗轧出口平均大小^粗轧出口平均大小^粗轧出口平均大小^通过时刻^通过时刻^精轧1 入口 温度^精轧1 入口 温度^精轧1 入口 温度^精轧 出口 厚度^精轧 出口 厚度^精轧 出口 厚度^精轧 出口 厚度^精轧 出口 厚度|R1^R2^R1^R2^厚度^宽度^长度^入口^出口^平均^最大^最小^额定^平均^最大^最小^不在范围(%)" colsep="^" colwidth="50, 50, 50, 50, 50, 50, 50, 115, 116, 45, 45, 45, 45, 45, 45, 45, 78" defaultrows="5" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:170px; width:979px; height:84px; border-color:#000000; ">
  418. <col editable="false" ref="RM1_PASS_CNT" type="input" style="text-align:right; background-color:#ffffff; "/>
  419. <col editable="false" ref="RM2_PASS_CNT" type="input" style="text-align:right; background-color:#ffffff; "/>
  420. <col editable="false" ref="R1_EXT_TEMP" type="input" style="text-align:right; background-color:#ffffff; "/>
  421. <col editable="false" ref="R2_EXT_TEMP" type="input" style="text-align:right; background-color:#ffffff; "/>
  422. <col editable="false" ref="RM_EXT_AVG_THK" type="input" style="text-align:right; background-color:#ffffff; "/>
  423. <col editable="false" ref="RM_EXT_AVG_WTH" type="input" style="text-align:right; background-color:#ffffff; "/>
  424. <col editable="false" ref="RM_EXT_AVG_LEN" type="input" style="text-align:right; background-color:#ffffff; "/>
  425. <col editable="false" ref="F1_ENT_PASS_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" style="background-color:#ffffff; "/>
  426. <col editable="false" ref="F7_ENT_PASS_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" style="background-color:#ffffff; "/>
  427. <col editable="false" ref="F1_ENT_TEMP_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  428. <col editable="false" ref="F1_ENT_TEMP_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  429. <col editable="false" ref="F1_ENT_TEMP_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  430. <col editable="false" ref="FM_EXT_STRIP_THK" type="input" style="text-align:right; background-color:#ffffff; "/>
  431. <col editable="false" ref="FM_EXT_STRIP_THK_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  432. <col editable="false" ref="FM_EXT_STRIP_THK_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  433. <col editable="false" ref="FM_EXT_STRIP_THK_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  434. <col editable="false" ref="FM_EXT_STRIP_THK_OUT_OF_LEN" type="input" style="text-align:right; background-color:#ffffff; "/>
  435. </datagrid>
  436. <datagrid id="datagrid5" nodeset="/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="卷取^卷取^卷取^卷取^卷取^卷取^卷取^卷取^废弃^废弃^废弃^废弃^废弃^废弃^废弃|卷取温度^卷取温度^卷取温度^卷取温度^卷取温度^卷取&#xA;机号^开始卷取时刻^结束卷取时刻^区分代码^厚度^宽度^重量^区域^理由代码^发生时间|额定^平均^最大^最小^不在范围(%)^卷取&#xA;机号^开始卷取时刻^结束卷取时刻^区分代码^厚度^宽度^重量^区域^理由代码^发生时间" colsep="^" colwidth="53, 53, 53, 53, 77, 35, 100, 100, 56, 50, 52, 55, 60, 80, 100" defaultrows="4" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:470px; width:979px; height:86px; border-color:#000000; ">
  437. <col editable="false" ref="DC_TEMP" type="input" style="text-align:right; background-color:#ffffff; "/>
  438. <col editable="false" ref="DC_TEMP_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  439. <col editable="false" ref="DC_TEMP_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  440. <col editable="false" ref="DC_TEMP_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  441. <col editable="false" ref="DC_TEMP_OUT_OF_RANGE" type="input" style="text-align:right; background-color:#ffffff; "/>
  442. <col ref="DC_NO" type="input" format="999999-9999999" maxlength="1" style="background-color:#ffff99; "/>
  443. <col ref="DC_ON_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" maxlength="14" style="background-color:#ffff99; "/>
  444. <col ref="DC_OFF_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" maxlength="14" style="background-color:#ffff99; "/>
  445. <col ref="MISSNO_CLF_CD" type="combo" style="background-color:#ffff99; ">
  446. <choices>
  447. <item>
  448. <label/>
  449. <value/>
  450. </item>
  451. <item>
  452. <label>钢卷</label>
  453. <value>C</value>
  454. </item>
  455. </choices>
  456. </col>
  457. <col ref="MISSNO_BAR_THK" type="input" maxlength="6" style="background-color:#ffff99; "/>
  458. <col ref="MISSNO_BAR_WTH" type="input" maxlength="6" style="background-color:#ffff99; "/>
  459. <col ref="MISSNO_BAR_WGT" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
  460. <col ref="MISSNO_CAUSE_QY" type="combo" style="background-color:#ffff99; ">
  461. <choices>
  462. <item>
  463. <label/>
  464. <value/>
  465. </item>
  466. <item>
  467. <label>粗轧区域</label>
  468. <value>H06002</value>
  469. </item>
  470. <item>
  471. <label>精轧区域</label>
  472. <value>H06003</value>
  473. </item>
  474. <item>
  475. <label>卷取区域</label>
  476. <value>H06004</value>
  477. </item>
  478. </choices>
  479. </col>
  480. <col editmode="input" ref="MISSNO_CAUSE_CD" type="combo" style="background-color:#ffff99; ">
  481. <choices>
  482. <itemset nodeset="/root/initData/INIT_MISSNO_CLF_NO/RejectCd_VO/RejectCd_Row">
  483. <label ref="LABEL"/>
  484. <value ref="VALUE"/>
  485. </itemset>
  486. </choices>
  487. </col>
  488. <col ref="MISSNO_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" maxlength="14" style="background-color:#ffff99; "/>
  489. <script type="javascript" ev:event="xforms-value-changed">
  490. <![CDATA[
  491. if(datagrid5.col == 5){
  492. //获取系统时间
  493. var SysDate = vDate();
  494. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_ON_DTIME",SysDate);
  495. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_OFF_DTIME",SysDate);
  496. }
  497. if(datagrid5.col == 8){
  498. //获取系统时间
  499. var SysDate = vDate();
  500. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_DTIME",SysDate);
  501. //这里取钢卷的订单重量到废弃重量
  502. var wgt = model.getValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/INSTR_COIL_WGT");
  503. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_BAR_WGT",wgt);
  504. model.refresh();
  505. }
  506. if(datagrid5.col == 12){
  507. //这里在选择了区域的时候,自动带出区域的原因代码
  508. model.removenode("/root/reqData");
  509. model.makeNode("/root/reqData");
  510. //废弃区域
  511. model.duplicate("/root/reqData","/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/MISSNO_CAUSE_QY");
  512. commSubmit("UIH020030-service","findReject","glueAction.do");
  513. commAppendData("/root/initData/INIT_MISSNO_CLF_NO/RejectCd_VO","/root/resData/RejectCd_VO");
  514. model.refresh();
  515. }
  516. ]]>
  517. </script>
  518. </datagrid>
  519. <datagrid id="datagrid6" nodeset="/root/gridData/grid6/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧|非对称平直度^非对称平直度^非对称平直度^非对称平直度^稧型^稧型^稧型^稧型^精轧 出口 温度^精轧 出口 温度^精轧 出口 温度^精轧 出口 温度^精轧 出口 温度^精轧7 速度 ^精轧7 速度 ^精轧7 速度 ^精轧7 速度 ^精轧7 速度 |平均^最大^最小^不在范围(%)^平均^最大^最小^不在范围(%)^额定^平均^最大^最小^不在范围(%)^穿带^ACC1^ACC2^VMAX^VT" colsep="^" colwidth="44, 43, 43, 77, 45, 45, 45, 77, 45, 45, 45, 45, 77, 60, 60, 60, 60, 60" defaultrows="4" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:370px; width:979px; height:84px; border-color:#000000; ">
  520. <col editable="false" ref="FM_ASY_STRIP_FLATNESS_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  521. <col editable="false" ref="FM_ASY_STRIP_FLATNESS_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  522. <col editable="false" ref="FM_ASY_STRIP_FLATNESS_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  523. <col editable="false" ref="FM_ASY_STRIP_OUT_OF_RANGE" type="input" style="text-align:right; background-color:#ffffff; "/>
  524. <col editable="false" ref="FM_STRIP_WDG_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  525. <col editable="false" ref="FM_STRIP_WDG_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  526. <col editable="false" ref="FM_STRIP_WDG_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  527. <col editable="false" ref="FM_STRIP_WDG_OUT_OF_RANGE" type="input" style="text-align:right; background-color:#ffffff; "/>
  528. <col editable="false" ref="FM_EXT_STRIP_TEMP" type="input" style="text-align:right; background-color:#ffffff; "/>
  529. <col editable="false" ref="FM_EXT_STRIP_TEMP_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  530. <col editable="false" ref="FM_EXT_STRIP_TEMP_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  531. <col editable="false" ref="FM_EXT_STRIP_TEMP_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  532. <col editable="false" ref="STRIP_OUT_OF_RANGE" type="input" style="text-align:right; background-color:#ffffff; "/>
  533. <col editable="false" ref="F7_MILL_SPEED_HEAD" type="input" style="text-align:right; background-color:#ffffff; "/>
  534. <col editable="false" ref="F7_MILL_SPEED_ACC1" type="input" style="text-align:right; background-color:#ffffff; "/>
  535. <col editable="false" ref="F7_MILL_SPEED_ACC2" type="input" style="text-align:right; background-color:#ffffff; "/>
  536. <col editable="false" ref="F7_MILL_SPEED_VMAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  537. <col editable="false" ref="F7_MILL_SPEED_VT" type="input" style="text-align:right; background-color:#ffffff; "/>
  538. </datagrid>
  539. <datagrid id="datagrid7" nodeset="/root/gridData/grid7/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row" caption="精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧^精轧|精轧 出口 宽度^精轧 出口 宽度^精轧 出口 宽度^精轧 出口 宽度^精轧 出口 宽度^精轧 出口 凸度^精轧 出口 凸度^精轧 出口 凸度^精轧 出口 凸度^精轧 出口 凸度^对称平直度^对称平直度^对称平直度^对称平直度|额定^平均^最大^最小^不在范围(%)^额定^平均^最大^最小^不在范围(%)^平均^最大^最小^不在范围(%)" colsep="^" colwidth="70, 70, 67, 66, 78, 65, 61, 61, 61, 77, 75, 72, 72, 81" defaultrows="5" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:270px; width:979px; height:84px; border-color:#000000; ">
  540. <col editable="false" ref="FM_EXT_STRIP_WTH" type="input" style="text-align:right; background-color:#ffffff; "/>
  541. <col editable="false" ref="FM_EXT_STRIP_WTH_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  542. <col editable="false" ref="FM_EXT_STRIP_WTH_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  543. <col editable="false" ref="FM_EXT_STRIP_WTH_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  544. <col editable="false" ref="FM_EXT_STRIP_WTH_OUT_OF_LEN" type="input" style="text-align:right; background-color:#ffffff; "/>
  545. <col editable="false" ref="FM_EXT_STRIP_CROWN" type="input" style="text-align:right; background-color:#ffffff; "/>
  546. <col editable="false" ref="FM_EXT_STRIP_CROWN_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  547. <col editable="false" ref="FM_EXT_STRIP_CROWN_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  548. <col editable="false" ref="FM_EXT_STRIP_CROWN_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  549. <col editable="false" ref="FM_EXT_STRIP_CROWN_OUT_OF_LEN" type="input" style="text-align:right; background-color:#ffffff; "/>
  550. <col editable="false" ref="FM_SYM_STRIP_FLATNESS_AVG" type="input" style="text-align:right; background-color:#ffffff; "/>
  551. <col editable="false" ref="FM_SYM_STRIP_FLATNESS_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
  552. <col editable="false" ref="FM_SYM_STRIP_FLATNESS_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
  553. <col editable="false" ref="FM_SYM_STRIP_OUT_OF_RANGE" type="input" style="text-align:right; background-color:#ffffff; "/>
  554. </datagrid>
  555. <input id="input1" ref="/root/formData/SLAB_NO" maxlength="13" style="left:299px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
  556. <line id="line2" style="x1:0px; y1:460px; x2:979px; y2:460px; "/>
  557. <line id="line3" style="x1:0px; y1:360px; x2:979px; y2:360px; "/>
  558. <line id="line4" style="x1:0px; y1:260px; x2:979px; y2:260px; "/>
  559. <line id="line5" style="x1:0px; y1:160px; x2:979px; y2:160px; "/>
  560. <line id="line6" style="x1:0px; y1:85px; x2:979px; y2:85px; "/>
  561. <caption id="caption3" class="cell" style="left:415px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷号</caption>
  562. <input id="input3" ref="/root/formData/OLD_SAMPL_NO" maxlength="13" style="left:507px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
  563. <button id="button1" style="left:890px; top:0px; width:90px; height:30px; ">
  564. <caption>强制按钮</caption>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. if(model.getValue("/root/formData/COIL_NO") == "" || model.getValue("/root/formData/SLAB_NO") == "" || model.getValue("/root/formData/OLD_SAMPL_NO") == ""){
  568. alert(" 不查询出需要录入的钢卷信息,不能点击强制按钮! ");
  569. return;
  570. }
  571. //这里就是把计划的数据取过来,赋值到实绩的输入框中。
  572. var INSTR_COIL_THK = model.getValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/INSTR_COIL_THK");
  573. model.setValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_THK",INSTR_COIL_THK);
  574. var INSTR_COIL_WTH = model.getValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/INSTR_COIL_WTH");
  575. model.setValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/COIL_WTH",INSTR_COIL_WTH);
  576. var INSTR_COIL_WGT = model.getValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/INSTR_COIL_WGT");
  577. model.setValue("/root/gridData/grid3/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/ACT_WGT",INSTR_COIL_WGT);
  578. //默认为1
  579. var DC_NO = "1";
  580. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_NO",DC_NO);
  581. var SysDate = vDate();
  582. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_ON_DTIME",SysDate);
  583. model.setValue("/root/gridData/grid5/SearchCoilSpecResult_VO/SearchCoilSpecResult_Row[1]/DC_OFF_DTIME",SysDate);
  584. model.refresh();
  585. //给出提示,需要点击保存按钮才可以生效
  586. var isUse = commComfirmBox("强制按钮点击后,确认钢卷数据是否正确.?","提示");
  587. if(isUse == "0"){
  588. return;
  589. }
  590. save();
  591. ]]>
  592. </script>
  593. </button>
  594. </xhtml:body>
  595. </xhtml:html>