| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[热轧作业>>钢卷库管理>>平整分卷计划下发]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <ORD_NO/>
- <ORD_SEQ/>
- <ORD_Min_THK>0</ORD_Min_THK>
- <ORD_Max_THK>16.1</ORD_Max_THK>
- <ORD_Min_WTH>0</ORD_Min_WTH>
- <ORD_Max_WTH>1600</ORD_Max_WTH>
- <CUR_LOAD_LOC/>
- <startTime/>
- <endTime/>
- </formData>
- <grdCoilData/>
- <grdPlanData/>
- <grdPlanListData/>
- <cmbLoadData YARD_CLF=""/>
- <cmbOrdSEQ ORD_SEQ=""/>
- <gridData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- findLoadData();
- grd_PlanList.fixedcellcheckbox(0,grd_PlanList.colRef("CHK"))=true;
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function find()
- {
- model.setValue("/root/formData/startTime",model.getValue("/root/formData/startTime"));
- model.setValue("/root/formData/endTime",model.getValue("/root/formData/endTime"));
- commSendReq("/root/formData");
- commSubmit("UIH060050-service","findSPMPlan","glueAction.do");
- commAppendData("/root/gridData/SPMPlanData_VO" ,"/root/resData/SPMPlanData_VO" );
- commAppendData("/root/gridData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
- model.refresh();
-
- for(var i = grd_PlanInfo.fixedRows; i < grd_PlanInfo.rows ; i++){
- if(grd_PlanInfo.valueMatrix(i,grd_PlanInfo.colRef("L2_SEND")) == "Y")
- grd_PlanInfo.rowStyle(i,"data","background-color") = "#00ccff";
- }
- }
- function findLoadData()
- {
- model1.removenode("/root/grdPlanData");
- model1.removenode("/root/grdPlanListData");
- commSubmit("UIH060050-service","findSPMPlan","glueAction.do");
- commAppendData("/root/cmbLoadData/Load_Data_VO" ,"/root/resData/Load_Data_VO" );
- commAppendData("/root/gridData/SPMPlanData_VO" ,"/root/resData/SPMPlanData_VO" );
- commAppendData("/root/gridData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
-
- model.refresh();
-
- for(var i = grd_PlanInfo.fixedRows; i < grd_PlanInfo.rows ; i++){
- if(grd_PlanInfo.valueMatrix(i,grd_PlanInfo.colRef("L2_SEND")) == "Y")
- grd_PlanInfo.rowStyle(i,"data","background-color") = "#00ccff";
- }
- }
- function findOrdSEQ()
- {
- model1.removenode("/root/grdPlanData");
- model1.removenode("/root/grdPlanListData");
- model1.removenode("/root/grdCoilData");
- commSendReq("/root/formData");
- commSubmit("UIH060030-service","findOrdSEQ","glueAction.do");
- commAppendData("/root/cmbOrdSEQ/OrdSEQData_VO" ,"/root/resData/OrdSEQData_VO" );
- }
- function findSPMPlan()
- {
- model1.removenode("/root/grdPlanData");
- model1.removenode("/root/grdPlanListData");
- commSubmit("UIH060030-service","findSPMPlan","glueAction.do");
- commAppendData("/root/grdPlanData/SPMPlanData_VO" ,"/root/resData/SPMPlanData_VO" );
- commAppendData("/root/grdPlanListData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
- }
- function AddCoil()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- //commMultiUpdate(grd_CoilInfo,"/root/reqData" ,"A", true, "rowStatus");
- model.makeValue("/root/reqData/COIL_NO["+1+"]" , "12");
- model.makeValue("/root/reqData/COIL_NO["+2+"]" , "32");
- commSubmit("UIH060030-service","findSPMPlan","glueAction.do");
- var index_ = 1;
- for(var i;i<grd_CoilInfo.rows;i++)
- {
- var chk_value = grd_CoilInfo.valueMatrix(i,grd_CoilInfo.colRef("CHK"));
- if(chk_value == "Y")
- {
- model.makeValue("/root/reqData/COIL_NO["+index_+"]" , grd_CoilInfo.valueMatrix(i,grd_CoilInfo.colRef("OLD_SAMPL_NO")));
- }
- }
- commSubmit("UIH060030-service","AddSPMPlan","glueAction.do");
- }
- function DelCoil()
- {
- }
- function AffrimSPMPlan()
- {
- }
- function excelExport()
- {
- return grd_PlanList;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" style="font-weight:bold; ">
- <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; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <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; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col ref="REG_DTIME" type="output"/>
- <col ref="SPM_MANA_NO" type="output"/>
- <col ref="SPM_COIL_CNT"/>
- <col ref="SPM_COIL_WGT" format="#,###"/>
- <col ref="NON_EXE_CNT" format="#,###"/>
- <col ref="NON_EXE_WGT" format="#,###"/>
- <col ref="EXECUTED_CNT" format="#,###"/>
- <col ref="EXECUTED_WGT" format="#,###"/>
- <col ref="L2_SEND" format="#,###"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(grd_PlanInfo.valueMatrix(grd_PlanInfo.row,grd_PlanInfo.colRef("CHK")) == "Y"){
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SPM_MANA_NO",grd_PlanInfo.valueMatrix(grd_PlanInfo.row,grd_PlanInfo.colRef("SPM_MANA_NO")));
- commSubmit("UIH060050-service","SPM_MANA_NO_DETAL_FIND","glueAction.do");
- commAppendData("/root/gridData/SPMPlanListData_VO" ,"/root/resData/SPMPlanListData_VO" );
- model.refresh();
-
- for(var i = grd_PlanList.fixedRows; i <= grd_PlanList.rows ; i++){
- if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("L2_SEND")) == "Y"){
- if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("STATUS_CD")) == "A")
- grd_PlanList.rowStyle(i,"data","background-color") = "#ccffcc";
- else if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("STATUS_CD")) == "B")
- grd_PlanList.rowStyle(i,"data","background-color") = "#cc99ff";
- else if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("STATUS_CD")) == "C")
- grd_PlanList.rowStyle(i,"data","background-color") = "#c0c0c0";
- }
- else grd_PlanList.rowStyle(i,"data","background-color") = "#ffffff";
-
- }
- }
- ]]>
- </script>
- </datagrid>
- <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; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="OLD_SAMPL_NO" type="output" maxlength="13"/>
- <col ref="COIL_EDT_SEQ" visibility="visible"/>
- <col ref="CUR_LOAD_LOC" type="output"/>
- <col ref="SPEC_STL_GRD" type="output"/>
- <col ref="COIL_THK" type="output"/>
- <col ref="COIL_WTH" type="output"/>
- <col ref="COIL_LEN" type="output"/>
- <col ref="ACT_WGT" type="output"/>
- <col disabled="true" editable="false" ref="SPM_YN" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>平整</label>
- <value>1</value>
- </item>
- <item>
- <label>分卷</label>
- <value>2</value>
- </item>
- <item>
- <label>平整分卷</label>
- <value>3</value>
- </item>
- <item>
- <label>重卷</label>
- <value>4</value>
- </item>
- <item>
- <label>开卷检查</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="SPM_CRK_CD1" type="output" style="background-color:#ffff99; "/>
- <col ref="SPM_CRK_CD2" type="output" style="background-color:#ffff99; "/>
- <col ref="SPM_CRK_CD3" type="output" style="background-color:#ffff99; "/>
- <col ref="SPM_CRK_CD4" type="output" style="background-color:#ffff99; "/>
- <col ref="SPM_CRK_CD5" type="output" style="background-color:#ffff99; "/>
- <col ref="SPM_REMARK" type="output" style="background-color:#ffff99; "/>
- <col ref="SPM_PLAN" type="output"/>
- <col ref="SPM_REMARK" type="output"/>
- <col ref="ORD_NO" type="output"/>
- <col ref="ORD_SEQ" type="output"/>
- <col ref="STL_GRD" type="output"/>
- <col ref="ORD_THK" type="output"/>
- <col ref="ORD_WTH" type="output"/>
- <col ref="ORD_LEN" type="output"/>
- <col ref="ORD_UNIT_WGT" type="output"/>
- <col ref="ORD_UNIT_WGT_MIN" type="output"/>
- <col ref="ORD_UNIT_WGT_MAX" type="output"/>
- <col ref="DEL_TO_DATE" type="output"/>
- <col ref="ORDCUST_CD" type="output"/>
- <col ref="DEST_CD" type="output"/>
- <col ref="L2_SEND"/>
- <col ref="STATUS_CD"/>
- </datagrid>
- <caption id="caption1" class="cell" style="left:7px; top:5px; width:68px; height:20px; ">SPM单元号</caption>
- <caption id="caption3" class="cell" style="left:170px; top:5px; width:78px; height:20px; ">SPM单元状态</caption>
- <select1 id="cmb_Load" ref="/root/formData/CUR_LOAD_LOC" appearance="minimal" editmode="inputsearch" style="left:245px; top:5px; width:80px; height:20px; ">
- <choices>
- <itemset nodeset="/root/cmbLoadData/Load_Data_VO/Load_Data_Row">
- <label ref="YARD_CLF"/>
- <value ref="YARD_CLF"/>
- </itemset>
- </choices>
- </select1>
- <input id="txt_SPMPLanNO" ref="/root/formData/ORD_NO" class="cell" maxlength="13" style="left:77px; top:5px; width:88px; height:20px; "/>
- <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; ">
- <caption>删除</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- for(var i = grd_PlanList.fixedRows;i< grd_PlanList.rows;i++){
- grd_PlanList.rowStatus(i) = 2;
-
- if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("CHK")) == "Y"){
- if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("L2_SEND")) == "Y"){
- alert("已经下发二级,不能删除计划,需撤销下发");
- return;
- }
- }
- }
-
- commMultiUpdate(grd_PlanList,"/root/reqData","A",true,"rowStatus");
- model.makeValue("/root/reqData/USER" , "AA");
- //alert(instance1.selectSingleNode("/root/reqData").xml);
- commSubmit("UIH060030-service","DelSPMPlan","glueAction.do");
- model.refresh();
-
- find();
- ]]>
- </script>
- </button>
- <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; ">
- <caption>下发</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- for(var i = grd_PlanList.fixedRows;i< grd_PlanList.rows;i++){
- grd_PlanList.rowStatus(i) = 2;
-
- if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("CHK")) == "Y"){
- if(grd_PlanList.valueMatrix(i,grd_PlanList.colRef("L2_SEND")) == "Y"){
- alert("已经下发二级,不能重复下发");
- return;
- }
- }
- }
-
- commMultiUpdate(grd_PlanList,"/root/reqData","A",true,"rowStatus");
- model.makeValue("/root/reqData/USER" , "AA");
- //alert(instance1.selectSingleNode("/root/reqData").xml);
- commSubmit("UIH060050-service","SNDSPMPlan","glueAction.do");
- model.refresh();
-
- find();
- ]]>
- </script>
- </button>
- <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; ">
- <caption>撤销下发</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- for(var i = grd_PlanList.fixedRows;i< grd_PlanList.rows;i++){
- grd_PlanList.rowStatus(i) = 2;
- }
-
- commMultiUpdate(grd_PlanList,"/root/reqData","A",true,"rowStatus");
- model.makeValue("/root/reqData/USER" , "AA");
- //alert(instance1.selectSingleNode("/root/reqData").xml);
- commSubmit("UIH060050-service","USDSPMPlan","glueAction.do");
- model.refresh();
-
- find();
- ]]>
- </script>
- </button>
- <button id="button1" style="left:530px; top:10px; width:10px; height:15px; background-color:#00ccff; ">
- <caption/>
- </button>
- <caption id="caption2" style="left:540px; top:10px; width:30px; height:15px; ">下发</caption>
- <button id="button2" style="left:565px; top:10px; width:10px; height:15px; background-color:#ccffcc; ">
- <caption/>
- </button>
- <caption id="caption4" style="left:575px; top:10px; width:35px; height:15px; ">指示</caption>
- <button id="button3" style="left:600px; top:10px; width:10px; height:15px; background-color:#cc99ff; ">
- <caption/>
- </button>
- <caption id="caption5" style="left:610px; top:10px; width:30px; height:15px; ">作业</caption>
- <button id="button4" style="left:635px; top:10px; width:10px; height:15px; background-color:#c0c0c0; ">
- <caption/>
- </button>
- <caption id="caption6" style="left:645px; top:10px; width:30px; height:15px; ">完成</caption>
- <caption id="caption7" class="cell" style="left:330px; top:5px; width:55px; height:20px; ">编制时间</caption>
- <input id="input1" ref="/root/formData/startTime" class="cell" maxlength="13" style="left:385px; top:5px; width:65px; height:20px; "/>
- <input id="input2" ref="/root/formData/endTime" class="cell" maxlength="13" style="left:460px; top:5px; width:65px; height:20px; "/>
- <caption id="caption8" style="left:450px; top:10px; width:30px; height:15px; ">-</caption>
- </xhtml:body>
- </xhtml:html>
|