628df90d532ab76b98fcfb4b3cb57cbebc50c229.svn-base 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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. <formData>
  12. <ORD_NO/>
  13. <ORD_SEQ/>
  14. <ORD_Min_THK>0</ORD_Min_THK>
  15. <ORD_Max_THK>16.1</ORD_Max_THK>
  16. <ORD_Min_WTH>0</ORD_Min_WTH>
  17. <ORD_Max_WTH>1600</ORD_Max_WTH>
  18. <CUR_LOAD_LOC/>
  19. <startTime/>
  20. <endTime/>
  21. </formData>
  22. <grdCoilData/>
  23. <grdPlanData/>
  24. <grdPlanListData/>
  25. <cmbLoadData YARD_CLF=""/>
  26. <cmbOrdSEQ ORD_SEQ=""/>
  27. <gridData/>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. findLoadData();
  33. grd_PlanList.fixedcellcheckbox(0,grd_PlanList.colRef("CHK"))=true;
  34. ]]>
  35. </script>
  36. </model>
  37. <script type="javascript" src="../../js/boaMsg.js"/>
  38. <script type="javascript" src="../../js/boaCommon.js"/>
  39. <script type="javascript" src="../../js/mesCommon.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. function find()
  43. {
  44. model.setValue("/root/formData/startTime",model.getValue("/root/formData/startTime"));
  45. model.setValue("/root/formData/endTime",model.getValue("/root/formData/endTime"));
  46. commSendReq("/root/formData");
  47. commSubmit("UIH060050-service","findSPMPlan","glueAction.do");
  48. commAppendData("/root/gridData/SPMPlanData_VO" ,"/root/resData/SPMPlanData_VO" );
  49. commAppendData("/root/gridData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
  50. model.refresh();
  51. for(var i = grd_PlanInfo.fixedRows; i < grd_PlanInfo.rows ; i++){
  52. if(grd_PlanInfo.valueMatrix(i,grd_PlanInfo.colRef("L2_SEND")) == "Y")
  53. grd_PlanInfo.rowStyle(i,"data","background-color") = "#00ccff";
  54. }
  55. }
  56. function findLoadData()
  57. {
  58. model1.removenode("/root/grdPlanData");
  59. model1.removenode("/root/grdPlanListData");
  60. commSubmit("UIH060050-service","findSPMPlan","glueAction.do");
  61. commAppendData("/root/cmbLoadData/Load_Data_VO" ,"/root/resData/Load_Data_VO" );
  62. commAppendData("/root/gridData/SPMPlanData_VO" ,"/root/resData/SPMPlanData_VO" );
  63. commAppendData("/root/gridData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
  64. model.refresh();
  65. for(var i = grd_PlanInfo.fixedRows; i < grd_PlanInfo.rows ; i++){
  66. if(grd_PlanInfo.valueMatrix(i,grd_PlanInfo.colRef("L2_SEND")) == "Y")
  67. grd_PlanInfo.rowStyle(i,"data","background-color") = "#00ccff";
  68. }
  69. }
  70. function findOrdSEQ()
  71. {
  72. model1.removenode("/root/grdPlanData");
  73. model1.removenode("/root/grdPlanListData");
  74. model1.removenode("/root/grdCoilData");
  75. commSendReq("/root/formData");
  76. commSubmit("UIH060030-service","findOrdSEQ","glueAction.do");
  77. commAppendData("/root/cmbOrdSEQ/OrdSEQData_VO" ,"/root/resData/OrdSEQData_VO" );
  78. }
  79. function findSPMPlan()
  80. {
  81. model1.removenode("/root/grdPlanData");
  82. model1.removenode("/root/grdPlanListData");
  83. commSubmit("UIH060030-service","findSPMPlan","glueAction.do");
  84. commAppendData("/root/grdPlanData/SPMPlanData_VO" ,"/root/resData/SPMPlanData_VO" );
  85. commAppendData("/root/grdPlanListData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
  86. }
  87. function AddCoil()
  88. {
  89. model.removenode("/root/reqData");
  90. model.makeNode("/root/reqData");
  91. //commMultiUpdate(grd_CoilInfo,"/root/reqData" ,"A", true, "rowStatus");
  92. model.makeValue("/root/reqData/COIL_NO["+1+"]" , "12");
  93. model.makeValue("/root/reqData/COIL_NO["+2+"]" , "32");
  94. commSubmit("UIH060030-service","findSPMPlan","glueAction.do");
  95. var index_ = 1;
  96. for(var i;i<grd_CoilInfo.rows;i++)
  97. {
  98. var chk_value = grd_CoilInfo.valueMatrix(i,grd_CoilInfo.colRef("CHK"));
  99. if(chk_value == "Y")
  100. {
  101. model.makeValue("/root/reqData/COIL_NO["+index_+"]" , grd_CoilInfo.valueMatrix(i,grd_CoilInfo.colRef("OLD_SAMPL_NO")));
  102. }
  103. }
  104. commSubmit("UIH060030-service","AddSPMPlan","glueAction.do");
  105. }
  106. function DelCoil()
  107. {
  108. }
  109. function AffrimSPMPlan()
  110. {
  111. }
  112. function excelExport()
  113. {
  114. return grd_PlanList;
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body pagewidth="980" pageheight="620" style="font-weight:bold; ">
  120. <button id="btn_Query" class="cell" style="left:673px; top:5px; width:65px; height:20px; text-align:right; background-image:..\..\images\btn_find.gif; border-color:#ccccff; border-style:solid; ">
  121. <caption>查询</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. find();
  125. ]]>
  126. </script>
  127. </button>
  128. <datagrid id="grd_PlanInfo" nodeset="/root/gridData/SPMPlanData_VO/SPMPlanData_Row" caption="选择^指示日期^SPM单元号^SPM单元卷数^SPM单元重量^剩余卷数^剩余重量^完成卷数^完成重量^是否下发" colsep="^" colwidth="40, 95, 78, 80, 82, 64, 64, 62, 70, 74" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:35px; width:944px; height:165px; ">
  129. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  130. <col ref="REG_DTIME" type="output"/>
  131. <col ref="SPM_MANA_NO" type="output"/>
  132. <col ref="SPM_COIL_CNT"/>
  133. <col ref="SPM_COIL_WGT" format="#,###"/>
  134. <col ref="NON_EXE_CNT" format="#,###"/>
  135. <col ref="NON_EXE_WGT" format="#,###"/>
  136. <col ref="EXECUTED_CNT" format="#,###"/>
  137. <col ref="EXECUTED_WGT" format="#,###"/>
  138. <col ref="L2_SEND" format="#,###"/>
  139. <script type="javascript" ev:event="xforms-select">
  140. <![CDATA[
  141. if(grd_PlanInfo.valueMatrix(grd_PlanInfo.row,grd_PlanInfo.colRef("CHK")) == "Y"){
  142. model1.removenode("/root/reqData");
  143. model1.makeNode("/root/reqData");
  144. model.makeValue("/root/reqData/SPM_MANA_NO",grd_PlanInfo.valueMatrix(grd_PlanInfo.row,grd_PlanInfo.colRef("SPM_MANA_NO")));
  145. commSubmit("UIH060050-service","SPM_MANA_NO_DETAL_FIND","glueAction.do");
  146. commAppendData("/root/gridData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
  147. model.refresh();
  148. for(var i = grd_PlanList.fixedRows; i <= grd_PlanList.rows ; i++){
  149. if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("L2_SEND")) == "Y"){
  150. if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("STATUS_CD")) == "A")
  151. grd_PlanList.rowStyle(i,"data","background-color") = "#ccffcc";
  152. else if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("STATUS_CD")) == "B")
  153. grd_PlanList.rowStyle(i,"data","background-color") = "#cc99ff";
  154. else if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("STATUS_CD")) == "C")
  155. grd_PlanList.rowStyle(i,"data","background-color") = "#c0c0c0";
  156. }
  157. else grd_PlanList.rowStyle(i,"data","background-color") = "#ffffff";
  158. }
  159. }
  160. ]]>
  161. </script>
  162. </datagrid>
  163. <datagrid id="grd_PlanList" nodeset="/root/gridData/SPMPlanListData_VO/SPMPlanListData_Row" caption="选择^钢卷号^顺序号^堆放位^牌号^厚度^宽度^长度^重量^平整分卷^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^缺陷备注^SPM需求^SPM说明^合同号^订单号^牌号^厚度^宽度^长度^单重^单重下限^单重上限^交货期^收货单位^到站^是否下发^状态" colsep="^" colwidth="32, 80, 73, 50, 80, 50, 50, 50, 50, 100, 39, 46, 46, 48, 47, 100, 100, 100, 80, 50, 80, 49, 50, 61, 60, 60, 60, 100, 100, 100, 56, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:205px; width:945px; height:395px; ">
  164. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  165. <col ref="OLD_SAMPL_NO" type="output" maxlength="13"/>
  166. <col ref="COIL_EDT_SEQ" visibility="visible"/>
  167. <col ref="CUR_LOAD_LOC" type="output"/>
  168. <col ref="SPEC_STL_GRD" type="output"/>
  169. <col ref="COIL_THK" type="output"/>
  170. <col ref="COIL_WTH" type="output"/>
  171. <col ref="COIL_LEN" type="output"/>
  172. <col ref="ACT_WGT" type="output"/>
  173. <col disabled="true" editable="false" ref="SPM_YN" type="combo" style="text-align:left; ">
  174. <choices>
  175. <item>
  176. <label>平整</label>
  177. <value>1</value>
  178. </item>
  179. <item>
  180. <label>分卷</label>
  181. <value>2</value>
  182. </item>
  183. <item>
  184. <label>平整分卷</label>
  185. <value>3</value>
  186. </item>
  187. <item>
  188. <label>重卷</label>
  189. <value>4</value>
  190. </item>
  191. <item>
  192. <label>开卷检查</label>
  193. <value>5</value>
  194. </item>
  195. </choices>
  196. </col>
  197. <col ref="SPM_CRK_CD1" type="output" style="background-color:#ffff99; "/>
  198. <col ref="SPM_CRK_CD2" type="output" style="background-color:#ffff99; "/>
  199. <col ref="SPM_CRK_CD3" type="output" style="background-color:#ffff99; "/>
  200. <col ref="SPM_CRK_CD4" type="output" style="background-color:#ffff99; "/>
  201. <col ref="SPM_CRK_CD5" type="output" style="background-color:#ffff99; "/>
  202. <col ref="SPM_REMARK" type="output" style="background-color:#ffff99; "/>
  203. <col ref="SPM_PLAN" type="output"/>
  204. <col ref="SPM_REMARK" type="output"/>
  205. <col ref="ORD_NO" type="output"/>
  206. <col ref="ORD_SEQ" type="output"/>
  207. <col ref="STL_GRD" type="output"/>
  208. <col ref="ORD_THK" type="output"/>
  209. <col ref="ORD_WTH" type="output"/>
  210. <col ref="ORD_LEN" type="output"/>
  211. <col ref="ORD_UNIT_WGT" type="output"/>
  212. <col ref="ORD_UNIT_WGT_MIN" type="output"/>
  213. <col ref="ORD_UNIT_WGT_MAX" type="output"/>
  214. <col ref="DEL_TO_DATE" type="output"/>
  215. <col ref="ORDCUST_CD" type="output"/>
  216. <col ref="DEST_CD" type="output"/>
  217. <col ref="L2_SEND"/>
  218. <col ref="STATUS_CD"/>
  219. </datagrid>
  220. <caption id="caption1" class="cell" style="left:7px; top:5px; width:68px; height:20px; ">SPM单元号</caption>
  221. <caption id="caption3" class="cell" style="left:170px; top:5px; width:78px; height:20px; ">SPM单元状态</caption>
  222. <select1 id="cmb_Load" ref="/root/formData/CUR_LOAD_LOC" appearance="minimal" editmode="inputsearch" style="left:245px; top:5px; width:80px; height:20px; ">
  223. <choices>
  224. <itemset nodeset="/root/cmbLoadData/Load_Data_VO/Load_Data_Row">
  225. <label ref="YARD_CLF"/>
  226. <value ref="YARD_CLF"/>
  227. </itemset>
  228. </choices>
  229. </select1>
  230. <input id="txt_SPMPLanNO" ref="/root/formData/ORD_NO" class="cell" maxlength="13" style="left:77px; top:5px; width:88px; height:20px; "/>
  231. <button id="btn_Delete" class="cell" style="left:885px; top:5px; width:65px; height:20px; text-align:right; background-image:..\..\images\btn_delete.gif; border-color:#ccccff; border-style:solid; ">
  232. <caption>删除</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. model.removenode("/root/reqData");
  236. model.makeNode("/root/reqData");
  237. for(var i = grd_PlanList.fixedRows;i< grd_PlanList.rows;i++){
  238. grd_PlanList.rowStatus(i) = 2;
  239. if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("CHK")) == "Y"){
  240. if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("L2_SEND")) == "Y"){
  241. alert("已经下发二级,不能删除计划,需撤销下发");
  242. return;
  243. }
  244. }
  245. }
  246. commMultiUpdate(grd_PlanList,"/root/reqData","A",true,"rowStatus");
  247. model.makeValue("/root/reqData/USER" , "AA");
  248. //alert(instance1.selectSingleNode("/root/reqData").xml);
  249. commSubmit("UIH060030-service","DelSPMPlan","glueAction.do");
  250. model.refresh();
  251. find();
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_Send" class="cell" style="left:742px; top:5px; width:65px; height:20px; text-align:right; background-image:..\..\images\btn_save.gif; border-color:#ccccff; border-style:solid; ">
  256. <caption>下发</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. model.removenode("/root/reqData");
  260. model.makeNode("/root/reqData");
  261. for(var i = grd_PlanList.fixedRows;i< grd_PlanList.rows;i++){
  262. grd_PlanList.rowStatus(i) = 2;
  263. if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("CHK")) == "Y"){
  264. if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("L2_SEND")) == "Y"){
  265. alert("已经下发二级,不能重复下发");
  266. return;
  267. }
  268. }
  269. }
  270. commMultiUpdate(grd_PlanList,"/root/reqData","A",true,"rowStatus");
  271. model.makeValue("/root/reqData/USER" , "AA");
  272. //alert(instance1.selectSingleNode("/root/reqData").xml);
  273. commSubmit("UIH060050-service","SNDSPMPlan","glueAction.do");
  274. model.refresh();
  275. find();
  276. ]]>
  277. </script>
  278. </button>
  279. <button id="btn_UnSend" class="cell" style="left:810px; top:5px; width:74px; height:20px; text-align:right; background-image:..\..\images\btn_exit.gif; border-color:#ccccff; border-style:solid; ">
  280. <caption>撤销下发</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. model.removenode("/root/reqData");
  284. model.makeNode("/root/reqData");
  285. for(var i = grd_PlanList.fixedRows;i< grd_PlanList.rows;i++){
  286. grd_PlanList.rowStatus(i) = 2;
  287. }
  288. commMultiUpdate(grd_PlanList,"/root/reqData","A",true,"rowStatus");
  289. model.makeValue("/root/reqData/USER" , "AA");
  290. //alert(instance1.selectSingleNode("/root/reqData").xml);
  291. commSubmit("UIH060050-service","USDSPMPlan","glueAction.do");
  292. model.refresh();
  293. find();
  294. ]]>
  295. </script>
  296. </button>
  297. <button id="button1" style="left:530px; top:10px; width:10px; height:15px; background-color:#00ccff; ">
  298. <caption/>
  299. </button>
  300. <caption id="caption2" style="left:540px; top:10px; width:30px; height:15px; ">下发</caption>
  301. <button id="button2" style="left:565px; top:10px; width:10px; height:15px; background-color:#ccffcc; ">
  302. <caption/>
  303. </button>
  304. <caption id="caption4" style="left:575px; top:10px; width:35px; height:15px; ">指示</caption>
  305. <button id="button3" style="left:600px; top:10px; width:10px; height:15px; background-color:#cc99ff; ">
  306. <caption/>
  307. </button>
  308. <caption id="caption5" style="left:610px; top:10px; width:30px; height:15px; ">作业</caption>
  309. <button id="button4" style="left:635px; top:10px; width:10px; height:15px; background-color:#c0c0c0; ">
  310. <caption/>
  311. </button>
  312. <caption id="caption6" style="left:645px; top:10px; width:30px; height:15px; ">完成</caption>
  313. <caption id="caption7" class="cell" style="left:330px; top:5px; width:55px; height:20px; ">编制时间</caption>
  314. <input id="input1" ref="/root/formData/startTime" class="cell" maxlength="13" style="left:385px; top:5px; width:65px; height:20px; "/>
  315. <input id="input2" ref="/root/formData/endTime" class="cell" maxlength="13" style="left:460px; top:5px; width:65px; height:20px; "/>
  316. <caption id="caption8" style="left:450px; top:10px; width:30px; height:15px; ">-</caption>
  317. </xhtml:body>
  318. </xhtml:html>