25ebd4dc5701da8a57e8efbce27e1f485bdef328.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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>
  6. <![CDATA[进程管理 >> 充当管理 >> 充当处理结果查询与修改]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <searchInfo>
  13. <LG_CD>A01001,A01004,A01007,B01001</LG_CD>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. <ORD_SEQ/>
  18. </codeData>
  19. <formData>
  20. <searchInfo>
  21. <PRODNM_CD/>
  22. <CUST_CD/>
  23. <STL_GRD/>
  24. <ORD_NO_M/>
  25. <ORD_SEQ_M/>
  26. <RCVORD_CLF/>
  27. <DEL_FR_DATE/>
  28. <DEL_TO_DATE/>
  29. <ORD_USEAGE_CD/>
  30. <SPEC_ABBSYM/>
  31. <ORD_THK_MIN>0</ORD_THK_MIN>
  32. <ORD_THK_MAX>999.999</ORD_THK_MAX>
  33. <ORD_WTH_MIN>0</ORD_WTH_MIN>
  34. <ORD_WTH_MAX>99999.9</ORD_WTH_MAX>
  35. </searchInfo>
  36. <searchInfo2>
  37. <MAT_TP/>
  38. </searchInfo2>
  39. </formData>
  40. <gridData>
  41. </gridData>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. if (window.parent == null) Init();
  47. ]]>
  48. </script>
  49. </model>
  50. <script type="javascript" src="../../js/boaCommon.js"/>
  51. <script type="javascript" src="../../js/boaMsg.js"/>
  52. <script type="javascript" src="../../js/mesCommon.js">
  53. <![CDATA[
  54. submitID = "UIE031040-service";
  55. function Init(node) {
  56. InitParams(node);
  57. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
  58. "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
  59. model.setValue("/root/formData/searchInfo/DEL_FR_DATE", commFirstDay());
  60. model.setValue("/root/formData/searchInfo/DEL_TO_DATE", commCurDate());
  61. pageInit();
  62. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  63. }
  64. function pageInit(refresh) {
  65. model.removenode("/root/reqData");
  66. model.removenode("/root/resData");
  67. model.refresh();
  68. if (typeof refresh == "undefined") {
  69. var datagrid = datagrid1;
  70. datagrid.rebuild();
  71. isReadOnly(datagrid, "CUST_CD,PRODNM_CD,ORD_USEAGE_CD");
  72. colStyle(datagrid, "DESIGN_SLAB_THK,DESIGN_SLAB_WTH,DESIGN_SLAB_LEN");
  73. }
  74. var datagrid = datagrid2;
  75. commGridLevel2(datagrid);
  76. colStyle(datagrid, "CHK");
  77. }
  78. function find() {
  79. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  80. pageInit();
  81. }
  82. function save() {
  83. exec("/root/formData/searchInfo", datagrid1, "save", "/root/gridData/ListResult_0_VO");
  84. pageInit();
  85. }
  86. function create() {}
  87. function remove() {
  88. var datagrid = datagrid2;
  89. if (datagrid.fixedRows == datagrid.rows) {
  90. alert("网格中没有记录!!!");
  91. return;
  92. }
  93. if(commComfirmBox("确定要删除选定的充当对象吗?", "删除确认") == '0') return;
  94. var rowSep = (datagrid.attribute("rowsep")=='')?'|':datagrid.attribute('rowsep');
  95. var colSep = (datagrid.attribute("colsep")=='')?'^':datagrid.attribute('colsep');
  96. var data = datagrid.getUpdateData();
  97. var up_data = data.split(rowSep);
  98. var rows = up_data.length - 1;
  99. var colChk = datagrid.colRef("CHK");
  100. for (var i=1; i<rows; i++) {
  101. var vRow = up_data[i].split(colSep);
  102. var Idx = Number(vRow[1]);
  103. if (datagrid.valueMatrix(Idx, colChk) != "Y")
  104. datagrid.rowStatus(Idx) = 0;
  105. }
  106. exec("/root/formData", datagrid, "delete", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  107. pageInit();
  108. }
  109. var onrowchanged = false;
  110. function rowchanged() {
  111. showProgressBar();
  112. var datagrid = datagrid1;
  113. var row = datagrid.row;
  114. commSendReq("/root/formData/searchInfo2/MAT_TP");
  115. model.makeValue("/root/reqData/ORD_NO", datagrid.valueMatrix(row, datagrid.colRef("ORD_NO")));
  116. model.makeValue("/root/reqData/ORD_SEQ", datagrid.valueMatrix(row, datagrid.colRef("ORD_SEQ")));
  117. exec("", "", "onclick", "/root/gridData/ListResult_1_VO");
  118. pageInit(false);
  119. removeProgressBar();
  120. }
  121. ]]>
  122. </script>
  123. </xhtml:head>
  124. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  125. <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:80px; ">
  126. <line id="line2" style="x1:0px; y1:73px; x2:980px; y2:73px; "/>
  127. <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">产品</caption>
  128. <select1 id="combo101" ref="PRODNM_CD" appearance="minimal" style="left:92px; top:5px; width:127px; height:20px; ">
  129. <choices>
  130. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD='A']">
  131. <label ref="SM_CFNM"/>
  132. <value ref="SM_CD"/>
  133. </itemset>
  134. </choices>
  135. </select1>
  136. <caption id="caption102" class="cell" style="left:229px; top:5px; width:90px; height:20px; ">客户</caption>
  137. <select1 id="combo102" ref="CUST_CD" appearance="minimal" style="left:321px; top:5px; width:127px; height:20px; ">
  138. <choices>
  139. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  140. <label ref="CUST_NM"/>
  141. <value ref="CUST_CD"/>
  142. </itemset>
  143. </choices>
  144. </select1>
  145. <caption id="caption103" class="cell" style="left:458px; top:5px; width:90px; height:20px; ">钢号</caption>
  146. <select1 id="combo103" ref="STL_GRD" appearance="minimal" style="left:550px; top:5px; width:110px; height:20px; ">
  147. <choices>
  148. <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
  149. <label ref="STL_GRD"/>
  150. <value ref="STL_GRD"/>
  151. </itemset>
  152. </choices>
  153. </select1>
  154. <caption id="caption104" class="cell" style="left:0px; top:27px; width:90px; height:20px; ">合同号</caption>
  155. <input id="input1041" ref="ORD_NO_M" maxlength="12" style="left:92px; top:27px; width:80px; height:20px; ">
  156. <script type="javascript" ev:event="xforms-value-changed">
  157. <![CDATA[
  158. model.setValue("/root/formData/searchInfo/ORD_SEQ_M", "");
  159. // if (model.getValue("/root/formData/searchInfo/ORD_NO_M").length == 12) {
  160. exec("/root/formData/searchInfo/ORD_NO_M", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  161. model.removenode("/root/reqData");
  162. model.removenode("/root/resData");
  163. // } else {
  164. // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
  165. // }
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </input>
  170. <select1 id="combo1042" ref="ORD_SEQ_M" appearance="minimal" style="left:174px; top:27px; width:45px; height:20px; ">
  171. <choices>
  172. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row">
  173. <label ref="ORD_SEQ"/>
  174. <value ref="ORD_SEQ"/>
  175. </itemset>
  176. </choices>
  177. </select1>
  178. <caption id="caption105" class="cell" style="left:229px; top:27px; width:90px; height:20px; ">订货区分</caption>
  179. <select1 id="combo105" ref="RCVORD_CLF" appearance="minimal" style="left:321px; top:27px; width:127px; height:20px; ">
  180. <choices>
  181. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01001' or LG_CD='A']">
  182. <label ref="SM_CFNM"/>
  183. <value ref="SM_CD"/>
  184. </itemset>
  185. </choices>
  186. </select1>
  187. <caption id="caption106" class="cell" style="left:458px; top:27px; width:90px; height:20px; ">交货日期</caption>
  188. <input id="input1061" ref="DEL_FR_DATE" inputtype="date" style="left:550px; top:27px; width:100px; height:20px; "/>
  189. <input id="input1062" ref="DEL_TO_DATE" inputtype="date" style="left:652px; top:27px; width:100px; height:20px; "/>
  190. <caption id="caption107" class="cell" style="left:762px; top:27px; width:90px; height:20px; ">订单用途</caption>
  191. <select1 id="combo107" ref="ORD_USEAGE_CD" appearance="minimal" style="left:854px; top:27px; width:110px; height:20px; ">
  192. <choices>
  193. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007' or LG_CD='A']">
  194. <label ref="SM_CFNM"/>
  195. <value ref="SM_CD"/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <select1 id="combo108" ref="SPEC_ABBSYM" appearance="minimal" style="left:92px; top:49px; width:127px; height:20px; ">
  200. <choices>
  201. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='B01001' or LG_CD = 'A']">
  202. <label ref="SM_CD"/>
  203. <value ref="SM_CD"/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <caption id="caption1" class="cell" style="left:0px; top:49px; width:90px; height:20px; ">标准号</caption>
  208. <caption id="caption108" class="cell" style="left:229px; top:49px; width:90px; height:20px; ">厚度</caption>
  209. <input id="input1081" ref="ORD_THK_MIN" maxlength="6" format="#,###.#" style="left:321px; top:49px; width:62px; height:20px; text-align:right; "/>
  210. <input id="input1082" ref="ORD_THK_MAX" maxlength="6" format="#,###.#" style="left:385px; top:49px; width:63px; height:20px; text-align:right; "/>
  211. <caption id="caption109" class="cell" style="left:458px; top:49px; width:90px; height:20px; ">宽度</caption>
  212. <input id="input1091" ref="ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:550px; top:49px; width:60px; height:20px; text-align:right; "/>
  213. <input id="input1092" ref="ORD_WTH_MAX" maxlength="6" format="#,###.#" style="left:612px; top:49px; width:60px; height:20px; text-align:right; "/>
  214. <button id="button1" class="sw" style="left:880px; top:5px; width:100px; height:20px; ">
  215. <caption>充当确认处理</caption>
  216. <script type="javascript" ev:event="onclick">
  217. <![CDATA[
  218. // NIE031041、NIE031042
  219. exec("/root/initData/rcvInfo/REG_ID", "", "replace");
  220. var allowed = model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row/Allowed");
  221. if (allowed == "False")
  222. alert("JOB管理中对订单充当作了限制,不允许操作!");
  223. else if (allowed == "Step")
  224. alert("请首先进行充当对象订单/物料选定!");
  225. else {
  226. model.removenode("/root/gridData/ListResult_0_VO");
  227. model.removenode("/root/gridData/ListResult_1_VO");
  228. pageInit();
  229. }
  230. ]]>
  231. </script>
  232. </button>
  233. </group>
  234. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="合同号^订单号^客户^产品^钢号^标准号^订单用途^订单厚度^订单宽度^订单长度^订单内径^订单外径^订单单重下限^订单单重上限^紧急材^交货期结束^设计板坯厚度^设计板坯宽度^设计板坯长度^设计板坯重量^订单重量^交付允许误差最小^交付允许误差最大^充当对象重量^充当确定重量^充当重量^充当余量重量" colsep="^" colwidth="80, 35, 150, 45, 150, 150, 150, 80, 80, 80, 80, 80, 80, 80, 35, 100, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:78px; width:980px; height:210px; ">
  235. <col ref="ORD_NO"/>
  236. <col ref="ORD_SEQ"/>
  237. <col key="false" ref="CUST_CD" type="combo" style="text-align:left; ">
  238. <choices>
  239. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  240. <label ref="CUST_NM"/>
  241. <value ref="CUST_CD"/>
  242. </itemset>
  243. </choices>
  244. </col>
  245. <col key="false" ref="PRODNM_CD" type="combo">
  246. <choices>
  247. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004']">
  248. <label ref="SM_CFNM"/>
  249. <value ref="SM_CD"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col key="false" ref="STL_GRD" style="text-align:left; "/>
  254. <col key="false" ref="SPEC_ABBSYM" style="text-align:left; "/>
  255. <col key="false" ref="ORD_USEAGE_CD" type="combo" style="text-align:left; ">
  256. <choices>
  257. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007']">
  258. <label ref="SM_CFNM"/>
  259. <value ref="SM_CD"/>
  260. </itemset>
  261. </choices>
  262. </col>
  263. <col key="false" ref="ORD_THK" format="#,###.#" style="text-align:right; "/>
  264. <col key="false" ref="ORD_WTH" format="#,###.#" style="text-align:right; "/>
  265. <col key="false" ref="ORD_LEN" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  266. <col key="false" ref="ORD_INDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  267. <col key="false" ref="ORD_OUTDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  268. <col key="false" ref="ORD_WGT_MIN" format="#,###.#" style="text-align:right; "/>
  269. <col key="false" ref="ORD_WGT_MAX" format="#,###.#" style="text-align:right; "/>
  270. <col key="false" ref="EMGMTR_NMG_CLF"/>
  271. <col key="false" ref="DEL_TO_DATE" format="yyyy-mm-dd"/>
  272. <col ref="DESIGN_SLAB_THK" type="input" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  273. <col ref="DESIGN_SLAB_WTH" type="input" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  274. <col ref="DESIGN_SLAB_LEN" type="input" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  275. <col key="false" ref="DESIGN_SLAB_WGT" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  276. <col key="false" ref="ORD_WGT" format="#,###.#" style="text-align:right; "/>
  277. <col key="false" ref="WGT_ACVAL_MIN" format="#,###.#" style="text-align:right; "/>
  278. <col key="false" ref="WGT_ACVAL_MAX" format="#,###.#" style="text-align:right; "/>
  279. <col key="false" ref="REP_TOT_WGT" format="#,###.#" style="text-align:right; "/>
  280. <col key="false" ref="REP_CONF_WGT" format="#,###.#" style="text-align:right; "/>
  281. <col key="false" ref="REP_WGT" format="#,###.#" style="text-align:right; "/>
  282. <col key="false" ref="REP_REM_WGT" format="(-)#,###.#" style="text-align:right; "/>
  283. <script type="javascript" ev:event="onclick">
  284. <![CDATA[
  285. if (!onrowchanged) return;
  286. rowchanged();
  287. onrowchanged = false;
  288. ]]>
  289. </script>
  290. <script type="javascript" ev:event="onrowchanged">
  291. <![CDATA[
  292. onrowchanged = true;
  293. ]]>
  294. </script>
  295. <script type="javascript" ev:event="ondblclick">
  296. <![CDATA[
  297. var datagrid = datagrid1;
  298. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  299. ]]>
  300. </script>
  301. </datagrid>
  302. <group id="group2" overflow="hidden" ref="/root/formData/searchInfo2" style="left:0px; top:292px; width:980px; height:35px; ">
  303. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  304. <line id="line4" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  305. <caption id="caption201" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">物料类型</caption>
  306. <select1 id="combo201" ref="MAT_TP" appearance="minimal" style="left:92px; top:5px; width:110px; height:20px; ">
  307. <choices>
  308. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD='A']">
  309. <label ref="SM_CFNM"/>
  310. <value ref="SM_CD"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. rowchanged();
  316. ]]>
  317. </script>
  318. </select1>
  319. </group>
  320. <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" visibility="visible" caption="物料号^类型^删除^合同号^订单号^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^钢号^生产日期^余材原因^堆放位置^钢卷流水号" colsep="^" colwidth="105, 35, 35, 80, 35, 80, 80, 80, 80, 80, 80, 150, 100, 150, 100, 100" extendlastcol="false" frozencols="5" mergecellsfixedrows="bycolrec" rowheight="45" rowsep="|" style="left:0px; top:326px; width:980px; height:294px; ">
  321. <col key="false" ref="DSP_NO" style="text-align:left; "/>
  322. <col key="false" ref="MAT_NAME"/>
  323. <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox" style="text-align:right; "/>
  324. <col key="false" ref="ORD_NO"/>
  325. <col key="false" ref="ORD_SEQ"/>
  326. <col key="false" ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
  327. <col key="false" ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
  328. <col key="false" ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
  329. <col key="false" ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
  330. <col key="false" ref="COIL_INDIA" format="#,###.#" style="text-align:right; "/>
  331. <col key="false" ref="COIL_OUTDIA" format="#,###.#" style="text-align:right; "/>
  332. <col key="false" ref="STL_GRD" style="text-align:left; "/>
  333. <col key="false" ref="PROD_DTIME" format="yyyy-mm-dd"/>
  334. <col key="false" ref="WOO_RSN" style="text-align:left; "/>
  335. <col key="false" ref="LOC"/>
  336. <col ref="MAT_NO" visibility="hidden"/>
  337. <script type="javascript" ev:event="ondblclick">
  338. <![CDATA[
  339. var datagrid = datagrid2;
  340. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  341. ]]>
  342. </script>
  343. </datagrid>
  344. </xhtml:body>
  345. </xhtml:html>