| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1" autocdata="false">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <searchInfo>
- <LG_CD>A01001,A01004,D01002</LG_CD>
- </searchInfo>
- </initData>
- <formData>
- <DSN_PROC_STAT>%</DSN_PROC_STAT>
- <ORD_NO/>
- <ORD_SEQ/>
- <ADDED_COIL_WTH/>
- <SLAB_LEN>11000</SLAB_LEN>
- <DSN_PROC_YN/>
- <MAX_DSN_SLAB_NO/>
- <FacStlGrd/>
- <ORDER_REG_FR/>
- <ORDER_REG_TO/>
- <COIL_WTH_CONTIUNE_FR/>
- <COIL_WTH_CONTIUNE_TO/>
- <DLIV_TP_CO/>
- <RCVORD_CLF/>
- <ORD_PLAN_DATA_MIN/>
- <ORD_PLAN_DATA_MAX/>
- <PRODNM_CD_C/>
- <PROD_LINE_CON/>
- <SLAB_THK>230</SLAB_THK>
- <ORD_PRC_LOCK>S</ORD_PRC_LOCK>
- </formData>
- <gridData1/>
- <gridData2/>
- <resData/>
- <reqData/>
- <sumData>
- <SUM_ORD_WGT/>
- <SUM_NEED_WGT/>
- <SUM_COIL_CNT/>
- <SUM_TOT_SLAB_WGT/>
- <SUM_SLABRST_CNT/>
- <SUM_SLABRST_WGT/>
- <SUM_COILRST_WGT/>
- </sumData>
- <fwdData>
- <UID010031>
- <URL/>
- <ORD_NO/>
- <ORD_SEQ/>
- </UID010031>
- </fwdData>
- <codeData/>
- </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"/>
- <script type="javascript">
- <![CDATA[
- //1、获取用户登录信息,只能在页面初始化函数中调用
- submitID = "UID010031-service";
- function Init(node) {
- InitParams(node);
- exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO")
- // model.setValue("/root/formData/ORD_PLAN_DATA_MIN", commFirstDay());
- // model.setValue("/root/formData/ORD_PLAN_DATA_MAX", commCurDate());
- model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
- model.refresh();
- }
-
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 板坯设计 >> 板坯设计"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- function lpad(str, len, fill)
- {
- if (fill == null) fill = " ";
-
- str = str + "";
-
- while( str.length < len )
- {
- str = fill + str;
- }
-
- return str;
- }
- function calculateSummary()
- {
- model.setXPathValue("/root/sumData/SUM_ORD_WGT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/ORD_WGT )");
- model.setXPathValue("/root/sumData/SUM_NEED_WGT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/NEED_WGT )");
- model.setXPathValue("/root/sumData/SUM_COIL_CNT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/COIL_CNT )");
- model.setXPathValue("/root/sumData/SUM_TOT_SLAB_WGT","sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/TOT_SLAB_WGT)");
- model.setXPathValue("/root/sumData/SUM_SLABRST_CNT","count(/root/gridData2/ListResult_2_VO/ListResult_2_Row)");
- model.setXPathValue("/root/sumData/SUM_SLABRST_WGT","sum(/root/gridData2/ListResult_2_VO/ListResult_2_Row/SLAB_WGT2)");
- model.setXPathValue("/root/sumData/SUM_COILRST_WGT","sum(/root/gridData2/ListResult_2_VO/ListResult_2_Row/COIL_WGT2)");
- }
- function refreshColor()
- {
- var count = model.getXPathValue("count(/root/gridData2/ListResult_2_VO/ListResult_2_Row)");
- for(var j = 2;j<dg1.rows;j++)
- {
- var rowSty = "#ffffff";
- var ORD_NO = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/ORD_NO");
- var ORD_SEQ = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/ORD_SEQ");
- var status = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/DSN_PROC_STAT");
- //alert(count);
- for(var i = 1; i <= count; i++)
- {
- var ORD_NO2 = model.getValue("/root/gridData2/ListResult_2_VO/ListResult_2_Row["+ i +"]/ORD_NO2");
- var ORD_SEQ2 = model.getValue("/root/gridData2/ListResult_2_VO/ListResult_2_Row["+ i +"]/ORD_SEQ2");
-
- if(ORD_NO == ORD_NO2 && ORD_SEQ == ORD_SEQ2 && status == '1')
- {
-
- rowSty = "#ffccff";
- model.setValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/CHK_FG1","1");
- dg1.addStatus(j,"update");
- //alert(rowSty);
- break;
- }
- else
- {
- rowSty = "#ffffff";
- //alert(rowSty);
- }
- }
-
- dg1.rowstyle(j, "data", "background-color") = rowSty;
-
- }
- dg1.colStyle(11,"data", "background-color") = "#ffff99";
- dg1.colStyle(24,"data", "background-color") = "#ffff99";
- dg1.colStyle(29,"data", "background-color") = "#ffff99";
- }
-
- function find()
- {
- /*if(model.getValue("/root/formData/ADDED_COIL_WTH") == "")
- {
- window.alert("请输入板坯宽度","提示信息");
- model.setFocus("input7");
- return;
- }*/
-
- model.removeNodeset(dg1.nodeset);
- model.removeNodeset(dg2.nodeset);
- model.refresh();
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SlabThk" , model.getValue("/root/formData/SLAB_THK" ));
- model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
- model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
- model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
- model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
- model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
- model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
- model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
- model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
-
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
- if(model.getValue("/root/formData/PRODNM_CD_C")=="")
- {
- model.makeValue("/root/reqData/PRODNM_CD_C" , "AR,CR,FJ,HK,HW,KP,LT,PZ,PZFJ,SX,TM");
- }
- else
- {
- model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
- }
- //model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
-
- model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
-
- model.makeValue("/root/reqData/ORD_PRC_LOCK" , model.getValue("/root/formData/ORD_PRC_LOCK"));
-
- //alert(instance1.selectSingleNode("/root/reqData").xml);
- commSubmit("UID010031-service" ,"find" ,"glueAction.do" );
- commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
-
- model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
- calculateSummary();
- model.refresh();
- refreshColor();
- }
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
- model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
- model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
- model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
- model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
- model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
- model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
- model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
-
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
- model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
-
- model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
-
- commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
- //alertXML();
- commSubmit("UID010031-service" ,"save" ,"glueAction.do" );
- commMultiUpdate(dg2,"/root/reqData","A",true,"rowStatus2");
- //alertXML();
- commSubmit("UID010031-service" ,"save" ,"glueAction.do" );
- dg1.clearStatus();
- dg2.clearStatus();
- commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
- model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
- calculateSummary();
- model.refresh();
- refreshColor();
-
- find();
- }
-
- function chkWgt()
- {
- //var sum = model.getXPathValue("count(/root/gridData1/ListResult_1_VO/ListResult_1_Row)");
-
- var rowSty = "#ffffff";
- var falg = 0;
- for(var j = 2;j<dg1.rows;j++)
- {
- var chk = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/CHK_FG1");
- if(chk == 1)
- {
- var sumSlabWgt = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/SLAB_WGT");
- var sumProcRate = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROC_RATE");
- var sumProdWgtMin = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROD_WGT_MIN");
- var sumProdWgtMax = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROD_WGT_MAX");
-
- var sumSlabWth = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/SLAB_WTH");
- var sumCoilWth = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/COIL_WTH");
-
- var prodLine = model.getValue("/root/gridData1/ListResult_1_VO/ListResult_1_Row["+(j-1)+"]/PROD_LINE");
- //alert(sumSlabWgt + "sumSlabWgt" + sumProcRate + "sumProcRate" + sumProdWgtMin + "sumProdWgtMin" + sumProdWgtMax + "sumProdWgtMax");
- if(((Number(sumSlabWgt)* (Number(sumProcRate)/100)<Number(sumProdWgtMin) || Number(sumSlabWgt)*(Number(sumProcRate)/100)>Number(sumProdWgtMax))))
- {
- //alert("asd");
- var rowSty = "#ff0000";//红色 代表重量不对
- falg++;
- }
- else if(((Number(sumSlabWth) < Number(sumCoilWth) || Number(sumSlabWth) > Number(sumCoilWth)+100)))
- {
- //alert("BBB");
- var rowSty = "#ff0000";//红色 代表宽度不对
- falg++;
- }
- else
- {
- //alert("CCC");
- var rowSty = "#ffffff";
- }
- dg1.rowstyle(j, "data", "background-color") = rowSty;
- }
-
- }
- dg1.colStyle(10,"data", "background-color") = "#ffff99";
- dg1.colStyle(23,"data", "background-color") = "#ffff99";
- dg1.colStyle(28,"data", "background-color") = "#ffff99";
- return falg;
- }
- function design()
- {
- if(model.getValue("/root/formData/ADDED_COIL_WTH") == "")
- {
- window.alert("请输入板坯宽度,重新点击查询按钮!","提示信息");
- model.setFocus("input7");
- return;
- }
-
- var chkFalg = chkWgt();
- if(chkFalg > 0)
- {
- window.alert("板坯重量或者宽度不符!请检查!(重量需在单重上下限之内,宽度需在钢卷宽度+100MM范围之内)","提示信息");
- return;
- }
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
- model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
- model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
- model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
- model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
- model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
- model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
- model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
-
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
- model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
- model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
- //alert("dddd");
- commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
- //alertXML();
- commSubmit("UID010031-service" ,"design" ,"glueAction.do" );
- //alert("eee");
- commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
- model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
- //alert("ffff");
- calculateSummary();
- model.refresh();
- refreshColor();
- find();
- }
- function findRst()
- {
- //???
- model.removeNodeset(dg2.nodeset);
- //alert(dg2.nodeset);
- model.refresh();
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- //[1] DSN_PROC_YN :'N' (Default:'N' ) : DsnProcYN
- //[2] DSN_PROC_STAT :'N' (Default:'N' ) : DsnProcStat
- model.makeValue("/root/reqData/DsnProcYN" , model.getValue("/root/formData/DSN_PROC_YN" ));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
-
- //alert(instance1.selectSingleNode("/root/reqData").xml);
- commSubmit("UID010031-service" ,"findRst" ,"glueAction.do" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
- //model.removenode("/root/reqData");
- //model.removenode("/root/resData");
- model.refresh();
- }
- function comfirm()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
- model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
- model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
- model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
- model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
- model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
- model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
- model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
-
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
- model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
- model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
- commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
- //alertXML();
- commSubmit("UID010031-service" ,"finish" ,"glueAction.do" );
- commMultiUpdate(dg2,"/root/reqData","A",true,"rowStatus2");
- //alertXML();
- commSubmit("UID010031-service" ,"finish" ,"glueAction.do" );
- commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
- model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
- calculateSummary();
- model.refresh();
- refreshColor();
- find();
- }
- function confirm_unused()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
- model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
- model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
- model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
- model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
- model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
- model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
- model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
- model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
- model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
- commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
- commSubmit("UID010031-service" ,"confirm" ,"glueAction.do" );
- commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
- model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
- calculateSummary();
- model.refresh();
- refreshColor();
- }
- function remove()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SlabLen" , model.getValue("/root/formData/SLAB_LEN" ));
- model.makeValue("/root/reqData/AddedCoilLen", model.getValue("/root/formData/ADDED_COIL_WTH"));
- model.makeValue("/root/reqData/DsnProcStat" , model.getValue("/root/formData/DSN_PROC_STAT" ));
- model.makeValue("/root/reqData/OrdNo" , model.getValue("/root/formData/ORD_NO" ));
- model.makeValue("/root/reqData/OrdSeq" , model.getValue("/root/formData/ORD_SEQ" ));
- model.makeValue("/root/reqData/FacStlGrd" , model.getValue("/root/formData/FacStlGrd" ));
- model.makeValue("/root/reqData/ORDER_REG_FR" , model.getValue("/root/formData/ORDER_REG_FR" )+"000000");
- model.makeValue("/root/reqData/ORDER_REG_TO" , model.getValue("/root/formData/ORDER_REG_TO" )+"235959");
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_FR" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_FR"));
- model.makeValue("/root/reqData/COIL_WTH_CONTIUNE_TO" , model.getValue("/root/formData/COIL_WTH_CONTIUNE_TO"));
- model.makeValue("/root/reqData/DLIV_TP" , model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/RCVORD_CLF" , model.getValue("/root/formData/RCVORD_CLF"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MIN" , model.getValue("/root/formData/ORD_PLAN_DATA_MIN"));
- model.makeValue("/root/reqData/ORD_PLAN_DATA_MAX" , model.getValue("/root/formData/ORD_PLAN_DATA_MAX"));
- model.makeValue("/root/reqData/PRODNM_CD_C" , model.getValue("/root/formData/PRODNM_CD_C"));
- model.makeValue("/root/reqData/PROD_LINE_CON" , model.getValue("/root/formData/PROD_LINE_CON"));
- commMultiUpdate(dg1,"/root/reqData","U",true,"rowStatus1");
- commSubmit("UID010031-service" ,"delete" ,"glueAction.do" );
- commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
- commAppendData("/root/gridData2/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
- model.setValue("/root/formData/MAX_DSN_SLAB_NO" , model.getValue("/root/resData/ListResult_3_VO/ListResult_3_Row/MAX_DSN_SLAB_NO") );
- calculateSummary();
- model.refresh();
- refreshColor();
- }
- function excelExport() {
- return dg1;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,619;2,285;1,871;" style="font-family:SimSun; ">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">查询区分</caption>
- <datagrid id="dg1" nodeset="/root/gridData1/ListResult_1_VO/ListResult_1_Row" scroll="auto" caption="选择^合同号^订单号^状态^工序锁定^订单预排期^热轧交货期^交货期^订单类型^产线^标准牌号^厂内牌号^订单量^待设计量^产品重量^产品重量^冷卷^冷卷^热卷^热卷^板坯^板坯^板坯^板坯^板坯^设计重量^HCR^订单录入时间^通过工序^运输方式^订单备注^是否坑冷^客户特殊要求^销售区域^钢卷颜色备注^产品类型^COIL_LEN^COIL_WGT^COIL_CNT^FAC_STL_GRP^ORD_INDIA^ORD_OUTDIA^DSN_PROC_YN^DSN_ERR_DESC^SPEC_ABBSYM^SUM_ORD_WGT^SUM_NEED_WGT^SUM_SLAB_CNT^SUM_TOT_SLAB_WGT^SLAB_WGT_SMIN^SLAB_WGT_SMAX^SLAB_WGT_LMIN^SLAB_WGT_LMAX^GRAVITY^EMGMTR_YN^SCARFING_PROC_YN^GRIND_PROC_YN^EDGE_PROC_YN^SPM_PROC_YN^SHL_PROC_YN^SFC_PROC_YN^BTWSHT_INS_YN^EACHLOT_YN^COMB_YN^NEED_DSN_WGT_MIN^NEED_DSN_WGT_MAX|选择^合同号^订单号^状态^工序锁定^订单预排期^热轧交货期^交货期^订单类型^产线^标准牌号^厂内牌号^订单量^待设计量^下限^上限^厚度^宽度^厚度^宽度^厚度^宽度^长度^重量^块数^设计重量^HCR^订单录入时间^通过工序^运输方式^订单备注^是否坑冷^客户特殊要求^销售区域^钢卷颜色备注^产品类型^COIL_LEN^COIL_WGT^COIL_CNT^FAC_STL_GRP^ORD_INDIA^ORD_OUTDIA^DSN_PROC_YN^DSN_ERR_DESC^SPEC_ABBSYM^SUM_ORD_WGT^SUM_NEED_WGT^SUM_SLAB_CNT^SUM_TOT_SLAB_WGT^SLAB_WGT_SMIN^SLAB_WGT_SMAX^SLAB_WGT_LMIN^SLAB_WGT_LMAX^GRAVITY^EMGMTR_YN^SCARFING_PROC_YN^GRIND_PROC_YN^EDGE_PROC_YN^SPM_PROC_YN^SHL_PROC_YN^SFC_PROC_YN^BTWSHT_INS_YN^EACHLOT_YN^COMB_YN^NEED_DSN_WGT_MIN^NEED_DSN_WGT_MAX" colsep="^" colwidth="40, 77, 43, 38, 71, 71, 87, 65, 68, 60, 58, 65, 60, 67, 42, 42, 44, 43, 34, 36, 34, 37, 42, 42, 34, 60, 43, 100, 76, 87, 125, 61, 100, 100, 100, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 100, 100" explorerbar="sort" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:87px; width:980px; height:197px; ">
- <col checkvalue="1,0" ref="CHK_FG1" type="checkbox"/>
- <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_SEQ" type="input" style="width:80; background-color:#ffffff; "/>
- <col disabled="true" editable="false" ref="DSN_PROC_STAT" type="combo">
- <choices>
- <item>
- <label>等待</label>
- <value>1</value>
- </item>
- <item>
- <label>完成</label>
- <value>2</value>
- </item>
- <item>
- <label>que定</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="ORD_PRC_LOCK" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_PLAN_DATA" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
- <col editable="false" ref="MILL_DUE_DATE" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
- <col editable="false" ref="DEL_TO_DATE" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
- <col editable="false" ref="RCVORD_TP" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="PROD_LINE" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="FAC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="ORD_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col ref="NEED_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col editable="false" ref="PROD_WGT_MIN" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="PROD_WGT_MAX" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="C_COIL_THK" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="C_COIL_WTH" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_THK" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_WTH" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_THK" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_WTH" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_LEN" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_CNT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="TOT_SLAB_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col disabled="false" editable="false" ref="HCR_CLF" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>HCR</label>
- <value>H</value>
- </item>
- <item>
- <label>CCR</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="ORD_REG_DTIME" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
- <col editable="false" ref="PROC_PATH" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="DLIV_TP" type="combo" style="text-align:left; background-color:#ffffff; ">
- <choices>
- <item>
- <label>公路(车辆)</label>
- <value>C</value>
- </item>
- <item>
- <label>铁路(火车)</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="MK_CONTENT" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="KEEPWARM_YN" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>是</label>
- <value>Y</value>
- </item>
- <item>
- <label>否</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/fwdData/UID010031/ORD_NO", dg1.valueMatrix(dg1.row, dg1.colRef("ORD_NO")));
- model.setValue("/root/fwdData/UID010031/ORD_SEQ", dg1.valueMatrix(dg1.row, dg1.colRef("ORD_SEQ")));
- model.setValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
- ]]>
- </script>
- </col>
- <col editable="false" ref="XSQY" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="MK_COIL" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="PRODNM_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="COIL_LEN" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="COIL_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="COIL_CNT" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="FAC_STL_GRP" visibility="hidden"/>
- <col ref="ORD_INDIA" visibility="hidden"/>
- <col ref="ORD_OUTDIA" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="DSN_PROC_YN" visibility="hidden"/>
- <col ref="DSN_ERR_DESC" visibility="hidden"/>
- <col ref="SPEC_ABBSYM" visibility="hidden"/>
- <col ref="SUM_ORD_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SUM_NEED_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SUM_SLAB_CNT" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SUM_TOT_SLAB_WGT" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SLAB_WGT_SMIN" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SLAB_WGT_SMAX" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SLAB_WGT_LMIN" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="SLAB_WGT_LMAX" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="GRAVITY" visibility="hidden" format="#,###.0" style="text-align:right; "/>
- <col ref="EMGMTR_YN" visibility="hidden"/>
- <col ref="SCARFING_PROC_YN" visibility="hidden"/>
- <col ref="GRIND_PROC_YN" visibility="hidden"/>
- <col ref="EDGE_PROC_YN" visibility="hidden"/>
- <col ref="SPM_PROC_YN" visibility="hidden"/>
- <col ref="SHL_PROC_YN" visibility="hidden"/>
- <col ref="SFC_PROC_YN" visibility="hidden"/>
- <col ref="BTWSHT_INS_YN" visibility="hidden"/>
- <col ref="EACHLOT_YN" visibility="hidden"/>
- <col ref="COMB_YN" visibility="hidden"/>
- <col ref="NEED_DSN_WGT_MIN" visibility="hidden"/>
- <col ref="NEED_DSN_WGT_MAX" visibility="hidden"/>
- <col ref="PROC_RATE" visibility="visible" format="#,###.0" style="text-align:right; "/>
- <col ref="SEARCH_KEY" visibility="hidden"/>
- </datagrid>
- <datagrid id="dg2" nodeset="/root/gridData2/ListResult_2_VO/ListResult_2_Row" scroll="auto" caption="板坯号^合同号^订单号^产线^板坯^板坯^板坯^板坯^热卷^热卷^热卷^热卷^冷卷^冷卷^精整^设计^紧急材^HCR^坑冷^组合^厂内牌号^厂内牌号组^通过工序^COIL_INDIA^COIL_OUTDIA^P_DSN_SLAB_NO^GRAVITY^COIL_PACK_WGT_MIN^COIL_PACK_WGT_MAX|板坯号^合同号^订单号^产线^厚度^宽度^长度^重量^厚度^宽度^长度^重量^厚度^宽度^精整^设计^紧急材^HCR^坑冷^组合^厂内牌号^厂内牌号组^通过工序^COIL_INDIA^COIL_OUTDIA^P_DSN_SLAB_NO^GRAVITY^COIL_PACK_WGT_MIN^COIL_PACK_WGT_MAX" colsep="^" colwidth="85, 77, 42, 66, 34, 37, 42, 42, 34, 37, 60, 42, 55, 59, 48, 48, 48, 48, 50, 48, 77, 60, 65, 100, 100, 100, 100, 100, 100" defaultrows="20" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:320px; width:980px; height:273px; ">
- <col editable="false" ref="DSN_SLAB_NO2" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NO2" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_SEQ2" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="PROD_LINE" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_THK2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="true" ref="SLAB_WTH2" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col editable="true" ref="SLAB_LEN2" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col editable="false" ref="SLAB_WGT2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_THK2" type="input" format="#,###.0" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_WTH2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_LEN2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_WGT2" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="C_COIL_THK" type="input" format="#,###.0" style="background-color:#ffffff; "/>
- <col editable="false" ref="C_COIL_WTH" type="input" format="#,###" style="background-color:#ffffff; "/>
- <col disabled="false" ref="SLAB_TRMTH_TP2" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="false" ref="AUTODSN_YN2" type="combo">
- <choices>
- <item>
- <label>自动</label>
- <value>Y</value>
- </item>
- <item>
- <label>Manual</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="false" ref="EMGMTR_YN2" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="false" ref="HCR_YN2" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>HCR</label>
- <value>H</value>
- </item>
- <item>
- <label>CCR</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="KEEPWARM_YN2" type="combo" style="background-color:#ffffff; ">
- <choices>
- <item>
- <label>是</label>
- <value>Y</value>
- </item>
- <item>
- <label>否</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="COMB_YN2" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="FAC_STL_GRD2" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="FAC_STL_GRP2" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="PROC_PATH2" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_INDIA2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_OUTDIA2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="P_DSN_SLAB_NO2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="GRAVITY2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_PACK_WGT_MIN2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_PACK_WGT_MAX2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iProcRate = Number(dg1.valueMatrix(dg1.row,dg1.colRef("PROC_RATE")));
- if( iProcRate == null || iProcRate == 0 ) {
- alert("Select Order");
- return;
- }
- var iGravity = Number(dg1.valueMatrix(dg1.row,dg1.colRef("GRAVITY" )));
- //
- var iAddValue = Number(model.getValue("/root/formData/ADDED_COIL_WTH"));
- if(iAddValue == "")
- {
- alert("请输入板坯宽度!");
- return;
- }
- //var iGravity = Number(dg2.valueMatrix(dg2.row,dg2.colRef("GRAVITY" )));
- //
- var iSlabThk = Number(dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_THK2")));
- var iSlabWth = Number(dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_WTH2")));
- var iSlabLen = Number(dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_LEN2")));
- var iSlabWgt = Math.ceil( (iSlabLen * iSlabWth * iSlabThk * iGravity * 1000) / 1000000000 );
-
- //
- var iCoilThk = Number(dg2.valueMatrix(dg2.row,dg2.colRef("COIL_THK2")));
- var iCoilWth = Number(dg2.valueMatrix(dg2.row,dg2.colRef("COIL_WTH2")));//iAddValue;
- var iCoilWgt = Math.ceil(((iSlabLen * iSlabWth * iSlabThk * iGravity * 1000) / 1000000000) * iProcRate / 100);
- var iCoilLen = Math.round((iCoilWgt / (iCoilWth * iCoilThk * iGravity * 1000)) * 1000000000, 0);
- dg2.valueMatrix(dg2.row,dg2.colRef("SLAB_WGT2")) = iSlabWgt;
- dg2.valueMatrix(dg2.row,dg2.colRef("COIL_WTH2")) = iCoilWth;
- dg2.valueMatrix(dg2.row,dg2.colRef("COIL_LEN2")) = iCoilLen;
- dg2.valueMatrix(dg2.row,dg2.colRef("COIL_WGT2")) = iCoilWgt;
- calculateSummary();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- var sSearchKey = dg2.valueMatrix(dg2.row, dg2.colRef("ORD_NO2")) + "-" + dg2.valueMatrix(dg2.row, dg2.colRef("ORD_SEQ2"));
- var iRow = dg1.findRow(sSearchKey, 1, dg1.colRef("SEARCH_KEY"), true, true);
- //alert("["+ iRow +"] ["+ sSearchKey + "]");
- dg1.row = iRow;
- dg1.topRow = iRow;
- ]]>
- </script>
- </datagrid>
- <select1 id="combo1" ref="/root/formData/DSN_PROC_STAT" appearance="minimal" style="left:82px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value>%</value>
- </item>
- <item>
- <label>设计等待</label>
- <value>1</value>
- </item>
- <item>
- <label>设计完成</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="cell" style="left:880px; top:30px; width:60px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">板坯长度</caption>
- <input id="input1" ref="/root/formData/SLAB_LEN" format="#,###" style="left:940px; top:30px; width:40px; height:20px; text-align:right; background-color:#ffff99; "/>
- <caption id="caption3" class="cell" style="left:770px; top:30px; width:60px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">板坯宽度</caption>
- <select1 id="combo2" visibility="hidden" appearance="minimal" style="left:880px; top:5px; width:56px; height:15px; ">
- <choices>
- <item>
- <label>钢卷宽度+10</label>
- <value>10</value>
- </item>
- <item>
- <label>钢卷宽度+15</label>
- <value>15</value>
- </item>
- <item>
- <label>钢卷宽度+20</label>
- <value>20</value>
- </item>
- <item>
- <label>钢卷宽度+25</label>
- <value>25</value>
- </item>
- <item>
- <label>钢卷宽度+30</label>
- <value>30</value>
- </item>
- <item>
- <label>钢卷宽度+35</label>
- <value>35</value>
- </item>
- <item>
- <label>钢卷宽度+40</label>
- <value>40</value>
- </item>
- <item>
- <label>钢卷宽度+45</label>
- <value>45</value>
- </item>
- <item>
- <label>钢卷宽度+50</label>
- <value>50</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:190px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单号</caption>
- <input id="input2" ref="/root/formData/ORD_NO" maxlength="12" style="left:272px; top:5px; width:80px; height:20px; "/>
- <input id="input3" ref="/root/formData/ORD_SEQ" maxlength="3" style="left:354px; top:5px; width:25px; height:20px; "/>
- <button id="button6" style="left:835px; top:288px; width:70px; height:20px; text-align:right; background-color:#ffffff; background-image:../../images/btn_create.gif; border-color:#000000; border-style:none; ">
- <caption>板坯增加</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var node = instance1.selectSingleNode("/root/gridData2/ListResult_2_VO/ListResult_2_Row");
- // Validation for NULL
- if( node == null ) {
- alert("Node does not exist.");
- return;
- }
- if( dg2.row < dg2.fixedRows ) {
- alert("dg2.row = ["+ dg2.row +"] < dg2.fixedRows = ["+ dg2.fixedRows +"]");
- return;
- }
- dg2.insertRow(dg2.row, "below", true, true);
- //alert("dg2.row = ["+ dg2.row +"] dg2.rows = ["+ dg2.rows +"] dg2.cols = ["+ dg2.cols +"]");
- // inspect child nodes
- var nodeList = node.childNodes;
- var tmp;
- var outData = "";
- while( (tmp = nodeList.nextNode() ) != null ) {
- //outData += lpad(tmp.tagName,20,"*") + "= [" + dg2.valueMatrix(dg2.row - 1, dg2.colRef(tmp.tagName)) + "]\n";
- dg2.valueMatrix(dg2.row, dg2.colRef(tmp.tagName)) = dg2.valueMatrix(dg2.row - 1, dg2.colRef(tmp.tagName));
- }
- // Control MAX_DSN_SLAB_NO
- var sNextDsnSlabNo = lpad(Number(model.getValue("/root/formData/MAX_DSN_SLAB_NO")) + 1, 8, "0");
- dg2.valueMatrix(dg2.row, dg2.colRef("DSN_SLAB_NO2")) = sNextDsnSlabNo;
- model.setValue("/root/formData/MAX_DSN_SLAB_NO", sNextDsnSlabNo);
- // Calculating Summary
- calculateSummary();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" style="left:910px; top:288px; width:70px; height:20px; text-align:right; background-color:#ffffff; background-image:../../images/btn_delete.gif; border-color:#000000; border-style:none; ">
- <caption>板坯删除</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // Control MAX_DSN_SLAB_NO
- var nCurrSlabNo = dg2.valueMatrix(dg2.row, dg2.colRef("DSN_SLAB_NO2"));
- if (model.getValue("/root/formData/MAX_DSN_SLAB_NO") == nCurrSlabNo) {
- model.setValue("/root/formData/MAX_DSN_SLAB_NO", lpad(Number(model.getValue("/root/formData/MAX_DSN_SLAB_NO")) - 1, 8, "0"));
- }
- // Calculating Summary
-
- dg2.deleteRow(dg2.row);
- calculateSummary();
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/sumData/SUM_NEED_WGT" format="#,###" style="left:350px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output2" ref="/root/sumData/SUM_TOT_SLAB_WGT" format="#,###" style="left:704px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output3" ref="/root/sumData/SUM_ORD_WGT" format="#,###" style="left:172px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output4" ref="/root/sumData/SUM_COIL_CNT" format="#,###" style="left:528px; top:288px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output5" ref="/root/sumData/SUM_SLABRST_WGT" format="#,###" style="left:347px; top:595px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output6" ref="/root/sumData/SUM_SLABRST_CNT" format="#,###" style="left:172px; top:595px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output8" ref="/root/sumData/SUM_COILRST_WGT" format="#,###" style="left:523px; top:595px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <line id="line1" style="x1:0px; y1:1px; x2:978px; y2:1px; "/>
- <line id="line2" style="x1:2px; y1:80px; x2:980px; y2:80px; "/>
- <line id="line3" style="x1:2px; y1:313px; x2:980px; y2:313px; "/>
- <caption id="caption7" class="cell" style="left:0px; top:288px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
- <caption id="caption8" class="cell" style="left:90px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单设计量</caption>
- <caption id="caption5" class="cell" style="left:268px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单待设计量</caption>
- <caption id="caption6" class="cell" style="left:445px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯总块数</caption>
- <caption id="caption9" class="cell" style="left:622px; top:288px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">设计总重量</caption>
- <caption id="caption10" class="cell" style="left:0px; top:594px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
- <caption id="caption11" class="cell" style="left:90px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯块数</caption>
- <caption id="caption12" class="cell" style="left:265px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯总重量</caption>
- <caption id="caption13" class="cell" style="left:440px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量</caption>
- <caption id="caption14" class="cell" style="left:387px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">厂内牌号</caption>
- <input id="input4" ref="/root/formData/FacStlGrd" style="left:469px; top:5px; width:100px; height:20px; "/>
- <caption id="caption15" class="cell" style="left:577px; top:5px; width:80px; height:20px; ">订单录入时间</caption>
- <input id="input5" ref="/root/formData/ORDER_REG_TO" editable="false" inputtype="date" style="left:775px; top:5px; width:100px; height:20px; "/>
- <input id="input6" ref="/root/formData/ORDER_REG_FR" editable="false" inputtype="date" style="left:659px; top:5px; width:100px; height:20px; "/>
- <input id="input7" ref="/root/formData/ADDED_COIL_WTH" format="#,###" style="left:830px; top:30px; width:45px; height:20px; text-align:right; background-color:#ffff99; "/>
- <line id="line5" style="x1:0px; y1:27px; x2:980px; y2:27px; "/>
- <caption id="caption17" class="cell" style="left:0px; top:30px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">钢卷宽度</caption>
- <input id="input8" ref="/root/formData/COIL_WTH_CONTIUNE_FR" style="left:82px; top:30px; width:58px; height:20px; "/>
- <input id="input9" ref="/root/formData/COIL_WTH_CONTIUNE_TO" style="left:153px; top:30px; width:58px; height:20px; "/>
- <caption id="caption18" style="left:140px; top:35px; width:20px; height:15px; ">~</caption>
- <caption id="caption20" style="left:761px; top:10px; width:20px; height:15px; ">~</caption>
- <select1 id="combo3" ref="/root/formData/DLIV_TP_CO" appearance="minimal" style="left:299px; top:30px; width:85px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value/>
- </item>
- <item>
- <label>公路(车辆)</label>
- <value>C</value>
- </item>
- <item>
- <label>铁路(火车)</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="cell" style="left:217px; top:30px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">运输方式</caption>
- <caption id="caption21" class="cell" style="left:679px; top:57px; width:90px; height:20px; vertical-align:middle; ">订单预排期</caption>
- <input id="input10" ref="/root/formData/ORD_PLAN_DATA_MIN" inputtype="date" style="left:771px; top:57px; width:101px; height:20px; "/>
- <input id="input11" ref="/root/formData/ORD_PLAN_DATA_MAX" inputtype="date" style="left:874px; top:57px; width:105px; height:20px; "/>
- <line id="line4" style="x1:0px; y1:53px; x2:980px; y2:53px; "/>
- <caption id="caption105" class="cell" style="left:387px; top:30px; width:90px; height:20px; ">订货区分</caption>
- <input id="combo105" ref="/root/formData/RCVORD_CLF" inputtype="button" appearance="minimal" style="left:479px; top:30px; width:111px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- checkbox2.visible = (checkbox2.visible == false);
- ]]>
- </script>
- </input>
- <select id="checkbox2" ref="/root/formData/RCVORD_CLF" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:479px; top:49px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'A01001']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select>
- <caption id="caption19" class="cell" style="left:0px; top:57px; width:90px; height:20px; vertical-align:middle; ">产品类型</caption>
- <select1 id="combo4" ref="/root/formData/PRODNM_CD_C" visibility="hidden" appearance="minimal" style="left:595px; top:55px; width:110px; 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>
- <select1 id="combo5" ref="/root/formData/PROD_LINE_CON" appearance="minimal" style="left:259px; top:57px; width:76px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value/>
- </item>
- <item>
- <label>热轧</label>
- <value>R</value>
- </item>
- <item>
- <label>酸轧</label>
- <value>C</value>
- </item>
- <item>
- <label>连退</label>
- <value>L</value>
- </item>
- </choices>
- </select1>
- <caption id="caption22" class="cell" style="left:197px; top:57px; width:60px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">产线</caption>
- <caption id="caption23" class="cell" style="left:645px; top:30px; width:55px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">板坯厚度</caption>
- <select1 id="combo6" ref="/root/formData/SLAB_THK" appearance="minimal" style="left:700px; top:30px; width:65px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='D01002' or LG_CD = 'A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <input id="input12" ref="/root/formData/PRODNM_CD_C" style="left:91px; top:57px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- checkbox1.visible = (checkbox1.visible == false);
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/formData/PRODNM_CD_C" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:89px; top:76px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
- <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>
- </select>
- <caption id="caption24" class="cell" visibility="hidden" style="left:338px; top:55px; width:60px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">锁定工序</caption>
- <select1 id="combo7" ref="/root/formData/ORD_PRC_LOCK" visibility="hidden" appearance="minimal" style="left:400px; top:55px; width:76px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value/>
- </item>
- <item>
- <label>热轧</label>
- <value>R</value>
- </item>
- <item>
- <label>生产处</label>
- <value>S</value>
- </item>
- <item>
- <label>冷轧</label>
- <value>L</value>
- </item>
- </choices>
- </select1>
- <button id="button1" visibility="hidden" style="left:940px; top:5px; width:25px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|