| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData>
- </reqData>
- <resData/>
- <SlabDnRst>
- <ListResult_0_VO/>
- </SlabDnRst>
- <MatDnRst>
- <ListResult_1_VO/>
- </MatDnRst>
- <formData>
- <FacStlGrp/>
- <FacStlGrd/>
- <SlabWth/>
- <RangeCoilThk>
- <FrCoilThk/>
- <ToCoilThk/>
- </RangeCoilThk>
- <DevTerm>
- <FrDevlmtDate/>
- <ToDevlmtDate/>
- </DevTerm>
- <castDnRst/>
- <matSpecSeq/>
- <MatTp>01</MatTp>
- <CoilThkGroup/>
- <CoilThk/>
- <SlabThk/>
- <OrdNo/>
- <OrdSeq/>
- </formData>
- <initData>
- <FacStlGrp>
- <IncludeAll>A</IncludeAll>
- </FacStlGrp>
- <FacStlGrd>
- <IncludeAll>A</IncludeAll>
- <FacStlGrd/>
- </FacStlGrd>
- <DevTerm>
- <FromNum>35</FromNum>
- <ToNum>0</ToNum>
- <DateFormat>YYYYMMDD</DateFormat>
- </DevTerm>
- <rcvInfo/>
- <BIZ_TP>CoilThickGroup</BIZ_TP>
- <LG_CD>D01002</LG_CD>
- </initData>
- <slab_count/>
- <wth_count/>
- <gridData>
- <sendInfo/>
- </gridData>
- <slab_wgt_sum/>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function lpad(str, len, fill) {
- if (fill == null) fill = " ";
-
- str = str + "";
-
- while( str.length < len ) str = fill + str;
-
- return str;
- }
- var submitCommID = "UIDCommCode-service";
- var subimtDateID = "UIDCommDate-service";
- var submitMainID = "UID030020-service";
-
- //1、获取用户登录信息,只能在页面初始化函数中调用
- function InitParams(node)
- {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- for (var i = 0; i < nodeList.length; i++)
- model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
-
-
- }
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- //InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- pageInit();
- }
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 炉次浇次设计 >> 炉次浇次编制"; // 如:return "进程管理 >> 订单进程现况查询";
- }
- function pageInit()
- {
- // Populate values (连铸牌号-combo)
- commSendReq("/root/initData/FacStlGrp");
- commSubmit(submitCommID ,"findNormal" ,"glueAction.do" );
- model.copyNode("/root/formData/FacStlGrp" ,"/root/resData/DCommCodeResult_VO" );
- model.removenode("/root/reqData");
-
- // Populate values (厂内牌号-combo)
- commSendReq("/root/initData/FacStlGrd");
- commSubmit(submitCommID ,"findFacStlGrd2" , "glueAction.do" );
- model.copyNode("/root/formData/FacStlGrd" , "/root/resData/DCommCodeResult_VO");
- model.removenode("/root/reqData");
-
- // Populate values (发货指示期间-combo)
- commSendReq("/root/initData/DevTerm");
- commSubmit(subimtDateID ,"success" ,"glueAction.do" );
- model.setValue("/root/formData/DevTerm/FrDevlmtDate" , model.getValue("/root/resData/DateResultList_VO/DateResultList_Row/FR_DATE"));
- model.setValue("/root/formData/DevTerm/ToDevlmtDate" , model.getValue("/root/resData/DateResultList_VO/DateResultList_Row/TO_DATE"));
- model.removenode("/root/reqData");
-
-
- // 板坯宽度
- commSendReq("/root/initData/FacStlGrd");
- commSubmit(submitCommID ,"searchSlabDnWidth2" , "glueAction.do" );
- model.copyNode("/root/formData/SlabWth" , "/root/resData/DCommCodeResult_VO");
- model.removenode("/root/reqData");
-
-
- // 钢卷厚度
- /*commSendReq("/root/initData");
- commSubmit(submitCommID ,"numMinMaxByBizTp" , "glueAction.do" );
- model.copyNode("/root/formData/CoilThk" , "/root/resData/DCommCodeResult_VO");
- model.removenode("/root/reqData");
- model.removenode("/root/resData/DCommCodeResult_VO");*/
- cb_FacStlGrp.select(0);
- cb_FacStlGrd.select(0);
- cb_SlabWth.select(0);
- /*cb_CoilThkGrp.select(0);*/
-
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.refresh();
- }
- function calculateSummary()
- {
- var count = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row)");
- var chk_count = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[CHK = 'Y'])");
- model.setValue("/root/slab_count",chk_count+"/"+count);
- var chk_wgt = model.getXPathValue("sum(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[CHK = 'Y']/SLAB_WGT)");
- var wgt = model.getXPathValue("sum(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row/SLAB_WGT)");
- //alert("wgt="+chk_wgt+"/"+wgt)
- model.setValue("/root/slab_wgt_sum",chk_wgt+"/"+wgt);
- model.setValue("/root/wth_count",model.getXPathValue("sum(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL >= 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]/MAT_WGT)"));
- }
-
- function find()
- {
- model.removeNodeset(dg1.nodeset);
- model.removeNodeset(dg2.nodeset);
- model.removeNodeset(dg3.nodeset);
- //model.refresh();
- model.makeValue("/root/formData/FACSTLGED",model.getValue("/root/formData/FacStlGrd"));
- model.makeValue("/root/formData/FACSTLGEP",model.getValue("/root/formData/FacStlGrp"));
- if(model.getValue("/root/formData/SlabWth") == '1')
- {
- model.makeValue("/root/formData/SALABWTH","");
- }
- else
- {
- model.makeValue("/root/formData/SALABWTH",model.getValue("/root/formData/SlabWth"));
- }
-
- submitID = submitMainID;
- exec("/root/formData", "", "find", "/root/SlabDnRst/ListResult_0_VO", "/root/MatDnRst/ListResult_1_VO");
- calculateSummary();
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- cb_CastSpecSeq.select(0);
- commGridLevels(dg1,0);
- // commGridLevels(dg3,0);
- setColor();
- }
- function save()
- {
- var pbWidth = 200;
- var pbHeight = 100;
- var width = htmlwindow.screen.width;
- var height = htmlwindow.screen.height;
- var left = (width - pbWidth) / 2;
- var top = (height - pbHeight) / 2;
- var progressBar = body.createChild("xforms:group", "id:progressBar;left:" + left + "px; top:" + top + "px; width:" + pbWidth + "px; height:" + pbHeight + "px; popup:true; showeffect:blend 300; background-color:#dddddd; background-image:../../images/wait.gif; background-position:center; background-stretch:no-stretch;");
- commSendReq("/root/MatDnRst");
- commSubmit(submitMainID,"save","glueAction.do");
- model.removenode("/root/reqData");
-
- body.removeChild("progressBar");
- //errorMessage();
- model.refresh();
- }
- function create()
- {
- //model.setValue("/root/formData/MatTp","01");
- commSendReq("/root/formData/MatTp");
- commSubmit(submitMainID,"add" ,"glueAction.do" );
- var vCnt = model.getXPathValue("count(/root/resData/ListResult_1_VO/ListResult_1_Row)");
- model.duplicate("/root/MatDnRst/ListResult_1_VO" ,"/root/resData/ListResult_1_VO/ListResult_1_Row["+ vCnt +"]" );
-
- model.removenode("/root/reqData");
- //model.removenode("/root/resData/ListResult_1_VO");
- //errorMessage();
- model.refresh();
-
- cb_CastSpecSeq.select(cb_CastSpecSeq.length - 1);
- //model.refresh();
- }
-
- function chageSelect()
- {
- var sChgSpecSeq = model.getValue("/root/formData/matSpecSeq");//dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
- if(sChgSpecSeq == "")
- {
- window.alert("请选择炉次!","提示信息");
- return;
- }
- var sFacStlGrd = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD");
- var iSlabRows = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"])" ));
- var iChgWeights = Number(model.getXPathValue("sum (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT)"));
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN") );
-
-
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/CMAT_CNT" , iSlabRows );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT" , iChgWeights );
-
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD", sFacStlGrd );
- model.refresh();
- }
-
- function remove()
- {
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
- var castDnRst = model.getValue("/root/formData/castDnRst");
- if(castDnRst == "")
- {
- window.alert("请选择需要删除的浇次","提示信息");
- return;
- }
- //var j = 0;
- //var flag = "true";
- for(var i = 1; i<=count; i++)
- {
- //var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
- if(castDnRst == model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_SPEC_SEQ"))
- {
- model.duplicate("/root/gridData/sendInfo","/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]");
-
- }
- //if(castDnRst == model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ"))
- //{
- // window.alert("要删除该浇次,请先删除该浇次中的所有炉次","提示信息");
- // flag = "false";
- // break;
- //}
- }
- //if(flag == "false")
- //{
- // return;
- //}
- if(commComfirmBox(" 确认删除该浇次? "," 提示信息 ")=='0') return;
- commSendReq("/root/gridData/sendInfo");
- commSubmit(submitMainID,"deleteMatDnRst","glueAction.do");
- find();
- calculateSummary();
- model.refresh();
- }
-
- function setColor()
- {
- dg1.rebuildStyle();
- var valCol = dg1.colRef("IS_ZLSJ");
- for(var i = dg1.fixedRows; i < dg1.rows; i++)
- {
- if(dg1.valueMatrix(i , valCol )== "否")
- {
- dg1.cellStyle("background-color" , i , valCol) = "#ff0000";
- }
- }
- }
- var dg2_currRow = -1; //dg2.onrowchanged
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //dg1.fixedcellcheckbox(0,dg1.colRef("CHK"))=true;
- //dg1.colStatus(0)=false;
-
- pageInit();
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;2,620;" style="font-family:Tahoma; font-size:11pt; ">
- <caption id="ct_01" class="cell" style="left:0px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">厂内牌号组</caption>
- <select1 id="cb_FacStlGrp" ref="/root/formData/FacStlGrp" appearance="minimal" editmode="inputsearch" style="left:82px; top:5px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/formData/FacStlGrp/DCommCodeResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="ct_02" class="cell" style="left:187px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">厂内牌号</caption>
- <select1 id="cb_FacStlGrd" ref="/root/formData/FacStlGrd" appearance="minimal" editmode="inputsearch" style="left:269px; top:5px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/formData/FacStlGrd/DCommCodeResult_Row">
- <label ref="FAC_STL_GRD_NM"/>
- <value ref="FAC_STL_GRD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="ct_03" class="cell" style="left:374px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">板坯宽度</caption>
- <select1 id="cb_SlabWth" ref="/root/formData/SlabWth" appearance="minimal" style="left:456px; top:5px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/formData/SlabWth/DCommCodeResult_Row">
- <label ref="SLAB_WTH_NM"/>
- <value ref="SLAB_WTH"/>
- </itemset>
- </choices>
- </select1>
- <caption id="ct_04" class="cell" style="left:561px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">板坯厚度</caption>
- <caption id="ct_05" class="cell" style="left:748px; top:5px; width:54px; height:20px; text-align:center; vertical-align:middle; ">订单号</caption>
- <caption id="caption2" style="left:881px; top:8px; width:20px; height:20px; text-align:center; vertical-align:bottom; ">~</caption>
- <line id="line_01" visibility="visible" style="x1:980px; y1:30px; x2:0px; y2:30px; border-color:#ff0000; "/>
- <datagrid id="dg1" nodeset="/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#f7f9f9" caption="选择^板坯号^厂内牌号^厂内牌号组^是否质量设计^钢卷^钢卷^板坯^板坯^板坯^热装区分^中厚板特殊要求^组合区分^交货期|选择^板坯号^厂内牌号^厂内牌号组^是否质量设计^宽度^厚度^宽度^长度^重量^热装区分^中厚板特殊要求^组合区分^交货期" colsep="^" colwidth="52, 78, 56, 36, 39, 7, 10, 43, 43, 43, 51, 63, 51, 66, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:65px; width:527px; height:555px; border-style:solid; border-right-style:sunken; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox" style="text-align:left; "/>
- <col ref="DSN_SLAB_NO" style="text-align:left; "/>
- <col ref="FAC_STL_GRD" style="text-align:left; "/>
- <col ref="FAC_STL_GRP" style="text-align:left; "/>
- <col ref="IS_ZLSJ" style="text-align:center; "/>
- <col ref="COIL_WTH" visibility="hidden" style="text-align:right; "/>
- <col ref="COIL_THK" visibility="hidden" style="text-align:right; "/>
- <col ref="SLAB_WTH" style="text-align:right; "/>
- <col ref="SLAB_LEN" format="#,###" style="text-align:right; "/>
- <col ref="SLAB_WGT" format="#,###" style="text-align:right; "/>
- <col ref="HCR_YN"/>
- <col ref="SPEC_REQ_DESC"/>
- <col ref="COMB_YN"/>
- <col ref="ORD_DEVLMT_DATE" type="output" visibility="hidden" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="DSN_SLAB_NO" visibility="hidden"/>
- <col ref="P_DSN_SLAB_NO" visibility="hidden"/>
- <col ref="EMGMTR_YN" visibility="hidden"/>
- <col ref="PROC_PATH" visibility="hidden"/>
- <col ref="SLAB_THK" visibility="hidden"/>
- <col ref="SCARFING_PROC_YN" visibility="hidden"/>
- <col ref="SPM_PROC_YN" visibility="hidden"/>
- <col ref="COIL_LEN" visibility="hidden"/>
- <col ref="COIL_WGT" visibility="hidden"/>
- <col ref="SLAB_TRMTH_TP" visibility="hidden"/>
- <col ref="LEVEL" visibility="hidden"/>
- <col ref="GRAVITY" visibility="hidden"/>
- <col ref="COIL_INDIA" visibility="hidden"/>
- <col ref="LEVEL" visibility="hidden"/>
- <col ref="COIL_OUTDIA" visibility="hidden"/>
- <col ref="AUTODSN_YN" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- /*var vRefPDsnSlabNo = dg1.colRef("P_DSN_SLAB_NO");
- var vPDsnSlabNo = dg1.valueMatrix(dg1.row, vRefPDsnSlabNo);
- //alert( "P_DSN_SLAB_NO => ["+ vPDsnSlabNo + "]" );
- if( vPDsnSlabNo != "" )
- {
- dg1.valueMatrix(dg1.row, vRefChk) = model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[DSN_SLAB_NO = "+ vPDsnSlabNo +"]/CHK");
- }
- else
- {
- var vRefDsnSlabNo = dg1.colRef("DSN_SLAB_NO");
- var vDsnSlabNo = dg1.valueMatrix(dg1.row, vRefDsnSlabNo);
- var vCnt = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[P_DSN_SLAB_NO = "+ vDsnSlabNo +"])");
- if( vCnt != 0 )
- {
- var vRefChk = dg1.colRef("CHK");
- var vChk = dg1.valueMatrix(dg1.row, vRefChk);
-
- var vMatchCnt = 0;
- var vRefPDsnSlabNo = dg1.colRef("P_DSN_SLAB_NO");
- for( var i = dg1.row; i < dg1.rows; i++ )
- {
- if( dg1.valueMatrix(i, vRefPDsnSlabNo) == vDsnSlabNo )
- {
- vMatchCnt++;
- dg1.valueMatrix(i, vRefChk) = vChk;
- if( vChk == 'Y' )
- dg1.addStatus(i, "update");
- else dg1.removeStatus(i,"");
- }
- if( vMatchCnt >= vCnt )
- {
- break;
- }
- }
- dg1.refresh();
- }
- }
- var selectRow = dg1.row;*/
- calculateSummary();
- caption1.refresh();
- caption7.refresh();
-
- ]]>
- </script>
- </datagrid>
- <button id="button2" style="left:450px; top:35px; width:75px; height:20px; font-weight:bold; text-align:right; vertical-align:middle; background-image:../../images/find.gif; border-color:#ffffff; border-style:solid; ">
- <caption>板坯选定</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.refresh();
- // Validate CAST_NO
- var vCastSpecSeq = cb_CastSpecSeq.value;
- if( vCastSpecSeq == "" )
- {
- model.alert("Please, choice the target cast!!!");
- return;
- }
- // Validate CHAREG_NO
- var vCharSpecSeq = "";
- var vRowCnt = 0;
- for( var i = 1; i < dg2.rows; i++ )
- {
- if( dg2.valueMatrix( i, dg2.colRef("CHK") ) == 'Y' )
- {
- vRowCnt++;
- vCharSpecSeq = dg2.valueMatrix( i, dg2.colRef("MAT_SPEC_SEQ") );
- }
- }
- if( vRowCnt == 0 )
- {
- model.alert("Please, choice the target charge!!!");
- return;
- }
- // Validate Resourced-SLAB_NO
- var vUpdatedArr = dg1.getUpdateData("update").split('|');
- vRowCnt = vUpdatedArr.length - 2; // Excepting 2 rows (One is Column's Ref, another one is Last-splited(Space)
- if( vRowCnt == 0 )
- {
- model.alert("Please, choice the slab to move!!!");
- return;
- }
- var vTargetRow = 1 + Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)"));
- var idx = 0;
- var vRefChk = dg1.colRef("CHK");
- var vLevel = 0;
- //add by wangli -----------------------------------***************************
- var vLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and PMAT_SPEC_SEQ = /root/formData/matSpecSeq]/MAT_SPEC_SEQ)");
- if( vLastMatSpecSeq == "NaN" )
- {
- vLastMatSpecSeq = "000";
- }
- else
- {
- vLastMatSpecSeq = String(vLastMatSpecSeq).substring(Number(String(vLastMatSpecSeq).length)-4,Number(String(vLastMatSpecSeq).length));
- //alert("vLastMatSpecSeq="+vLastMatSpecSeq);
- }
- //alert(vLastMatSpecSeq);
- var k = 1;
- var g = 1;
- //add by wangli -----------------------------------**********************
- var seqCount = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = /root/formData/matSpecSeq])");
- var h = 0;
- // alert("vRowCnt="+vRowCnt);
-
-
-
-
-
- /****----------------------------- update at 2009-04-01--------------------------------****/
- var slabCount2 = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row)");
- var m = 0;
- for(var i = 1; i <= slabCount2; i++)
- {
- var chk = model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/CHK");
- if(chk == 'Y')
- {
- var lel2 = Number(model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/LEVEL"))+2;
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , lel2 );
-
- var iNextMatSeq = (m+1) + Number(vLastMatSpecSeq);
- m++;
- iNextMatSeq = iNextMatSeq+"";
- for(var j = iNextMatSeq.length; j < 4; j++)
- {
- iNextMatSeq = "0" + iNextMatSeq;
- }
- iNextMatSeq = vCharSpecSeq + iNextMatSeq;
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq );
- if( lel2 == 3 )
- {
-
- //等级为3 的上一级单位号码赋炉次号
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , vCharSpecSeq );
- if(model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COMB_YN") == 'Y')
- {
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "2" );
- }
- else
- {
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
- }
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , g+Number(seqCount));
- g++;
- }
- else
- {
- //等级为4 的上一级单位号码赋母板坯号
- var slab_sum_no = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq and DSN_SLAB_NO="+model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/P_DSN_SLAB_NO")+"]/MAT_SPEC_SEQ");
- //alert("slab_sum_no="+ slab_sum_no);
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , slab_sum_no);
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
-
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , k);
- k++;
- if(k >= 3)
- {
- k = 1;
- }
- }
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , "0" + lel2 );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , "" );
-
-
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/FAC_STL_GRD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/FAC_STL_GRP" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , (model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/DSN_SLAB_NO" )).substring(0,1) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("TREAT_RT_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/PROC_PATH" ) ); //dg1.valueMatrix( idx, dg1.colRef("PATH_PROC_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("LINE_PROC_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" ,model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_THK" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_THK" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" ,model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_WTH" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WTH" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" ,model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_LEN" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MIN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MAX" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_WGT" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WGT" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_TERM_TIME" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , "" ); //dg1.valueMatrix( idx, dg1.colRef("WID_CHG_FL" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/HCR_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/EMGMTR_YN" ) ); //dg1.valueMatrix( idx, dg1.colRef("EMGMTR_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SMS_DUEDATE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PRC_LINE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_PRC_LINE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PROG_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SLAB_CUT_SEQ" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("DSG_RATE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" , "N" ); //dg1.valueMatrix( idx, dg1.colRef("OVER_ROLL_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SAMPLE_CUT" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , "2" ); //dg1.valueMatrix( idx, dg1.colRef("ORD_FL" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_SEQ" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_DEVLMT_DATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SPM_PROC_YN" ) ); //dg1.valueMatrix( idx, dg1.colRef("SPM_PROC_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SCARFING_PROC_YN" ) ); //dg1.valueMatrix( idx, dg1.colRef("SCARPING_PROC_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , "01" ); //dg1.valueMatrix( idx, dg1.colRef("SEND_STS" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COMB_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_THK" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_WTH" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_LEN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_WGT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , "false" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/DSN_SLAB_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/P_DSN_SLAB_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/GRAVITY" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_INDIA" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_OUTDIA" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/AUTODSN_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPEC_REQ_DESC" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SPEC_REQ_DESC" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/KEEPWARM_YN" , 'N' );
- vTargetRow++;
- model.removenode("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]");
- i--;
- }
- }
- /****----------------------------- update at 2009-04-01--------------------------------****/
-
-
-
-
-
-
- /***<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- for( var i = 0; i < vRowCnt; i++ )
- {
- //获取选择板坯的行号ROW NUMBER
- idx = Number( vUpdatedArr[h + 1].split('^')[1] ); // Extracting rowNum from vUpdatedArr[i + 1]
- if( dg1.valueMatrix(idx, vRefChk) == 'Y' )
- {
- //浇次等级: 1
- //炉次等级: 2
- //板坯: 3
- //被组合板坯:4
- vLevel = Number(dg1.valueMatrix(idx, dg1.colRef("LEVEL"))) + 2;//级数加2,以保证其符合炉次浇次的级数
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , vLevel );
-
- //**********************************************
- var iNextMatSeq = (i+1) + Number(vLastMatSpecSeq);
-
- iNextMatSeq = iNextMatSeq + "";
- for(var j = iNextMatSeq.length; j < 4; j++)
- {
- iNextMatSeq = "0" + iNextMatSeq;
- }
- iNextMatSeq = vCharSpecSeq + iNextMatSeq;
- //**********************************************
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq );
- // model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , dg1.valueMatrix( idx, dg1.colRef("PMAT_SPEC_SEQ" )) );
- if( vLevel == 3 )
- {
-
- //等级为3 的上一级单位号码赋炉次号
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , vCharSpecSeq );
- if(dg1.valueMatrix( idx, dg1.colRef("COMB_YN")) == 'Y')
- {
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "2" );
- }
- else
- {
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
- }
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , g+Number(seqCount));
- g++;
- }
- else
- {
- //等级为4 的上一级单位号码赋母板坯号
- var slab_sum_no = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq and DSN_SLAB_NO="+dg1.valueMatrix( idx, dg1.colRef("P_DSN_SLAB_NO"))+"]/MAT_SPEC_SEQ");
- //alert("slab_sum_no="+ slab_sum_no);
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , slab_sum_no);
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
-
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , k);
- k++;
- if(k >= 3)
- {
- k = 1;
- }
- }
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , "0" + vLevel );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , "" );
-
-
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , dg1.valueMatrix( idx, dg1.colRef("FAC_STL_GRD" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , dg1.valueMatrix( idx, dg1.colRef("FAC_STL_GRP" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , (dg1.valueMatrix( idx, dg1.colRef("DSN_SLAB_NO" ))).substring(0,1) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("TREAT_RT_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , dg1.valueMatrix( idx, dg1.colRef("PROC_PATH" )) ); //dg1.valueMatrix( idx, dg1.colRef("PATH_PROC_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("LINE_PROC_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" , dg1.valueMatrix( idx, dg1.colRef("SLAB_THK" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_THK" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" , dg1.valueMatrix( idx, dg1.colRef("SLAB_WTH" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WTH" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" , dg1.valueMatrix( idx, dg1.colRef("SLAB_LEN" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MIN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MAX" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , dg1.valueMatrix( idx, dg1.colRef("SLAB_WGT" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WGT" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_TERM_TIME" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , "" ); //dg1.valueMatrix( idx, dg1.colRef("WID_CHG_FL" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , dg1.valueMatrix( idx, dg1.colRef("HCR_YN" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , dg1.valueMatrix( idx, dg1.colRef("EMGMTR_YN" )) ); //dg1.valueMatrix( idx, dg1.colRef("EMGMTR_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SMS_DUEDATE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PRC_LINE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_PRC_LINE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PROG_CD" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SLAB_CUT_SEQ" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("DSG_RATE" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" , "N" ); //dg1.valueMatrix( idx, dg1.colRef("OVER_ROLL_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SAMPLE_CUT" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , "2" ); //dg1.valueMatrix( idx, dg1.colRef("ORD_FL" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , dg1.valueMatrix( idx, dg1.colRef("ORD_NO" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , dg1.valueMatrix( idx, dg1.colRef("ORD_SEQ" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , dg1.valueMatrix( idx, dg1.colRef("ORD_DEVLMT_DATE" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , dg1.valueMatrix( idx, dg1.colRef("SPM_PROC_YN" )) ); //dg1.valueMatrix( idx, dg1.colRef("SPM_PROC_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , dg1.valueMatrix( idx, dg1.colRef("SCARFING_PROC_YN" )) ); //dg1.valueMatrix( idx, dg1.colRef("SCARPING_PROC_YN" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , "01" ); //dg1.valueMatrix( idx, dg1.colRef("SEND_STS" ))
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , dg1.valueMatrix( idx, dg1.colRef("COMB_YN" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , dg1.valueMatrix( idx, dg1.colRef("COIL_THK" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , dg1.valueMatrix( idx, dg1.colRef("COIL_WTH" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , dg1.valueMatrix( idx, dg1.colRef("COIL_LEN" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , dg1.valueMatrix( idx, dg1.colRef("COIL_WGT" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , "false" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , dg1.valueMatrix( idx, dg1.colRef("DSN_SLAB_NO" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , dg1.valueMatrix( idx, dg1.colRef("P_DSN_SLAB_NO" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , dg1.valueMatrix( idx, dg1.colRef("GRAVITY" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , dg1.valueMatrix( idx, dg1.colRef("COIL_INDIA" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , dg1.valueMatrix( idx, dg1.colRef("COIL_OUTDIA" )) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , dg1.valueMatrix( idx, dg1.colRef("AUTODSN_YN" )) );
- vTargetRow++;
-
- //dg1.addStatus(idx, "delete");
- //dg1.rowHidden(idx) = true;
- dg1.deleteRow(idx, false);
- //idx = idx - 1;
-
- }
- else
- {
- h++;
- }<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<****/
- calculateSummary();
- chageSelect();
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="dg2" nodeset="/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 2 and PMAT_SPEC_SEQ = /root/formData/castDnRst]" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^管理号^管理号^厂内牌号^板坯块数^炉次重量|选择^浇次^炉次^厂内牌号^板坯块数^炉次重量" colsep="^" colwidth="40, 82, 82, 97, 75, 75" defaultrows="15" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:532px; top:65px; width:448px; height:180px; text-align:center; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col ref="PMAT_SPEC_SEQ"/>
- <col ref="MAT_SPEC_SEQ"/>
- <col ref="FAC_STL_GRD"/>
- <col ref="CMAT_CNT" format="#,###" style="text-align:right; "/>
- <col ref="MAT_WGT" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- model.setValue("/root/formData/matSpecSeq", dg2.valueMatrix(dg2.row, dg2.colRef("MAT_SPEC_SEQ")));
- dg3.rebuild();
-
- if (dg2_currRow != -1)
- {
- dg2.valueMatrix(dg2_currRow, dg2.colRef("CHK") ) = "N";
- }
- dg2_currRow = dg2.row;
- dg2.valueMatrix(dg2_currRow, dg2.colRef("CHK") ) = "Y";
- model.setValue("/root/wth_count",model.getXPathValue("sum(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]/MAT_WGT)"));
- caption9.refresh();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="dg3" nodeset="/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^管理板坯号^牌号^钢卷^钢卷^板坯^板坯^板坯^热装区分^计划余材^caption1|选择^管理板坯号^牌号^宽度^厚度^宽度^长度^重量^热装区分^计划余材^caption1" colsep="^" colwidth="40, 78, 50, 7, 9, 63, 62, 70, 36, 32, 100" defaultrows="20" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:532px; top:280px; width:448px; height:340px; ">
- <col ref="CHK" type="checkbox">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- /*var selectRow = dg3.row;
- var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
-
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
- var PMAT_SPEC_SEQ = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ");
-
- if(CHK == "true" && PMAT_SPEC_SEQ == model.getValue("/root/formData/matSpecSeq"))
- {
- var MAT_SPEC_SEQ1 = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_SPEC_SEQ");
- for(var j = 1; j<=count; j++)
- {
- var MAT_SPEC_SEQ2 = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+j+"]/MAT_SPEC_SEQ");
- if(MAT_SPEC_SEQ2 > MAT_SPEC_SEQ1)
- {
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+j+"]/CHK", "true");
- }
- }
- }
-
- }
-
- model.refresh();*/
- ]]>
- </script>
- </col>
- <col ref="MAT_SPEC_SEQ" style="text-align:left; padding-left:2; "/>
- <col ref="FAC_STL_GRD" style="text-align:left; padding-left:2; "/>
- <col ref="COIL_WTH" visibility="hidden"/>
- <col ref="COIL_THK" visibility="hidden"/>
- <col ref="MAT_WTH" format="#,###" style="text-align:right; "/>
- <col ref="MAT_LEN" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col ref="MAT_WGT" type="output" format="#,###" style="text-align:right; "/>
- <col ref="HCR_YN"/>
- <col ref="ORD_FL"/>
- <col ref="PMAT_SPEC_SEQ" visibility="hidden"/>
- <col ref="MAT_THK" visibility="hidden"/>
- <col ref="GRAVITY" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iGravity = Number(dg3.valueMatrix(dg3.row,dg3.colRef("GRAVITY")));
- var iSlabThk = Number(dg3.valueMatrix(dg3.row,dg3.colRef("MAT_THK")));
- var iSlabWth = Number(dg3.valueMatrix(dg3.row,dg3.colRef("MAT_WTH")));
- var iSlabLen = Number(dg3.valueMatrix(dg3.row,dg3.colRef("MAT_LEN")));
- var iSlabWgt = Math.ceil( (iSlabLen * iSlabWth * iSlabThk * iGravity * 1000) / 1000000000 );
-
- dg3.valueMatrix(dg3.row,dg3.colRef("MAT_WGT")) = iSlabWgt;
-
- calculateSummary();
- chageSelect();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="bt_AddRestSlab" style="left:755px; top:250px; width:75px; height:20px; font-weight:bold; text-align:right; vertical-align:middle; background-image:../../images/btn_create.gif; border-color:#ffffff; border-style:solid; ">
- <caption>余材添加</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( dg3.rows <= dg3.fixedRows ) {
- return;
- }
-
- var vLastMatSpecSeq = dg3.valueMatrix(dg3.rows - 1, dg3.colRef("MAT_SPEC_SEQ"));
- var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
- var iNextMatSeq = sChgSpecSeq + lpad(Number(vLastMatSpecSeq.substring(5)) + 1, 4, '0');
-
- /*var vLastMatSpecSeq = dg3.valueMatrix( dg3.rows - 1, dg3.colRef("MAT_SPEC_SEQ") );
- //var iNextMatSeq = 1 + Number(model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03']/MAT_SPEC_SEQ)"));
- var iNextMatSeq = 0;
- var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
- //var count = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and substring(MAT_SPEC_SEQ,5,4))])");
- var maxValue = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and PMAT_SPEC_SEQ = /root/formData/matSpecSeq]/MAT_SPEC_SEQ)");
- //alert("maxValue="+maxValue);
- //maxValue = substring(maxValue,5,4);
- if(maxValue != "NaN")
- {
- maxValue = Number(String(maxValue).substring(String(maxValue).length-4,String(maxValue).length)) + 1;
-
- iNextMatSeq = sChgSpecSeq + lpad(maxValue, 4, '0');
- // for(var i = 1; i <= count; i++)
- // {
- // if(i<9)
- // {
- // iNextMatSeq = sChgSpecSeq + "000" + (Number(i)+1);
- // }
- // else if(i>=9 && i<99)
- // {
- // iNextMatSeq = sChgSpecSeq +"00"+ (Number(i)+1);
- // }
- // else
- // {
- // iNextMatSeq = sChgSpecSeq +"0"+ (Number(i)+1);
- // }
- // }
- //iNextMatSeq = iNextMatSeq + "";
- //for(i = iNextMatSeq.length; i < 8; i++)
- //{
- // iNextMatSeq = "0" + iNextMatSeq;
- //}
- //model.alert( "iNextMatSeq = ["+ iNextMatSeq +"]" );
- */
- var vTargetRow = 1 + Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)"));
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/LEVEL" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_SPEC_SEQ" )
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PMAT_SPEC_SEQ" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_TP" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EXP_MAT_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , Number(model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/WITHIN_SUB_SEQ" ))+ 1 );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CMAT_CNT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRP" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_RT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/TREAT_RT_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PATH_PROC_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/LINE_PROC_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_THK" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WTH" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MIN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MAX" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WGT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_TERM_TIME" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/WID_CHG_FL" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , "C" ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/HCR_YN" )
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EMGMTR_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SMS_DUEDATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PRC_LINE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_PRC_LINE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PROG_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SLAB_CUT_SEQ" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DSG_RATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" ,"Y" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SAMPLE_CUT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , "2" ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_FL" )
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_SEQ" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DELV_REQ_DATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SPM_PROC_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SCARPING_PROC_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SEND_STS" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , "N" ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COMB_YN" )
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_THK" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WTH" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_LEN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WGT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CHK" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , "" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , "" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/GRAVITY" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_INDIA" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_OUTDIA" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPEC_REQ_DESC" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SPEC_REQ_DESC" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/AUTODSN_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/KEEPWARM_YN" ,'N' );
- model.setValue("/root/wth_count",model.getXPathValue("sum(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]/MAT_WGT)"));
- //commAddRow(dg3);
- chageSelect();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" style="left:830px; top:250px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_save.gif; border-color:#ffffff; border-style:solid; ">
- <caption>炉次选定</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
- if(sChgSpecSeq == "")
- {
- window.alert("请选择炉次!","提示信息");
- return;
- }
- var sFacStlGrd = dg3.valueMatrix( 2, dg3.colRef("FAC_STL_GRD" ) );
- var iSlabRows = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"])" ));
- var iChgWeights = Number(model.getXPathValue("sum (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT)"));
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD", sFacStlGrd );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/CMAT_CNT" , iSlabRows );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT" , iChgWeights );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK") );
- model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN") );
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" style="left:905px; top:250px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_delete.gif; border-color:#ffffff; border-style:solid; ">
- <caption>板坯删除</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
-
- var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
-
- var j = 0;
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
- //var MAT_TP = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_TP");
- //var PMAT_SPEC_SEQ = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ");
- //alert("CHK=" + CHK);
- //if(PMAT_SPEC_SEQ == model.getValue("/root/formData/matSpecSeq"))
- if(CHK == "true")
- {
- model.duplicate("/root/gridData/sendInfo","/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]");
- j++;
- //model.removenode("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+j+"]");
- }
- }
- if(j == 0)
- {
- window.alert("请选择需要删除的板坯","提示信息");
- return;
- }
- if(commComfirmBox(" 确认删除该炉次中的板坯? "," 提示信息 ")=='0') return;
- commSendReq("/root/gridData/sendInfo");
- commSubmit(submitMainID,"deleteMatDnRst","glueAction.do");
- find();
-
- calculateSummary();
- chageSelect();
- save();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:530px; y1:275px; x2:980px; y2:275px; border-color:#ff0000; "/>
- <caption id="caption3" style="left:530px; top:255px; width:60px; height:22px; font-family:Tahoma; font-weight:bold; vertical-align:middle; ">炉次编制</caption>
- <caption id="caption4" style="left:535px; top:40px; width:60px; height:20px; font-family:Tahoma; font-weight:bold; vertical-align:middle; ">浇次编制</caption>
- <caption id="caption5" style="left:0px; top:40px; width:85px; height:21px; font-family:Tahoma; font-weight:bold; vertical-align:middle; ">选定对象板坯</caption>
- <line id="line3" visibility="visible" style="x1:980px; y1:60px; x2:0px; y2:60px; border-color:#ff0000; "/>
- <button id="bt_AddCharge" style="left:830px; top:35px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_create.gif; border-color:#ffffff; border-style:solid; ">
- <caption>添加炉次</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // Validate CAST_NO
- var vCastSpecSeq = cb_CastSpecSeq.value;
- if( vCastSpecSeq == "" )
- {
- model.alert("Please, choice the target cast!!!");
- return;
- }
- //model.alert("===> ["+ model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02'])") +"]");
- var vLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and starts-with(MAT_SPEC_SEQ,"+model.getValue("/root/formData/castDnRst")+")]/MAT_SPEC_SEQ)");
- //alert("..............vLastMatSpecSeq="+vLastMatSpecSeq);
- //var iNextMatSeq = 1 + Number(vLastMatSpecSeq);
- //(iNextMatSeq + "").substring(
- //var vLastMatSpecSeq = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and PMAT_SPEC_SEQ = /root/formData/castDnRst]/MAT_SPEC_SEQ");
- //vLastMatSpecSeq = vLastMatSpecSeq.substring(3);
-
- //var vLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and PMAT_SPEC_SEQ = /root/formData/castDnRst]/MAT_SPEC_SEQ)");
- //var vLastMatSpecSeq = dg2.valueMatrix( dg2.rows - 1, dg2.colRef("MAT_SPEC_SEQ") );
- //model.alert("vLastMatSpecSeq = ["+ vLastMatSpecSeq +"]");
- if( vLastMatSpecSeq == "NaN" )
- {
- vLastMatSpecSeq = "00";
- }
- else
- {
-
- vLastMatSpecSeq = String(vLastMatSpecSeq).substring(Number(String(vLastMatSpecSeq).length)-2,Number(String(vLastMatSpecSeq).length));
- }
-
- var iNextMatSeq = 1 + Number(vLastMatSpecSeq);
-
- for(i = String(iNextMatSeq).length; i < 2; i++)
- {
- iNextMatSeq = "0" + iNextMatSeq;
- }
- var CHARGE_SEQ = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 2 and PMAT_SPEC_SEQ = /root/formData/castDnRst])"))+1;
- iNextMatSeq = vCastSpecSeq + iNextMatSeq;
-
- //var iNextMatSeq = 1 + parseInt(model.getXPathValue("max (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and PMAT_SPEC_SEQ = "+ model.getValue("/root/formData/castDnRst") +"]/MAT_SPEC_SEQ)"));
- //model.alert( "iNextMatSeq = ["+ iNextMatSeq +"]" );
- var vTargetRow = 1 + Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)"));
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , 2 );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_SPEC_SEQ" )
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , vCastSpecSeq );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , "02" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EXP_MAT_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , CHARGE_SEQ );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CMAT_CNT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRP" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_RT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/TREAT_RT_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PATH_PROC_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/LINE_PROC_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_THK" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WTH" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MIN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MAX" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WGT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_TERM_TIME" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/WID_CHG_FL" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/HCR_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EMGMTR_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SMS_DUEDATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PRC_LINE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_PRC_LINE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PROG_CD" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SLAB_CUT_SEQ" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DSG_RATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/OVER_ROLL_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SAMPLE_CUT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_FL" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_NO" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_SEQ" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DELV_REQ_DATE" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SPM_PROC_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SCARPING_PROC_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , "01" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COMB_YN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_THK" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WTH" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_LEN" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WGT" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPEC_REQ_DESC" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SPEC_REQ_DESC" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , "N" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , "" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , "" );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/GRAVITY" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_INDIA" ) );
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_OUTDIA" ));
- model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/AUTODSN_YN" ));
- model.refresh();
- dg2.rebuild();
- dg2.topRow = dg2.row;
- ]]>
- </script>
- </button>
- <button id="button8" style="left:905px; top:35px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_delete.gif; border-color:#ffffff; border-style:solid; ">
- <caption>删除炉次</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
- var j = 0;
- //var flag = "true";
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
- if(CHK == "Y")
- {
- //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_SPEC_SEQ");
- model.duplicate("/root/gridData/sendInfo","/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]");
- j++;
- }
- //if(model.getValue("/root/formData/matSpecSeq") == model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ"))
- //{
- // window.alert("要删除该炉次,请先删除该炉次中的所有板坯","提示信息");
- // flag = "false";
- // break;
- //}
- }
- //if(flag == "false")
- //{
- // return;
- //}
- if(j == 0)
- {
- window.alert("请选择需要删除的炉次信息","提示信息");
- return;
- }
- if(commComfirmBox(" 确认删除该炉次? "," 提示信息 ")=='0') return;
- commSendReq("/root/gridData/sendInfo");
- commSubmit(submitMainID,"deleteMatDnRst","glueAction.do");
- find();
-
- calculateSummary();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cb_CastSpecSeq" ref="/root/formData/castDnRst" appearance="minimal" style="left:645px; top:35px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '01']">
- <label ref="MAT_SPEC_SEQ"/>
- <value ref="MAT_SPEC_SEQ"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/formData/matSpecSeq", "");
- dg2.rebuild();
- dg3.rebuild();
- //dg2.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="cell" style="left:83px; top:35px; width:97px; height:20px; text-align:center; vertical-align:middle; ">选定块数:重量</caption>
- <caption id="caption7" ref="/root/slab_count" style="left:185px; top:35px; width:65px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption8" class="cell" style="left:587px; top:250px; width:64px; height:20px; text-align:center; vertical-align:middle; ">板坯总重量</caption>
- <caption id="caption9" ref="/root/wth_count" format="#,###" style="left:652px; top:250px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <select1 id="cb_CoilThkGrp" ref="/root/formData/SlabThk" appearance="minimal" style="left:643px; top:5px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD='D01002']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" visibility="visible" style="x1:980px; y1:0px; x2:0px; y2:0px; border-color:#ff0000; "/>
- <caption id="caption1" ref="/root/slab_wgt_sum" style="left:255px; top:35px; width:114px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption10" ref="/root/formData/OrdNo" style="left:805px; top:5px; width:80px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption11" ref="/root/formData/OrdSeq" style="left:898px; top:4px; width:72px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- </xhtml:body>
- </xhtml:html>
|