| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <?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>
- <CUSTCD/>
- </formData>
- <datagrid1/>
- <reqData/>
- <resData/>
- <comboData>
- <SPEC_ABBSYM/>
- <SPEC_STL_GRD/>
- <ORD_USE_TP/>
- <FAC_STL_GRD/>
- <MILL_STD_NO/>
- <SMS_STD_NO/>
- <DEL_TOL_CD/>
- <DEV_DGR_CD/>
- <CustCodeResult/>
- </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("UIB010250-service" , "success" , "glueAction.do");
- model.copyNode("/root/comboData/CustCodeResult" , "/root/resData/CustCodeResult_VO");
- model.copyNode("/root/comboData/SPEC_ABBSYM" , "/root/resData/SPEC_ABBSYM_RESULT_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.refresh();
- }
- function find()
- {
-
- model.removenode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIB010250-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CustRequestResult_VO");
- model.refresh();
- checkCustSpecNo();
- datagrid1.cellAttribute("disabled",datagrid1.fixedRows , datagrid1.fixedCols+1 , datagrid1.rows - 1 , datagrid1.cols - 1) = "true";
- }
- function save(doFlag)
- {
- 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("UIB010250-service", "save", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CustRequestResult_VO");
- datagrid1.clearStatus();
- model.refresh();
- datagrid1.cellAttribute("disabled",datagrid1.fixedRows , datagrid1.fixedCols+1 , datagrid1.rows - 1 , datagrid1.cols - 1) = "true";
- datagrid1.rebuildStyle();
- }
-
- function checkCustSpecNo()
- {
- datagrid1.rebuildStyle();
- for(var i = datagrid1.fixedRows; i< datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("INGR_REQ")) == "NN"
- || datagrid1.valueMatrix(i ,datagrid1.colRef("INGR_REQ")) == "XX" )
- {
- datagrid1.rowstyle(i, "data", "color") = "#ff0000";
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/CustRequestResult_Row" caption="选择^客户参数号事项^客户参数号事项^客户参数号事项^客户参数号事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户参数号赋予时参考事项^客户要求事项^客户要求事项^客户要求事项^客户要求事项^客户要求事项^客户要求事项^客户要求事项^成分要求^材质要求^客户公司名称^录入人^录入时间^最后修改人^最后修改时间^CUST_SPEC_NO1|选择^客户参数号^成分客户参数号^材质客户参数号^交付客户参数号^标准号^标准钢号^最小厚度^最大厚度^最小宽度^最大宽度^订单用途1^订单用途^尺寸对应码^厂内钢号^炼钢规范编号^轧钢规范编号^冷轧规范编码^交付条件^等级代码^成分要求^材质要求^客户公司名称^录入人^录入时间^最后修改人^最后修改时间^CUST_SPEC_NO1|选择^客户参数号^成分客户参数号^材质客户参数号^交付客户参数号^标准号^标准钢号^最小厚度^最大厚度^最小宽度^最大宽度^订单用途1^订单用途^尺寸对应码^厂内钢号^炼钢规范编号^轧钢规范编号^冷轧规范编码^交付条件^等级代码^成分要求^材质要求^客户公司名称^录入人^录入时间^最后修改人^最后修改时间^CUST_SPEC_NO1" colsep="^" colwidth="35, 79, 100, 100, 100, 140, 127, 40, 40, 40, 40, 57, 160, 87, 91, 51, 51, 53, 107, 51, 78, 28, 180, 82, 93, 78, 100, 41" explorerbar="sortshow" frozencols="4" 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 explorerbar="sortshow" ref="CUST_SPEC_NO" type="input" style="text-align:left; "/>
- <col ref="CUST_SPEC_NO_INGR" type="input"/>
- <col ref="CUST_SPEC_NO_QLTY" type="input"/>
- <col ref="CUST_SPEC_NO_DEL" type="input"/>
- <col explorerbar="sortmove" ref="SPEC_ABBSYM" style="text-align:left; "/>
- <col explorerbar="sortshow" ref="SPEC_STL_GRD" style="text-align:left; "/>
- <col ref="THK_MIN" type="input" style="text-align:right; "/>
- <col ref="THK_MAX" type="input" style="text-align:right; "/>
- <col ref="WTH_MIN" type="input" style="text-align:right; "/>
- <col ref="WTH_MAX" type="input" style="text-align:right; "/>
- <col explorerbar="sortshow" ref="ORD_USE_TP" visibility="hidden" style="text-align:left; "/>
- <col ref="ORD_USE" style="text-align:left; "/>
- <col ref="SIZE_SPEC_CD" visibility="visible"/>
- <col ref="FAC_STL_GRD" style="text-align:left; "/>
- <col ref="SMS_STD_NO" style="text-align:left; "/>
- <col ref="MILL_STD_NO" style="text-align:left; "/>
- <col ref="COLD_STD_NO"/>
- <col ref="DEV_SPEC_CD" style="text-align:left; "/>
- <col ref="DEV_DGR_CD" style="text-align:left; "/>
- <col disabled="true" editable="false" ref="INGR_REQ" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>Y</label>
- <value>YY</value>
- </item>
- <item>
- <label>无成分要求</label>
- <value>QQ</value>
- </item>
- <item>
- <label>成分录入不完全</label>
- <value>NN</value>
- </item>
- <item>
- <label>未知异常</label>
- <value>XX</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="QLTY_REQ" style="text-align:left; "/>
- <col disabled="false" ref="CUST_NM" style="text-align:left; "/>
- <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="CUST_SPEC_NO1" visibility="hidden"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- datagrid1.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- compareMINMAX(datagrid1,"THK_MIN","THK_MAX") ; //验证最大值不能小于最小值
- compareMINMAX(datagrid1,"WTH_MIN","WTH_MAX") ; //验证最大值不能小于最小值
- if(datagrid1.row < datagrid1.fixedRows && datagrid1.col != datagrid1.colRef("CHK")) return;
- var currentRow = datagrid1.row;
- var checkCol = datagrid1.colRef("CHK");
- var startCol = datagrid1.colRef("CUST_SPEC_NO");
- var endCol = datagrid1.colRef("DEV_DGR_CD");
- if(datagrid1.valueMatrix(currentRow , checkCol) == "Y")
- {
- datagrid1.cellAttribute("disabled",currentRow , checkCol+1 , currentRow , endCol) = "false";
- for(var i = startCol; i <= endCol ; i++)
- {
- datagrid1.cellStyle("background-color",currentRow ,i) = "#ffff99";
- }
- }
- else
- {
- datagrid1.cellAttribute("disabled",currentRow , checkCol+1 , currentRow , endCol) = "true";
- for(var i = startCol; i <= endCol ; i++)
- {
- datagrid1.cellStyle("background-color",currentRow, i) = "#ffffff";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHK"))=="Y"
- && datagrid1.col > datagrid1.colRef("CUST_SPEC_NO") && datagrid1.col <= datagrid1.colRef("CUST_SPEC_NO_DEL")
- )
- {
- window.load("./_UIB010250.xrw", "modal", "",
- "left:500; top:300; width:350; height:450; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- }
- else 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:5px; width:100px; height:20px; border-style:solid; ">客户公司</caption>
- <button id="button1" style="left:830px; top:5px; width:70px; 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="button2" style="left:905px; top:5px; width:70px; height:20px; background-image:../../images/btn_move.gif; ">
- <caption>删除</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save("D");
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/formData/CUSTCD" appearance="minimal" editmode="input" style="left:97px; top:5px; width:158px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/comboData/CustCodeResult/CustCodeResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- </xhtml:body>
- </xhtml:html>
|