2a001a7704c738434846a46efaab658b48a8c91a.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <?xml-stylesheet href="../css/bCommon.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>
  7. <![CDATA[品质判定>>成分判定>>判定历史记录查询]]>
  8. </xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <reqData/>
  13. <resData/>
  14. <datagrid1/>
  15. <datagrid2/>
  16. <formData>
  17. <SDTIME/>
  18. <EDTIME/>
  19. <CHARGENO/>
  20. <DCS_FLAG_ID/>
  21. <DCS_FLAG>%</DCS_FLAG>
  22. </formData>
  23. <combo1>
  24. <IngrStatus_Row/>
  25. </combo1>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. if(window.parent==null) Init();
  31. ]]>
  32. </script>
  33. </model>
  34. <script type="javascript" src="../../js/boaCommon.js"/>
  35. <script type="javascript" src="../../js/b01.js"/>
  36. <script type="javascript">
  37. <![CDATA[
  38. function Init(node)
  39. {
  40. input1.value = commCurDate();
  41. input2.value = commCurDate();
  42. commSubmit("UIB030200-service", "success", "glueAction.do");
  43. model.copyNode("/root/combo1" , "/root/resData/IngrStatus_VO");
  44. model.refresh();
  45. model.toggle("case2");
  46. button3.attribute("color") = "#0000ff";
  47. }
  48. function find()
  49. {
  50. if(commDiffDay(input1.value,input2.value)>3)
  51. {
  52. window.alert("查询时间不能超过3天");
  53. return;
  54. }
  55. model.removenode("/root/reqData");
  56. model.makeNode("/root/reqData");
  57. commSendReq("/root/formData");
  58. if(input1.value.Trim() == "" && input2.value.Trim() == "" && input3.value.Trim() == "") {
  59. alert("请输入板坯号或时间查询!");
  60. return;
  61. }
  62. model.makeValue("/root/reqData/SDTIME", input1.value.Trim()+"0000");//生产开始时间
  63. model.makeValue("/root/reqData/EDTIME", input2.value.Trim()+"9999");//生产结束时间
  64. model.makeValue("/root/reqData/CHARGENO",input3.value.Trim()+"%");
  65. model.makeValue("/root/reqData/DCS_FLAG",combo25.value);
  66. model.makeValue("/root/reqData/DCS_FLAG_ID",input45.value.Trim());
  67. if(switch1.selectedIndex == 0)
  68. {
  69. commSubmit("UIB030200-service", "find0", "glueAction.do");
  70. model.copyNode("/root/datagrid1" , "/root/resData/IngrHistory_VO");
  71. }
  72. else
  73. {
  74. commSubmit("UIB030200-service", "find1", "glueAction.do");
  75. model.copyNode("/root/datagrid2" , "/root/resData/SlabHistory_VO");
  76. }
  77. datagrid2.rebuildStyle();
  78. model.refresh();
  79. }
  80. //重复操作显示蓝色
  81. function setColor()
  82. {
  83. datagrid2.rebuildStyle();
  84. var colSlabStat = datagrid2.colRef("SLAB_NO");
  85. var colFlag = datagrid2.colRef("SLAB_DCS_FLAG");
  86. for(var i = datagrid2.fixedRows; i < datagrid2.rows; i++)
  87. {
  88. var slabno1 = datagrid2.valueMatrix(i ,colSlabStat) ;
  89. var flag1 = datagrid2.valueMatrix(i ,colFlag) ;
  90. for(var j = datagrid2.fixedRows; j< datagrid2.rows; j++)
  91. {
  92. var slabno2 = datagrid2.valueMatrix(j ,colSlabStat) ;
  93. var flag2 = datagrid2.valueMatrix(j,colFlag) ;
  94. if(slabno1 == slabno2 && flag1 == flag2 && i != j)
  95. {
  96. datagrid2.rowStyle(i , "data" , "color") = "#0000ff";
  97. datagrid2.rowStyle(j , "data" , "color") = "#0000ff";
  98. }
  99. }
  100. }
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body pagewidth="980" pageheight="620">
  106. <input id="input1" ref="/root/formData/SDTIME" inputtype="date" style="left:60px; top:32px; width:90px; height:20px; "/>
  107. <input id="input2" ref="/root/formData/EDTIME" inputtype="date" style="left:160px; top:32px; width:90px; height:20px; "/>
  108. <caption id="caption1" class="cell" style="left:0px; top:32px; width:60px; height:20px; ">操作时间</caption>
  109. <line id="line1" style="x1:0px; y1:0px; x2:975px; y2:0px; "/>
  110. <line id="line2" style="x1:0px; y1:27px; x2:970px; y2:27px; "/>
  111. <line id="line3" style="x1:150px; y1:42px; x2:160px; y2:42px; "/>
  112. <button id="button1" visibility="hidden" style="left:820px; top:5px; width:100px; height:20px; ">
  113. <caption>FIND</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. find();
  117. ]]>
  118. </script>
  119. </button>
  120. <switch id="switch1" style="left:0px; top:55px; width:975px; height:562px; ">
  121. <case id="case1" style="left:0px; top:0px; width:975px; height:580px; ">
  122. <datagrid id="datagrid1" nodeset="/root/datagrid1/IngrHistory_Row" caption="操作次数^炉次^工序^次数^成分代码^原始实绩(修约后)^原始实绩(L2发送)^质保书生成^修改原因^程序ID^操作人^操作时间" colsep="^" colwidth="51, 100, 51, 51, 61, 112, 113, 57, 134, 80, 77, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="label" style="left:0px; top:0px; width:972px; height:561px; ">
  123. <col ref="SEQ_NO" style="text-align:left; "/>
  124. <col ref="CHARGE_NO" style="text-align:left; "/>
  125. <col ref="PROC_CD" style="text-align:left; "/>
  126. <col ref="CHEM_SEQ" style="text-align:right; "/>
  127. <col ref="CHEM_CD" style="text-align:left; "/>
  128. <col ref="CHEM_VAL" style="text-align:right; "/>
  129. <col ref="CHEM_L2_VAL" style="text-align:right; "/>
  130. <col ref="UPDATE_NO_TP" style="text-align:left; "/>
  131. <col ref="INGR_RMK" style="text-align:left; "/>
  132. <col ref="REG_PGM_ID" style="text-align:left; "/>
  133. <col ref="REG_ID" style="text-align:left; "/>
  134. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  135. </datagrid>
  136. </case>
  137. <case id="case2" selected="true">
  138. <datagrid id="datagrid2" nodeset="/root/datagrid2/SlabHistory_Row" caption="板坯号^操作类型^操作人^操作时间^实际牌号^原牌号^合同号^订单号^成分样^余材区分^解除合同^系统成分等级^系统外观等级^成分等级^外观等级^综合等级^成分判定人^成分判定时间^其他记录" colsep="^" colwidth="90, 85, 71, 122, 91, 50, 60, 35, 37, 51, 52, 94, 94, 83, 60, 120, 60, 150" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="label" style="left:0px; top:0px; width:971px; height:559px; ">
  139. <col ref="SLAB_NO" style="text-align:left; "/>
  140. <col disabled="true" ref="SLAB_DCS_FLAG" type="combo" style="text-align:left; ">
  141. <choices>
  142. <item>
  143. <label>成分判定</label>
  144. <value>1</value>
  145. </item>
  146. <item>
  147. <label>炉次改判</label>
  148. <value>2</value>
  149. </item>
  150. <item>
  151. <label>板坯改判</label>
  152. <value>3</value>
  153. </item>
  154. <item>
  155. <label>综合判定</label>
  156. <value>8</value>
  157. </item>
  158. <item>
  159. <label>外观实绩录入</label>
  160. <value>9</value>
  161. </item>
  162. <item>
  163. <label>正常流转</label>
  164. <value>B</value>
  165. </item>
  166. <item>
  167. <label>判次</label>
  168. <value>C</value>
  169. </item>
  170. <item>
  171. <label>强制合格</label>
  172. <value>D</value>
  173. </item>
  174. <item>
  175. <label>余材判定</label>
  176. <value>E</value>
  177. </item>
  178. <item>
  179. <label>待判定</label>
  180. <value>F</value>
  181. </item>
  182. <item>
  183. <label>化废</label>
  184. <value>G</value>
  185. </item>
  186. <item>
  187. <label>流转申请中</label>
  188. <value>H</value>
  189. </item>
  190. <item>
  191. <label>流转申请已取消</label>
  192. <value>I</value>
  193. </item>
  194. </choices>
  195. </col>
  196. <col ref="REG_ID" style="text-align:left; "/>
  197. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  198. <col ref="STL_GRD" style="text-align:left; "/>
  199. <col ref="BEF_STL_GRD" style="text-align:left; "/>
  200. <col ref="ORD_NO" style="text-align:right; "/>
  201. <col ref="ORD_SEQ" style="text-align:right; "/>
  202. <col ref="LST_INGR_CD"/>
  203. <col disabled="true" ref="ORD_FL" type="combo" style="text-align:left; ">
  204. <choices>
  205. <item>
  206. <label>订单材</label>
  207. <value>1</value>
  208. </item>
  209. <item>
  210. <label>余材</label>
  211. <value>2</value>
  212. </item>
  213. </choices>
  214. </col>
  215. <col ref="POPORD_NO" style="text-align:left; "/>
  216. <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo" style="text-align:left; ">
  217. <choices>
  218. <item>
  219. <label>待判</label>
  220. <value/>
  221. </item>
  222. <item>
  223. <label>合格</label>
  224. <value>1</value>
  225. </item>
  226. <item>
  227. <label>不合格</label>
  228. <value>2</value>
  229. </item>
  230. <item>
  231. <label>化废</label>
  232. <value>3</value>
  233. </item>
  234. <item>
  235. <label>流转申请中</label>
  236. <value>4</value>
  237. </item>
  238. <item>
  239. <label>流转申请取消</label>
  240. <value>5</value>
  241. </item>
  242. <item>
  243. <label>流转申请成功</label>
  244. <value>6</value>
  245. </item>
  246. </choices>
  247. </col>
  248. <col disabled="true" ref="EXTSHAPE_GRD" type="combo" style="text-align:left; ">
  249. <choices>
  250. <item>
  251. <label>待判</label>
  252. <value/>
  253. </item>
  254. <item>
  255. <label>合格</label>
  256. <value>1</value>
  257. </item>
  258. <item>
  259. <label>不合格</label>
  260. <value>2</value>
  261. </item>
  262. <item>
  263. <label>待修磨</label>
  264. <value>3</value>
  265. </item>
  266. </choices>
  267. </col>
  268. <col disabled="true" ref="SLAB_INGR_DEC_GRD_EXT" type="combo" style="text-align:left; ">
  269. <choices>
  270. <itemset nodeset="/root/combo1/IngrStatus_Row">
  271. <label ref="SM_CFNM"/>
  272. <value ref="SM_CD"/>
  273. </itemset>
  274. </choices>
  275. </col>
  276. <col disabled="true" ref="EXTSHAPE_GRD_EXT" type="combo" style="text-align:left; ">
  277. <choices>
  278. <itemset nodeset="/root/combo1/IngrStatus_Row">
  279. <label ref="SM_CFNM"/>
  280. <value ref="SM_CD"/>
  281. </itemset>
  282. </choices>
  283. </col>
  284. <col disabled="true" ref="SLAB_TOT_DEC_GRD" type="combo" style="text-align:left; ">
  285. <choices>
  286. <itemset nodeset="/root/combo1/IngrStatus_Row">
  287. <label ref="SM_CFNM"/>
  288. <value ref="SM_CD"/>
  289. </itemset>
  290. </choices>
  291. </col>
  292. <col ref="INGR_EXT_NM" visibility="hidden" style="text-align:left; "/>
  293. <col ref="INGR_EXT_DTIME" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  294. <col ref="HIS_DESC" style="text-align:left; "/>
  295. </datagrid>
  296. </case>
  297. </switch>
  298. <button id="button2" style="left:5px; top:5px; width:120px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  299. <caption>成分异常数据</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. model.toggle("case1");
  303. button2.attribute("color") = "#0000ff";
  304. button3.attribute("color") = "#000000";
  305. ]]>
  306. </script>
  307. </button>
  308. <button id="button3" style="left:120px; top:5px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  309. <caption>板坯判定历史记录</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. model.toggle("case2");
  313. button2.attribute("color") = "#000000";
  314. button3.attribute("color") = "#0000ff";
  315. ]]>
  316. </script>
  317. </button>
  318. <caption id="caption2" class="cell" style="left:260px; top:32px; width:60px; height:20px; ">板坯号</caption>
  319. <input id="input3" ref="/root/formData/CHARGENO" style="left:320px; top:32px; width:90px; height:20px; ">
  320. <hint>
  321. <![CDATA[可以输入炉号、板坯号查询]]>
  322. </hint>
  323. </input>
  324. <caption id="caption26" class="cell" style="left:420px; top:32px; width:60px; height:20px; ">操作人</caption>
  325. <input id="input45" ref="/root/formData/DCS_FLAG_ID" style="left:480px; top:32px; width:80px; height:20px; ">
  326. <hint>
  327. <![CDATA[操作类型对应的操作人]]>
  328. </hint>
  329. </input>
  330. <caption id="caption25" class="cell" style="left:570px; top:32px; width:60px; height:20px; ">操作类型</caption>
  331. <select1 id="combo25" ref="/root/formData/DCS_FLAG" appearance="minimal" style="left:630px; top:32px; width:100px; height:20px; ">
  332. <choices>
  333. <item>
  334. <label>成分判定</label>
  335. <value>1</value>
  336. </item>
  337. <item>
  338. <label>炉次改判</label>
  339. <value>2</value>
  340. </item>
  341. <item>
  342. <label>板坯改判</label>
  343. <value>3</value>
  344. </item>
  345. <item>
  346. <label>综合判定</label>
  347. <value>8</value>
  348. </item>
  349. <item>
  350. <label>外观实绩录入</label>
  351. <value>9</value>
  352. </item>
  353. <item>
  354. <label>正常流转</label>
  355. <value>B</value>
  356. </item>
  357. <item>
  358. <label>判次</label>
  359. <value>C</value>
  360. </item>
  361. <item>
  362. <label>强制合格</label>
  363. <value>D</value>
  364. </item>
  365. <item>
  366. <label>余材判定</label>
  367. <value>E</value>
  368. </item>
  369. <item>
  370. <label>待判定</label>
  371. <value>F</value>
  372. </item>
  373. <item>
  374. <label>化废</label>
  375. <value>G</value>
  376. </item>
  377. <item>
  378. <label>流转申请中</label>
  379. <value>H</value>
  380. </item>
  381. <item>
  382. <label>流转申请已取消</label>
  383. <value>I</value>
  384. </item>
  385. <item>
  386. <label>--全部--</label>
  387. <value>%</value>
  388. </item>
  389. </choices>
  390. <hint>
  391. <![CDATA[外观判定人所属班组]]>
  392. </hint>
  393. </select1>
  394. <button id="button4" style="left:875px; top:32px; width:60px; height:20px; background-color:#c0c0c0; ">
  395. <caption>显示重复</caption>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. setColor();
  399. ]]>
  400. </script>
  401. <hint>
  402. <![CDATA[同一板坯号同操作类型若有多次操作会显示蓝色]]>
  403. </hint>
  404. </button>
  405. </xhtml:body>
  406. </xhtml:html>