UIB020110.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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[品质判定>>材质判定>>试样号进程现况与入库实绩录入]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <serachinfo>
  13. <Pstove/>
  14. <Pseq/>
  15. <ProcCD>B</ProcCD>
  16. <startTime/>
  17. <endTime/>
  18. <ROLLNO_1/>
  19. <ROLLNO_2/>
  20. </serachinfo>
  21. <PRODLINE/>
  22. </formData>
  23. <initCharge>
  24. <ChargeResult_VO>
  25. <ChargeResult_Row>
  26. <LABEL>-------</LABEL>
  27. <VALUE/>
  28. </ChargeResult_Row>
  29. </ChargeResult_VO>
  30. </initCharge>
  31. <initSeqNo>
  32. <SeqNo_VO>
  33. <SeqNo_Row>
  34. <LABEL>-----</LABEL>
  35. <VALUE/>
  36. </SeqNo_Row>
  37. </SeqNo_VO>
  38. </initSeqNo>
  39. <datagrid1/>
  40. <initProc>
  41. <LotProcCD_Row>
  42. <LABEL/>
  43. <VALUE/>
  44. </LotProcCD_Row>
  45. </initProc>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. if(window.parent==null) Init();
  51. ]]>
  52. </script>
  53. </model>
  54. <script type="javascript" src="../../js/boaCommon.js"/>
  55. <script type="javascript" src="../../js/b01.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. function Init(node)
  59. {
  60. InitParams(node);
  61. datagrid1.colStatus(0)=false;
  62. // input2.value = commCurDate();//当前时间
  63. // input3.value = commCurDate();//当前时间
  64. input1.value = document.readIniFile("session1" , "UIB020110_1" , "" , "c:\\WINDOWS\\xgmes3.ini");
  65. input4.value = document.readIniFile("session1" , "UIB020110_2" , "" , "c:\\WINDOWS\\xgmes3.ini");
  66. combo1.value = document.readIniFile("session1" , "UIB020110_3" , "" , "c:\\WINDOWS\\xgmes3.ini");
  67. commSubmit("UIB020110-service" , "success" , "glueAction.do");
  68. model.copyNode("/root/initProc" , "/root/resData/LotProcCD_VO");
  69. model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
  70. model.refresh();
  71. colouration();
  72. }
  73. function find()
  74. {
  75. queryData();
  76. if(combo1.value=="H")
  77. {
  78. commSubmit("UIB020110-service" , "find1" , "glueAction.do");
  79. }
  80. else if(combo1.value == "L")
  81. {
  82. commSubmit("UIB020110-service" , "findSUAN" , "glueAction.do");
  83. }
  84. model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
  85. model.refresh();
  86. colouration();
  87. exceptionReport();
  88. }
  89. function queryData()//入库保存后也需要用到该部分
  90. {
  91. model.removenode("/root/reqData");
  92. model.makeNode("/root/reqData");
  93. document.writeIniFile("session1" , "UIB020110_1" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  94. document.writeIniFile("session1" , "UIB020110_2" , input4.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  95. document.writeIniFile("session1" , "UIB020110_3" , combo1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  96. //
  97. // model.makeValue("/root/reqData/SMP" , combo3.value.Trim());//获得试样号
  98. // model.makeValue("/root/reqData/SEQ" , combo1.value.Trim());//序号
  99. model.makeValue("/root/reqData/SMP_PROG_CD" , combo2.value);//获得进程代码
  100. // model.makeValue("/root/reqData/STARTTIME" , input2.value.Trim()+"0000");//开始时间
  101. // model.makeValue("/root/reqData/ENDTIME" , input3.value.Trim()+"9999");//结束时间
  102. model.makeValue("/root/reqData/ROLLNO_1" , input1.value.Trim());//钢卷号
  103. if(input4.value.Trim()=="")
  104. {
  105. model.makeValue("/root/reqData/ROLLNO_2" , input1.value.Trim());//钢卷号
  106. }
  107. else
  108. {
  109. model.makeValue("/root/reqData/ROLLNO_2" , input4.value.Trim());//钢卷号
  110. }
  111. }
  112. function save()
  113. {
  114. //被选择行的样片号进入检验待机状态
  115. queryData();
  116. var count = 0;
  117. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  118. {
  119. if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK")) == "Y")
  120. {
  121. datagrid1.addStatus(i , "update");
  122. count++;
  123. }
  124. }
  125. commMultiUpdate(datagrid1 , "/root/reqData" , "U" , true , "rowStatus");
  126. getLoggingInInfo();
  127. commSubmit("UIB020110-service" , "change" , "glueAction.do");
  128. model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
  129. model.refresh();
  130. datagrid1.clearStatus();
  131. colouration();
  132. exceptionReport();
  133. }
  134. function colouration()//染色
  135. {
  136. //复样的在采集待机状态也可入库
  137. var progcd = datagrid1.colRef("SMP_PROG_CD");//试样进程代码所在的列
  138. var overTp = datagrid1.colRef("OVER_SMP_TP");//复样
  139. for(var i = 2; i < datagrid1.rows; i++)
  140. {
  141. if(datagrid1.valueMatrix(i , progcd)=="B")
  142. {
  143. datagrid1.valueMatrix(i , overTp)="Y";
  144. }
  145. //可以入库的变为红色
  146. if(datagrid1.valueMatrix(i , overTp)=="Y")
  147. {
  148. datagrid1.rowstyle(i, "data", "color") = "#ff0000";
  149. }
  150. else
  151. {
  152. datagrid1.rowstyle(i, "data", "color") = "#000000";
  153. }
  154. }
  155. }
  156. ]]>
  157. </script>
  158. </xhtml:head>
  159. <xhtml:body pagewidth="980" pageheight="620">
  160. <datagrid id="datagrid1" nodeset="/root/datagrid1/LotActualityResult_Row" caption="选择^交货状态^生产流水号^钢卷号^试样号^位置^试样进程代码^是否为复样^标准号^标准钢号^厚度^试样进程日期^试样进程日期^试样进程日期^试样进程日期^试样进程日期^试样进程日期^送样人^入库人^可否被选择入库|选择^交货状态^生产流水号^钢卷号^试样号^位置^试样进程代码^是否为复样^标准号^标准钢号^厚度^指示^采集^送样^入库^检验^判定^送样人^入库人^hidden" colsep="^" colwidth="37, 37, 59, 100, 35, 37, 85, 40, 100, 100, 40, 75, 75, 100, 75, 75, 60, 100, 100, 56" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:0px; top:35px; width:970px; height:580px; ">
  161. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  162. <col editable="false" ref="PRDNM_CD" type="input" style="background-color:#ffffff; "/>
  163. <col editable="false" ref="COIL_NO" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  164. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
  165. <col editable="false" ref="SMP_NO" type="input" style="background-color:#ffffff; "/>
  166. <col editable="false" ref="SMP_CUT_LOC" visibility="hidden" style="background-color:#ffffff; "/>
  167. <col disabled="true" ref="SMP_PROG_CD" type="combo">
  168. <choices>
  169. <itemset nodeset="/root/initProc/LotProcCD_Row">
  170. <label ref="LABEL"/>
  171. <value ref="VALUE"/>
  172. </itemset>
  173. </choices>
  174. </col>
  175. <col editable="false" ref="FUYANG" style="background-color:#ffffff; "/>
  176. <col editable="false" ref="SPEC_ABBSYM" type="input" visibility="visible" style="text-align:left; background-color:#ffffff; "/>
  177. <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
  178. <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
  179. <col editable="false" ref="SMP_DIR_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  180. <col editable="false" ref="SMP_GET_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  181. <col ref="SMP_SEND_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  182. <col editable="false" ref="SMP_INTO_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  183. <col editable="false" ref="SMP_WORK_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  184. <col editable="false" ref="QLTY_DCS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  185. <col ref="SMP_SEND_ID"/>
  186. <col ref="MOD_ID"/>
  187. <col editable="false" ref="OVER_SMP_TP" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  188. <script type="javascript" ev:event="xforms-value-changed">
  189. <![CDATA[
  190. if(datagrid1.col==0 && datagrid1.row >1)
  191. {
  192. //获得试样状态,只有为入库待机状态,或复样的才允许选择
  193. if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("OVER_SMP_TP")) != "Y")
  194. {
  195. //若非入库待机状态的列被选择,则不允许选择
  196. datagrid1.valueMatrix(datagrid1.row , 0) = "N";
  197. }
  198. }
  199. model.refresh();
  200. ]]>
  201. </script>
  202. </datagrid>
  203. <caption id="caption2" class="cell" style="left:200px; top:5px; width:100px; height:20px; ">试样进程代码</caption>
  204. <select1 id="combo2" ref="/root/formData/serachinfo/ProcCD" appearance="minimal" style="left:300px; top:5px; width:100px; height:20px; ">
  205. <choices>
  206. <item>
  207. <label>----全部----</label>
  208. <value/>
  209. </item>
  210. <item>
  211. <label>样片采集待机</label>
  212. <value>A</value>
  213. </item>
  214. <item>
  215. <label>样片入库待机</label>
  216. <value>B</value>
  217. </item>
  218. <item>
  219. <label>样片检验待机</label>
  220. <value>C</value>
  221. </item>
  222. <item>
  223. <label>样片判定待机</label>
  224. <value>D</value>
  225. </item>
  226. <item>
  227. <label>样片判定完成</label>
  228. <value>E</value>
  229. </item>
  230. </choices>
  231. </select1>
  232. <line id="line2" style="x1:415px; y1:30px; x2:425px; y2:30px; border-color:#000000; "/>
  233. <line id="line3" style="x1:0px; y1:30px; x2:971px; y2:30px; "/>
  234. <line id="line4" style="x1:0px; y1:0px; x2:970px; y2:0px; "/>
  235. <line id="line5" style="x1:0px; y1:30px; x2:971px; y2:30px; "/>
  236. <caption id="caption5" class="cell" visibility="visible" style="left:420px; top:5px; width:100px; height:20px; ">轧批号</caption>
  237. <input id="input1" ref="/root/formData/serachinfo/ROLLNO_1" style="left:520px; top:5px; width:100px; height:20px; "/>
  238. <line id="line6" style="x1:620px; y1:15px; x2:630px; y2:15px; "/>
  239. <input id="input4" ref="/root/formData/serachinfo/ROLLNO_2" style="left:630px; top:5px; width:100px; height:20px; ">
  240. <script type="javascript" ev:event="onkeydown">
  241. <![CDATA[
  242. if(event.keyCode==13)
  243. {
  244. model.setFocus("");
  245. model.setFocus("input4");
  246. find();
  247. }
  248. ]]>
  249. </script>
  250. </input>
  251. <caption id="caption1" class="cell" style="left:5px; top:5px; width:75px; height:20px; ">产线</caption>
  252. <select1 id="combo1" ref="/root/formData/PRODLINE" appearance="minimal" style="left:80px; top:5px; width:100px; height:20px; ">
  253. <choices>
  254. <item>
  255. <label>热轧</label>
  256. <value>H</value>
  257. </item>
  258. <item>
  259. <label>连退</label>
  260. <value>L</value>
  261. </item>
  262. </choices>
  263. </select1>
  264. <button id="button1" visibility="hidden" style="left:815px; top:5px; width:100px; height:20px; ">
  265. <caption>FIND</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. find();
  269. ]]>
  270. </script>
  271. </button>
  272. </xhtml:body>
  273. </xhtml:html>