UIK010030.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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. <COULD_YN/>
  16. </initData>
  17. <codeData>
  18. <ORD_SEQ/>
  19. </codeData>
  20. <formData>
  21. <searchInfo>
  22. <PRODNM_CD/>
  23. <CUST_CD/>
  24. <STL_GRD/>
  25. <ORD_NO_M/>
  26. <ORD_SEQ_M/>
  27. <RCVORD_CLF/>
  28. <DEL_FR_DATE/>
  29. <DEL_TO_DATE/>
  30. <ORD_USEAGE_CD/>
  31. <SPEC_ABBSYM/>
  32. <ORD_THK_MIN>0</ORD_THK_MIN>
  33. <ORD_THK_MAX>999.999</ORD_THK_MAX>
  34. <ORD_WTH_MIN>0</ORD_WTH_MIN>
  35. <ORD_WTH_MAX>99999.9</ORD_WTH_MAX>
  36. </searchInfo>
  37. <searchInfo2>
  38. <ORD_NO/>
  39. <ORD_SEQ/>
  40. <MAT_TP>AR</MAT_TP>
  41. <NIB028720>Y</NIB028720>
  42. <NIB028750>Y</NIB028750>
  43. <NIB028700>Y</NIB028700>
  44. <NIB028710>Y</NIB028710>
  45. <NIB028730>Y</NIB028730>
  46. <NIB028740/>
  47. </searchInfo2>
  48. <searchInfo3>
  49. <MAT_NOS/>
  50. <REP_TP/>
  51. <COIL_CNT>1</COIL_CNT>
  52. </searchInfo3>
  53. </formData>
  54. <gridData>
  55. <REM_WGT/>
  56. <ListResult_1_VO/>
  57. </gridData>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. if (window.parent == null) Init();
  63. ]]>
  64. </script>
  65. </model>
  66. <script type="javascript" src="../../js/boaCommon.js"/>
  67. <script type="javascript" src="../../js/boaMsg.js"/>
  68. <script type="javascript" src="../../js/mesCommon.js">
  69. <![CDATA[
  70. submitID = "UIE031045-service";
  71. var gv_ord_no = "";
  72. var gv_ord_seq = "";
  73. var gv_reg_id = "";
  74. //var v_ds_yn = "";
  75. function Init(node) {
  76. InitParams(node);
  77. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
  78. "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
  79. model.setValue("/root/formData/searchInfo/DEL_FR_DATE", commFirstDay());
  80. model.setValue("/root/formData/searchInfo/DEL_TO_DATE", commCurDate());
  81. pageInit();
  82. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  83. model.property("V_REG_ID") = model.getValue("/root/initData/rcvInfo/REG_ID");
  84. gv_reg_id = model.property("V_REG_ID");
  85. }
  86. function pageInit(refresh) {
  87. model.removenode("/root/reqData");
  88. model.removenode("/root/resData");
  89. model.refresh();
  90. if (typeof refresh == "undefined") {
  91. isReadOnly(datagrid1, "PRODNM_CD,ORD_USEAGE_CD");
  92. }
  93. var datagrid = datagrid2;
  94. datagrid.rebuild();
  95. commGridInit(datagrid);
  96. var rows = datagrid.rows;
  97. var colChk = datagrid.colRef("CHK");
  98. var colJKB = datagrid.colRef("JKB");
  99. var oddRow = false;
  100. for (var i=datagrid.fixedRows; i<rows; i++) {
  101. datagrid.valueMatrix(i, colChk) = "false";
  102. if (oddRow)
  103. datagrid.rowStyle(i, "data", "background-color") = "#F7F9F9";
  104. oddRow = !oddRow;
  105. if (Number(datagrid.valueMatrix(i, colJKB) > 1.5 ))
  106. datagrid.rowstyle(i, "data", "background-color") = "red";
  107. }
  108. colStyle(datagrid, "CHK");
  109. var visible = model.getValue("/root/formData/searchInfo2/MAT_TP") == "TM";
  110. datagrid.colHidden(datagrid.colRef("SPEC_STL_GRD")) = visible;
  111. datagrid.colHidden(datagrid.colRef("MAT_INDIA")) = visible;
  112. datagrid.colHidden(datagrid.colRef("MAT_OUTDIA")) = visible;
  113. datagrid.colHidden(datagrid.colRef("JKB")) = visible;
  114. }
  115. function color_ds_yn() {
  116. for(var i = 1;i<=datagrid1.rows-1;i++)
  117. {
  118. var v_ds_yn = datagrid1.valueMatrix(i,datagrid1.colRef("DN_YN"));
  119. var bgcolor = "#ffffff";
  120. if(v_ds_yn == "Y" ) {
  121. bgcolor = "pink";
  122. }
  123. else{
  124. bgcolor = "#ffffff";
  125. }
  126. datagrid1.rowstyle(i, "data", "background-color") = bgcolor;
  127. }
  128. }
  129. function find(req) {
  130. if (typeof req == "undefined") req = "/root/formData/searchInfo";
  131. exec(req, "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  132. model.refresh();
  133. color_ds_yn();
  134. pageInit();
  135. }
  136. function save() {}
  137. function create() {}
  138. function remove() {}
  139. var onrowchanged = false;
  140. function rowchanged() {
  141. showProgressBar();
  142. var datagrid = datagrid1;
  143. var row = datagrid.row;
  144. model.setValue("/root/formData/searchInfo2/ORD_NO", datagrid.valueMatrix(row, datagrid.colRef("ORD_NO")));
  145. model.setValue("/root/formData/searchInfo2/ORD_SEQ", datagrid.valueMatrix(row, datagrid.colRef("ORD_SEQ")));
  146. model.makeValue("/root/formData/searchInfo2/COIL_CNT",model.getValue("/root/formData/searchInfo3/COIL_CNT"));
  147. exec("/root/formData/searchInfo2", "", "onclick", "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
  148. model.setValue("/root/gridData/REM_WGT", datagrid.valueMatrix(row, datagrid.colRef("ORD_REM_WGT")));
  149. pageInit(false);
  150. removeProgressBar();
  151. }
  152. function fowardUID010031(gridID) {
  153. if(gridID.col == gridID.colRef("INGR_YN")) {
  154. model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
  155. model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
  156. model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  157. var java = window.parent.javaScript;
  158. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  159. }
  160. }
  161. ]]>
  162. </script>
  163. </xhtml:head>
  164. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  165. <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:80px; ">
  166. <line id="line2" style="x1:0px; y1:73px; x2:980px; y2:73px; "/>
  167. <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">产品</caption>
  168. <select1 id="combo101" ref="PRODNM_CD" appearance="minimal" style="left:92px; top:5px; width:127px; height:20px; ">
  169. <choices>
  170. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD='A']">
  171. <label ref="SM_CFNM"/>
  172. <value ref="SM_CD"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <caption id="caption102" class="cell" style="left:229px; top:5px; width:90px; height:20px; ">客户</caption>
  177. <select1 id="combo102" ref="CUST_CD" appearance="minimal" style="left:321px; top:5px; width:127px; height:20px; ">
  178. <choices>
  179. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  180. <label ref="CUST_NM"/>
  181. <value ref="CUST_CD"/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. <caption id="caption103" class="cell" style="left:458px; top:5px; width:90px; height:20px; ">钢号</caption>
  186. <select1 id="combo103" ref="STL_GRD" appearance="minimal" style="left:550px; top:5px; width:110px; height:20px; ">
  187. <choices>
  188. <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
  189. <label ref="STL_GRD"/>
  190. <value ref="STL_GRD"/>
  191. </itemset>
  192. </choices>
  193. </select1>
  194. <caption id="caption104" class="cell" style="left:0px; top:27px; width:90px; height:20px; ">合同号</caption>
  195. <input id="input1041" ref="ORD_NO_M" maxlength="12" style="left:92px; top:27px; width:80px; height:20px; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. model.setValue("/root/formData/searchInfo/ORD_SEQ_M", "");
  199. // if (model.getValue("/root/formData/searchInfo/ORD_NO_M").length == 12) {
  200. exec("/root/formData/searchInfo/ORD_NO_M", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  201. model.removenode("/root/reqData");
  202. model.removenode("/root/resData");
  203. // } else {
  204. // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
  205. // }
  206. model.refresh();
  207. ]]>
  208. </script>
  209. </input>
  210. <select1 id="combo1042" ref="ORD_SEQ_M" appearance="minimal" style="left:174px; top:27px; width:45px; height:20px; ">
  211. <choices>
  212. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row">
  213. <label ref="ORD_SEQ"/>
  214. <value ref="ORD_SEQ"/>
  215. </itemset>
  216. </choices>
  217. </select1>
  218. <caption id="caption105" class="cell" style="left:229px; top:27px; width:90px; height:20px; ">订货区分</caption>
  219. <select1 id="combo105" ref="RCVORD_CLF" appearance="minimal" style="left:321px; top:27px; width:127px; height:20px; ">
  220. <choices>
  221. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01001' or LG_CD='A']">
  222. <label ref="SM_CFNM"/>
  223. <value ref="SM_CD"/>
  224. </itemset>
  225. </choices>
  226. </select1>
  227. <caption id="caption106" class="cell" style="left:458px; top:27px; width:90px; height:20px; ">交货日期</caption>
  228. <input id="input1061" ref="DEL_FR_DATE" inputtype="date" style="left:550px; top:27px; width:100px; height:20px; "/>
  229. <input id="input1062" ref="DEL_TO_DATE" inputtype="date" style="left:652px; top:27px; width:100px; height:20px; "/>
  230. <caption id="caption107" class="cell" style="left:762px; top:27px; width:90px; height:20px; ">订单用途</caption>
  231. <select1 id="combo107" ref="ORD_USEAGE_CD" appearance="minimal" style="left:854px; top:27px; width:110px; height:20px; ">
  232. <choices>
  233. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007' or LG_CD='A']">
  234. <label ref="SM_CFNM"/>
  235. <value ref="SM_CD"/>
  236. </itemset>
  237. </choices>
  238. </select1>
  239. <select1 id="combo108" ref="SPEC_ABBSYM" appearance="minimal" style="left:92px; top:49px; width:127px; height:20px; ">
  240. <choices>
  241. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='B01001' or LG_CD = 'A']">
  242. <label ref="SM_CD"/>
  243. <value ref="SM_CD"/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <caption id="caption1" class="cell" style="left:0px; top:49px; width:90px; height:20px; ">标准号</caption>
  248. <caption id="caption108" class="cell" style="left:229px; top:49px; width:90px; height:20px; ">厚度</caption>
  249. <input id="input1081" ref="ORD_THK_MIN" maxlength="6" format="#,###.#" style="left:321px; top:49px; width:62px; height:20px; text-align:right; "/>
  250. <input id="input1082" ref="ORD_THK_MAX" maxlength="6" format="#,###.#" style="left:385px; top:49px; width:63px; height:20px; text-align:right; "/>
  251. <caption id="caption109" class="cell" style="left:458px; top:49px; width:90px; height:20px; ">宽度</caption>
  252. <input id="input1091" ref="ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:550px; top:49px; width:60px; height:20px; text-align:right; "/>
  253. <input id="input1092" ref="ORD_WTH_MAX" maxlength="6" format="#,###.#" style="left:612px; top:49px; width:60px; height:20px; text-align:right; "/>
  254. <button id="button1" class="sw" style="left:880px; top:5px; width:100px; height:20px; ">
  255. <caption>充当处理</caption>
  256. <script type="javascript" ev:event="onclick">
  257. <![CDATA[
  258. // NIE031031
  259. var v_ds_yn = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("DN_YN"));
  260. if(v_ds_yn == "Y" ) {
  261. alert("该订单正在板坯设计中,请稍候充当...");
  262. return;
  263. }
  264. exec("", "", "state");
  265. if (model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/PRC_STS") != "C") {
  266. alert("正在进行自动充当处理,当前不能进行手动充当作业!");
  267. return;
  268. }
  269. model.removenode("/root/reqData");
  270. model.removenode("/root/resData");
  271. var datagrid = datagrid2;
  272. var rowSep = (datagrid.attribute("rowsep")=='')?'|':datagrid.attribute('rowsep');
  273. var colSep = (datagrid.attribute("colsep")=='')?'^':datagrid.attribute('colsep');
  274. var data = datagrid.getUpdateData();
  275. var up_data = data.split(rowSep);
  276. var rows = up_data.length - 1;
  277. var colRef = datagrid.colRef("MAT_NO");
  278. var colChk = datagrid.colRef("CHK");
  279. var mat_nos = "";
  280. var rep_tp = "";
  281. var tag = "";
  282. for (var i=1; i<rows; i++) {
  283. var vRow = up_data[i].split(colSep);
  284. var Idx = Number(vRow[1]);
  285. if (datagrid.valueMatrix(Idx, colChk) == "Y")
  286. mat_nos += "," + datagrid.valueMatrix(Idx, colRef);
  287. }
  288. if(checkbox1.value == "Y"){
  289. rep_tp += "," + "CF";
  290. }else{
  291. tag += "," + "成分";
  292. }
  293. if(checkbox2.value == "Y"){
  294. rep_tp += "," + "CZ";
  295. }else{
  296. tag += "," + "材质";
  297. }
  298. if(checkbox3.value == "Y"){
  299. rep_tp += "," + "PH";
  300. }else{
  301. tag += "," + "牌号P";
  302. }
  303. if(checkbox5.value == "Y"){
  304. rep_tp += "," + "CC";
  305. }else{
  306. tag += "," + "尺寸";
  307. }
  308. if(checkbox6.value == "Y"){
  309. rep_tp += "," + "DZ";
  310. }else{
  311. tag += "," + "单重";
  312. }if(checkbox4.value == "Y"){
  313. rep_tp += "," + "CL";
  314. }else{
  315. tag += "," + "超量";
  316. }
  317. tag += "," + model.getValue("/root/formData/searchInfo3/COIL_CNT");
  318. //alert(tag);
  319. if (mat_nos != "") {
  320. model.setValue("/root/formData/searchInfo3/MAT_NOS", mat_nos.substring(1));
  321. model.setValue("/root/formData/searchInfo3/REP_TP", rep_tp.substring(1));
  322. exec("/root/formData", "", "replace", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
  323. if (model.getValue("/root/resData/errorData") != "") {
  324. // alert(model.getValue("/root/resData/errorData"));
  325. output201.value = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_REM_WGT"));
  326. output201.refresh();
  327. pageInit();
  328. return;
  329. }
  330. pageInit();
  331. }
  332. color_ds_yn();
  333. model.refresh();
  334. ]]>
  335. </script>
  336. </button>
  337. <button id="button2" style="left:690px; top:0px; width:65px; height:20px; ">
  338. <caption>查询</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. find();
  342. ]]>
  343. </script>
  344. </button>
  345. <select1 id="combo1" ref="STL_GRD" appearance="minimal" style="left:550px; top:5px; width:110px; height:20px; ">
  346. <choices>
  347. <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
  348. <label ref="STL_GRD"/>
  349. <value ref="STL_GRD"/>
  350. </itemset>
  351. </choices>
  352. </select1>
  353. <input id="input1" ref="ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:550px; top:49px; width:60px; height:20px; text-align:right; "/>
  354. </group>
  355. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="合同号^订单号^客户^产品类型^热轧交货状态^冷轧交货状态^钢号^成品钢号^标准号^订单用途^是否进保温坑^是否全部取样^订单厚度^订单宽度^订单长度^订单内径^订单外径^订单单重下限^订单单重上限^紧急材^交货期结束^订单重量^进程量^欠量^发货完重量^订货区分^发货方式^订单备注^板坯设计中^客户特殊要求" colsep="^" colwidth="80, 35, 150, 54, 52, 44, 150, 150, 150, 100, 45, 45, 80, 80, 80, 80, 80, 100, 100, 35, 100, 80, 80, 80, 80, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:78px; width:980px; height:210px; ">
  356. <col key="false" ref="ORD_NO"/>
  357. <col key="false" ref="ORD_SEQ"/>
  358. <col key="false" ref="CUST_CD" style="text-align:left; "/>
  359. <col key="false" ref="PRD_TY" type="combo" style="text-align:left; ">
  360. <choices>
  361. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004']">
  362. <label ref="SM_CFNM"/>
  363. <value ref="SM_CD"/>
  364. </itemset>
  365. </choices>
  366. </col>
  367. <col key="false" ref="PRODNM_CD"/>
  368. <col key="false" ref="C_PRODNM_CD"/>
  369. <col ref="STL_GRD" style="text-align:left; "/>
  370. <col ref="SPEC_STL_GRD" style="text-align:left; "/>
  371. <col key="false" ref="SPEC_ABBSYM" style="text-align:left; "/>
  372. <col key="false" ref="ORD_USEAGE_CD" type="combo" style="text-align:left; ">
  373. <choices>
  374. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007']">
  375. <label ref="SM_CFNM"/>
  376. <value ref="SM_CD"/>
  377. </itemset>
  378. </choices>
  379. </col>
  380. <col ref="KEEPWARM_YN"/>
  381. <col ref="EACHLOT_YN"/>
  382. <col key="false" ref="ORD_THK" format="#,###.#" style="text-align:right; "/>
  383. <col key="false" ref="ORD_WTH" format="#,###.#" style="text-align:right; "/>
  384. <col key="false" ref="ORD_LEN" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  385. <col key="false" ref="ORD_INDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  386. <col key="false" ref="ORD_OUTDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  387. <col ref="ORD_UNIT_WGT_MIN" format="#,###.#" style="text-align:right; "/>
  388. <col ref="ORD_UNIT_WGT_MAX" format="#,###.#" style="text-align:right; "/>
  389. <col key="false" ref="EMGMTR_NMG_CLF"/>
  390. <col key="false" ref="DEL_TO_DATE" format="yyyy-mm-dd"/>
  391. <col ref="ORD_WGT" format="#,###.#" style="text-align:right; "/>
  392. <col ref="ORD_PRC_WGT" format="#,###.#" style="text-align:right; "/>
  393. <col ref="ORD_REM_WGT" format="(-)#,###.#" style="text-align:right; "/>
  394. <col ref="SHIP_END_WGT" format="#,###.#" style="text-align:right; "/>
  395. <col ref="RCVORD_CLF" style="text-align:left; "/>
  396. <col ref="DLIV_TP" style="text-align:left; "/>
  397. <col ref="MK_CONTENT" style="text-align:left; "/>
  398. <col ref="DN_YN"/>
  399. <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  400. <script type="javascript" ev:event="onclick">
  401. <![CDATA[
  402. fowardUID010031(datagrid1);
  403. ]]>
  404. </script>
  405. </col>
  406. <script type="javascript" ev:event="onclick">
  407. <![CDATA[
  408. if(datagrid1.col != datagrid1.colRef("INGR_YN")) {
  409. var v_ds_yn = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("DN_YN"));
  410. if(v_ds_yn == "Y" ) {
  411. alert("该订单正在板坯设计中,请稍候充当...");
  412. model.removenode("/root/gridData/ListResult_1_VO");
  413. model.makeNode("/root/gridData/ListResult_1_VO");
  414. model.refresh();
  415. return;
  416. }
  417. if (!onrowchanged) return;
  418. rowchanged();
  419. onrowchanged = false;
  420. }
  421. ]]>
  422. </script>
  423. <script type="javascript" ev:event="onrowchanged">
  424. <![CDATA[
  425. onrowchanged = true;
  426. ]]>
  427. </script>
  428. <script type="javascript" ev:event="ondblclick">
  429. <![CDATA[
  430. var datagrid = datagrid1;
  431. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  432. ]]>
  433. </script>
  434. </datagrid>
  435. <group id="group2" overflow="hidden" ref="/root/formData/searchInfo2" style="left:0px; top:292px; width:980px; height:35px; ">
  436. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  437. <line id="line4" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  438. <caption id="caption201" class="cell" style="left:0px; top:5px; width:75px; height:20px; ">物料类型</caption>
  439. <select1 id="combo201" ref="/root/formData/searchInfo2/MAT_TP" appearance="minimal" style="left:77px; top:5px; width:103px; height:20px; ">
  440. <choices>
  441. <item>
  442. <label>非计划热轧卷</label>
  443. <value>AR</value>
  444. </item>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-value-changed">
  447. <![CDATA[
  448. rowchanged();
  449. ]]>
  450. </script>
  451. </select1>
  452. <select id="checkbox1" ref="NIB028720" disabled="false" overflow="visible" appearance="full" style="left:865px; top:5px; width:55px; height:20px; border-style:none; ">
  453. <choices>
  454. <item>
  455. <label>同成分</label>
  456. <value>Y</value>
  457. </item>
  458. </choices>
  459. <script type="javascript" ev:event="xforms-value-changed">
  460. <![CDATA[
  461. rowchanged();
  462. ]]>
  463. </script>
  464. </select>
  465. <select id="checkbox2" ref="NIB028750" disabled="false" overflow="visible" appearance="full" style="left:924px; top:5px; width:55px; height:20px; border-style:none; ">
  466. <choices>
  467. <item>
  468. <label>同材质</label>
  469. <value>Y</value>
  470. </item>
  471. </choices>
  472. <script type="javascript" ev:event="xforms-value-changed">
  473. <![CDATA[
  474. rowchanged();
  475. ]]>
  476. </script>
  477. </select>
  478. <caption id="caption2" class="cell" style="left:190px; top:5px; width:75px; height:20px; ">剩余充当量</caption>
  479. <output id="output201" ref="/root/gridData/REM_WGT" format="#,###" style="left:265px; top:5px; width:90px; height:20px; text-align:right; border-color:#c0c0c0; border-style:solid; "/>
  480. <select id="checkbox3" ref="NIB028700" overflow="visible" appearance="full" style="left:805px; top:5px; width:55px; height:20px; border-style:none; ">
  481. <choices>
  482. <item>
  483. <label>同牌号</label>
  484. <value>Y</value>
  485. </item>
  486. </choices>
  487. <script type="javascript" ev:event="xforms-value-changed">
  488. <![CDATA[
  489. rowchanged();
  490. ]]>
  491. </script>
  492. </select>
  493. <select id="checkbox4" ref="NIB028740" disabled="false" overflow="visible" appearance="full" style="left:505px; top:5px; width:95px; height:20px; border-color:#000000; border-style:solid; ">
  494. <choices>
  495. <item>
  496. <label>允许超量充当</label>
  497. <value>Y</value>
  498. </item>
  499. </choices>
  500. <script type="javascript" ev:event="xforms-value-changed">
  501. <![CDATA[
  502. rowchanged();
  503. ]]>
  504. </script>
  505. </select>
  506. <select id="checkbox5" ref="NIB028730" overflow="visible" appearance="full" style="left:745px; top:5px; width:55px; height:20px; border-style:none; ">
  507. <choices>
  508. <item>
  509. <label>同尺寸</label>
  510. <value>Y</value>
  511. </item>
  512. </choices>
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. rowchanged();
  516. ]]>
  517. </script>
  518. </select>
  519. <select id="checkbox6" ref="NIB028710" overflow="visible" appearance="full" style="left:685px; top:5px; width:55px; height:20px; border-style:none; ">
  520. <choices>
  521. <item>
  522. <label>同单重</label>
  523. <value>Y</value>
  524. </item>
  525. </choices>
  526. <script type="javascript" ev:event="xforms-value-changed">
  527. <![CDATA[
  528. rowchanged();
  529. ]]>
  530. </script>
  531. </select>
  532. <caption id="caption3" class="cell" style="left:370px; top:5px; width:60px; height:20px; ">成品卷数</caption>
  533. <input id="input2" ref="/root/formData/searchInfo3/COIL_CNT" style="left:430px; top:5px; width:40px; height:20px; "/>
  534. </group>
  535. <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="选取^物料号^厂内钢号^成品钢号^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^径宽比^生产日期^余材原因^堆放位置^是否进保温坑^是否取样^最初合同号^最初订单号^钢卷备注^MAT_REP_WGT^钢卷流水号" colsep="^" colwidth="35, 100, 150, 150, 80, 80, 80, 80, 80, 80, 100, 100, 100, 100, 45, 40, 80, 45, 100, 100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:325px; width:735px; height:294px; ">
  536. <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
  537. <col key="false" ref="DSP_NO"/>
  538. <col key="false" ref="STL_GRD" style="text-align:left; "/>
  539. <col key="false" ref="SPEC_STL_GRD" style="text-align:left; "/>
  540. <col ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
  541. <col ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
  542. <col ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
  543. <col ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
  544. <col ref="MAT_INDIA" format="#,###.#" style="text-align:right; "/>
  545. <col ref="MAT_OUTDIA" format="#,###.#" style="text-align:right; "/>
  546. <col ref="JKB" format="#,###.#" style="text-align:right; "/>
  547. <col key="false" ref="MAT_DTIME" format="yyyy-mm-dd"/>
  548. <col key="false" ref="NONORD_CAUSE_CD" style="text-align:left; "/>
  549. <col key="false" ref="CUR_LOAD_LOC"/>
  550. <col ref="KEEPWARM_YN"/>
  551. <col ref="SAMPL_PICK_YN"/>
  552. <col key="false" ref="ORG_ORD_NO"/>
  553. <col key="false" ref="ORG_ORD_SEQ"/>
  554. <col ref="REM_YARD"/>
  555. <col key="false" ref="MAT_REP_WGT" visibility="hidden"/>
  556. <col ref="MAT_NO" visibility="hidden"/>
  557. <script type="javascript" ev:event="xforms-value-changed">
  558. <![CDATA[
  559. var datagrid = datagrid2;
  560. var colChk = datagrid.colRef("CHK");
  561. if (datagrid.col != colChk) return;
  562. var row = datagrid.row;
  563. // 可充当的余重
  564. var remWgt = Number(model.getValue("/root/gridData/REM_WGT"));
  565. if (datagrid.valueMatrix(row, colChk) == "Y") {
  566. if (remWgt <= 0 && model.getValue("/root/formData/searchInfo2/NIB028740")!= "Y") {
  567. alert("已经充当满,不能再充当了!");
  568. datagrid.valueMatrix(row, colChk) = "N";
  569. datagrid.rowStatus(row) = 0;
  570. return;
  571. } else {
  572. remWgt -= Number(datagrid.valueMatrix(row, datagrid.colRef("MAT_REP_WGT")));
  573. }
  574. } else {
  575. remWgt += Number(datagrid.valueMatrix(row, datagrid.colRef("MAT_REP_WGT")));
  576. datagrid.rowStatus(row) = 0;
  577. }
  578. model.setValue("/root/gridData/REM_WGT", remWgt);
  579. //这里选择的时候就给出钢卷备注提示
  580. if (datagrid.valueMatrix(row, colChk) == "Y") {
  581. var REM_YARD = datagrid.valueMatrix(row,datagrid.colRef("REM_YARD"));
  582. if(REM_YARD != ""){
  583. alert("此钢卷存在备注:"+REM_YARD);
  584. }
  585. }
  586. ]]>
  587. </script>
  588. <script type="javascript" ev:event="ondblclick">
  589. <![CDATA[
  590. var datagrid = datagrid2;
  591. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  592. ]]>
  593. </script>
  594. </datagrid>
  595. <datagrid id="datagrid3" nodeset="/root/gridData/ListResult_2_VO/ListResult_2_Row" caption="物料号^堆置位置^物料重量" colsep="^" colwidth="93, 68, 56" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="45" rowsep="|" style="left:738px; top:325px; width:241px; height:294px; ">
  596. <col ref="MAT_NO"/>
  597. <col ref="CUR_LOAD_LOC" style="text-align:left; "/>
  598. <col ref="MAT_WGT" style="text-align:right; "/>
  599. </datagrid>
  600. <shape id="rectangle5" appearance="rectangle" style="left:605px; top:295px; width:10px; height:20px; background-color:red; "/>
  601. <caption id="caption5" style="left:615px; top:295px; width:53px; height:20px; vertical-align:middle; ">超径宽比</caption>
  602. </xhtml:body>
  603. </xhtml:html>