| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?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="">
- <datagrid1/>
- <formData>
- <SPECSTLGRD/>
- <SPECABBSYM/>
- </formData>
- <comboData>
- <SPEC_ABBSYM/>
- <SPEC_STL_GRD/>
- </comboData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(window.parent==null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- InitParams(node);
- datagrid1.colStatus(datagrid1.colRef("CHK"))=false;
- commSubmit("UIB010321-service", "success", "glueAction.do");
- model.copyNode("/root/comboData/SPEC_ABBSYM" , "/root/resData/SPEC_ABBSYM_VO");
- model.copyNode("/root/comboData/SPEC_STL_GRD" , "/root/resData/SPEC_STL_GRD_VO");
- model.refresh();
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIB010321-service", "find", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CHSPECResult_VO");
- model.refresh();
- }
-
- function save()
- {
- if(commComfirmBox("确认保存?","提示")=="0") return;
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");
- getLoggingInInfo();//获得登录人信息
- commSubmit("UIB010321-service" , "save" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CHSPECResult_VO");
- model.refresh();
- datagrid1.clearStatus();//清除状态
- datagrid2.clearStatus();//清除状态
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/CHSPECResult_Row" caption="选择^优先级^冷轧交货状态^冷轧标准号^冷轧标准牌号^订单用途CD^订单用途^冷轧厚度组^冷轧厚度组^冷轧宽度组^冷轧宽度组^基料卷交货状态^基料卷标准号^基料卷标准牌号^基料卷订单用途^基料卷订单用途CD^基料卷制造厚度^基料卷制造宽度^PRIO_LEVL1^PRDNM_CD1^SPEC_ABBSYM1^SPEC_STL_GRD1^ORD_USE_TP1^THK_MIN1^THK_MAX1^WTH_MIN1^WTH_MAX1|选择^优先级^冷轧交货状态^冷轧标准号^冷轧标准牌号^订单用途CD^订单用途^最小厚度^最大厚度^最小宽度^最大宽度^基料卷交货状态^基料卷标准号^基料卷标准牌号^基料卷订单用途^基料卷订单用途CD^基料卷制造厚度^基料卷制造宽度^PRIO_LEVL1^PRDNM_CD1^SPEC_ABBSYM1^SPEC_STL_GRD1^ORD_USE_TP1^THK_MIN1^THK_MAX1^WTH_MIN1^WTH_MAX1" colsep="^" colwidth="42, 41, 54, 122, 100, 55, 100, 62, 61, 63, 63, 55, 100, 100, 100, 75, 65, 64, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:40px; width:975px; height:565px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="PRIO_LEVL" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="PRDNM_CD" type="input" style="text-align:left; "/>
- <col ref="SPEC_ABBSYM" type="input" style="text-align:left; "/>
- <col ref="SPEC_STL_GRD" type="input" style="text-align:left; "/>
- <col ref="ORD_USE_TP" visibility="hidden" style="text-align:left; "/>
- <col ref="ORD_USE" type="input" style="text-align:left; "/>
- <col ref="THK_MIN" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="THK_MAX" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="WTH_MIN" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="WTH_MAX" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="C_PRDNM_CD" type="input" style="text-align:left; "/>
- <col ref="C_SPEC_ABBSYM" type="input" style="text-align:left; "/>
- <col ref="C_SPEC_STL_GRD" type="input" style="text-align:left; "/>
- <col ref="C_ORD_USE" type="input" style="text-align:left; "/>
- <col ref="C_ORD_USE_TP" visibility="hidden" style="text-align:left; "/>
- <col ref="C_MAKE_THK" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="C_MAKE_WTH" type="input" style="text-align:right; background-color:#ffff99; "/>
- <col ref="PRIO_LEVL1" visibility="hidden"/>
- <col ref="PRDNM_CD1" visibility="hidden"/>
- <col ref="SPEC_ABBSYM1" visibility="hidden"/>
- <col ref="SPEC_STL_GRD1" visibility="hidden"/>
- <col ref="ORD_USE_TP1" visibility="hidden"/>
- <col ref="THK_MIN1" visibility="hidden"/>
- <col ref="THK_MAX1" visibility="hidden"/>
- <col ref="WTH_MIN1" visibility="hidden"/>
- <col ref="WTH_MAX1" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHK"))=="Y")
- {
- window.load("./_UIB010320.xrw", "modal", "",
- "left:500; top:300; width:350; height:450; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell" style="left:0px; top:12px; width:100px; height:20px; ">标准号</caption>
- <line id="line1" style="x1:0px; y1:5px; x2:975px; y2:5px; "/>
- <line id="line2" style="x1:0px; y1:37px; x2:975px; y2:37px; "/>
- <button id="button1" visibility="hidden" style="left:595px; top:12px; width:100px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button2" style="left:835px; top:12px; width:80px; height:20px; background-image:../../images/btn_add.gif; ">
- <caption>增加</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(datagrid1.row < datagrid1.fixedRows)
- {
- datagrid1.addRow();
- datagrid1.vscroll.attribute("pos") = datagrid1.rows*20;
- }
- else
- {
- datagrid1.insertRow(datagrid1.row);
- }
- datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHK")) = "Y";
- ]]>
- </script>
- </button>
- <button id="button3" style="left:900px; top:12px; width:70px; height:20px; background-image:../../images/btn_move.gif; ">
- <caption>删除</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(beGridChanged(datagrid1) == "1")
- {
- if(commComfirmBox("数据已修改,可能出现误删,确定删除?","提示")=="0") return;
- }
- if(commComfirmBox("确认删除?","提示")=="0") return;
- for(var i=datagrid1.rows; i >= datagrid1.fixedRows; i--)//“3”表示第一行(非标题行)
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("CHK"))=="Y")
- {
- datagrid1.deleteRow(i,false);//删除checkbox值为y的行,自动刷新
- }
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatusD");
- getLoggingInInfo();//获得登录人信息
- commSubmit("UIB010321-service" , "save" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CHSPECResult_VO");
- model.refresh();
- datagrid1.clearStatus();//清除状态
- ]]>
- </script>
- </button>
- <button id="button4" visibility="hidden" style="left:685px; top:12px; width:100px; height:20px; ">
- <caption>SAVE</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/formData/SPECABBSYM" appearance="minimal" editmode="input" style="left:98px; top:12px; width:182px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/comboData/SPEC_ABBSYM/SPEC_ABBSYM_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:295px; top:12px; width:100px; height:20px; ">标准牌号</caption>
- <select1 id="combo2" ref="/root/formData/SPECSTLGRD" appearance="minimal" editmode="inputsearch" style="left:395px; top:12px; width:143px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/comboData/SPEC_STL_GRD/SPEC_STL_GRD_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|