| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641 |
- <?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>A01001,A01004,A01007,B01001,E01020</LG_CD>
- </searchInfo>
- <COULD_YN/>
- </initData>
- <codeData>
- <ORD_SEQ/>
- </codeData>
- <formData>
- <searchInfo>
- <PRODNM_CD/>
- <CUST_CD/>
- <STL_GRD/>
- <ORD_NO_M/>
- <ORD_SEQ_M/>
- <RCVORD_CLF/>
- <DEL_FR_DATE/>
- <DEL_TO_DATE/>
- <ORD_USEAGE_CD/>
- <SPEC_ABBSYM/>
- <ORD_THK_MIN>0</ORD_THK_MIN>
- <ORD_THK_MAX>999.999</ORD_THK_MAX>
- <ORD_WTH_MIN>0</ORD_WTH_MIN>
- <ORD_WTH_MAX>99999.9</ORD_WTH_MAX>
- </searchInfo>
- <searchInfo2>
- <ORD_NO/>
- <ORD_SEQ/>
- <MAT_TP>TM</MAT_TP>
- <NIB028720>Y</NIB028720>
- <NIB028750>Y</NIB028750>
- <NIB028700>Y</NIB028700>
- <NIB028710>Y</NIB028710>
- <NIB028730>Y</NIB028730>
- <NIB028740/>
- </searchInfo2>
- <searchInfo3>
- <MAT_NOS/>
- <REP_TP/>
- <COIL_CNT>1</COIL_CNT>
- <CZYY/>
- </searchInfo3>
- </formData>
- <gridData>
- <REM_WGT/>
- <ListResult_1_VO/>
- </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 = "UIE031045-service";
- var gv_ord_no = "";
- var gv_ord_seq = "";
- var gv_reg_id = "";
- //var v_ds_yn = "";
- function Init(node) {
- InitParams(node);
- exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
- "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
- model.setValue("/root/formData/searchInfo/DEL_FR_DATE", commFirstDay());
- model.setValue("/root/formData/searchInfo/DEL_TO_DATE", commCurDate());
- pageInit();
- model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
- model.property("V_REG_ID") = model.getValue("/root/initData/rcvInfo/REG_ID");
- gv_reg_id = model.property("V_REG_ID");
- }
- function pageInit(refresh) {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- if (typeof refresh == "undefined") {
- isReadOnly(datagrid1, "PRODNM_CD,ORD_USEAGE_CD");
- }
- var datagrid = datagrid2;
- datagrid.rebuild();
- commGridInit(datagrid);
- var rows = datagrid.rows;
- var colChk = datagrid.colRef("CHK");
- var colJKB = datagrid.colRef("JKB");
- var oddRow = false;
- for (var i=datagrid.fixedRows; i<rows; i++) {
- datagrid.valueMatrix(i, colChk) = "false";
- if (oddRow)
- datagrid.rowStyle(i, "data", "background-color") = "#F7F9F9";
- oddRow = !oddRow;
- if (Number(datagrid.valueMatrix(i, colJKB) > 1.5 ))
- datagrid.rowstyle(i, "data", "background-color") = "red";
- }
- colStyle(datagrid, "CHK");
- var visible = model.getValue("/root/formData/searchInfo2/MAT_TP") == "TM";
- datagrid.colHidden(datagrid.colRef("SPEC_STL_GRD")) = visible;
- datagrid.colHidden(datagrid.colRef("MAT_INDIA")) = visible;
- datagrid.colHidden(datagrid.colRef("MAT_OUTDIA")) = visible;
- datagrid.colHidden(datagrid.colRef("JKB")) = visible;
- }
-
- function color_ds_yn() {
- for(var i = 1;i<=datagrid1.rows-1;i++)
- {
- var v_ds_yn = datagrid1.valueMatrix(i,datagrid1.colRef("DN_YN"));
- var bgcolor = "#ffffff";
- if(v_ds_yn == "Y" ) {
- bgcolor = "pink";
- }
- else{
- bgcolor = "#ffffff";
- }
- datagrid1.rowstyle(i, "data", "background-color") = bgcolor;
- }
- }
- function find(req) {
- if (typeof req == "undefined") req = "/root/formData/searchInfo";
- exec(req, "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
- model.refresh();
- color_ds_yn();
- pageInit();
- }
- function save() {}
- function create() {}
- function remove() {}
- var onrowchanged = false;
- function rowchanged() {
- showProgressBar();
- var datagrid = datagrid1;
- var row = datagrid.row;
- model.setValue("/root/formData/searchInfo2/ORD_NO", datagrid.valueMatrix(row, datagrid.colRef("ORD_NO")));
- model.setValue("/root/formData/searchInfo2/ORD_SEQ", datagrid.valueMatrix(row, datagrid.colRef("ORD_SEQ")));
- model.makeValue("/root/formData/searchInfo2/COIL_CNT",model.getValue("/root/formData/searchInfo3/COIL_CNT"));
- exec("/root/formData/searchInfo2", "", "onclick", "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
- model.setValue("/root/gridData/REM_WGT", datagrid.valueMatrix(row, datagrid.colRef("ORD_REM_WGT")));
- pageInit(false);
- removeProgressBar();
- }
- function fowardUID010031(gridID) {
- if(gridID.col == gridID.colRef("INGR_YN")) {
- model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
- model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
- model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
- }
- }
- ]]>
- </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:73px; x2:980px; y2:73px; "/>
- <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">产品</caption>
- <select1 id="combo101" ref="PRODNM_CD" appearance="minimal" style="left:92px; top:5px; width:127px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD='A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption102" class="cell" style="left:229px; top:5px; width:90px; height:20px; ">客户</caption>
- <select1 id="combo102" ref="CUST_CD" appearance="minimal" style="left:321px; top:5px; width:127px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
- <label ref="CUST_NM"/>
- <value ref="CUST_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption103" class="cell" style="left:458px; top:5px; width:90px; height:20px; ">钢号</caption>
- <select1 id="combo103" ref="STL_GRD" appearance="minimal" style="left:550px; top:5px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
- <label ref="STL_GRD"/>
- <value ref="STL_GRD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption104" class="cell" style="left:0px; top:27px; width:90px; height:20px; ">合同号</caption>
- <input id="input1041" ref="ORD_NO_M" maxlength="12" style="left:92px; top:27px; width:80px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/formData/searchInfo/ORD_SEQ_M", "");
- // if (model.getValue("/root/formData/searchInfo/ORD_NO_M").length == 12) {
- exec("/root/formData/searchInfo/ORD_NO_M", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- // } else {
- // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
- // }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="combo1042" ref="ORD_SEQ_M" appearance="minimal" style="left:174px; top:27px; width:45px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row">
- <label ref="ORD_SEQ"/>
- <value ref="ORD_SEQ"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption105" class="cell" style="left:229px; top:27px; width:90px; height:20px; ">订货区分</caption>
- <select1 id="combo105" ref="RCVORD_CLF" appearance="minimal" style="left:321px; top:27px; width:127px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01001' or LG_CD='A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption106" class="cell" style="left:458px; top:27px; width:90px; height:20px; ">交货日期</caption>
- <input id="input1061" ref="DEL_FR_DATE" inputtype="date" style="left:550px; top:27px; width:100px; height:20px; "/>
- <input id="input1062" ref="DEL_TO_DATE" inputtype="date" style="left:652px; top:27px; width:100px; height:20px; "/>
- <caption id="caption107" class="cell" style="left:762px; top:27px; width:90px; height:20px; ">订单用途</caption>
- <select1 id="combo107" ref="ORD_USEAGE_CD" appearance="minimal" style="left:854px; top:27px; width:110px; 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:92px; top:49px; width:127px; 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:0px; top:49px; width:90px; height:20px; ">标准号</caption>
- <caption id="caption108" class="cell" style="left:229px; top:49px; width:90px; height:20px; ">厚度</caption>
- <input id="input1081" ref="ORD_THK_MIN" maxlength="6" format="#,###.#" style="left:321px; top:49px; width:62px; height:20px; text-align:right; "/>
- <input id="input1082" ref="ORD_THK_MAX" maxlength="6" format="#,###.#" style="left:385px; top:49px; width:63px; height:20px; text-align:right; "/>
- <caption id="caption109" class="cell" style="left:458px; top:49px; width:90px; height:20px; ">宽度</caption>
- <input id="input1091" ref="ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:550px; top:49px; width:60px; height:20px; text-align:right; "/>
- <input id="input1092" ref="ORD_WTH_MAX" maxlength="6" format="#,###.#" style="left:612px; top:49px; width:60px; height:20px; text-align:right; "/>
- <button id="button1" class="sw" style="left:880px; top:5px; width:100px; height:20px; ">
- <caption>充当处理</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (model.getValue("/root/formData/searchInfo3/CZYY") == "") {
- alert("请选取充当原因!");
- return;
- }
- // NIE031031
- if(input2.value== "") {
- alert("成品卷数不能为空!");
- return;
- }
- var v_ds_yn = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("DN_YN"));
- if(v_ds_yn == "Y" ) {
- alert("该订单正在板坯设计中,请稍候充当...");
- return;
- }
-
- exec("", "", "state");
- if (model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/PRC_STS") != "C") {
- alert("正在进行自动充当处理,当前不能进行手动充当作业!");
- return;
- }
-
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- var datagrid = datagrid2;
- var rowSep = (datagrid.attribute("rowsep")=='')?'|':datagrid.attribute('rowsep');
- var colSep = (datagrid.attribute("colsep")=='')?'^':datagrid.attribute('colsep');
- var data = datagrid.getUpdateData();
- var up_data = data.split(rowSep);
- var rows = up_data.length - 1;
- var colRef = datagrid.colRef("MAT_NO");
- var colChk = datagrid.colRef("CHK");
- var mat_nos = "";
- var rep_tp = "";
- var tag = "";
- for (var i=1; i<rows; i++) {
- var vRow = up_data[i].split(colSep);
- var Idx = Number(vRow[1]);
- if (datagrid.valueMatrix(Idx, colChk) == "Y")
- mat_nos += "," + datagrid.valueMatrix(Idx, colRef);
- }
- rep_tp +="," +model.getValue("/root/formData/searchInfo3/CZYY") ;
- if(checkbox1.value == "Y"){
- rep_tp += "," + "CF";
- }else{
- tag += "," + "成分";
- }
- if(checkbox2.value == "Y"){
- rep_tp += "," + "CZ";
- }else{
- tag += "," + "材质";
- }
- if(checkbox3.value == "Y"){
- rep_tp += "," + "PH";
- }else{
- tag += "," + "牌号P";
- }
- if(checkbox5.value == "Y"){
- rep_tp += "," + "CC";
- }else{
- tag += "," + "尺寸";
- }
- if(checkbox6.value == "Y"){
- rep_tp += "," + "DZ";
- }else{
- tag += "," + "单重";
- }if(checkbox4.value == "Y"){
- rep_tp += "," + "CL";
- }else{
- tag += "," + "超量";
- }
- tag += "," + model.getValue("/root/formData/searchInfo3/COIL_CNT");
- //alert(tag);
- if (mat_nos != "") {
- model.setValue("/root/formData/searchInfo3/MAT_NOS", mat_nos.substring(1));
- model.setValue("/root/formData/searchInfo3/REP_TP", rep_tp.substring(1));
- exec("/root/formData", "", "replace", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO", "/root/gridData/ListResult_2_VO");
- if (model.getValue("/root/resData/errorData") != "") {
- // alert(model.getValue("/root/resData/errorData"));
- output201.value = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_REM_WGT"));
- output201.refresh();
- pageInit();
- return;
- }
- pageInit();
- }
- color_ds_yn();
- model.refresh();
- ]]>
- </script>
- </button>
- <shape id="rectangle2" appearance="rectangle" style="left:686px; top:50px; width:10px; height:20px; background-color:pink; "/>
- <caption id="caption4" style="left:700px; top:50px; width:75px; height:20px; vertical-align:middle; ">板坯设计中</caption>
- <button id="button2" visibility="visible" style="left:690px; top:5px; width:60px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="STL_GRD" appearance="minimal" style="left:550px; top:5px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
- <label ref="STL_GRD"/>
- <value ref="STL_GRD"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:550px; top:49px; width:60px; height:20px; text-align:right; "/>
- <caption id="caption6" class="cell" style="left:765px; top:50px; width:90px; height:20px; ">充当原因</caption>
- <select1 id="combo2" ref="/root/formData/searchInfo3/CZYY" appearance="minimal" style="left:855px; top:50px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'E01020']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="合同号^订单号^客户^产品类型^热轧交货状态^冷轧交货状态^钢号^成品钢号^标准号^订单用途^是否进保温坑^是否全部取样^订单厚度^订单宽度^订单长度^订单内径^订单外径^订单单重下限^订单单重上限^紧急材^预排期^交货期结束^订单重量^进程量^欠量^发货完重量^订货区分^发货方式^订单备注^钢卷颜色^板坯设计中^客户特殊要求" colsep="^" colwidth="80, 35, 150, 54, 52, 44, 150, 150, 150, 100, 45, 45, 80, 80, 80, 80, 80, 100, 100, 35, 52, 100, 80, 80, 80, 80, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:78px; width:980px; height:210px; ">
- <col key="false" ref="ORD_NO"/>
- <col key="false" ref="ORD_SEQ"/>
- <col key="false" ref="CUST_CD" style="text-align:left; "/>
- <col key="false" ref="PRD_TY" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col key="false" ref="PRODNM_CD"/>
- <col key="false" ref="C_PRODNM_CD"/>
- <col ref="STL_GRD" style="text-align:left; "/>
- <col ref="SPEC_STL_GRD" style="text-align:left; "/>
- <col key="false" ref="SPEC_ABBSYM" style="text-align:left; "/>
- <col key="false" ref="ORD_USEAGE_CD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="KEEPWARM_YN"/>
- <col ref="EACHLOT_YN"/>
- <col key="false" ref="ORD_THK" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="ORD_WTH" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="ORD_LEN" visibility="hidden" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="ORD_INDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="ORD_OUTDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
- <col ref="ORD_UNIT_WGT_MIN" format="#,###.#" style="text-align:right; "/>
- <col ref="ORD_UNIT_WGT_MAX" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="EMGMTR_NMG_CLF"/>
- <col key="false" ref="ORD_PLAN_DATA"/>
- <col key="false" ref="DEL_TO_DATE" format="yyyy-mm-dd"/>
- <col ref="ORD_WGT" format="#,###.#" style="text-align:right; "/>
- <col ref="ORD_PRC_WGT" format="#,###.#" style="text-align:right; "/>
- <col ref="ORD_REM_WGT" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="SHIP_END_WGT" format="#,###.#" style="text-align:right; "/>
- <col ref="RCVORD_CLF" style="text-align:left; "/>
- <col ref="DLIV_TP" style="text-align:left; "/>
- <col ref="MK_CONTENT" style="text-align:left; "/>
- <col ref="MK_COIL" style="text-align:left; "/>
- <col ref="DN_YN"/>
- <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fowardUID010031(datagrid1);
- ]]>
- </script>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.col != datagrid1.colRef("INGR_YN")) {
- var v_ds_yn = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("DN_YN"));
- if(v_ds_yn == "Y" ) {
- alert("该订单正在板坯设计中,请稍候充当...");
- model.removenode("/root/gridData/ListResult_1_VO");
- model.makeNode("/root/gridData/ListResult_1_VO");
- model.refresh();
- return;
- }
- if (!onrowchanged) return;
- rowchanged();
- onrowchanged = false;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- onrowchanged = true;
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var datagrid = datagrid1;
- window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
- ]]>
- </script>
- </datagrid>
- <group id="group2" overflow="hidden" ref="/root/formData/searchInfo2" style="left:0px; top:292px; width:980px; height:35px; ">
- <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line4" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <caption id="caption201" class="cell" style="left:0px; top:5px; width:75px; height:20px; ">物料类型</caption>
- <select1 id="combo201" ref="MAT_TP" appearance="minimal" style="left:77px; top:5px; width:90px; 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>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select1>
- <select id="checkbox1" ref="NIB028720" disabled="false" overflow="visible" appearance="full" style="left:865px; top:5px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同成分</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="NIB028750" disabled="false" overflow="visible" appearance="full" style="left:924px; top:5px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同材质</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select>
- <caption id="caption2" class="cell" style="left:172px; top:5px; width:75px; height:20px; ">剩余充当量</caption>
- <output id="output201" ref="/root/gridData/REM_WGT" format="#,###" style="left:249px; top:5px; width:90px; height:20px; text-align:right; border-color:#c0c0c0; border-style:solid; "/>
- <select id="checkbox3" ref="NIB028700" overflow="visible" appearance="full" style="left:805px; top:5px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同牌号</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select>
- <select id="checkbox4" ref="NIB028740" disabled="false" overflow="visible" appearance="full" style="left:490px; top:5px; width:95px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <item>
- <label>允许超量充当</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select>
- <select id="checkbox5" ref="NIB028730" overflow="visible" appearance="full" style="left:745px; top:5px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同尺寸</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select>
- <select id="checkbox6" ref="NIB028710" overflow="visible" appearance="full" style="left:685px; top:5px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同单重</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rowchanged();
- ]]>
- </script>
- </select>
- <caption id="caption3" class="cell" style="left:343px; top:5px; width:60px; height:20px; ">成品卷数</caption>
- <input id="input2" ref="/root/formData/searchInfo3/COIL_CNT" style="left:405px; top:5px; width:40px; height:20px; "/>
- </group>
- <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="选取^物料号^厂内钢号^成品钢号^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^径宽比^生产日期^余材原因^堆放位置^是否进保温坑^是否取样^最初合同号^最初订单号^钢卷备注^板坯备注^MAT_REP_WGT^钢卷流水号" colsep="^" colwidth="35, 100, 150, 150, 80, 80, 80, 80, 80, 80, 100, 100, 100, 100, 45, 40, 80, 45, 100, 100,100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:325px; width:735px; height:294px; ">
- <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
- <col key="false" ref="DSP_NO"/>
- <col key="false" ref="STL_GRD" style="text-align:left; "/>
- <col key="false" ref="SPEC_STL_GRD" style="text-align:left; "/>
- <col ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_INDIA" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_OUTDIA" format="#,###.#" style="text-align:right; "/>
- <col ref="JKB" format="#,###.#" style="text-align:right; "/>
- <col key="false" ref="MAT_DTIME" format="yyyy-mm-dd"/>
- <col key="false" ref="NONORD_CAUSE_CD" style="text-align:left; "/>
- <col key="false" ref="CUR_LOAD_LOC"/>
- <col ref="KEEPWARM_YN"/>
- <col ref="SAMPL_PICK_YN"/>
- <col key="false" ref="ORG_ORD_NO"/>
- <col key="false" ref="ORG_ORD_SEQ"/>
- <col ref="REM_YARD"/>
- <col ref="SLAB_DCS_DETAIL"/>
- <col key="false" ref="MAT_REP_WGT" visibility="hidden"/>
- <col ref="MAT_NO" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var datagrid = datagrid2;
- var colChk = datagrid.colRef("CHK");
- if (datagrid.col != colChk) return;
- var row = datagrid.row;
- // 可充当的余重
- var remWgt = Number(model.getValue("/root/gridData/REM_WGT"));
- if (datagrid.valueMatrix(row, colChk) == "Y") {
- if (remWgt <= 0 && model.getValue("/root/formData/searchInfo2/NIB028740")!= "Y") {
- alert("已经充当满,不能再充当了!");
- datagrid.valueMatrix(row, colChk) = "N";
- datagrid.rowStatus(row) = 0;
- return;
- } else {
- remWgt -= Number(datagrid.valueMatrix(row, datagrid.colRef("MAT_REP_WGT")));
- }
- } else {
- remWgt += Number(datagrid.valueMatrix(row, datagrid.colRef("MAT_REP_WGT")));
- datagrid.rowStatus(row) = 0;
- }
- model.setValue("/root/gridData/REM_WGT", remWgt);
-
- //这里选择的时候就给出钢卷备注提示
- if (datagrid.valueMatrix(row, colChk) == "Y") {
- var REM_YARD = datagrid.valueMatrix(row,datagrid.colRef("REM_YARD"));
- if(REM_YARD != ""){
- alert("此钢卷存在备注:"+REM_YARD);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var datagrid = datagrid2;
- window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/gridData/ListResult_2_VO/ListResult_2_Row" caption="物料号^堆置位置^物料重量" colsep="^" colwidth="93, 68, 56" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="45" rowsep="|" style="left:738px; top:325px; width:241px; height:294px; ">
- <col ref="MAT_NO"/>
- <col ref="CUR_LOAD_LOC" style="text-align:left; "/>
- <col ref="MAT_WGT" style="text-align:right; "/>
- </datagrid>
- <shape id="rectangle5" appearance="rectangle" style="left:588px; top:297px; width:10px; height:20px; background-color:red; "/>
- <caption id="caption5" style="left:602px; top:297px; width:53px; height:20px; vertical-align:middle; ">超径宽比</caption>
- </xhtml:body>
- </xhtml:html>
|