UIH051400.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  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[热轧作业>>钢卷库管理>>库存数据查询(UIH051400)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <COIL_NO/>
  13. <ORD_NO/>
  14. <ORD_FL/>
  15. <FROM_DATE/>
  16. <TO_DATE/>
  17. <CUR_LOAD_LOC/>
  18. <STL_GRD/>
  19. <COIL_WTH_MIN/>
  20. <COIL_THK_MIN/>
  21. <CUR_PROG_CD/>
  22. <COIL_THK_MAX/>
  23. <COIL_WTH_MAX/>
  24. <QK_YN/>
  25. <sql_ord_fl/>
  26. <ORD_DEVLMT_DATE/>
  27. <DLIV_TP/>
  28. <COIL_DEFECTIVE/>
  29. <SMP_SEND_DTIME/>
  30. <XSQY/>
  31. <RCVORD_CLF/>
  32. <PROD_LINE/>
  33. <PRODNM_CD/>
  34. <DLIV_TP1/>
  35. <SPM_TYPE/>
  36. <ROLLFR/>
  37. <ROLLTO/>
  38. </formData>
  39. <sumData>
  40. <SUM_COILRST_CNT/>
  41. <SUM_COILRST_WGT/>
  42. </sumData>
  43. <reqData/>
  44. <resData/>
  45. <grid1/>
  46. <boolData>
  47. <qk_yn/>
  48. <ord_fl/>
  49. </boolData>
  50. </root>
  51. </instance>
  52. </model>
  53. <script type="javascript">
  54. <![CDATA[
  55. function Init(node) {
  56. InitParams(node);
  57. }
  58. //调用公共的初始化方法获得登录用户名
  59. function InitParams(node) {
  60. if (typeof node == "undefined" && typeof node != "object") return;
  61. model.removenode("/root/initData/rcvInfo");
  62. model.makeNode("/root/initData/rcvInfo");
  63. var nodeList = node.childNodes;
  64. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  65. for (var i = 0; i < nodeList.length; i++)
  66. node.appendChild(nodeList.item(i));
  67. }
  68. function excelExport() {
  69. return datagrid1;
  70. }
  71. function find()
  72. {
  73. datagrid1.rebuildStyle();
  74. datagrid1.clearStatus();
  75. commSendReq("/root/formData");
  76. commSubmit("UIH051100-service","find","glueAction.do");
  77. commAppendData("/root/grid1/UIH051100_RESULT_VO","/root/resData/UIH051100_RESULT_VO");
  78. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  79. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  80. model.refresh();
  81. var slabCnt = 0;
  82. var slabWgt = 0;
  83. for(var i = 1 ; i < datagrid1.rows-1 ; i++){
  84. datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
  85. slabCnt = slabCnt + 1;
  86. var slab_wgt = datagrid1.valueMatrix(i + 1,datagrid1.colRef("ACT_WGT"));
  87. if(slab_wgt == null || slab_wgt == ""){
  88. slab_wgt = "0";
  89. }
  90. slabWgt =slabWgt + parseFloat(slab_wgt);
  91. }
  92. model.setValue("/root/sumData/SUM_COILRST_CNT",slabCnt);
  93. model.setValue("/root/sumData/SUM_COILRST_WGT",slabWgt/1000);
  94. output1.refresh();output2.refresh();
  95. for(var i = 1 ; i < datagrid1.rows-1 ; i++){
  96. datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
  97. }
  98. //综合判定不合格的,给于红颜色的提示.待判
  99. var nodeSet1 = datagrid1.nodeset;
  100. for(var i=1;i<datagrid1.rows;i++){
  101. var TOT_DEC_GRD = model.getValue(nodeSet1+"["+i+"]/TOT_DEC_GRD");
  102. var qk_yn = model.getValue(nodeSet1+"["+i+"]/QK_YN");
  103. if(TOT_DEC_GRD == "不合格"){
  104. //红色
  105. datagrid1.rowstyle(i+1, "data", "background-color") = "#ff0000";
  106. }
  107. if(qk_yn == "清库卷"){
  108. datagrid1.rowstyle(i+1, "data", "background-color") = "#FFFF00";
  109. }
  110. }
  111. }
  112. function savebj(){
  113. model.removenode("/root/reqData");
  114. model.makeNode("/root/reqData");
  115. for(var i=0;i<datagrid1.rows;i++){
  116. datagrid1.rowStatus(i) = 2;
  117. }
  118. model.refresh();
  119. b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
  120. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  121. commSubmit("UIH051400-service","savebj","glueAction.do");
  122. datagrid1.clearStatus();
  123. find();
  124. }
  125. function save2(){
  126. model.removenode("/root/reqData");
  127. model.makeNode("/root/reqData");
  128. for(var i=0;i<datagrid1.rows;i++){
  129. datagrid1.rowStatus(i) = 2;
  130. }
  131. model.refresh();
  132. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  133. //这里加入登录用户名,会不会与已有的initData冲突
  134. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  135. commSubmit("UIH051400-service","cancle","glueAction.do");
  136. find();
  137. }
  138. function save(){
  139. model.removenode("/root/reqData");
  140. model.makeNode("/root/reqData");
  141. for(var i=0;i<datagrid1.rows;i++){
  142. datagrid1.rowStatus(i) = 2;
  143. }
  144. model.refresh();
  145. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  146. //这里加入登录用户名,会不会与已有的initData冲突
  147. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  148. commSubmit("UIH051400-service","save","glueAction.do");
  149. find();
  150. }
  151. ]]>
  152. </script>
  153. <script type="javascript" src="../js/boaCommon.js"/>
  154. <script type="javascript" src="../../js/boaCommon.js"/>
  155. <script type="javascript" src="../../js/b01.js"/>
  156. </xhtml:head>
  157. <xhtml:body guideline="1,1000;" style="font-weight:980; font-style:620; ">
  158. <input id="input7" ref="/root/formData/COIL_THK_MIN" style="left:385px; top:0px; width:30px; height:20px; "/>
  159. <input id="input8" ref="/root/formData/COIL_THK_MAX" style="left:430px; top:0px; width:30px; height:20px; "/>
  160. <input id="input9" ref="/root/formData/COIL_WTH_MAX" style="left:575px; top:0px; width:45px; height:20px; "/>
  161. <caption id="caption1" class="cell" style="left:631px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">垛 位</caption>
  162. <caption id="caption10" class="cell" style="left:780px; top:50px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  163. <caption id="caption2" class="cell" style="left:0px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
  164. <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:239px; top:0px; width:91px; height:20px; text-align:left; ">
  165. <choices>
  166. <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
  167. <label ref="FAC_STL_GRD"/>
  168. <value ref="FAC_CODE"/>
  169. </itemset>
  170. </choices>
  171. </select1>
  172. <caption id="caption11" style="left:745px; top:50px; width:20px; height:20px; font-weight:bold; ">卷</caption>
  173. <select1 id="combo2" ref="/root/formData/CUR_PROG_CD" appearance="minimal" editmode="inputsearch" style="left:677px; top:25px; width:113px; height:20px; text-align:left; ">
  174. <choices>
  175. <item>
  176. <label>发货指示待机</label>
  177. <value>SFA</value>
  178. </item>
  179. <item>
  180. <label>综合判定待机</label>
  181. <value>SED</value>
  182. </item>
  183. <item>
  184. <label>充当待机</label>
  185. <value>SRC</value>
  186. </item>
  187. <item>
  188. <label/>
  189. <value/>
  190. </item>
  191. </choices>
  192. </select1>
  193. <caption id="caption3" class="cell" style="left:167px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
  194. <caption id="caption12" style="left:920px; top:50px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  195. <caption id="caption4" class="cell" style="left:465px; top:0px; width:50px; height:20px; font-weight:bold; border-color:#000000; ">宽 度</caption>
  196. <caption id="caption13" class="cell" style="left:335px; top:25px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
  197. <line id="line1" style="x1:415px; y1:10px; x2:430px; y2:10px; "/>
  198. <caption id="caption5" class="cell" style="left:336px; top:0px; width:49px; height:20px; font-weight:bold; border-color:#000000; ">厚 度</caption>
  199. <caption id="caption6" class="cell" style="left:605px; top:25px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">进程状态</caption>
  200. <input id="input1" ref="/root/formData/COIL_NO" style="left:71px; top:0px; width:90px; height:20px; "/>
  201. <select1 id="combo5" ref="/root/formData/ORD_FL" appearance="minimal" editmode="inputsearch" style="left:240px; top:25px; width:90px; height:20px; 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/>
  217. <value/>
  218. </item>
  219. </choices>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. var sqlStr = "";
  223. if(model.getValue("/root/formData/ORD_FL") == "1"){
  224. sqlStr = "AND (A.ORD_FL = '1' AND (A.QK_YN IS NULL OR A.QK_YN <> 'Y'))".toString();
  225. }else if(model.getValue("/root/formData/ORD_FL") == "2"){
  226. sqlStr = " AND (A.ORD_FL = '2' AND (A.QK_YN IS NULL OR A.QK_YN <> 'Y'))".toString();
  227. }else if(model.getValue("/root/formData/ORD_FL") == "3"){
  228. sqlStr = " AND (A.QK_YN = 'Y')".toString();
  229. }
  230. model.setValue("/root/formData/sql_ord_fl",sqlStr);
  231. ]]>
  232. </script>
  233. </select1>
  234. <input id="input2" ref="/root/formData/CUR_LOAD_LOC" style="left:702px; top:0px; width:83px; height:20px; "/>
  235. <caption id="caption7" class="cell" style="left:-1px; top:25px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">合 同 号</caption>
  236. <input id="input3" ref="/root/formData/ORD_NO" style="left:70px; top:25px; width:90px; height:20px; "/>
  237. <caption id="caption8" class="cell" style="left:168px; top:25px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">订单区分</caption>
  238. <line id="line5" style="x1:560px; y1:10px; x2:575px; y2:10px; "/>
  239. <input id="input4" ref="/root/formData/COIL_WTH_MIN" style="left:515px; top:0px; width:45px; height:20px; "/>
  240. <caption id="caption9" class="cell" style="left:625px; top:50px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  241. <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:685px; top:50px; width:60px; height:20px; text-align:center; "/>
  242. <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:840px; top:50px; width:75px; height:20px; text-align:center; "/>
  243. <input id="input5" ref="/root/formData/FROM_DATE" class="input" inputtype="date" style="left:421px; top:25px; width:85px; height:20px; ">
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. if(model.getValue("/root/formData/TO_DATE") == null || model.getValue("/root/formData/TO_DATE") == ""||
  247. model.getValue("/root/formData/TO_DATE") < model.getValue("/root/formData/FROM_DATE")){
  248. model.setValue("/root/formData/TO_DATE",model.getValue("/root/formData/FROM_DATE"));
  249. input6.refresh();
  250. }
  251. ]]>
  252. </script>
  253. </input>
  254. <input id="input6" ref="/root/formData/TO_DATE" class="input" inputtype="date" style="left:510px; top:25px; width:85px; height:20px; ">
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. if(model.getValue("/root/formData/FROM_DATE") == null || model.getValue("/root/formData/FROM_DATE") == ""||
  258. model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/TO_DATE")){
  259. model.setValue("/root/formData/FROM_DATE",model.getValue("/root/formData/TO_DATE"));
  260. input5.refresh();
  261. }
  262. ]]>
  263. </script>
  264. </input>
  265. <datagrid id="datagrid1" nodeset="/root/grid1/UIH051100_RESULT_VO/UIH051100_RESULT_Row" caption="序号^选择^钢卷号^系列^产品等级^钢种^改判前钢种^成品厚度^成品宽度^订单厚度^订单宽度^判定厚度^判定宽度^重量^堆放位置^入库时间^入库操作时间^入库人^入库班次^入库组^二级库存^订单区分^合同号^订单号^综合判定^成份判定^材质判定^尺寸判定^外观判定^判定时间^次品区分^清库前性能^清库前外观^^冶炼炉号^收货单位^发货方式^异常卷备注^钢卷说明^备注^降二级库操作人^降二级操作时间|序号^选择^钢卷号^系列^产品等级^钢种^改判前钢种^成品厚度^成品宽度^订单厚度^订单宽度^判定厚度^判定宽度^重量^堆放位置^入库时间^入库操作时间^入库人^入库班次^入库组^二级库存^订单区分^合同号^订单号^综合判定^成份判定^材质判定^尺寸判定^外观判定^判定时间^次品区分^清库前性能^清库前外观^^冶炼炉号^收货单位^发货方式^异常卷备注^钢卷说明^备注^降二级库操作人^降二级操作时间" colsep="^" colwidth="38, 40, 100, 100, 100, 100, 100, 40, 40, 40, 40, 40, 40, 50, 60, 100, 100, 100, 100, 100, 100, 35, 70, 50, 40, 40, 40, 40, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 294" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:950px; height:505px; ">
  266. <col ref="SEQ"/>
  267. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  268. <col editable="false" ref="OLD_SAMPL_NO" type="input"/>
  269. <col editable="true" ref="COIL_SERIES" type="input"/>
  270. <col editable="true" ref="COIL_PROD_GRADE" type="input"/>
  271. <col editable="false" ref="SPEC_STL_GRD" type="input"/>
  272. <col ref="BEF_SPEC_STL_GRD"/>
  273. <col editable="false" ref="COIL_THK" type="input"/>
  274. <col editable="false" ref="COIL_WTH" type="input"/>
  275. <col editable="false" ref="INSTR_COIL_THK" type="input"/>
  276. <col editable="false" ref="INSTR_COIL_WTH" type="input"/>
  277. <col ref="DCS_THK"/>
  278. <col ref="DCS_WTH"/>
  279. <col editable="false" ref="ACT_WGT" type="input"/>
  280. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  281. <col editable="false" ref="YARD_ENTRY_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
  282. <col editable="false" ref="YARD_ENTRY_USE_TIME" type="input" format="yyyy-mm-dd hh:nn"/>
  283. <col explorerbar="sortshow" ref="YARD_ENTRY_REG"/>
  284. <col disabled="true" ref="YARD_ENTRY_SHIFT" type="combo">
  285. <choices>
  286. <item>
  287. <label>早班</label>
  288. <value>1</value>
  289. </item>
  290. <item>
  291. <label>中班</label>
  292. <value>2</value>
  293. </item>
  294. <item>
  295. <label>晚班</label>
  296. <value>3</value>
  297. </item>
  298. </choices>
  299. </col>
  300. <col disabled="true" ref="YARD_ENTRY_GROUP" type="combo">
  301. <choices>
  302. <item>
  303. <label>甲班</label>
  304. <value>A</value>
  305. </item>
  306. <item>
  307. <label>乙班</label>
  308. <value>B</value>
  309. </item>
  310. <item>
  311. <label>丙班</label>
  312. <value>C</value>
  313. </item>
  314. <item>
  315. <label>丁班</label>
  316. <value>D</value>
  317. </item>
  318. </choices>
  319. </col>
  320. <col ref="QK_YN"/>
  321. <col disabled="true" ref="ORD_FL"/>
  322. <col editable="false" ref="ORD_NO" type="input"/>
  323. <col editable="false" ref="ORD_SEQ" type="input"/>
  324. <col ref="TOT_DEC_GRD"/>
  325. <col ref="INGR_DEC_GRD"/>
  326. <col ref="MATRL_END_CAUSE_CD"/>
  327. <col ref="SIZE_DEC_RST"/>
  328. <col ref="EXTSHAPE_DEC_GRD"/>
  329. <col editable="false" ref="TOT_DEC_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
  330. <col ref="COIL_DEFECTIVE"/>
  331. <col ref="BEF_MATRL_END_CAUSE_CD"/>
  332. <col ref="BEF_EXTSHAPE_DEC_GRD"/>
  333. <col ref="COIL_DEFECTIVE_DESC" visibility="hidden"/>
  334. <col ref="CHARGE_NO"/>
  335. <col ref="ORDCUST_CD"/>
  336. <col ref="DLIV_TP"/>
  337. <col editable="true" ref="COIL_UN_REMARK" type="input"/>
  338. <col editable="true" ref="COIL_DESC" type="input"/>
  339. <col editable="true" ref="COIL_REMARK" type="input"/>
  340. <col editable="true" ref="QK_REG_ID" type="input"/>
  341. <col editable="true" ref="QK_REG_DTIME" type="input"/>
  342. <script type="javascript" ev:event="xforms-select">
  343. <![CDATA[
  344. if(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_FL")) == "订单材"){
  345. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) = "N";
  346. datagrid1.refresh();
  347. alert("订单材,不能作为清库卷! ");
  348. }else{
  349. //这里当一级库存的量不足6000吨的时候,给出提示。并不控制不让指定为清库
  350. //这里必须在选择的时候给出判断
  351. var nodeSet1 = datagrid1.nodeset;
  352. var sum_act_wgt = 0;
  353. var sum_qk_wgt = 0;
  354. var sum_act_qk_wgt = 0;
  355. for(var i=1;i<datagrid1.rows;i++){
  356. var COIL_DEFECTIVE_DESC = model.getValue(nodeSet1+"["+i+"]/COIL_DEFECTIVE_DESC");
  357. var QK_YN = model.getValue(nodeSet1+"["+i+"]/QK_YN");
  358. if(COIL_DEFECTIVE_DESC == "1A"){
  359. var ACT_WGT = model.getValue(nodeSet1+"["+i+"]/ACT_WGT");
  360. sum_act_wgt = Number(sum_act_wgt) + Number(ACT_WGT);
  361. if(QK_YN == "清库卷"){
  362. //在订单外合格里面有清库标志的才是二级库存。其它的可能是废次品走的清库
  363. sum_act_qk_wgt = Number(sum_act_qk_wgt) + Number(ACT_WGT);
  364. }
  365. }
  366. // if(QK_YN == "清库卷"){
  367. // var ACT_WGT = model.getValue(nodeSet1+"["+i+"]/ACT_WGT");
  368. // sum_qk_wgt = Number(sum_qk_wgt) + Number(ACT_WGT);
  369. // }
  370. }
  371. //重量的单位为千克,如果订单外合格的量小于6000吨。不能进行二级库存指定
  372. if(sum_act_wgt < 6000000){
  373. //如果选中了钢卷,则判断此时的库存量是多少。并且给出相应的提示
  374. var isUse_ACT = commComfirmBox("一级库存量为:"+sum_act_wgt/1000+"吨,不足6000吨。是否确定指定二级库存","提示");
  375. if(isUse_ACT == "0"){
  376. //取消清库标志
  377. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) = "N";
  378. datagrid1.refresh();
  379. return;
  380. }
  381. }
  382. //重量的单位为千克,如果二级库存的量大于2000吨。给出提示,及时发运
  383. if(sum_act_qk_wgt > 3000000){
  384. var isUse_QK = commComfirmBox("二级库存量为:"+sum_act_qk_wgt/1000+"吨,超过3000吨。是否确定指定二级库存","提示");
  385. if(isUse_QK == "0"){
  386. //取消清库标志
  387. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) = "N";
  388. datagrid1.refresh();
  389. return;
  390. }
  391. }
  392. //这里没有余才判定的卷,也不能进行清库制定。并且给出相应的提示
  393. if(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("COIL_DEFECTIVE")) == ""){
  394. var isUse_DEFECTIVE = commComfirmBox("没有进行余材判定,是否确定指定二级库存","提示");
  395. if(isUse_DEFECTIVE == "0"){
  396. //取消清库标志
  397. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) = "N";
  398. datagrid1.refresh();
  399. return;
  400. }
  401. }
  402. }
  403. ]]>
  404. </script>
  405. </datagrid>
  406. <button id="button1" class="cell" style="left:520px; top:55px; width:75px; height:20px; background-color:#ffffff; background-image:F:\1\xgmes3\WebContents\images\btn_exit.gif; ">
  407. <caption>撤销</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. save2();
  411. ]]>
  412. </script>
  413. </button>
  414. <select1 id="combo6" ref="/root/formData/COIL_DEFECTIVE" appearance="minimal" style="left:855px; top:0px; width:80px; height:20px; ">
  415. <choices>
  416. <item>
  417. <label>成分不合格</label>
  418. <value>2A</value>
  419. </item>
  420. <item>
  421. <label>工序不合格</label>
  422. <value>2E</value>
  423. </item>
  424. <item>
  425. <label>尺寸不合格</label>
  426. <value>3B</value>
  427. </item>
  428. <item>
  429. <label>重量不合格</label>
  430. <value>3C</value>
  431. </item>
  432. <item>
  433. <label>外观不合格</label>
  434. <value>3D</value>
  435. </item>
  436. <item>
  437. <label>性能不合格</label>
  438. <value>4A</value>
  439. </item>
  440. <item>
  441. <label>--全部--</label>
  442. <value/>
  443. </item>
  444. </choices>
  445. </select1>
  446. <caption id="caption18" class="cell" style="left:795px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">次品区分</caption>
  447. <input id="input11" ref="/root/formData/SMP_SEND_DTIME" class="input" inputtype="date" style="left:70px; top:50px; width:90px; height:20px; "/>
  448. <caption id="caption16" class="cell" style="left:0px; top:50px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">送样时间</caption>
  449. <button id="button3" visibility="hidden" style="left:855px; top:25px; width:100px; height:20px; ">
  450. <caption>查询</caption>
  451. <script type="javascript" ev:event="onclick">
  452. <![CDATA[
  453. find();
  454. ]]>
  455. </script>
  456. </button>
  457. <button id="button4" visibility="hidden" style="left:900px; top:50px; width:100px; height:20px; ">
  458. <caption>保存</caption>
  459. <script type="javascript" ev:event="onclick">
  460. <![CDATA[
  461. //alert(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")));
  462. save();
  463. ]]>
  464. </script>
  465. </button>
  466. <button id="button5" class="cell" style="left:440px; top:55px; width:75px; height:20px; background-color:#ffffff; background-image:F:\1\xgmes3\WebContents\images\save.gif; ">
  467. <caption>编辑</caption>
  468. <script type="javascript" ev:event="onclick">
  469. <![CDATA[
  470. savebj();
  471. ]]>
  472. </script>
  473. </button>
  474. <input id="input20" ref="/root/formData/ROLLTO" style="left:340px; top:50px; width:80px; height:20px; "/>
  475. <caption id="caption23" class="cell" style="left:165px; top:50px; width:95px; height:20px; font-weight:bold; border-color:#000000; ">轧制单元</caption>
  476. <input id="input19" ref="/root/formData/ROLLFR" style="left:260px; top:50px; width:80px; height:20px; "/>
  477. </xhtml:body>
  478. </xhtml:html>