| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- <?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[进程管理 >> 充当管理 >> 充当对象物料选定]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <searchInfo>
- <LG_CD>A01004,A01007,B01001,E01010</LG_CD>
- </searchInfo>
- </initData>
- <codeData>
- </codeData>
- <formData>
- <searchInfo>
- <MAT_TP>TM</MAT_TP>
- <STL_GRD/>
- <LOC/>
- <WOO_RSN/>
- <SPEC_ABBSYM/>
- <ORD_USEAGE_CD/>
- <PROD_THK_MIN>0</PROD_THK_MIN>
- <PROD_THK_MAX>999.999</PROD_THK_MAX>
- <PROD_WTH_MIN>0</PROD_WTH_MIN>
- <PROD_WTH_MAX>99999.9</PROD_WTH_MAX>
- <PROD_WGT_MIN>0</PROD_WGT_MIN>
- <PROD_WGT_MAX>999999999</PROD_WGT_MAX>
- </searchInfo>
- </formData>
- <gridData>
- </gridData>
- </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/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js">
- <![CDATA[
- submitID = "UIE031020-service";
- function Init(node) {
- InitParams(node);
- exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO", "/root/codeData/ListResult_1_VO");
- pageInit();
- model.duplicate("/root/formData/searchInfo", "/root/initData/rcvInfo/REG_ID");
- }
- function pageInit() {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- var datagrid = datagrid1;
- datagrid.rebuild();
- commGridInit(datagrid);
- var rows = (datagrid.rows < 30) ? datagrid.rows : 30;
- for (var i = datagrid.fixedRows + 1; i < 30; i += 2)
- datagrid.rowStyle(i, "data", "background-color") = "#F7F9F9";
- isReadOnly(datagrid, "WOO_RSN");
- colStyle(datagrid, "CHK");
- rows = datagrid.rows;
- var colChk = datagrid.colRef("CHK");
- var colRef = datagrid.colRef("ORD_NO");
- for (var i=datagrid.fixedRows; i<rows; i++) {
- datagrid.valueMatrix(i, colChk) = "N";
- if (datagrid.valueMatrix(i, colRef) != "") {
- datagrid.rowStyle(i, "data", "background-color") = deleteRowStyle;
- datagrid.isReadOnly(i, colChk, i, colChk) = true;
- }
- }
- }
- function find() {
- exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
- pageInit();
- }
- function save() {
- exec("/root/formData/searchInfo", datagrid1, "save", "/root/gridData/ListResult_0_VO");
- pageInit();
- }
- function create() {}
- function remove() {
- var datagrid = datagrid1;
- if (datagrid.fixedRows == datagrid.rows) {
- alert("网格中没有记录!!!");
- return;
- }
- if(commComfirmBox("确定要删除选定行,同时取消对未选定行的删除吗?", "删除确认") == '0') return;
- commDelRow(datagrid, "CHK", "", "WOO_RSN", "CHK");
- // 数据网格, 选取项, 删除后可变项, 撤消删除后的只读项, 撤消删除后的须变更单元格颜色的项目
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
- <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:80px; ">
- <line id="line2" style="x1:0px; y1:74px; x2:980px; y2:74px; "/>
- <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">物料类型</caption>
- <select1 id="combo101" ref="MAT_TP" appearance="minimal" style="left:92px; top:5px; width:122px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption102" class="cell" style="left:224px; top:5px; width:90px; height:20px; ">钢号</caption>
- <select1 id="combo102" ref="STL_GRD" appearance="minimal" style="left:316px; top:5px; width:200px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
- <label ref="STL_GRD"/>
- <value ref="STL_GRD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption103" class="cell" style="left:523px; top:5px; width:90px; height:20px; ">堆放位置</caption>
- <input id="input103" ref="LOC" style="left:615px; top:5px; width:122px; height:20px; "/>
- <caption id="caption104" class="cell" style="left:0px; top:27px; width:90px; height:20px; ">余材原因</caption>
- <select1 id="combo104" ref="WOO_RSN" appearance="minimal" style="left:92px; top:27px; width:122px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='E01010' or LG_CD='A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption105" class="cell" style="left:0px; top:49px; width:90px; height:20px; ">厚度</caption>
- <input id="input1051" ref="PROD_THK_MIN" maxlength="6" format="#,###.#" style="left:92px; top:49px; width:60px; height:20px; text-align:right; "/>
- <input id="input1052" ref="PROD_THK_MAX" maxlength="6" format="#,###.#" style="left:154px; top:49px; width:60px; height:20px; text-align:right; "/>
- <caption id="caption106" class="cell" style="left:225px; top:49px; width:90px; height:20px; ">宽度</caption>
- <input id="input1061" ref="PROD_WTH_MIN" maxlength="6" format="#,###.#" style="left:317px; top:49px; width:65px; height:20px; text-align:right; "/>
- <input id="input1062" ref="PROD_WTH_MAX" maxlength="6" format="#,###.#" style="left:384px; top:49px; width:65px; height:20px; text-align:right; "/>
- <caption id="caption107" class="cell" style="left:458px; top:49px; width:90px; height:20px; ">重量</caption>
- <input id="input1071" ref="PROD_WGT_MIN" maxlength="9" format="#,###" style="left:550px; top:49px; width:65px; height:20px; text-align:right; "/>
- <input id="input1072" ref="PROD_WGT_MAX" maxlength="9" format="#,###" style="left:617px; top:49px; width:75px; height:20px; text-align:right; "/>
- <button id="button1" class="sw" style="left:776px; top:5px; width:100px; height:20px; ">
- <caption>充当对象物料选定</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // NIE031020 ( NIE031021、NIE031022 )
- exec("/root/formData/searchInfo", "", "select", "/root/gridData/ListResult_0_VO");
- var allowed = model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row/Allowed");
- if (allowed == "False")
- alert("JOB管理中对订单充当作了限制,不允许操作!");
- else if (allowed == "Step")
- alert("请首先进行充当对象订单选定!");
- else pageInit();
- ]]>
- </script>
- </button>
- <button id="button2" class="sw" style="left:880px; top:5px; width:100px; height:20px; ">
- <caption>自动充当处理</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // NIE031023、NIE031024
- exec("/root/formData/searchInfo", "", "replace", "/root/gridData/ListResult_0_VO");
- pageInit();
- ]]>
- </script>
- </button>
- <select1 id="combo107" ref="ORD_USEAGE_CD" appearance="minimal" style="left:615px; top:27px; width:122px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007' or LG_CD = 'A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo108" ref="SPEC_ABBSYM" appearance="minimal" style="left:316px; top:27px; width:200px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='B01001' or LG_CD = 'A']">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell" style="left:523px; top:27px; width:90px; height:20px; ">订单用途</caption>
- <caption id="caption108" class="cell" style="left:224px; top:27px; width:90px; height:20px; ">标准号</caption>
- </group>
- <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="删除选取^物料类型^物料号^钢号^是否进保温坑^是否进行取样^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^合同号^订单号^订单厚度^订单宽度^订单长度^订单重量^生产日期^余材原因^堆放位置^最初合同号^最初订单号^WGT^ORD_FL" colsep="^" colwidth="35, 35, 100, 150, 45, 45, 80, 80, 80, 80, 80, 80, 80, 35, 80, 80, 80, 80, 100, 100, 100, 80, 45, 50, 50" explorerbar="sortshow" extendlastcol="false" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:85px; width:980px; height:535px; ">
- <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
- <col key="false" ref="MAT_TP"/>
- <col ref="MAT_NO"/>
- <col key="false" ref="STL_GRD" style="text-align:left; "/>
- <col key="false" ref="KEEPWARM_YN"/>
- <col key="false" ref="SAMPL_PICK_YN"/>
- <col key="false" ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="MAT_INDIA" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="MAT_OUTDIA" format="#,###.#" style="text-align:right; "/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col key="false" ref="PROD_THK" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="PROD_WTH" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="PROD_LEN" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="PROD_WGT" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="PROD_DTIME" format="yyyy-mm-dd"/>
- <col key="false" ref="WOO_RSN" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='E01010']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col key="false" ref="LOC" style="text-align:left; "/>
- <col key="false" ref="ORG_ORD_NO"/>
- <col key="false" ref="ORG_ORD_SEQ"/>
- <col ref="WGT" visibility="hidden"/>
- <col ref="ORD_FL" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var datagrid = datagrid1;
- window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|