| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/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[品质设计>>生产规范录入>>Design-key]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <SPECABBSYM/>
- <SPECSTLGRD/>
- </formData>
- <datagrid1/>
- <initSpecData>
- <SpecResult_VO>
- <SpecResult_Row>
- <LABEL>------全部------</LABEL>
- <VALUE/>
- </SpecResult_Row>
- </SpecResult_VO>
- </initSpecData>
- <initCustData>
- <CustResult_VO>
- <CustResult_Row>
- <LABEL>---全部---</LABEL>
- <VALUE/>
- </CustResult_Row>
- </CustResult_VO>
- </initCustData>
- <comboData>
- <SPEC_ABBSYM/>
- <SPEC_STL_GRD/>
- <ORD_USE_TP/>
- <FAC_STL_GRD/>
- <MILL_STD_NO/>
- <SMS_STD_NO/>
- <DEL_TOL_CD/>
- <DEV_DGR_CD/>
- </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[
- var doFlag; //删除与修改、增加的区分
- function Init(node)
- {
- InitParams(node);
- //对下拉框中的信息进行初始化
- datagrid1.colStatus(datagrid1.colRef("CHK"))=false;
- commSubmit("UIB010320-service", "success", "glueAction.do");
- model.duplicate("/root/initSpecData" , "/root/resData/SpecResult_VO");
- model.copyNode("/root/comboData/SPEC_STL_GRD" , "/root/resData/SPEC_STL_GRD_RESULT_VO");
- /*
- model.copyNode("/root/comboData/ORD_USE_TP" , "/root/resData/ORD_USE_TP_RESULT_VO");
- model.copyNode("/root/comboData/FAC_STL_GRD" , "/root/resData/FAC_STL_GRD_RESULT_VO");
- model.copyNode("/root/comboData/MILL_STD_NO" , "/root/resData/MILL_STD_NO_RESULT_VO");
- model.copyNode("/root/comboData/SMS_STD_NO" , "/root/resData/SMS_STD_NO_RESULT_VO");
- model.copyNode("/root/comboData/DEL_TOL_CD" , "/root/resData/DEL_TOL_CD_RESULT_VO");
- model.copyNode("/root/comboData/DEV_DGR_CD" , "/root/resData/DEV_DGR_CD_RESULT_VO");
- model.duplicate("/root/initCustData" , "/root/resData/CustResult_VO");
- model.copyNode("/root/comboData/SPEC_ABBSYM" , "/root/resData/SPEC_ABBSYM_RESULT_VO");*/
- model.refresh();
- }
-
- function find(doFlag)
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIB010320-service", "find", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/DesignKeyResult_VO");
- model.refresh();
-
- datagrid1.cellAttribute("disabled",datagrid1.fixedRows , datagrid1.fixedCols+1 , datagrid1.rows - 1 , datagrid1.cols - 1) = "true";
- datagrid1.rebuildStyle();
- }
-
- function save(doFlag)
- {
- //判断炼钢生产规范编号、轧钢生产规范编号是否为空,若为空则不允许保存
- /*var rows = datagrid1.rows;
- var str = "";
- var sms = null;
- var mill = null;
- var stl = null;
- var col1 = datagrid1.colRef("SMS_STD_NO");//炼钢生产规范编号所在列
- var col2 = datagrid1.colRef("MILL_STD_NO");//轧钢生产规范编号所在列
- var col3 = datagrid1.colRef("FAC_STL_GRD");//厂内钢号所在列
- for(var i=3 ; i < rows; i++)//标题行不算,所以从第三行开始算
- {
- sms = datagrid1.valueMatrix(i , col1);//炼钢生产规范编号
- mill= datagrid1.valueMatrix(i , col2);//轧钢生产规范编号
- stl = datagrid1.valueMatrix(i , col3);//厂内钢号
- if(jsTrim(stl)=="")
- {
- str = "第"+(i-2)+"行:厂内钢号为空";
- break;
- }
- if(jsTrim(sms)=="")
- {
- str = "第"+(i-2)+"行:炼钢生产规范编号为空";
- break;
- }
- if(jsTrim(mill)=="")
- {
- str = "第"+(i-2)+"行:轧钢生产规范编号为空";
- break;
- }
- }
- if(jsTrim(str) != "")
- {
- window.alert(str,"错误");
- return;
- }*/
- if(doFlag == "D")//删除
- {
- 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的行,自动刷新
- }
- }
- }
- else
- {
- if(commComfirmBox("确认保存?","提示")=="0") return;
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStuts");
- getLoggingInInfo();//获得登录人信息
- commSubmit("UIB010320-service" , "save" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/DesignKeyResult_VO");
- model.refresh();
- datagrid1.cellAttribute("disabled",datagrid1.fixedRows , datagrid1.fixedCols+1 , datagrid1.rows - 1 , datagrid1.cols - 1) = "true";
- datagrid1.clearStatus();//清除状态
- datagrid1.rebuildStyle();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; vertical-align:middle; border-style:solid; ">标准号</caption>
- <select1 id="combo1" ref="/root/formData/SPECABBSYM" appearance="minimal" editmode="input" style="left:97px; top:5px; width:223px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initSpecData/SpecResult_VO/SpecResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/DesignKeyResult_Row" caption="选择^生产线^订单必须参数^订单必须参数^订单必须参数^订单必须参数^订单必须参数^订单必须参数^订单必须参数^订单必须参数^订单必须参数^基料卷标准^基料卷标准^基料卷标准^基料卷标准^基料卷标准^生产规范编码^生产规范编码^生产规范编码^生产规范编码^生产规范编码^录入人^录入时间^最后修改人^最后修改时间^PROD_LINE^PRDNM_CD^SPEC_ABBSYM^THK_MIN^THK_MAX^WTH_MIN^WTH_MAX^SPEC_STL_GRD|选择^生产线^交货状态^标准号^厚度^厚度^宽度^宽度^订单用途编码^订单用途^标准牌号^基料卷交货状态^基料卷标准号^基料卷标准牌号^基料用途^基料卷用途^规格对应码^厂内牌号^炼钢规范^热轧规范^冷轧规范^录入人^录入时间^最后修改人^最后修改时间^PROD_LINE^PRDNM_CD^SPEC_ABBSYM^THK_MIN^THK_MAX^WTH_MIN^WTH_MAX^SPEC_STL_GRD|选择^生产线^交货状态^标准号^最小^最大^最小^最大^订单用途编码^订单用途^标准牌号^基料卷交货状态^基料卷标准号^基料卷标准牌号^基料用途^基料卷用途^规格对应码^厂内牌号^炼钢规范^热轧规范^冷轧规范^录入人^录入时间^最后修改人^最后修改时间^PROD_LINE^PRDNM_CD^SPEC_ABBSYM^THK_MIN^THK_MAX^WTH_MIN^WTH_MAX^SPEC_STL_GRD" colsep="^" colwidth="30, 49, 42, 129, 40, 40, 40, 40, 50, 100, 107, 79, 72, 85, 100, 100, 82, 86, 56, 55, 55, 80, 100, 79, 100, 50, 56, 54, 49, 33, 34, 61, 68, 50" explorerbar="sort" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:35px; width:980px; height:585px; border-style:solid; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="PROD_LINE" type="input" style="background-color:#ffffff; "/>
- <col explorerbar="sortshowmove" disabled="false" editmode="inputsearch" ref="PRDNM_CD" type="input" maxlength="2" style="text-align:left; background-color:#ffffff; "/>
- <col explorerbar="sortshowmove" disabled="false" editmode="search" ref="SPEC_ABBSYM" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="THK_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col ref="THK_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col ref="WTH_MIN" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col ref="WTH_MAX" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col editmode="search" ref="ORD_USE_TP" visibility="hidden" style="text-align:left; "/>
- <col ref="ORD_USE"/>
- <col explorerbar="sortshowmove" editmode="search" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="C_PRDNM_CD" type="input" style="background-color:#ffffff; "/>
- <col ref="C_SPEC_ABBSYM" type="input" style="background-color:#ffffff; "/>
- <col ref="C_SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col ref="C_ORD_USE_TP" visibility="hidden"/>
- <col ref="C_ORD_USE"/>
- <col ref="SIZE_SPEC_CD" type="input"/>
- <col explorerbar="sortshowmove" editmode="search" ref="FAC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="SMS_STD_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="MILL_STD_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="COLD_STD_NO" type="input" style="background-color:#ffffff; "/>
- <col ref="REG_ID" style="text-align:left; "/>
- <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="MOD_ID" style="text-align:left; "/>
- <col ref="MOD_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="PROD_LINE1" visibility="hidden"/>
- <col ref="PRDNM_CD1" visibility="hidden"/>
- <col ref="SPEC_ABBSYM1" 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"/>
- <col ref="SPEC_STL_GRD1" visibility="hidden"/>
- <col ref="ORD_USE_TP1" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(datagrid1.row < datagrid1.fixedRows && datagrid1.col != datagrid1.colRef("CHK")) return;
- var currentRow = datagrid1.row;
- var checkCol = datagrid1.colRef("CHK");
- var startCol = datagrid1.colRef("PROD_LINE");
- var endCol = datagrid1.colRef("COLD_STD_NO");
- if(datagrid1.valueMatrix(currentRow , checkCol) == "Y")
- {
- datagrid1.cellAttribute("disabled",currentRow , checkCol+1 , currentRow , datagrid1.cols - 1) = "false";
- for(var i = startCol; i <= endCol ; i++)
- {
- datagrid1.cellStyle("background-color",currentRow ,i) = "#ffff99";
- }
- }
- else
- {
- datagrid1.cellAttribute("disabled",currentRow , checkCol+1 , currentRow , datagrid1.cols - 1) = "true";
- for(var i = startCol; i <= endCol ; i++)
- {
- datagrid1.cellStyle("background-color",currentRow, i) = "#ffffff";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- datagrid1.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- onkeydownmove(datagrid1);
- ]]>
- </script>
- <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>
- <button id="button3" style="left:840px; top:5px; width:75px; height:20px; background-image:../../images/btn_add.gif; ">
- <caption>增加</caption>
- <script type="javascript" ev:event="onclick">
- <![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="button4" style="left:905px; top:5px; width:75px; height:20px; background-image:../../images/btn_move.gif; ">
- <caption>删除</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save("D");
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <caption id="caption2" class="cell" style="left:345px; top:5px; width:100px; height:20px; vertical-align:middle; border-style:solid; ">牌号</caption>
- <select1 id="combo2" ref="/root/formData/SPECSTLGRD" appearance="minimal" editmode="inputsearch" style="left:442px; top:5px; width:143px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/comboData/SPEC_STL_GRD/SPEC_STL_GRD_RESULT_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|