UID010031.xrw 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056
  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>Untitle</xhtml:title>
  6. <model id="model1" autocdata="false">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <initData>
  10. <searchInfo>
  11. <LG_CD>A01001,A01004,D01002</LG_CD>
  12. </searchInfo>
  13. </initData>
  14. <formData>
  15. <DSN_PROC_STAT>%</DSN_PROC_STAT>
  16. <ORD_NO/>
  17. <ORD_SEQ/>
  18. <ADDED_COIL_WTH/>
  19. <SLAB_LEN>11000</SLAB_LEN>
  20. <DSN_PROC_YN/>
  21. <MAX_DSN_SLAB_NO/>
  22. <FacStlGrd/>
  23. <ORDER_REG_FR/>
  24. <ORDER_REG_TO/>
  25. <COIL_WTH_CONTIUNE_FR/>
  26. <COIL_WTH_CONTIUNE_TO/>
  27. <DLIV_TP_CO/>
  28. <RCVORD_CLF/>
  29. <ORD_PLAN_DATA_MIN/>
  30. <ORD_PLAN_DATA_MAX/>
  31. <PRODNM_CD_C/>
  32. <PROD_LINE_CON/>
  33. <SLAB_THK>230</SLAB_THK>
  34. <ORD_PRC_LOCK>S</ORD_PRC_LOCK>
  35. </formData>
  36. <gridData1/>
  37. <gridData2/>
  38. <resData/>
  39. <reqData/>
  40. <sumData>
  41. <SUM_ORD_WGT/>
  42. <SUM_NEED_WGT/>
  43. <SUM_COIL_CNT/>
  44. <SUM_TOT_SLAB_WGT/>
  45. <SUM_SLABRST_CNT/>
  46. <SUM_SLABRST_WGT/>
  47. <SUM_COILRST_WGT/>
  48. </sumData>
  49. <fwdData>
  50. <UID010031>
  51. <URL/>
  52. <ORD_NO/>
  53. <ORD_SEQ/>
  54. </UID010031>
  55. </fwdData>
  56. <codeData/>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. if (window.parent == null) Init();
  62. ]]>
  63. </script>
  64. </model>
  65. <script type="javascript" src="../../js/boaCommon.js"/>
  66. <script type="javascript" src="../../js/boaMsg.js"/>
  67. <script type="javascript" src="../../js/mesCommon.js"/>
  68. <script type="javascript">
  69. <![CDATA[
  70. //1、获取用户登录信息,只能在页面初始化函数中调用
  71. submitID = "UID010031-service";
  72. function Init(node) {
  73. InitParams(node);
  74. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO")
  75. // model.setValue("/root/formData/ORD_PLAN_DATA_MIN", commFirstDay());
  76. // model.setValue("/root/formData/ORD_PLAN_DATA_MAX", commCurDate());
  77. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  78. model.refresh();
  79. }
  80. //3、页面标题
  81. function setTitle()
  82. {
  83. return "工序计划 >> 板坯设计 >> 板坯设计"; // 如:return "进程管理 >> 订单进程现况查询";
  84. }
  85. function lpad(str, len, fill)
  86. {
  87. if (fill == null) fill = " ";
  88. str = str + "";
  89. while( str.length < len )
  90. {
  91. str = fill + str;
  92. }
  93. return str;
  94. }
  95. function calculateSummary()
  96. {
  97. model.setXPathValue("/root/sumData/SUM_ORD_WGT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/ORD_WGT )");
  98. model.setXPathValue("/root/sumData/SUM_NEED_WGT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/NEED_WGT )");
  99. model.setXPathValue("/root/sumData/SUM_COIL_CNT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/COIL_CNT )");
  100. model.setXPathValue("/root/sumData/SUM_TOT_SLAB_WGT","sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/TOT_SLAB_WGT)");
  101. model.setXPathValue("/root/sumData/SUM_SLABRST_CNT","count(/root/gridData2/ListResult_2_VO/ListResult_2_Row)");
  102. model.setXPathValue("/root/sumData/SUM_SLABRST_WGT","sum(/root/gridData2/ListResult_2_VO/ListResult_2_Row/SLAB_WGT2)");
  103. model.setXPathValue("/root/sumData/SUM_COILRST_WGT","sum(/root/gridData2/ListResult_2_VO/ListResult_2_Row/COIL_WGT2)");
  104. }
  105. function refreshColor()
  106. {
  107. var count = model.getXPathValue("count(/root/gridData2/ListResult_2_VO/ListResult_2_Row)");
  108. for(var j = 2;j<dg1.rows;j++)
  109. {
  110. var rowSty = "#ffffff";
  111. var ORD_NO = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/ORD_NO");
  112. var ORD_SEQ = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/ORD_SEQ");
  113. var status = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/DSN_PROC_STAT");
  114. //alert(count);
  115. for(var i = 1; i <= count; i++)
  116. {
  117. var ORD_NO2 = model.getValue("/root/gridData2/ListResult_2_VO/ListResult_2_Row["+ i +"]/ORD_NO2");
  118. var ORD_SEQ2 = model.getValue("/root/gridData2/ListResult_2_VO/ListResult_2_Row["+ i +"]/ORD_SEQ2");
  119. if(ORD_NO == ORD_NO2 && ORD_SEQ == ORD_SEQ2 && status == '1')
  120. {
  121. rowSty = "#ffccff";
  122. model.setValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/CHK_FG1","1");
  123. dg1.addStatus(j,"update");
  124. //alert(rowSty);
  125. break;
  126. }
  127. else
  128. {
  129. rowSty = "#ffffff";
  130. //alert(rowSty);
  131. }
  132. }
  133. dg1.rowstyle(j, "data", "background-color") = rowSty;
  134. }
  135. dg1.colStyle(11,"data", "background-color") = "#ffff99";
  136. dg1.colStyle(24,"data", "background-color") = "#ffff99";
  137. dg1.colStyle(29,"data", "background-color") = "#ffff99";
  138. }
  139. function find()
  140. {
  141. /*if(model.getValue("/root/formData/ADDED_COIL_WTH") == "")
  142. {
  143. window.alert("请输入板坯宽度","提示信息");
  144. model.setFocus("input7");
  145. return;
  146. }*/
  147. model.removeNodeset(dg1.nodeset);
  148. model.removeNodeset(dg2.nodeset);
  149. model.refresh();
  150. model.removenode("/root/reqData");
  151. model.makeNode("/root/reqData");
  152. model.makeValue("/root/reqData/SlabThk" , model.getValue("/root/formData/SLAB_THK" ));
  153. model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
  154. model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
  155. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  156. model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
  157. model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
  158. model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
  159. model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
  160. model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
  161. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
  162. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
  163. model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
  164. model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
  165. model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
  166. model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
  167. if(model.getValue("/root/formData/PRODNM_CD_C")=="")
  168. {
  169. model.makeValue("/root/reqData/PRODNM_CD_C" , "AR,CR,FJ,HK,HW,KP,LT,PZ,PZFJ,SX,TM");
  170. }
  171. else
  172. {
  173. model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  174. }
  175. //model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  176. model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
  177. model.makeValue("/root/reqData/ORD_PRC_LOCK" , model.getValue("/root/formData/ORD_PRC_LOCK"));
  178. //alert(instance1.selectSingleNode("/root/reqData").xml);
  179. commSubmit("UID010031-service" ,"find" ,"glueAction.do" );
  180. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  181. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  182. model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
  183. calculateSummary();
  184. model.refresh();
  185. refreshColor();
  186. }
  187. function save()
  188. {
  189. model.removenode("/root/reqData");
  190. model.makeNode("/root/reqData");
  191. model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
  192. model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
  193. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  194. model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
  195. model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
  196. model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
  197. model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
  198. model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
  199. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
  200. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
  201. model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
  202. model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
  203. model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
  204. model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
  205. model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  206. model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
  207. commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
  208. //alertXML();
  209. commSubmit("UID010031-service" ,"save" ,"glueAction.do" );
  210. commMultiUpdate(dg2,"/root/reqData","A",true,"rowStatus2");
  211. //alertXML();
  212. commSubmit("UID010031-service" ,"save" ,"glueAction.do" );
  213. dg1.clearStatus();
  214. dg2.clearStatus();
  215. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  216. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  217. model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
  218. calculateSummary();
  219. model.refresh();
  220. refreshColor();
  221. find();
  222. }
  223. function chkWgt()
  224. {
  225. //var sum = model.getXPathValue("count(/root/gridData1/ListResult_1_VO/ListResult_1_Row)");
  226. var rowSty = "#ffffff";
  227. var falg = 0;
  228. for(var j = 2;j<dg1.rows;j++)
  229. {
  230. var chk = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/CHK_FG1");
  231. if(chk == 1)
  232. {
  233. var sumSlabWgt = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/SLAB_WGT");
  234. var sumProcRate = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROC_RATE");
  235. var sumProdWgtMin = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROD_WGT_MIN");
  236. var sumProdWgtMax = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROD_WGT_MAX");
  237. var sumSlabWth = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/SLAB_WTH");
  238. var sumCoilWth = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/COIL_WTH");
  239. var prodLine = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROD_LINE");
  240. //alert(sumSlabWgt + "sumSlabWgt" + sumProcRate + "sumProcRate" + sumProdWgtMin + "sumProdWgtMin" + sumProdWgtMax + "sumProdWgtMax");
  241. if(((Number(sumSlabWgt)* (Number(sumProcRate)/100)<Number(sumProdWgtMin) || Number(sumSlabWgt)*(Number(sumProcRate)/100)>Number(sumProdWgtMax))))
  242. {
  243. //alert("asd");
  244. var rowSty = "#ff0000";//红色 代表重量不对
  245. falg++;
  246. }
  247. else if(((Number(sumSlabWth) < Number(sumCoilWth) || Number(sumSlabWth) > Number(sumCoilWth)+100)))
  248. {
  249. //alert("BBB");
  250. var rowSty = "#ff0000";//红色 代表宽度不对
  251. falg++;
  252. }
  253. else
  254. {
  255. //alert("CCC");
  256. var rowSty = "#ffffff";
  257. }
  258. dg1.rowstyle(j, "data", "background-color") = rowSty;
  259. }
  260. }
  261. dg1.colStyle(10,"data", "background-color") = "#ffff99";
  262. dg1.colStyle(23,"data", "background-color") = "#ffff99";
  263. dg1.colStyle(28,"data", "background-color") = "#ffff99";
  264. return falg;
  265. }
  266. function design()
  267. {
  268. if(model.getValue("/root/formData/ADDED_COIL_WTH") == "")
  269. {
  270. window.alert("请输入板坯宽度,重新点击查询按钮!","提示信息");
  271. model.setFocus("input7");
  272. return;
  273. }
  274. var chkFalg = chkWgt();
  275. if(chkFalg > 0)
  276. {
  277. window.alert("板坯重量或者宽度不符!请检查!(重量需在单重上下限之内,宽度需在钢卷宽度+100MM范围之内)","提示信息");
  278. return;
  279. }
  280. model.removenode("/root/reqData");
  281. model.makeNode("/root/reqData");
  282. model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
  283. model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
  284. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  285. model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
  286. model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
  287. model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
  288. model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
  289. model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
  290. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
  291. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
  292. model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
  293. model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
  294. model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
  295. model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
  296. model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  297. model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
  298. //alert("dddd");
  299. commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
  300. //alertXML();
  301. commSubmit("UID010031-service" ,"design" ,"glueAction.do" );
  302. //alert("eee");
  303. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  304. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  305. model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
  306. //alert("ffff");
  307. calculateSummary();
  308. model.refresh();
  309. refreshColor();
  310. find();
  311. }
  312. function findRst()
  313. {
  314. //???
  315. model.removeNodeset(dg2.nodeset);
  316. //alert(dg2.nodeset);
  317. model.refresh();
  318. model.removenode("/root/reqData");
  319. model.makeNode("/root/reqData");
  320. //[1] DSN_PROC_YN :'N' (Default:'N' ) : DsnProcYN
  321. //[2] DSN_PROC_STAT :'N' (Default:'N' ) : DsnProcStat
  322. model.makeValue("/root/reqData/DsnProcYN" , model.getValue("/root/formData/DSN_PROC_YN" ));
  323. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  324. //alert(instance1.selectSingleNode("/root/reqData").xml);
  325. commSubmit("UID010031-service" ,"findRst" ,"glueAction.do" );
  326. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  327. //model.removenode("/root/reqData");
  328. //model.removenode("/root/resData");
  329. model.refresh();
  330. }
  331. function comfirm()
  332. {
  333. model.removenode("/root/reqData");
  334. model.makeNode("/root/reqData");
  335. model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
  336. model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
  337. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  338. model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
  339. model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
  340. model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
  341. model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
  342. model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
  343. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
  344. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
  345. model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
  346. model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
  347. model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
  348. model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
  349. model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  350. model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
  351. commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
  352. //alertXML();
  353. commSubmit("UID010031-service" ,"finish" ,"glueAction.do" );
  354. commMultiUpdate(dg2,"/root/reqData","A",true,"rowStatus2");
  355. //alertXML();
  356. commSubmit("UID010031-service" ,"finish" ,"glueAction.do" );
  357. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  358. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  359. model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
  360. calculateSummary();
  361. model.refresh();
  362. refreshColor();
  363. find();
  364. }
  365. function confirm_unused()
  366. {
  367. model.removenode("/root/reqData");
  368. model.makeNode("/root/reqData");
  369. model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
  370. model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
  371. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  372. model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
  373. model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
  374. model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
  375. model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
  376. model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
  377. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
  378. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
  379. model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
  380. model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
  381. model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
  382. model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
  383. model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  384. model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
  385. commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
  386. commSubmit("UID010031-service" ,"confirm" ,"glueAction.do" );
  387. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  388. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  389. model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
  390. calculateSummary();
  391. model.refresh();
  392. refreshColor();
  393. }
  394. function remove()
  395. {
  396. model.removenode("/root/reqData");
  397. model.makeNode("/root/reqData");
  398. model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
  399. model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
  400. model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
  401. model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
  402. model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
  403. model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
  404. model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
  405. model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
  406. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
  407. model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
  408. model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
  409. model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
  410. model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
  411. model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
  412. model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
  413. model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
  414. commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
  415. commSubmit("UID010031-service" ,"delete" ,"glueAction.do" );
  416. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  417. commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  418. model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
  419. calculateSummary();
  420. model.refresh();
  421. refreshColor();
  422. }
  423. function excelExport() {
  424. return dg1;
  425. }
  426. ]]>
  427. </script>
  428. </xhtml:head>
  429. <xhtml:body guideline="1,980;2,619;2,285;1,871;" style="font-family:SimSun; ">
  430. <caption id="caption1" class="cell" style="left:0px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">查询区分</caption>
  431. <datagrid id="dg1" nodeset="/root/gridData1/ListResult_1_VO/ListResult_1_Row" scroll="auto" caption="选择^合同号^订单号^状态^工序锁定^订单预排期^热轧交货期^交货期^订单类型^产线^标准牌号^厂内牌号^订单量^待设计量^产品重量^产品重量^冷卷^冷卷^热卷^热卷^板坯^板坯^板坯^板坯^板坯^设计重量^HCR^订单录入时间^通过工序^运输方式^订单备注^是否坑冷^客户特殊要求^销售区域^钢卷颜色备注^产品类型^COIL_LEN^COIL_WGT^COIL_CNT^FAC_STL_GRP^ORD_INDIA^ORD_OUTDIA^DSN_PROC_YN^DSN_ERR_DESC^SPEC_ABBSYM^SUM_ORD_WGT^SUM_NEED_WGT^SUM_SLAB_CNT^SUM_TOT_SLAB_WGT^SLAB_WGT_SMIN^SLAB_WGT_SMAX^SLAB_WGT_LMIN^SLAB_WGT_LMAX^GRAVITY^EMGMTR_YN^SCARFING_PROC_YN^GRIND_PROC_YN^EDGE_PROC_YN^SPM_PROC_YN^SHL_PROC_YN^SFC_PROC_YN^BTWSHT_INS_YN^EACHLOT_YN^COMB_YN^NEED_DSN_WGT_MIN^NEED_DSN_WGT_MAX|选择^合同号^订单号^状态^工序锁定^订单预排期^热轧交货期^交货期^订单类型^产线^标准牌号^厂内牌号^订单量^待设计量^下限^上限^厚度^宽度^厚度^宽度^厚度^宽度^长度^重量^块数^设计重量^HCR^订单录入时间^通过工序^运输方式^订单备注^是否坑冷^客户特殊要求^销售区域^钢卷颜色备注^产品类型^COIL_LEN^COIL_WGT^COIL_CNT^FAC_STL_GRP^ORD_INDIA^ORD_OUTDIA^DSN_PROC_YN^DSN_ERR_DESC^SPEC_ABBSYM^SUM_ORD_WGT^SUM_NEED_WGT^SUM_SLAB_CNT^SUM_TOT_SLAB_WGT^SLAB_WGT_SMIN^SLAB_WGT_SMAX^SLAB_WGT_LMIN^SLAB_WGT_LMAX^GRAVITY^EMGMTR_YN^SCARFING_PROC_YN^GRIND_PROC_YN^EDGE_PROC_YN^SPM_PROC_YN^SHL_PROC_YN^SFC_PROC_YN^BTWSHT_INS_YN^EACHLOT_YN^COMB_YN^NEED_DSN_WGT_MIN^NEED_DSN_WGT_MAX" colsep="^" colwidth="40, 77, 43, 38, 71, 71, 87, 65, 68, 60, 58, 65, 60, 67, 42, 42, 44, 43, 34, 36, 34, 37, 42, 42, 34, 60, 43, 100, 76, 87, 125, 61, 100, 100, 100, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 100, 100" explorerbar="sort" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:87px; width:980px; height:197px; ">
  432. <col checkvalue="1,0" ref="CHK_FG1" type="checkbox"/>
  433. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  434. <col editable="false" ref="ORD_SEQ" type="input" style="width:80; background-color:#ffffff; "/>
  435. <col disabled="true" editable="false" ref="DSN_PROC_STAT" type="combo">
  436. <choices>
  437. <item>
  438. <label>等待</label>
  439. <value>1</value>
  440. </item>
  441. <item>
  442. <label>完成</label>
  443. <value>2</value>
  444. </item>
  445. <item>
  446. <label>que定</label>
  447. <value>3</value>
  448. </item>
  449. </choices>
  450. </col>
  451. <col editable="false" ref="ORD_PRC_LOCK" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  452. <col editable="false" ref="ORD_PLAN_DATA" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  453. <col editable="false" ref="MILL_DUE_DATE" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  454. <col editable="false" ref="DEL_TO_DATE" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  455. <col editable="false" ref="RCVORD_TP" type="input" style="text-align:left; background-color:#ffffff; "/>
  456. <col editable="false" ref="PROD_LINE" type="input" style="text-align:left; background-color:#ffffff; "/>
  457. <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
  458. <col editable="false" ref="FAC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
  459. <col editable="false" ref="ORD_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  460. <col ref="NEED_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
  461. <col editable="false" ref="PROD_WGT_MIN" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  462. <col editable="false" ref="PROD_WGT_MAX" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  463. <col editable="false" ref="C_COIL_THK" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
  464. <col editable="false" ref="C_COIL_WTH" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
  465. <col editable="false" ref="COIL_THK" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
  466. <col editable="false" ref="COIL_WTH" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  467. <col editable="false" ref="SLAB_THK" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  468. <col editable="false" ref="SLAB_WTH" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  469. <col editable="false" ref="SLAB_LEN" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  470. <col editable="false" ref="SLAB_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  471. <col editable="false" ref="SLAB_CNT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  472. <col editable="false" ref="TOT_SLAB_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  473. <col disabled="false" editable="false" ref="HCR_CLF" type="combo" style="background-color:#ffff99; ">
  474. <choices>
  475. <item>
  476. <label>HCR</label>
  477. <value>H</value>
  478. </item>
  479. <item>
  480. <label>CCR</label>
  481. <value>C</value>
  482. </item>
  483. </choices>
  484. </col>
  485. <col editable="false" ref="ORD_REG_DTIME" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  486. <col editable="false" ref="PROC_PATH" type="input" style="text-align:left; background-color:#ffffff; "/>
  487. <col editable="false" ref="DLIV_TP" type="combo" style="text-align:left; background-color:#ffffff; ">
  488. <choices>
  489. <item>
  490. <label>公路(车辆)</label>
  491. <value>C</value>
  492. </item>
  493. <item>
  494. <label>铁路(火车)</label>
  495. <value>T</value>
  496. </item>
  497. </choices>
  498. </col>
  499. <col editable="false" ref="MK_CONTENT" type="input" style="text-align:left; background-color:#ffffff; "/>
  500. <col ref="KEEPWARM_YN" type="combo" style="background-color:#ffff99; ">
  501. <choices>
  502. <item>
  503. <label>是</label>
  504. <value>Y</value>
  505. </item>
  506. <item>
  507. <label>否</label>
  508. <value>N</value>
  509. </item>
  510. </choices>
  511. </col>
  512. <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  513. <script type="javascript" ev:event="onclick">
  514. <![CDATA[
  515. model.setValue("/root/fwdData/UID010031/ORD_NO", dg1.valueMatrix(dg1.row, dg1.colRef("ORD_NO")));
  516. model.setValue("/root/fwdData/UID010031/ORD_SEQ", dg1.valueMatrix(dg1.row, dg1.colRef("ORD_SEQ")));
  517. model.setValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  518. var java = window.parent.javaScript;
  519. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  520. ]]>
  521. </script>
  522. </col>
  523. <col editable="false" ref="XSQY" type="input" style="text-align:left; background-color:#ffffff; "/>
  524. <col editable="false" ref="MK_COIL" type="input" style="text-align:left; background-color:#ffffff; "/>
  525. <col editable="false" ref="PRODNM_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
  526. <col ref="COIL_LEN" visibility="hidden" format="#,###" style="text-align:right; "/>
  527. <col ref="COIL_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
  528. <col ref="COIL_CNT" visibility="hidden" format="#,###" style="text-align:right; "/>
  529. <col ref="FAC_STL_GRP" visibility="hidden"/>
  530. <col ref="ORD_INDIA" visibility="hidden"/>
  531. <col ref="ORD_OUTDIA" visibility="hidden" format="#,###" style="text-align:right; "/>
  532. <col ref="DSN_PROC_YN" visibility="hidden"/>
  533. <col ref="DSN_ERR_DESC" visibility="hidden"/>
  534. <col ref="SPEC_ABBSYM" visibility="hidden"/>
  535. <col ref="SUM_ORD_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
  536. <col ref="SUM_NEED_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
  537. <col ref="SUM_SLAB_CNT" visibility="hidden" format="#,###" style="text-align:right; "/>
  538. <col ref="SUM_TOT_SLAB_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
  539. <col ref="SLAB_WGT_SMIN" visibility="hidden" format="#,###" style="text-align:right; "/>
  540. <col ref="SLAB_WGT_SMAX" visibility="hidden" format="#,###" style="text-align:right; "/>
  541. <col ref="SLAB_WGT_LMIN" visibility="hidden" format="#,###" style="text-align:right; "/>
  542. <col ref="SLAB_WGT_LMAX" visibility="hidden" format="#,###" style="text-align:right; "/>
  543. <col ref="GRAVITY" visibility="hidden" format="#,###.0" style="text-align:right; "/>
  544. <col ref="EMGMTR_YN" visibility="hidden"/>
  545. <col ref="SCARFING_PROC_YN" visibility="hidden"/>
  546. <col ref="GRIND_PROC_YN" visibility="hidden"/>
  547. <col ref="EDGE_PROC_YN" visibility="hidden"/>
  548. <col ref="SPM_PROC_YN" visibility="hidden"/>
  549. <col ref="SHL_PROC_YN" visibility="hidden"/>
  550. <col ref="SFC_PROC_YN" visibility="hidden"/>
  551. <col ref="BTWSHT_INS_YN" visibility="hidden"/>
  552. <col ref="EACHLOT_YN" visibility="hidden"/>
  553. <col ref="COMB_YN" visibility="hidden"/>
  554. <col ref="NEED_DSN_WGT_MIN" visibility="hidden"/>
  555. <col ref="NEED_DSN_WGT_MAX" visibility="hidden"/>
  556. <col ref="PROC_RATE" visibility="visible" format="#,###.0" style="text-align:right; "/>
  557. <col ref="SEARCH_KEY" visibility="hidden"/>
  558. </datagrid>
  559. <datagrid id="dg2" nodeset="/root/gridData2/ListResult_2_VO/ListResult_2_Row" scroll="auto" caption="板坯号^合同号^订单号^产线^板坯^板坯^板坯^板坯^热卷^热卷^热卷^热卷^冷卷^冷卷^精整^设计^紧急材^HCR^坑冷^组合^厂内牌号^厂内牌号组^通过工序^COIL_INDIA^COIL_OUTDIA^P_DSN_SLAB_NO^GRAVITY^COIL_PACK_WGT_MIN^COIL_PACK_WGT_MAX|板坯号^合同号^订单号^产线^厚度^宽度^长度^重量^厚度^宽度^长度^重量^厚度^宽度^精整^设计^紧急材^HCR^坑冷^组合^厂内牌号^厂内牌号组^通过工序^COIL_INDIA^COIL_OUTDIA^P_DSN_SLAB_NO^GRAVITY^COIL_PACK_WGT_MIN^COIL_PACK_WGT_MAX" colsep="^" colwidth="85, 77, 42, 66, 34, 37, 42, 42, 34, 37, 60, 42, 55, 59, 48, 48, 48, 48, 50, 48, 77, 60, 65, 100, 100, 100, 100, 100, 100" defaultrows="20" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:320px; width:980px; height:273px; ">
  560. <col editable="false" ref="DSN_SLAB_NO2" type="input" style="background-color:#ffffff; "/>
  561. <col editable="false" ref="ORD_NO2" type="input" style="background-color:#ffffff; "/>
  562. <col editable="false" ref="ORD_SEQ2" type="input" style="background-color:#ffffff; "/>
  563. <col editable="false" ref="PROD_LINE" type="input" style="background-color:#ffffff; "/>
  564. <col editable="false" ref="SLAB_THK2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  565. <col editable="true" ref="SLAB_WTH2" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
  566. <col editable="true" ref="SLAB_LEN2" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
  567. <col editable="false" ref="SLAB_WGT2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  568. <col editable="false" ref="COIL_THK2" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
  569. <col editable="false" ref="COIL_WTH2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  570. <col editable="false" ref="COIL_LEN2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  571. <col editable="false" ref="COIL_WGT2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  572. <col editable="false" ref="C_COIL_THK" type="input" format="#,###.0" style="background-color:#ffffff; "/>
  573. <col editable="false" ref="C_COIL_WTH" type="input" format="#,###" style="background-color:#ffffff; "/>
  574. <col disabled="false" ref="SLAB_TRMTH_TP2" type="combo" style="background-color:#ffff99; ">
  575. <choices>
  576. <item>
  577. <label>Y</label>
  578. <value>Y</value>
  579. </item>
  580. <item>
  581. <label>N</label>
  582. <value>N</value>
  583. </item>
  584. </choices>
  585. </col>
  586. <col disabled="false" ref="AUTODSN_YN2" type="combo">
  587. <choices>
  588. <item>
  589. <label>自动</label>
  590. <value>Y</value>
  591. </item>
  592. <item>
  593. <label>Manual</label>
  594. <value>N</value>
  595. </item>
  596. </choices>
  597. </col>
  598. <col disabled="false" ref="EMGMTR_YN2" type="combo" style="background-color:#ffff99; ">
  599. <choices>
  600. <item>
  601. <label>Y</label>
  602. <value>Y</value>
  603. </item>
  604. <item>
  605. <label>N</label>
  606. <value>N</value>
  607. </item>
  608. </choices>
  609. </col>
  610. <col disabled="false" ref="HCR_YN2" type="combo" style="background-color:#ffff99; ">
  611. <choices>
  612. <item>
  613. <label>HCR</label>
  614. <value>H</value>
  615. </item>
  616. <item>
  617. <label>CCR</label>
  618. <value>C</value>
  619. </item>
  620. </choices>
  621. </col>
  622. <col disabled="true" ref="KEEPWARM_YN2" type="combo" style="background-color:#ffffff; ">
  623. <choices>
  624. <item>
  625. <label>是</label>
  626. <value>Y</value>
  627. </item>
  628. <item>
  629. <label>否</label>
  630. <value>N</value>
  631. </item>
  632. </choices>
  633. </col>
  634. <col disabled="true" ref="COMB_YN2" type="combo">
  635. <choices>
  636. <item>
  637. <label>Y</label>
  638. <value>Y</value>
  639. </item>
  640. <item>
  641. <label>N</label>
  642. <value>N</value>
  643. </item>
  644. </choices>
  645. </col>
  646. <col editable="false" ref="FAC_STL_GRD2" type="input" style="text-align:left; background-color:#ffffff; "/>
  647. <col editable="false" ref="FAC_STL_GRP2" type="input" style="text-align:left; background-color:#ffffff; "/>
  648. <col editable="false" ref="PROC_PATH2" type="input" style="text-align:left; background-color:#ffffff; "/>
  649. <col editable="false" ref="COIL_INDIA2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  650. <col editable="false" ref="COIL_OUTDIA2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  651. <col editable="false" ref="P_DSN_SLAB_NO2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  652. <col editable="false" ref="GRAVITY2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  653. <col editable="false" ref="COIL_PACK_WGT_MIN2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  654. <col editable="false" ref="COIL_PACK_WGT_MAX2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  655. <script type="javascript" ev:event="xforms-value-changed">
  656. <![CDATA[
  657. var iProcRate = Number(dg1.valueMatrix(dg1.row,dg1.colRef("PROC_RATE")));
  658. if( iProcRate == null || iProcRate == 0 ) {
  659. alert("Select Order");
  660. return;
  661. }
  662. var iGravity = Number(dg1.valueMatrix(dg1.row,dg1.colRef("GRAVITY" )));
  663. //
  664. var iAddValue = Number(model.getValue("/root/formData/ADDED_COIL_WTH"));
  665. if(iAddValue == "")
  666. {
  667. alert("请输入板坯宽度!");
  668. return;
  669. }
  670. //var iGravity = Number(dg2.valueMatrix(dg2.row,dg2.colRef("GRAVITY" )));
  671. //
  672. var iSlabThk = Number(dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_THK2")));
  673. var iSlabWth = Number(dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_WTH2")));
  674. var iSlabLen = Number(dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_LEN2")));
  675. var iSlabWgt = Math.ceil( (iSlabLen * iSlabWth * iSlabThk * iGravity * 1000) / 1000000000 );
  676. //
  677. var iCoilThk = Number(dg2.valueMatrix(dg2.row,dg2.colRef("COIL_THK2")));
  678. var iCoilWth = Number(dg2.valueMatrix(dg2.row,dg2.colRef("COIL_WTH2")));//iAddValue;
  679. var iCoilWgt = Math.ceil(((iSlabLen * iSlabWth * iSlabThk * iGravity * 1000) / 1000000000) * iProcRate / 100);
  680. var iCoilLen = Math.round((iCoilWgt / (iCoilWth * iCoilThk * iGravity * 1000)) * 1000000000, 0);
  681. dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_WGT2")) = iSlabWgt;
  682. dg2.valueMatrix(dg2.row,dg2.colRef("COIL_WTH2")) = iCoilWth;
  683. dg2.valueMatrix(dg2.row,dg2.colRef("COIL_LEN2")) = iCoilLen;
  684. dg2.valueMatrix(dg2.row,dg2.colRef("COIL_WGT2")) = iCoilWgt;
  685. calculateSummary();
  686. model.refresh();
  687. ]]>
  688. </script>
  689. <script type="javascript" ev:event="onentercell">
  690. <![CDATA[
  691. var sSearchKey = dg2.valueMatrix(dg2.row, dg2.colRef("ORD_NO2")) + "-" + dg2.valueMatrix(dg2.row, dg2.colRef("ORD_SEQ2"));
  692. var iRow = dg1.findRow(sSearchKey, 1, dg1.colRef("SEARCH_KEY"), true, true);
  693. //alert("["+ iRow +"] ["+ sSearchKey + "]");
  694. dg1.row = iRow;
  695. dg1.topRow = iRow;
  696. ]]>
  697. </script>
  698. </datagrid>
  699. <select1 id="combo1" ref="/root/formData/DSN_PROC_STAT" appearance="minimal" style="left:82px; top:5px; width:100px; height:20px; ">
  700. <choices>
  701. <item>
  702. <label>全部</label>
  703. <value>%</value>
  704. </item>
  705. <item>
  706. <label>设计等待</label>
  707. <value>1</value>
  708. </item>
  709. <item>
  710. <label>设计完成</label>
  711. <value>2</value>
  712. </item>
  713. </choices>
  714. </select1>
  715. <caption id="caption4" class="cell" style="left:880px; top:30px; width:60px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">板坯长度</caption>
  716. <input id="input1" ref="/root/formData/SLAB_LEN" format="#,###" style="left:940px; top:30px; width:40px; height:20px; text-align:right; background-color:#ffff99; "/>
  717. <caption id="caption3" class="cell" style="left:770px; top:30px; width:60px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">板坯宽度</caption>
  718. <select1 id="combo2" visibility="hidden" appearance="minimal" style="left:880px; top:5px; width:56px; height:15px; ">
  719. <choices>
  720. <item>
  721. <label>钢卷宽度+10</label>
  722. <value>10</value>
  723. </item>
  724. <item>
  725. <label>钢卷宽度+15</label>
  726. <value>15</value>
  727. </item>
  728. <item>
  729. <label>钢卷宽度+20</label>
  730. <value>20</value>
  731. </item>
  732. <item>
  733. <label>钢卷宽度+25</label>
  734. <value>25</value>
  735. </item>
  736. <item>
  737. <label>钢卷宽度+30</label>
  738. <value>30</value>
  739. </item>
  740. <item>
  741. <label>钢卷宽度+35</label>
  742. <value>35</value>
  743. </item>
  744. <item>
  745. <label>钢卷宽度+40</label>
  746. <value>40</value>
  747. </item>
  748. <item>
  749. <label>钢卷宽度+45</label>
  750. <value>45</value>
  751. </item>
  752. <item>
  753. <label>钢卷宽度+50</label>
  754. <value>50</value>
  755. </item>
  756. </choices>
  757. </select1>
  758. <caption id="caption2" class="cell" style="left:190px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单号</caption>
  759. <input id="input2" ref="/root/formData/ORD_NO" maxlength="12" style="left:272px; top:5px; width:80px; height:20px; "/>
  760. <input id="input3" ref="/root/formData/ORD_SEQ" maxlength="3" style="left:354px; top:5px; width:25px; height:20px; "/>
  761. <button id="button6" style="left:835px; top:288px; width:70px; height:20px; text-align:right; background-color:#ffffff; background-image:../../images/btn_create.gif; border-color:#000000; border-style:none; ">
  762. <caption>板坯增加</caption>
  763. <script type="javascript" ev:event="DOMActivate">
  764. <![CDATA[
  765. var node = instance1.selectSingleNode("/root/gridData2/ListResult_2_VO/ListResult_2_Row");
  766. // Validation for NULL
  767. if( node == null ) {
  768. alert("Node does not exist.");
  769. return;
  770. }
  771. if( dg2.row < dg2.fixedRows ) {
  772. alert("dg2.row = ["+ dg2.row +"] < dg2.fixedRows = ["+ dg2.fixedRows +"]");
  773. return;
  774. }
  775. dg2.insertRow(dg2.row, "below", true, true);
  776. //alert("dg2.row = ["+ dg2.row +"] dg2.rows = ["+ dg2.rows +"] dg2.cols = ["+ dg2.cols +"]");
  777. // inspect child nodes
  778. var nodeList = node.childNodes;
  779. var tmp;
  780. var outData = "";
  781. while( (tmp = nodeList.nextNode() ) != null ) {
  782. //outData += lpad(tmp.tagName,20,"*") + "= [" + dg2.valueMatrix(dg2.row - 1, dg2.colRef(tmp.tagName)) + "]\n";
  783. dg2.valueMatrix(dg2.row, dg2.colRef(tmp.tagName)) = dg2.valueMatrix(dg2.row - 1, dg2.colRef(tmp.tagName));
  784. }
  785. // Control MAX_DSN_SLAB_NO
  786. var sNextDsnSlabNo = lpad(Number(model.getValue("/root/formData/MAX_DSN_SLAB_NO")) + 1, 8, "0");
  787. dg2.valueMatrix(dg2.row, dg2.colRef("DSN_SLAB_NO2")) = sNextDsnSlabNo;
  788. model.setValue("/root/formData/MAX_DSN_SLAB_NO", sNextDsnSlabNo);
  789. // Calculating Summary
  790. calculateSummary();
  791. model.refresh();
  792. ]]>
  793. </script>
  794. </button>
  795. <button id="button7" style="left:910px; top:288px; width:70px; height:20px; text-align:right; background-color:#ffffff; background-image:../../images/btn_delete.gif; border-color:#000000; border-style:none; ">
  796. <caption>板坯删除</caption>
  797. <script type="javascript" ev:event="DOMActivate">
  798. <![CDATA[
  799. // Control MAX_DSN_SLAB_NO
  800. var nCurrSlabNo = dg2.valueMatrix(dg2.row, dg2.colRef("DSN_SLAB_NO2"));
  801. if (model.getValue("/root/formData/MAX_DSN_SLAB_NO") == nCurrSlabNo) {
  802. model.setValue("/root/formData/MAX_DSN_SLAB_NO", lpad(Number(model.getValue("/root/formData/MAX_DSN_SLAB_NO")) - 1, 8, "0"));
  803. }
  804. // Calculating Summary
  805. dg2.deleteRow(dg2.row);
  806. calculateSummary();
  807. model.refresh();
  808. ]]>
  809. </script>
  810. </button>
  811. <output id="output1" ref="/root/sumData/SUM_NEED_WGT" format="#,###" style="left:350px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  812. <output id="output2" ref="/root/sumData/SUM_TOT_SLAB_WGT" format="#,###" style="left:704px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  813. <output id="output3" ref="/root/sumData/SUM_ORD_WGT" format="#,###" style="left:172px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  814. <output id="output4" ref="/root/sumData/SUM_COIL_CNT" format="#,###" style="left:528px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  815. <output id="output5" ref="/root/sumData/SUM_SLABRST_WGT" format="#,###" style="left:347px; top:595px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  816. <output id="output6" ref="/root/sumData/SUM_SLABRST_CNT" format="#,###" style="left:172px; top:595px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  817. <output id="output8" ref="/root/sumData/SUM_COILRST_WGT" format="#,###" style="left:523px; top:595px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  818. <line id="line1" style="x1:0px; y1:1px; x2:978px; y2:1px; "/>
  819. <line id="line2" style="x1:2px; y1:80px; x2:980px; y2:80px; "/>
  820. <line id="line3" style="x1:2px; y1:313px; x2:980px; y2:313px; "/>
  821. <caption id="caption7" class="cell" style="left:0px; top:288px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
  822. <caption id="caption8" class="cell" style="left:90px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单设计量</caption>
  823. <caption id="caption5" class="cell" style="left:268px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单待设计量</caption>
  824. <caption id="caption6" class="cell" style="left:445px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯总块数</caption>
  825. <caption id="caption9" class="cell" style="left:622px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">设计总重量</caption>
  826. <caption id="caption10" class="cell" style="left:0px; top:594px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
  827. <caption id="caption11" class="cell" style="left:90px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯块数</caption>
  828. <caption id="caption12" class="cell" style="left:265px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯总重量</caption>
  829. <caption id="caption13" class="cell" style="left:440px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量</caption>
  830. <caption id="caption14" class="cell" style="left:387px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">厂内牌号</caption>
  831. <input id="input4" ref="/root/formData/FacStlGrd" style="left:469px; top:5px; width:100px; height:20px; "/>
  832. <caption id="caption15" class="cell" style="left:577px; top:5px; width:80px; height:20px; ">订单录入时间</caption>
  833. <input id="input5" ref="/root/formData/ORDER_REG_TO" editable="false" inputtype="date" style="left:775px; top:5px; width:100px; height:20px; "/>
  834. <input id="input6" ref="/root/formData/ORDER_REG_FR" editable="false" inputtype="date" style="left:659px; top:5px; width:100px; height:20px; "/>
  835. <input id="input7" ref="/root/formData/ADDED_COIL_WTH" format="#,###" style="left:830px; top:30px; width:45px; height:20px; text-align:right; background-color:#ffff99; "/>
  836. <line id="line5" style="x1:0px; y1:27px; x2:980px; y2:27px; "/>
  837. <caption id="caption17" class="cell" style="left:0px; top:30px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">钢卷宽度</caption>
  838. <input id="input8" ref="/root/formData/COIL_WTH_CONTIUNE_FR" style="left:82px; top:30px; width:58px; height:20px; "/>
  839. <input id="input9" ref="/root/formData/COIL_WTH_CONTIUNE_TO" style="left:153px; top:30px; width:58px; height:20px; "/>
  840. <caption id="caption18" style="left:140px; top:35px; width:20px; height:15px; ">~</caption>
  841. <caption id="caption20" style="left:761px; top:10px; width:20px; height:15px; ">~</caption>
  842. <select1 id="combo3" ref="/root/formData/DLIV_TP_CO" appearance="minimal" style="left:299px; top:30px; width:85px; height:20px; ">
  843. <choices>
  844. <item>
  845. <label>全部</label>
  846. <value/>
  847. </item>
  848. <item>
  849. <label>公路(车辆)</label>
  850. <value>C</value>
  851. </item>
  852. <item>
  853. <label>铁路(火车)</label>
  854. <value>T</value>
  855. </item>
  856. </choices>
  857. </select1>
  858. <caption id="caption16" class="cell" style="left:217px; top:30px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">运输方式</caption>
  859. <caption id="caption21" class="cell" style="left:679px; top:57px; width:90px; height:20px; vertical-align:middle; ">订单预排期</caption>
  860. <input id="input10" ref="/root/formData/ORD_PLAN_DATA_MIN" inputtype="date" style="left:771px; top:57px; width:101px; height:20px; "/>
  861. <input id="input11" ref="/root/formData/ORD_PLAN_DATA_MAX" inputtype="date" style="left:874px; top:57px; width:105px; height:20px; "/>
  862. <line id="line4" style="x1:0px; y1:53px; x2:980px; y2:53px; "/>
  863. <caption id="caption105" class="cell" style="left:387px; top:30px; width:90px; height:20px; ">订货区分</caption>
  864. <input id="combo105" ref="/root/formData/RCVORD_CLF" inputtype="button" appearance="minimal" style="left:479px; top:30px; width:111px; height:20px; ">
  865. <script type="javascript" ev:event="onclick">
  866. <![CDATA[
  867. checkbox2.visible = (checkbox2.visible == false);
  868. ]]>
  869. </script>
  870. </input>
  871. <select id="checkbox2" ref="/root/formData/RCVORD_CLF" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:479px; top:49px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
  872. <choices>
  873. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'A01001']">
  874. <label ref="SM_CFNM"/>
  875. <value ref="SM_CD"/>
  876. </itemset>
  877. </choices>
  878. </select>
  879. <caption id="caption19" class="cell" style="left:0px; top:57px; width:90px; height:20px; vertical-align:middle; ">产品类型</caption>
  880. <select1 id="combo4" ref="/root/formData/PRODNM_CD_C" visibility="hidden" appearance="minimal" style="left:595px; top:55px; width:110px; height:20px; ">
  881. <choices>
  882. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD = 'A']">
  883. <label ref="SM_CFNM"/>
  884. <value ref="SM_CD"/>
  885. </itemset>
  886. </choices>
  887. </select1>
  888. <select1 id="combo5" ref="/root/formData/PROD_LINE_CON" appearance="minimal" style="left:259px; top:57px; width:76px; height:20px; ">
  889. <choices>
  890. <item>
  891. <label>全部</label>
  892. <value/>
  893. </item>
  894. <item>
  895. <label>热轧</label>
  896. <value>R</value>
  897. </item>
  898. <item>
  899. <label>酸轧</label>
  900. <value>C</value>
  901. </item>
  902. <item>
  903. <label>连退</label>
  904. <value>L</value>
  905. </item>
  906. </choices>
  907. </select1>
  908. <caption id="caption22" class="cell" style="left:197px; top:57px; width:60px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">产线</caption>
  909. <caption id="caption23" class="cell" style="left:645px; top:30px; width:55px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">板坯厚度</caption>
  910. <select1 id="combo6" ref="/root/formData/SLAB_THK" appearance="minimal" style="left:700px; top:30px; width:65px; height:20px; background-color:#ffff99; ">
  911. <choices>
  912. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='D01002' or LG_CD = 'A']">
  913. <label ref="SM_CFNM"/>
  914. <value ref="SM_CD"/>
  915. </itemset>
  916. </choices>
  917. </select1>
  918. <input id="input12" ref="/root/formData/PRODNM_CD_C" style="left:91px; top:57px; width:100px; height:20px; ">
  919. <script type="javascript" ev:event="onclick">
  920. <![CDATA[
  921. checkbox1.visible = (checkbox1.visible == false);
  922. ]]>
  923. </script>
  924. </input>
  925. <select id="checkbox1" ref="/root/formData/PRODNM_CD_C" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:89px; top:76px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
  926. <choices>
  927. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD = 'A']">
  928. <label ref="SM_CFNM"/>
  929. <value ref="SM_CD"/>
  930. </itemset>
  931. </choices>
  932. </select>
  933. <caption id="caption24" class="cell" visibility="hidden" style="left:338px; top:55px; width:60px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">锁定工序</caption>
  934. <select1 id="combo7" ref="/root/formData/ORD_PRC_LOCK" visibility="hidden" appearance="minimal" style="left:400px; top:55px; width:76px; height:20px; ">
  935. <choices>
  936. <item>
  937. <label>全部</label>
  938. <value/>
  939. </item>
  940. <item>
  941. <label>热轧</label>
  942. <value>R</value>
  943. </item>
  944. <item>
  945. <label>生产处</label>
  946. <value>S</value>
  947. </item>
  948. <item>
  949. <label>冷轧</label>
  950. <value>L</value>
  951. </item>
  952. </choices>
  953. </select1>
  954. <button id="button1" visibility="hidden" style="left:940px; top:5px; width:25px; height:20px; ">
  955. <caption>button1</caption>
  956. <script type="javascript" ev:event="onclick">
  957. <![CDATA[
  958. find();
  959. ]]>
  960. </script>
  961. </button>
  962. </xhtml:body>
  963. </xhtml:html>