| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[炼钢作业 >> 板坯库管理 >> 加回轧回入库录入(UIG040062)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <searchData>
- <FROM_DATE/>
- <TO_DATE/>
- <CHARGE_NO/>
- </searchData>
- <formData>
- <SLAB_NO/>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN/>
- <SLAB_WGT/>
- <BACK_TP>JH</BACK_TP>
- <SCRAP_WGT/>
- <CUR_LOAD_LOC/>
- <SHIFT/>
- <GROUP/>
- <REGID/>
- <ORD_NO/>
- <ORD_SEQ/>
- <ORG_ORD_NO/>
- <ORG_ORD_SEQ/>
- <CUR_PROG_CD/>
- <BEF_PROG_CD/>
- </formData>
- <grid1/>
- <reqData/>
- <resData/>
- <shiftData>
- <FAC_CD>R</FAC_CD>
- <PROC_CD>Y</PROC_CD>
- <GROUP_CD/>
- </shiftData>
- <comboData>
- <reg_id/>
- </comboData>
- <initData>
- <LG_CD>E01002,H02009</LG_CD>
- </initData>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
-
- var curDate = CurentDate();
- if(model.getValue("/root/searchData/FROM_DATE") == null || model.getValue("/root/searchData/FROM_DATE") == ""){
- model.setValue("/root/searchData/FROM_DATE",curDate);
- }
- if(model.getValue("/root/searchData/TO_DATE") == null || model.getValue("/root/searchData/TO_DATE") == ""){
- model.setValue("/root/searchData/TO_DATE",curDate);
- }
-
- input6.refresh();input7.refresh();
-
- commSendReq("/root/shiftData");
- commSubmit("UIG020SHIFT-service","findshift","glueAction.do");
- model.setValue("/root/formData/SHIFT",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GR_SHIFT"));
- model.setValue("/root/formData/GROUP",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GROUP_CD"));
- model.copyNode("/root/comboData/reg_id","/root/resData/EMP_NM_RESUTL_VO");
- combo2.refresh();combo3.refresh();combo4.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function find(){
- formInput1.disabled = true;formInput2.disabled = true;
- formInput3.disabled = true;formInput4.disabled = true;
- formInput5.disabled = true;formInput6.disabled = true;
-
- var backTp = model.getValue("/root/formData/BACK_TP");
- if(backTp == "JH"){
- commSendReq("/root/searchData");
- commSubmit("UIG040062-service","findjh","glueAction.do");
- }else if(backTp == "ZH"){
- commSendReq("/root/searchData");
- commSubmit("UIG040062-service","findzh","glueAction.do");
- }else{
- alert(" 加回,轧回选择不能为空!");
- return;
- }
- commAppendData("/root/grid1/ZH_RESULT_VO","/root/resData/ZH_RESULT_VO");
-
- datagrid1.refresh();
- }
-
- function save(){
- var conformStr = "确定进行如下修改?\n ";
- conformStr = conformStr + "板坯号: " + model.getValue("/root/formData/SLAB_NO") + "\n";
- conformStr = conformStr + "跺位: " + model.getValue("/root/formData/CUR_LOAD_LOC") + "\n";
- conformStr = conformStr + "宽度: " + model.getValue("/root/formData/SLAB_THK") + "\n";
- conformStr = conformStr + "厚度: " + model.getValue("/root/formData/SLAB_WTH") + "\n";
- conformStr = conformStr + "长度: " + model.getValue("/root/formData/SLAB_LEN") + "\n";
- conformStr = conformStr + "重量: " + model.getValue("/root/formData/SLAB_WGT") + "\n";
- var answer = window.alert(conformStr,"坯料确认", 1 | 32);
- if (answer == "2"){
- return;
- }
-
- commSendReq("/root/formData");
-
- commSubmit("UIG040062-service","save","glueAction.do");
- alert(model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- find();
- }
-
- function rightClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- var tailValue = checkValue.substr(9,4);
- tstvalue = (tstvalue + 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + tailValue;
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
-
- function leftClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- if(checkValue.length < 9){
- alert(" 炉次号长度不符! ");
- return;
- }
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- var tailValue = checkValue.substr(9,4);
- tstvalue = (tstvalue - 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
-
- checkValue = checkValue + tstvalue + tailValue;
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/G02.js"/>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">加回/轧回</caption>
- <select1 id="combo1" ref="/root/formData/BACK_TP" appearance="minimal" style="left:76px; top:5px; width:85px; height:20px; ">
- <choices>
- <item>
- <label>加回</label>
- <value>JH</value>
- </item>
- <item>
- <label>轧回</label>
- <value>ZH</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- find();
- ]]>
- </script>
- </select1>
- <datagrid id="datagrid1" nodeset="/root/grid1/ZH_RESULT_VO/ZH_RESULT_Row" caption="选择^板坯号^坯料进程^板坯状态^钢种^厚度^宽度^长度^重量^废 钢 量^放置位置^加回/轧回^回送原因^回送时间^回送人^回送班次^回送班组^ORD_NO^ORD_SEQ^ORG_ORD_NO^ORG_ORD_SEQ^CUR_PROG_CD^BEF_PROG_CD|选择^板坯号^坯料进程^板坯状态^钢种^厚度^宽度^长度^重量^废 钢 量^放置位置^加回/轧回^回送原因^回送时间^回送人^回送班次^回送班组^ORD_NO^ORD_SEQ^ORG_ORD_NO^ORG_ORD_SEQ^CUR_PROG_CD^BEF_PROG_CD" colsep="^" colwidth="50, 90, 100, 50, 80, 40, 50, 60, 60, 60, 80, 48, 60, 100, 50, 40, 50, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:70px; width:980px; height:530px; ">
- <col ref="CHK" type="radio"/>
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col disabled="true" editable="false" ref="CUR_PROG_CD" type="combo">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'E01002']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="SLAB_STAT" type="combo">
- <choices>
- <item>
- <label>指示</label>
- <value>1</value>
- </item>
- <item>
- <label>坯料</label>
- <value>2</value>
- </item>
- <item>
- <label>结束</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="STL_GRD"/>
- <col ref="SLAB_THK"/>
- <col ref="SLAB_WTH"/>
- <col ref="SLAB_LEN"/>
- <col ref="SLAB_WGT"/>
- <col ref="SCRAP_WGT"/>
- <col ref="CUR_LOAD_LOC"/>
- <col ref="BACK_TP"/>
- <col ref="MISSNO_CAUSE_CD" type="combo">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'H02009']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="MISSNO_DTIME"/>
- <col ref="MISSNO_WK_EMP_NO"/>
- <col disabled="true" ref="MISSNO_WKSHIFT" type="combo">
- <choices>
- <item>
- <label>早班</label>
- <value>1</value>
- </item>
- <item>
- <label>中班</label>
- <value>2</value>
- </item>
- <item>
- <label>晚班</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="MISSNO_WKGROUP" type="combo">
- <choices>
- <item>
- <label>甲班</label>
- <value>A</value>
- </item>
- <item>
- <label>乙班</label>
- <value>B</value>
- </item>
- <item>
- <label>丙班</label>
- <value>C</value>
- </item>
- <item>
- <label>丁班</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="ORG_ORD_NO"/>
- <col ref="ORG_ORD_SEQ"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="BEF_PROG_CD"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(model.getValue("/root/formData/BACK_TP") == "ZH"){
- formInput1.disabled = false;formInput2.disabled = false;
- formInput3.disabled = false;formInput4.disabled = false;
- formInput5.disabled = false;formInput6.disabled = false;
- model.refresh();
- formInput2.attribute("background-color") = "#ffff99";
- formInput3.attribute("background-color") = "#ffff99";
- formInput4.attribute("background-color") = "#ffff99";
- formInput5.attribute("background-color") = "#ffff99";
- formInput6.attribute("background-color") = "#ffff99";
- formInput1.attribute("background-color") = "#ffff99";
- }else if (model.getValue("/root/formData/BACK_TP") == "JH"){
- formInput1.disabled = false;
- model.refresh();
- formInput1.attribute("background-color") = "#ffff99";
- formInput2.attribute("background-color") = "#ffffff";
- formInput3.attribute("background-color") = "#ffffff";
- formInput4.attribute("background-color") = "#ffffff";
- formInput5.attribute("background-color") = "#ffffff";
- formInput6.attribute("background-color") = "#ffffff";
- }
- model.setValue("/root/formData/SLAB_THK",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_THK")));
- model.setValue("/root/formData/SLAB_WTH",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_WTH")));
- model.setValue("/root/formData/SLAB_LEN",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_LEN")));
- model.setValue("/root/formData/SLAB_WGT",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_WGT")));
- model.setValue("/root/formData/SCRAP_WGT",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SCRAP_WGT")));
- model.setValue("/root/formData/SLAB_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_NO")));
- model.setValue("/root/formData/CUR_LOAD_LOC",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CUR_LOAD_LOC")));
-
- model.setValue("/root/formData/ORD_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_NO")));
- model.setValue("/root/formData/ORD_SEQ",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_SEQ")));
- model.setValue("/root/formData/ORG_ORD_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORG_ORD_NO")));
- model.setValue("/root/formData/ORG_ORD_SEQ",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORG_ORD_SEQ")));
- model.setValue("/root/formData/CUR_PROG_CD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CUR_PROG_CD")));
- model.setValue("/root/formData/BEF_PROG_CD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("BEF_PROG_CD")));
- ]]>
- </script>
- </datagrid>
- <select1 id="combo2" ref="/root/formData/SHIFT" appearance="minimal" style="left:0px; top:48px; width:90px; height:20px; ">
- <choices>
- <item>
- <label>早班</label>
- <value>1</value>
- </item>
- <item>
- <label>中班</label>
- <value>2</value>
- </item>
- <item>
- <label>晚班</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/formData/GROUP" appearance="minimal" style="left:90px; top:48px; width:90px; height:20px; ">
- <choices>
- <item>
- <label>甲班</label>
- <value>A</value>
- </item>
- <item>
- <label>乙班</label>
- <value>B</value>
- </item>
- <item>
- <label>丙班</label>
- <value>C</value>
- </item>
- <item>
- <label>丁班</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/shiftData/GROUP_CD",model.getValue("/root/formData/GROUP"));
- commSendReq("/root/shiftData");
- commSubmit("UIG020SHIFT-service","findgroup","glueAction.do");
- model.copyNode("/root/comboData/reg_id","/root/resData/EMP_NM_RESUTL_VO");
- combo4.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/formData/REGID" appearance="minimal" editmode="inputsearch" style="left:180px; top:48px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData/reg_id/EMP_NM_RESUTL_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell" style="left:290px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
- <input id="input1" ref="/root/formData/SLAB_NO" disabled="true" editable="false" style="left:290px; top:48px; width:90px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:470px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">厚度</caption>
- <input id="formInput1" ref="/root/formData/CUR_LOAD_LOC" style="left:380px; top:48px; width:90px; height:20px; "/>
- <input id="formInput2" ref="/root/formData/SLAB_THK" style="left:470px; top:48px; width:90px; height:20px; "/>
- <caption id="caption4" class="cell" style="left:560px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">宽度</caption>
- <input id="formInput3" ref="/root/formData/SLAB_WTH" style="left:560px; top:48px; width:90px; height:20px; "/>
- <caption id="caption5" class="cell" style="left:650px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">长度</caption>
- <input id="formInput4" ref="/root/formData/SLAB_LEN" style="left:650px; top:48px; width:90px; height:20px; "/>
- <caption id="caption6" class="cell" style="left:740px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">重 量</caption>
- <input id="formInput5" ref="/root/formData/SLAB_WGT" style="left:740px; top:48px; width:90px; height:20px; "/>
- <input id="formInput6" ref="/root/formData/SCRAP_WGT" style="left:830px; top:48px; width:90px; height:20px; "/>
- <input id="input6" ref="/root/searchData/FROM_DATE" class="input" inputtype="date" style="left:246px; top:5px; width:95px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/searchData/TO_DATE") == null || model.getValue("/root/searchData/TO_DATE") == ""
- ||model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/TO_DATE")){
- model.setValue("/root/searchData/TO_DATE",model.getValue("/root/searchData/FROM_DATE"));
- input7.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/searchData/TO_DATE" class="input" inputtype="date" style="left:345px; top:5px; width:95px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/searchData/FROM_DATE") == null || model.getValue("/root/searchData/FROM_DATE") == ""
- ||model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/TO_DATE")){
- model.setValue("/root/searchData/FROM_DATE",model.getValue("/root/searchData/TO_DATE"));
- input6.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">加回/轧回</caption>
- <line id="line2" style="x1:341px; y1:15px; x2:346px; y2:15px; "/>
- <caption id="caption8" class="cell" style="left:170px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">时 间</caption>
- <caption id="caption9" class="cell" style="left:0px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">班 次</caption>
- <caption id="caption10" class="cell" style="left:90px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">班 组</caption>
- <caption id="caption11" class="cell" style="left:180px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">操 作 人</caption>
- <caption id="caption12" class="cell" style="left:830px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废 钢 量</caption>
- <caption id="caption13" class="cell" style="left:380px; top:28px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">跺 位</caption>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- find();
- }
- ]]>
- </script>
- <caption id="caption14" class="cell" style="left:445px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">炉 号</caption>
- <input id="input2" ref="/root/searchData/CHARGE_NO" class="input" style="left:521px; top:5px; width:100px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/searchData/TO_DATE") == null || model.getValue("/root/searchData/TO_DATE") == ""
- ||model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/TO_DATE")){
- model.setValue("/root/searchData/TO_DATE",model.getValue("/root/searchData/FROM_DATE"));
- input7.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="button2" style="left:647px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rightClick();
- ]]>
- </script>
- </button>
- <button id="button3" style="left:622px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- leftClick();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|