| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[炼钢作业 >> 板坯库管理 >> 板坯详细信息查询(UIG040061)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <SLAB_NO/>
- <CUR_LOAD_LOC/>
- <A0_YN/>
- <SLAB_STAT/>
- <C0_YN/>
- <IGR_LAG_FROM_DTIME>-999999999</IGR_LAG_FROM_DTIME>
- <IGR_LAG_TO_DTIME>999999999</IGR_LAG_TO_DTIME>
- <CUT_LAG_FROM_DTIME>-999999999</CUT_LAG_FROM_DTIME>
- <CUT_LAG_TO_DTIME>999999999</CUT_LAG_TO_DTIME>
- <MOVE_EMP_NM/>
- <AskStock/>
- <ASK_STOCK_ADDR/>
- </formData>
- <gridData/>
- <tempData/>
- <MESSAGES/>
- <comboData>
- <slab_no/>
- <regid/>
- </comboData>
- <resData/>
- <initData>
- <LG_CD>E01002</LG_CD>
- </initData>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- init();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function init(){
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIG040061-service","init","glueAction.do");
- model.copyNode("/root/comboData/slab_no","/root/resData/SLAB_NO_INIT_RES_VO");
- model.setValue("/root/formData/SLAB_NO",model.getValue("/root/comboData/slab_no/SLAB_NO_INIT_RES_Row[1]/VALUE"));
- combo1.refresh();
- }
- function find(){
- var input = model.getValue("/root/formData/SLAB_NO");
- if((input == ""|| input.length < 8) && model.getValue("/root/formData/A0_YN") != "A0"){
- alert(" 炉次号为空或长度少于8位! ");
- return;
- }
- if(model.getValue("/root/formData/SLAB_NO") == "" && model.getValue("/root/formData/A0_YN") == ""){
- model.setValue("/root/formData/SLAB_NO",model.getValue("/root/comboData/slab_no/SLAB_NO_INIT_RES_Row[1]/VALUE"));
- combo1.refresh();
- }
- if(model.getValue("/root/formData/A0_YN") == "A0"){
- model.setValue("/root/formData/SLAB_STAT","2");
- model.setValue("/root/formData/C0_YN","C0");
- }else {
- model.setValue("/root/formData/SLAB_STAT","");
- model.setValue("/root/formData/C0_YN","");
- }
- commSendReq("/root/formData");
- commSubmit("UIG040061-service","find","glueAction.do");
- commAppendData("/root/gridData/SLAB_DETAIL_INFO_VO","/root/resData/SLAB_DETAIL_INFO_VO");
- datagrid1.refresh();
- setGridColor();
- input2.value = model.getValue("/root/initData/rcvInfo/REG_ID");
- output1.value = getSumWGT();
- model.refresh();
-
- //datagrid1.subtotal("sum", 2, 10, "", "background-color:#99ff99", 1, "炉次合计重量");
- }
-
- function setGridColor()//成分不合格流水号显示红色
- {
- datagrid1.rebuildStyle();
-
- //默认提示框不显示
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- //成份不合格为QQ
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("QLFD_YN")) == "QQ")
- {
- datagrid1.cellStyle("background-color" , i ,datagrid1.colRef("SLAB_NO")) = "#ff0000";
- //成份不合格的情况在图型栏中给出红色提示
- }
- }
- }
-
- function getSumWGT(){
- var totalWGT = 0;
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- //成份不合格为QQ
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT")) == "")
- {
- }else{
- totalWGT = totalWGT + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT")));
- }
- }
- return totalWGT;
- }
- //保存操作只保存了备注信息
- function save(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
- commSubmit("UIG040061-service","save","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- alert(model.getValue("/root/MESSAGES"));
- }
-
- function complusMove(){
- //for(var i = datagrid1.fixedRows ; i < (gridRows + datagrid1.fixedRows) ; i++)
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" ) {
- if((datagrid1.valueMatrix(i,datagrid1.colRef("TO_YARD")).substr(0,1) == "Z" || datagrid1.valueMatrix(i,datagrid1.colRef("TO_YARD")).substr(0,1) == "z" )
- && datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_OUT_TP")) == "不允许出库"){
- alert(" 坯料不允许出库,请联系质检! ");return;
- }
- }
- }
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
- model.duplicate("/root/reqData","/root/formData/MOVE_EMP_NM");
- commSubmit("UIG040061-service","move","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- alert(model.getValue("/root/MESSAGES"));
- }
-
- function rightClick(){
- var checkValue = model.getValue("/root/formData/SLAB_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/formData/SLAB_NO",checkValue);
- find();
- }
-
- function leftClick(){
- var checkValue = model.getValue("/root/formData/SLAB_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/formData/SLAB_NO",checkValue);
- find();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
- <datagrid id="datagrid1" nodeset="/root/gridData/SLAB_DETAIL_INFO_VO/SLAB_DETAIL_INFO_Row" caption="板坯号^炉次号^钢号^炼钢原始牌号^存放位置^库存位置^板坯规格^测宽^命令制定^命令制定^选择^铸机号^称重重量^称重时间^操作时间^备注^是否允许出库^判定依据^综合判定等级^成份等级^尺寸等级^外观缺陷^坯料进程^坯料状态^轧制状态^轧制序号^订单区分^合同号^订单号^中厚板移送订单号^板坯去向^开浇时间^浇铸结束时间^判定时间^判定滞后时间(小时)^切割时间^切割滞后时间(小时)^caption1|板坯号^炉次号^钢号^炼钢原始牌号^存放位置^库存位置^厚×宽×长(mm)^测宽^到放置位置^行车^选择^铸机号^称重重量^称重时间^操作时间^备注^是否允许出库^判定依据^综合判定等级^成份等级^尺寸等级^外观缺陷^坯料进程^坯料状态^轧制状态^轧制序号^订单区分^合同号^订单号^中厚板移送订单号^板坯去向^开浇时间^浇铸结束时间^判定时间^判定滞后时间(小时)^切割时间^切割滞后时间(小时)^caption1" colsep="^" colwidth="86, 85, 100, 100, 68, 71, 118, 49, 95, 47, 30, 100, 79, 100, 100, 92, 70, 100, 49, 58, 100, 104, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:50px; width:975px; height:550px; ">
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col ref="CHARGE_NO" visibility="hidden"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col editable="false" ref="LG_STL_GRD" type="input"/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
- <col editable="false" ref="YARD_ADDR" type="input"/>
- <col editable="false" ref="SLAB_SIZE" type="input"/>
- <col editable="false" ref="AVG_WIDTH" type="input"/>
- <col ref="TO_YARD" type="inputbutton" maxlength="6" style="background-color:#ffff99; "/>
- <col ref="CR_NO" type="input" maxlength="2" style="background-color:#ffff99; "/>
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col disabled="true" ref="CC_DEVNO" type="combo">
- <choices>
- <item>
- <label>1</label>
- <value>J1</value>
- </item>
- <item>
- <label>2</label>
- <value>J2</value>
- </item>
- <item>
- <label>3</label>
- <value>J3</value>
- </item>
- </choices>
- </col>
- <col ref="WEIGHT_WGT"/>
- <col ref="SAMPLINGTIME"/>
- <col ref="REG_DTIME"/>
- <col ref="REMARKS" type="input" maxlength="6" style="background-color:#ffff99; "/>
- <col ref="SLAB_OUT_TP"/>
- <col ref="SLAB_INGR_DEC_KIND"/>
- <col ref="SLAB_TOT_DEC_GRD"/>
- <col disabled="true" editable="false" ref="SLAB_INGR_DEC_GRD" 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="SLAB_SIZE_DEC_GRD" type="combo">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="CRK" style="background-color:#ffff99; "/>
- <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 disabled="true" editable="false" 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>
- <item>
- <label>切废</label>
- <value>4</value>
- </item>
- <item>
- <label>转废钢库</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="MILL_SCH_STAT" type="combo">
- <choices>
- <item>
- <label>装炉</label>
- <value>A7T</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="ROLL_SEQ"/>
- <col disabled="true" editable="false" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="ORD_NO" type="input"/>
- <col editable="false" ref="ORD_SEQ" type="input"/>
- <col editable="false" ref="ORDNO" type="input"/>
- <col disabled="true" ref="SLAB_RT" type="combo">
- <choices>
- <item>
- <label>热轧厂</label>
- <value>H</value>
- </item>
- <item>
- <label>厚板厂</label>
- <value>P</value>
- </item>
- <item>
- <label>中板厂</label>
- <value>Z</value>
- </item>
- <item>
- <label>外 销</label>
- <value>W</value>
- </item>
- </choices>
- </col>
- <col ref="CASTING_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="CASTING_END_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="INGR_DEC_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="IGR_LAG_DTIME"/>
- <col ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="CUT_LAG_DTIME"/>
- <col ref="QLFD_YN" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (datagrid1.col == datagrid1.colRef("TO_YARD")) {
- var row = datagrid1.row;
- var BefStoreLoc = datagrid1.valueMatrix(row, datagrid1.colRef("CUR_LOAD_LOC"));
- var yardAddr = "L" ;
-
- if (BefStoreLoc == "L" || BefStoreLoc == "Z" ) {
-
- alert(" @@@@@ 坯料已经入库 @@@@@ ");
- return;
- }
- model1.setValue("/root/tempData", yardAddr);
- window.load("UIG040027.xrw","modal","", "left:228; top:78; width:980; height:660; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- datagrid1.valueMatrix(row, datagrid1.colRef("TO_YARD")) = model1.getValue("/root/tempData");
-
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- model1.refresh();
- }
-
-
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="cell" style="left:910px; top:5px; width:70px; height:20px; background-color:#6699ff; ">
- <![CDATA[强制移位 ]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var answer = window.alert("@@@ 是否真的执行强制移位,如是HCR有可能变成CCR。 @@@ " ,"Conform", 1 | 32);
-
- if (answer == "2") {
- return;
- }
-
-
- complusMove();
- find();
- ]]>
- </script>
- </caption>
- <select id="checkbox1" ref="/root/formData/A0_YN" overflow="visible" appearance="full" style="left:270px; top:8px; width:45px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>入库</label>
- <value>A0</value>
- </item>
- </choices>
- </select>
- <button id="button2" style="left:240px; 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:215px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- leftClick();
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- find();
- }
- ]]>
- </script>
- <caption id="caption10" class="cell" style="left:480px; top:3px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">班 组</caption>
- <caption id="caption11" class="cell" style="left:634px; top:3px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">操 作 人</caption>
- <caption id="caption9" class="cell" style="left:325px; top:3px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">班 次</caption>
- <select1 id="combo2" ref="/root/formData/SHIFT" appearance="minimal" style="left:385px; top:3px; 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:540px; top:3px; 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:694px; top:3px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData/reg_id/EMP_NM_RESUTL_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/formData/SLAB_NO" appearance="minimal" editmode="input" style="left:102px; top:5px; width:110px; height:20px; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/comboData/slab_no/SLAB_NO_INIT_RES_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <input id="input7" ref="/root/formData/CUT_LAG_FROM_DTIME" visibility="hidden" style="left:296px; top:30px; width:63px; height:20px; "/>
- <input id="input8" ref="/root/formData/IGR_LAG_TO_DTIME" visibility="hidden" style="left:146px; top:30px; width:63px; height:20px; "/>
- <input id="input9" ref="/root/formData/CUT_LAG_TO_DTIME" visibility="hidden" style="left:360px; top:30px; width:58px; height:20px; "/>
- <input id="input1" ref="/root/formData/IGR_LAG_FROM_DTIME" visibility="hidden" style="left:82px; top:30px; width:63px; height:20px; "/>
- <caption id="caption26" class="cell" visibility="hidden" style="left:0px; top:30px; width:82px; height:20px; font-weight:bold; border-color:#000000; ">判定滞后时间</caption>
- <caption id="caption27" class="cell" visibility="hidden" style="left:210px; top:30px; width:86px; height:20px; font-weight:bold; border-color:#000000; ">切割滞后时间</caption>
- <caption id="caption1" class="cell" style="left:825px; top:30px; width:70px; height:20px; background-color:#6699ff; ">重量合计</caption>
- <output id="output1" style="left:895px; top:30px; width:85px; height:20px; "/>
- <button id="button1" visibility="hidden" style="left:805px; top:5px; width:100px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/formData/MOVE_EMP_NM" visibility="hidden" editable="false" style="left:710px; top:30px; width:95px; height:17px; background-color:#c0c0c0; "/>
- <caption id="caption3" class="cell" style="left:635px; top:25px; width:70px; height:20px; background-color:#6699ff; ">
- <![CDATA[库位请求 ]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.duplicate("/root/reqData","/root/formData/AskStock");
- model.duplicate("/root/reqData","/root/formData/ASK_STOCK_ADDR");
- commSubmit("UIG040061-service","askstock","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- alert(model.getValue("/root/MESSAGES"));
- ]]>
- </script>
- </caption>
- <select1 id="AskStock" ref="/root/formData/AskStock" appearance="minimal" editmode="input" style="left:540px; top:25px; width:90px; height:20px; ">
- <choices>
- <item>
- <label>整个库区</label>
- <value>A</value>
- </item>
- <item>
- <label>Z1跨</label>
- <value>B</value>
- </item>
- <item>
- <label>Z2跨</label>
- <value>C</value>
- </item>
- <item>
- <label>Z3跨</label>
- <value>D</value>
- </item>
- <item>
- <label>具体跺位</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/formData/ASK_STOCK_ADDR" style="left:475px; top:25px; width:58px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|