239ca2748f6e014e70704ce0bb5291252f5baa25.svn-base 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <initData>
  10. <searchInfo>
  11. <LG_CD>A01004</LG_CD>
  12. </searchInfo>
  13. <LG_CD>A01004</LG_CD>
  14. </initData>
  15. <formData>
  16. <COIL_WTH_FR/>
  17. <COIL_WTH_TO/>
  18. <proDay>10</proDay>
  19. <mod_yn/>
  20. <ORD_NO_CON/>
  21. <ORD_SEQ_CON/>
  22. <RCVORD_TP_CON/>
  23. <SPEC_STL_GRD_CON/>
  24. <ORD_REG_DTIME_FR/>
  25. <ORD_REG_DTIME_TO/>
  26. <CUST_NM_CON/>
  27. <to_plan_date/>
  28. <DLIV_TP_CO/>
  29. <PRODNM_CD/>
  30. <ord_proDay>12</ord_proDay>
  31. <ORD_PLAN_DATE_FR>00000000</ORD_PLAN_DATE_FR>
  32. <ORD_PLAN_DATE_TO>99999999</ORD_PLAN_DATE_TO>
  33. <CHE_VALUE/>
  34. <PRODLINE/>
  35. <TORDTHK/>
  36. </formData>
  37. <reqData>
  38. </reqData>
  39. <resData/>
  40. <gridData1>
  41. <EmpListResult_VO>
  42. </EmpListResult_VO>
  43. </gridData1>
  44. <gridData2>
  45. <EmpListResult2_VO/>
  46. </gridData2>
  47. <corde>
  48. <countOrd/>
  49. <sumOrd/>
  50. <max_to_plan_date/>
  51. </corde>
  52. <total/>
  53. <codeData/>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
  59. datagrid1.colStatus(0)=false;
  60. commSendReq("/root/initData");
  61. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  62. model.copyNode("/root/codeData","/root/resData");
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <script type="javascript">
  67. <![CDATA[
  68. //1、获取用户登录信息,只能在页面初始化函数中调用
  69. var totwgt = 0;
  70. function InitParams(node)
  71. {
  72. if (typeof node == "undefined" && typeof node != "object") return;
  73. model.removenode("/root/initData/rcvInfo");
  74. model.makeNode("/root/initData/rcvInfo");
  75. var nodeList = node.childNodes;
  76. for (var i = 0; i < nodeList.length; i++)
  77. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  78. }
  79. //2. 页面初始化函数(必须)
  80. function Init(node)
  81. {
  82. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  83. // 在程序中会重建该节点,最好不要重名
  84. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  85. //...
  86. }
  87. //3、页面标题
  88. function setTitle()
  89. {
  90. return "工序计划 >> 订单预排期确认 >> 订单预排期确认"; // 如:return "进程管理 >> 订单进程现况查询";
  91. }
  92. //4. 页面按键动作
  93. // 查询按键
  94. function find()
  95. {
  96. model.removenode("/root/reqData");
  97. model.makeNode("/root/reqData");
  98. model.makeValue("/root/reqData/ORD_NO_CON",model.getValue("/root/formData/ORD_NO_CON"));
  99. model.makeValue("/root/reqData/ORD_SEQ_CON",model.getValue("/root/formData/ORD_SEQ_CON"));
  100. model.makeValue("/root/reqData/COIL_WTH_FR",model.getValue("/root/formData/COIL_WTH_FR"));
  101. model.makeValue("/root/reqData/COIL_WTH_TO",model.getValue("/root/formData/COIL_WTH_TO"));
  102. model.makeValue("/root/reqData/RCVORD_TP_CON",model.getValue("/root/formData/RCVORD_TP_CON"));
  103. model.makeValue("/root/reqData/SPEC_STL_GRD_CON",model.getValue("/root/formData/SPEC_STL_GRD_CON"));
  104. model.makeValue("/root/reqData/CUST_NM_CON",model.getValue("/root/formData/CUST_NM_CON"));
  105. model.makeValue("/root/reqData/ORD_REG_DTIME_FR",model.getValue("/root/formData/ORD_REG_DTIME_FR"));
  106. model.makeValue("/root/reqData/ORD_REG_DTIME_TO",model.getValue("/root/formData/ORD_REG_DTIME_TO"));
  107. model.makeValue("/root/reqData/DLIV_TP_CO",model.getValue("/root/formData/DLIV_TP_CO"));
  108. model.makeValue("/root/reqData/PRODNM_CD",model.getValue("/root/formData/PRODNM_CD"));
  109. model.makeValue("/root/reqData/ORD_PLAN_DATE_FR",model.getValue("/root/formData/ORD_PLAN_DATE_FR"));
  110. model.makeValue("/root/reqData/ORD_PLAN_DATE_TO",model.getValue("/root/formData/ORD_PLAN_DATE_TO"));
  111. model.makeValue("/root/reqData/PRODLINE",model.getValue("/root/formData/PRODLINE"));
  112. model.makeValue("/root/reqData/TORDTHK",model.getValue("/root/formData/TORDTHK"));
  113. commSubmit("UID060010-service","findOrderForPlanDate","glueAction.do");
  114. errorMessage();
  115. model.copyNode("/root/gridData2/EmpListResult2_VO","/root/resData/EmpListResult2_VO");
  116. model.copyNode("/root/gridData1/EmpListResult_VO","/root/resData/EmpListResult_VO");
  117. model.setXPathValue("/root/corde/max_to_plan_date","/root/resData/EmpListResult3_VO/EmpListResult3_Row/MAX_ORD_PLAN_DATA");
  118. model.removenode("/root/resData/EmpListResult_VO");
  119. model.removenode("/root/resData/EmpListResult2_VO");
  120. calculateSummary();
  121. totwgt = 0;
  122. input11.value = totwgt;
  123. model.refresh();
  124. }
  125. function excelExport() {
  126. return datagrid1;
  127. }
  128. function calculateSummary()
  129. {
  130. model.setXPathValue("/root/corde/countOrd" ,"count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
  131. model.setXPathValue("/root/corde/sumOrd" ,"sum(/root/gridData1/EmpListResult_VO/EmpListResult_Row/ORD_WGT )");
  132. }
  133. // 保存按键
  134. function save()
  135. {
  136. commSendReq("/root/gridData1/EmpListResult_VO");
  137. model.makeValue("/root/reqData/ORD_NO_CON",model.getValue("/root/formData/ORD_NO_CON"));
  138. model.makeValue("/root/reqData/ORD_SEQ_CON",model.getValue("/root/formData/ORD_SEQ_CON"));
  139. model.makeValue("/root/reqData/COIL_WTH_FR",model.getValue("/root/formData/COIL_WTH_FR"));
  140. model.makeValue("/root/reqData/COIL_WTH_TO",model.getValue("/root/formData/COIL_WTH_TO"));
  141. model.makeValue("/root/reqData/RCVORD_TP_CON",model.getValue("/root/formData/RCVORD_TP_CON"));
  142. model.makeValue("/root/reqData/SPEC_STL_GRD_CON",model.getValue("/root/formData/SPEC_STL_GRD_CON"));
  143. model.makeValue("/root/reqData/CUST_NM_CON",model.getValue("/root/formData/CUST_NM_CON"));
  144. model.makeValue("/root/reqData/ORD_REG_DTIME_FR",model.getValue("/root/formData/ORD_REG_DTIME_FR"));
  145. model.makeValue("/root/reqData/ORD_REG_DTIME_TO",model.getValue("/root/formData/ORD_REG_DTIME_TO"));
  146. model.makeValue("/root/reqData/DLIV_TP_CO",model.getValue("/root/formData/DLIV_TP_CO"));
  147. model.makeValue("/root/reqData/PRODNM_CD",model.getValue("/root/formData/PRODNM_CD"));
  148. //model.removenode("/root/gridData1/sendInfo");
  149. //model.makeNode("/root/gridData1/sendInfo");
  150. //model.copyNode("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO")
  151. commSubmit("UID060010-service","saveOrderForPlanDate","glueAction.do");
  152. errorMessage();
  153. window.alert(" 保存成功! "," 提示信息 ");
  154. //find();
  155. model.refresh();
  156. }
  157. // 新增按键
  158. function create()
  159. {
  160. }
  161. // 删除按键
  162. function remove()
  163. {
  164. }
  165. function getDEVLMTDate(planDate,ldate)
  166. {
  167. var mont = (Number(planDate.substr(4,2))-1)+""
  168. if(mont.length == 1)
  169. {
  170. mont = "0" + mont;
  171. }
  172. ldate =(typeof ldate == 'string')? Number(ldate) : ldate;
  173. var curDate = "";
  174. var d = new Date(planDate.substr(0,4),mont,planDate.substr(6,2));
  175. d.setDate(d.getDate() + ldate);
  176. var monString = (d.getMonth()+1)+"";
  177. var dateString = d.getDate()+"";
  178. if(monString.length == 1)
  179. {
  180. monString = "0" + monString;
  181. }
  182. if(dateString.length == 1)
  183. {
  184. dateString = "0"+ dateString;
  185. }
  186. curDate += d.getYear();
  187. curDate += monString;
  188. curDate += dateString;
  189. return curDate;
  190. }
  191. ]]>
  192. </script>
  193. </model>
  194. <script type="javascript" src="../../js/boaCommon.js"/>
  195. <script type="javascript" src="../../js/boaMsg.js"/>
  196. <script type="javascript" src="../../js/dCommon.js"/>
  197. </xhtml:head>
  198. <xhtml:body overflow="hidden" guideline="1,979;2,619;">
  199. <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult2_VO/EmpListResult2_Row" caption="待设计量^炼钢计划量^板坯库存订单量^合计" colwidth="112, 108, 124, 129" defaultrows="1" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:106px; width:979px; height:44px; ">
  200. <col ref="NEED_WGT" format="#,###" style="text-align:right; "/>
  201. <col ref="CHARGE_WGT" format="#,###" style="text-align:right; "/>
  202. <col ref="KC_WGT" format="#,###" style="text-align:right; "/>
  203. <col ref="ALLWGT" format="#,###" style="text-align:right; "/>
  204. </datagrid>
  205. <line id="line2" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
  206. <line id="line3" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
  207. <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" scroll="both" backcoloralternate="#f7f9f9" caption="选择^合同单位^合同号^订单号^订单类型^产线^预排时间^热轧交货期^订单交货期^产品类型^热轧标准牌号^订单牌号^订单量^产品重量^产品重量^品质设计建议规格^品质设计建议规格^成品规格^成品规格^申报人^申报时间^运输方式^订单备注^客户特殊要求^销售区域|选择^合同单位^合同号^订单号^订单类型^产线^预排时间^热轧交货期^订单交货期^产品类型^热轧标准牌号^订单牌号^订单量^下限^上限^厚度^宽度^厚度^宽度^申报人^申报时间^运输方式^订单备注^客户特殊要求^销售区域" colwidth="67, 81, 90, 43, 89, 73, 82, 82, 81, 100, 80, 100, 74, 52, 55, 59, 54, 43, 43, 60, 62, 100, 89, 87, 100" explorerbar="sort" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:165px; width:980px; height:425px; border-style:solid; border-right-style:sunken; ">
  208. <col ref="CHK" type="checkbox" checkvalue="Y,N"/>
  209. <col ref="CUST_NM" type="input" editable="false"/>
  210. <col ref="ORD_NO" type="input" editable="false"/>
  211. <col ref="ORD_SEQ" type="input" editable="false"/>
  212. <col ref="SM_CFNM" type="input" editable="false"/>
  213. <col ref="PROD_LINE" type="input" editable="false"/>
  214. <col ref="ORD_PLAN_DATA" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
  215. <col ref="H_ORD_DEVLMT_DATE" type="input" format="yyyy-mm-dd" editable="false"/>
  216. <col ref="ORD_DEVLMT_DATE" type="input" format="yyyy-mm-dd" editable="false"/>
  217. <col ref="PRDNM_CD" type="input" editable="false"/>
  218. <col ref="H_SPEC_STL_GRD" type="input" editable="false"/>
  219. <col ref="SPEC_STL_GRD" type="input" editable="false"/>
  220. <col ref="ORD_WGT" type="input" format="#,###" editable="false" style="text-align:right; "/>
  221. <col ref="PROD_WGT_MIN" type="input" format="#,###" editable="false" style="text-align:right; "/>
  222. <col ref="PROD_WGT_MAX" type="input" format="#,###" editable="false" style="text-align:right; "/>
  223. <col ref="H_THK_AIM" type="input" editable="false" style="text-align:right; "/>
  224. <col ref="H_WTH_AIM" type="input" editable="false" style="text-align:right; "/>
  225. <col ref="ORD_THK" type="input" editable="false" style="text-align:right; "/>
  226. <col ref="ORD_WTH" type="input" editable="false" style="text-align:right; "/>
  227. <col ref="ORD_REGBY_CD" type="input" editable="false"/>
  228. <col ref="ORD_REG_DTIME" type="input" format="yyyy-mm-dd" editable="false"/>
  229. <col ref="DLIV_TP" type="combo" editable="false">
  230. <choices>
  231. <item>
  232. <label>公路(车辆)</label>
  233. <value>C</value>
  234. </item>
  235. <item>
  236. <label>铁路(火车)</label>
  237. <value>T</value>
  238. </item>
  239. </choices>
  240. </col>
  241. <col ref="MK_CONTENT" type="input" editable="false"/>
  242. <col ref="INGR_YN" type="input" editable="false"/>
  243. <col ref="XSQY" type="input" editable="false"/>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. var planDate = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_PLAN_DATA"));
  247. var devlmtDate = getDEVLMTDate(planDate,model.getValue("/root/formData/proDay"))
  248. if(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PROD_LINE")) == "H")
  249. {
  250. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_DEVLMT_DATE")) = devlmtDate;
  251. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("H_ORD_DEVLMT_DATE")) = devlmtDate;
  252. }
  253. else
  254. {
  255. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("H_ORD_DEVLMT_DATE")) = devlmtDate;
  256. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_DEVLMT_DATE")) = getDEVLMTDate(devlmtDate,model.getValue("/root/formData/ord_proDay"));
  257. }
  258. model.refresh();
  259. if(datagrid1.colRef("CHK") == datagrid1.col) {
  260. (datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) == "Y") ? totwgt += Number(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_WGT"))) : totwgt -= Number(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_WGT")));
  261. input11.value = totwgt;
  262. }
  263. ]]>
  264. </script>
  265. </datagrid>
  266. <line id="line1" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
  267. <caption id="caption7" class="cell" style="left:0px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单号</caption>
  268. <input id="input3" ref="/root/formData/ORD_NO_CON" maxlength="12" style="left:71px; top:5px; width:80px; height:20px; "/>
  269. <input id="input4" ref="/root/formData/ORD_SEQ_CON" maxlength="3" style="left:153px; top:5px; width:30px; height:20px; "/>
  270. <input id="input8" ref="/root/formData/COIL_WTH_FR" style="left:257px; top:5px; width:64px; height:20px; "/>
  271. <input id="input9" ref="/root/formData/COIL_WTH_TO" style="left:334px; top:5px; width:64px; height:20px; "/>
  272. <caption id="caption17" class="cell" style="left:185px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">钢卷宽度</caption>
  273. <caption id="caption18" style="left:321px; top:10px; width:20px; height:15px; ">~</caption>
  274. <caption id="caption19" class="cell" style="left:400px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单类型</caption>
  275. <caption id="caption14" class="cell" style="left:584px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">标准牌号</caption>
  276. <input id="input5" ref="/root/formData/SPEC_STL_GRD_CON" style="left:658px; top:5px; width:100px; height:20px; "/>
  277. <caption id="caption1" class="cell" style="left:0px; top:35px; width:95px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">合同单位</caption>
  278. <input id="input1" ref="/root/formData/CUST_NM_CON" style="left:98px; top:35px; width:104px; height:20px; "/>
  279. <caption id="caption2" class="cell" style="left:204px; top:35px; width:90px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单申报时间</caption>
  280. <caption id="caption20" style="left:394px; top:40px; width:20px; height:15px; ">~</caption>
  281. <input id="input2" ref="/root/formData/ORD_REG_DTIME_TO" inputtype="date" editable="false" style="left:406px; top:35px; width:100px; height:20px; "/>
  282. <input id="input6" ref="/root/formData/ORD_REG_DTIME_FR" inputtype="date" editable="false" style="left:296px; top:35px; width:100px; height:20px; "/>
  283. <caption id="caption3" class="cell" style="left:659px; top:595px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">热轧生产期</caption>
  284. <input id="input7" ref="/root/formData/proDay" disabled="false" style="left:731px; top:595px; width:38px; height:20px; text-align:right; "/>
  285. <caption id="caption4" style="left:912px; top:596px; width:20px; height:20px; ">天</caption>
  286. <select id="checkbox1" ref="/root/formData/mod_yn" disabled="false" overflow="visible" appearance="full" style="left:929px; top:595px; width:50px; height:20px; color:#000000; background-color:#ccffff; border-color:#800000; border-style:solid; ">
  287. <choices>
  288. <item>
  289. <label>修改</label>
  290. <value>mod</value>
  291. </item>
  292. </choices>
  293. <script type="javascript" ev:event="xforms-value-changed">
  294. <![CDATA[
  295. if(model.getValue("/root/formData/mod_yn") == "mod")
  296. {
  297. input7.disabled = false;
  298. input12.disabled = false;
  299. }
  300. else
  301. {
  302. input7.disabled = true;
  303. input12.disabled = true;
  304. }
  305. ]]>
  306. </script>
  307. </select>
  308. <input id="input10" ref="/root/formData/to_plan_date" inputtype="date" editable="false" style="left:592px; top:120px; width:100px; height:20px; background-color:#ffff99; "/>
  309. <caption id="caption5" class="cell" style="left:510px; top:120px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">预排时间</caption>
  310. <button id="button1" style="left:694px; top:120px; width:49px; height:20px; background-color:#99ccff; border-color:#000000; border-style:solid; ">
  311. <caption>确认</caption>
  312. <script type="javascript" ev:event="onclick">
  313. <![CDATA[
  314. var planDate = model.getValue("/root/formData/to_plan_date");
  315. var devlmtDate = getDEVLMTDate(planDate,model.getValue("/root/formData/proDay"));
  316. var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)" );
  317. for(var i = 1; i <= count; i++)
  318. {
  319. var chk = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/CHK");
  320. var product_line = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/PROD_LINE");
  321. if(chk == 'Y')
  322. {
  323. if(product_line == 'H'){
  324. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
  325. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", devlmtDate);
  326. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/H_ORD_DEVLMT_DATE",'');
  327. }else if(product_line == 'C'){
  328. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
  329. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/H_ORD_DEVLMT_DATE", getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")));
  330. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", getDEVLMTDate(getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")),model.getValue("/root/formData/ord_proDay")));
  331. }else if(product_line == 'L'){
  332. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
  333. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/H_ORD_DEVLMT_DATE", getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")));
  334. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", getDEVLMTDate(getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")),model.getValue("/root/formData/ord_proDay")));
  335. }else if(product_line == 'K'){
  336. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
  337. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", devlmtDate);
  338. }
  339. }
  340. }
  341. model.refresh();
  342. ]]>
  343. </script>
  344. </button>
  345. <line id="line4" style="x1:0px; y1:155px; x2:980px; y2:155px; "/>
  346. <caption id="caption6" class="cell" style="left:0px; top:595px; width:50px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">统计:</caption>
  347. <caption id="caption8" class="cell" style="left:55px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单数量</caption>
  348. <caption id="caption9" ref="/root/corde/countOrd" format="#,###" style="left:137px; top:595px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
  349. <caption id="caption10" class="cell" style="left:243px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单总重量</caption>
  350. <caption id="caption11" ref="/root/corde/sumOrd" format="#,###" style="left:325px; top:595px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
  351. <caption id="caption12" class="cell" style="left:508px; top:35px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">运输方式</caption>
  352. <select1 id="combo3" ref="/root/formData/DLIV_TP_CO" appearance="minimal" style="left:590px; top:35px; width:85px; height:20px; ">
  353. <choices>
  354. <item>
  355. <label>全部</label>
  356. <value/>
  357. </item>
  358. <item>
  359. <label>公路(车辆)</label>
  360. <value>C</value>
  361. </item>
  362. <item>
  363. <label>铁路(火车)</label>
  364. <value>T</value>
  365. </item>
  366. </choices>
  367. </select1>
  368. <caption id="caption13" class="cell" style="left:456px; top:595px; width:112px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">已确认的最大预排期</caption>
  369. <caption id="caption15" ref="/root/corde/max_to_plan_date" format="yyyy-mm-dd" style="left:569px; top:595px; width:69px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
  370. <input id="input11" ref="/root/total" format="#,###" style="left:831px; top:125px; width:105px; height:20px; "/>
  371. <caption id="caption16" style="left:764px; top:125px; width:65px; height:20px; background-color:#00ffff; border-color:#00ffff; border-style:solid; ">订单量统计</caption>
  372. <input id="combo105" ref="/root/formData/RCVORD_TP_CON" inputtype="button" appearance="minimal" style="left:471px; top:5px; width:111px; height:20px; ">
  373. <script type="javascript" ev:event="onclick">
  374. <![CDATA[
  375. //修改订单类型,可以多选。TL 091125
  376. checkbox2.visible = (checkbox2.visible == false);
  377. ]]>
  378. </script>
  379. </input>
  380. <select id="checkbox2" ref="/root/formData/RCVORD_TP_CON" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:470px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
  381. <choices>
  382. <item>
  383. <label>协议合同</label>
  384. <value>S</value>
  385. </item>
  386. <item>
  387. <label>现款合同</label>
  388. <value>K</value>
  389. </item>
  390. <item>
  391. <label>直销合同</label>
  392. <value>L</value>
  393. </item>
  394. <item>
  395. <label>自用合同</label>
  396. <value>E</value>
  397. </item>
  398. <item>
  399. <label>厂内合同</label>
  400. <value>T</value>
  401. </item>
  402. <item>
  403. <label>外贸合同</label>
  404. <value>W</value>
  405. </item>
  406. <item>
  407. <label>清库合同</label>
  408. <value>M</value>
  409. </item>
  410. </choices>
  411. </select>
  412. <script type="javascript" ev:event="onclick">
  413. <![CDATA[
  414. var target = event.target;
  415. var parent = event.pTarget.parent;
  416. var parent2 = null;
  417. if (parent != null) parent2 = parent.parent;
  418. if (target != "checkbox1" && target != "combo3"
  419. && parent != null && parent.attribute("id") != "checkbox1" && parent.attribute("id") != "combo3"
  420. && parent2 != null && parent2.attribute("id") != "checkbox1" && parent2.attribute("id") != "combo3")
  421. checkbox1.visible = false;
  422. if (target != "checkbox2" && target != "combo105"
  423. && parent != null && parent.attribute("id") != "checkbox2" && parent.attribute("id") != "combo105"
  424. && parent2 != null && parent2.attribute("id") != "checkbox2" && parent2.attribute("id") != "combo105")
  425. checkbox2.visible = false;
  426. ]]>
  427. </script>
  428. <caption id="caption21" class="cell" style="left:763px; top:5px; width:70px; height:20px; vertical-align:middle; ">产品类型</caption>
  429. <select1 id="combo2" ref="/root/formData/PRODNM_CD" appearance="minimal" style="left:610px; top:80px; width:110px; height:20px; ">
  430. <choices>
  431. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004' or LG_CD ='A']">
  432. <label ref="SM_CFNM"/>
  433. <value ref="SM_CD"/>
  434. </itemset>
  435. </choices>
  436. </select1>
  437. <input id="input12" ref="/root/formData/ord_proDay" disabled="false" style="left:859px; top:595px; width:38px; height:20px; text-align:right; "/>
  438. <caption id="caption22" class="cell" style="left:774px; top:595px; width:82px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">冷轧生产期</caption>
  439. <caption id="caption23" style="left:857px; top:37px; width:20px; height:15px; ">~</caption>
  440. <caption id="caption24" class="cell" style="left:715px; top:35px; width:50px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">预排期</caption>
  441. <input id="input13" ref="/root/formData/ORD_PLAN_DATE_TO" disabled="true" inputtype="date" editable="false" style="left:870px; top:35px; width:95px; height:20px; "/>
  442. <input id="input14" ref="/root/formData/ORD_PLAN_DATE_FR" disabled="true" inputtype="date" editable="false" style="left:765px; top:35px; width:90px; height:20px; "/>
  443. <select id="checkbox3" ref="/root/formData/CHE_VALUE" overflow="visible" appearance="full" style="left:695px; top:35px; width:15px; height:20px; border-style:none; ">
  444. <choices>
  445. <item>
  446. <label/>
  447. <value>Y</value>
  448. </item>
  449. </choices>
  450. <script type="javascript" ev:event="xforms-value-changed">
  451. <![CDATA[
  452. var chckValue = model.getValue("/root/formData/CHE_VALUE");
  453. if(chckValue == "Y"){
  454. input13.disabled = false;
  455. input14.disabled = false;
  456. model.setValue("/root/formData/ORD_PLAN_DATE_FR","00000000");
  457. model.setValue("/root/formData/ORD_PLAN_DATE_TO","00000000");
  458. }else{
  459. input13.disabled = true;
  460. input14.disabled = true;
  461. model.setValue("/root/formData/ORD_PLAN_DATE_FR","00000000");
  462. model.setValue("/root/formData/ORD_PLAN_DATE_TO","99999999");
  463. }
  464. model.refresh();
  465. ]]>
  466. </script>
  467. </select>
  468. <caption id="caption25" class="cell" style="left:0px; top:70px; width:95px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">产线</caption>
  469. <select1 id="combo4" ref="/root/formData/PRODLINE" appearance="minimal" style="left:95px; top:70px; width:100px; height:20px; ">
  470. <choices>
  471. <item>
  472. <label/>
  473. <value/>
  474. </item>
  475. <item>
  476. <label>热轧</label>
  477. <value>H</value>
  478. </item>
  479. <item>
  480. <label>冷轧</label>
  481. <value>C</value>
  482. </item>
  483. </choices>
  484. </select1>
  485. <caption id="caption26" class="cell" style="left:205px; top:70px; width:95px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单厚度</caption>
  486. <input id="input15" ref="/root/formData/TORDTHK" style="left:300px; top:70px; width:100px; height:20px; "/>
  487. <input id="input16" ref="/root/formData/PRODNM_CD" style="left:835px; top:5px; width:100px; height:20px; ">
  488. <script type="javascript" ev:event="onclick">
  489. <![CDATA[
  490. checkbox4.visible = (checkbox4.visible == false);
  491. ]]>
  492. </script>
  493. </input>
  494. <select id="checkbox4" ref="/root/formData/PRODNM_CD" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:835px; top:25px; width:100px; height:20px; background-color:#ffff99; border-width:1px; border-style:none; ">
  495. <choices>
  496. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004' or LG_CD ='A']">
  497. <label ref="SM_CFNM"/>
  498. <value ref="SM_CD"/>
  499. </itemset>
  500. </choices>
  501. </select>
  502. </xhtml:body>
  503. </xhtml:html>