| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <?xml-stylesheet href="../css/bCommon.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[品质判定>>成分判定>>判定历史记录查询]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <datagrid1/>
- <datagrid2/>
- <formData>
- <SDTIME/>
- <EDTIME/>
- <CHARGENO/>
- <DCS_FLAG_ID/>
- <DCS_FLAG>%</DCS_FLAG>
- </formData>
- <combo1>
- <IngrStatus_Row/>
- </combo1>
- </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/b01.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- input1.value = commCurDate();
- input2.value = commCurDate();
- commSubmit("UIB030200-service", "success", "glueAction.do");
- model.copyNode("/root/combo1" , "/root/resData/IngrStatus_VO");
- model.refresh();
- model.toggle("case2");
- button3.attribute("color") = "#0000ff";
- }
- function find()
- {
- if(commDiffDay(input1.value,input2.value)>3)
- {
- window.alert("查询时间不能超过3天");
- return;
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
-
- if(input1.value.Trim() == "" && input2.value.Trim() == "" && input3.value.Trim() == "") {
- alert("请输入板坯号或时间查询!");
- return;
- }
-
- model.makeValue("/root/reqData/SDTIME", input1.value.Trim()+"0000");//生产开始时间
- model.makeValue("/root/reqData/EDTIME", input2.value.Trim()+"9999");//生产结束时间
- model.makeValue("/root/reqData/CHARGENO",input3.value.Trim()+"%");
- model.makeValue("/root/reqData/DCS_FLAG",combo25.value);
- model.makeValue("/root/reqData/DCS_FLAG_ID",input45.value.Trim());
- if(switch1.selectedIndex == 0)
- {
- commSubmit("UIB030200-service", "find0", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/IngrHistory_VO");
- }
- else
- {
- commSubmit("UIB030200-service", "find1", "glueAction.do");
- model.copyNode("/root/datagrid2" , "/root/resData/SlabHistory_VO");
- }
- datagrid2.rebuildStyle();
- model.refresh();
- }
- //重复操作显示蓝色
- function setColor()
- {
- datagrid2.rebuildStyle();
- var colSlabStat = datagrid2.colRef("SLAB_NO");
- var colFlag = datagrid2.colRef("SLAB_DCS_FLAG");
- for(var i = datagrid2.fixedRows; i < datagrid2.rows; i++)
- {
- var slabno1 = datagrid2.valueMatrix(i ,colSlabStat) ;
- var flag1 = datagrid2.valueMatrix(i ,colFlag) ;
- for(var j = datagrid2.fixedRows; j< datagrid2.rows; j++)
- {
- var slabno2 = datagrid2.valueMatrix(j ,colSlabStat) ;
- var flag2 = datagrid2.valueMatrix(j,colFlag) ;
- if(slabno1 == slabno2 && flag1 == flag2 && i != j)
- {
- datagrid2.rowStyle(i , "data" , "color") = "#0000ff";
- datagrid2.rowStyle(j , "data" , "color") = "#0000ff";
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <input id="input1" ref="/root/formData/SDTIME" inputtype="date" style="left:60px; top:32px; width:90px; height:20px; "/>
- <input id="input2" ref="/root/formData/EDTIME" inputtype="date" style="left:160px; top:32px; width:90px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:0px; top:32px; width:60px; height:20px; ">操作时间</caption>
- <line id="line1" style="x1:0px; y1:0px; x2:975px; y2:0px; "/>
- <line id="line2" style="x1:0px; y1:27px; x2:970px; y2:27px; "/>
- <line id="line3" style="x1:150px; y1:42px; x2:160px; y2:42px; "/>
- <button id="button1" visibility="hidden" style="left:820px; top:5px; width:100px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:55px; width:975px; height:562px; ">
- <case id="case1" style="left:0px; top:0px; width:975px; height:580px; ">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/IngrHistory_Row" caption="操作次数^炉次^工序^次数^成分代码^原始实绩(修约后)^原始实绩(L2发送)^质保书生成^修改原因^程序ID^操作人^操作时间" colsep="^" colwidth="51, 100, 51, 51, 61, 112, 113, 57, 134, 80, 77, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="label" style="left:0px; top:0px; width:972px; height:561px; ">
- <col ref="SEQ_NO" style="text-align:left; "/>
- <col ref="CHARGE_NO" style="text-align:left; "/>
- <col ref="PROC_CD" style="text-align:left; "/>
- <col ref="CHEM_SEQ" style="text-align:right; "/>
- <col ref="CHEM_CD" style="text-align:left; "/>
- <col ref="CHEM_VAL" style="text-align:right; "/>
- <col ref="CHEM_L2_VAL" style="text-align:right; "/>
- <col ref="UPDATE_NO_TP" style="text-align:left; "/>
- <col ref="INGR_RMK" style="text-align:left; "/>
- <col ref="REG_PGM_ID" style="text-align:left; "/>
- <col ref="REG_ID" style="text-align:left; "/>
- <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- </datagrid>
- </case>
- <case id="case2" selected="true">
- <datagrid id="datagrid2" nodeset="/root/datagrid2/SlabHistory_Row" caption="板坯号^操作类型^操作人^操作时间^实际牌号^原牌号^合同号^订单号^成分样^余材区分^解除合同^系统成分等级^系统外观等级^成分等级^外观等级^综合等级^成分判定人^成分判定时间^其他记录" colsep="^" colwidth="90, 85, 71, 122, 91, 50, 60, 35, 37, 51, 52, 94, 94, 83, 60, 120, 60, 150" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="label" style="left:0px; top:0px; width:971px; height:559px; ">
- <col ref="SLAB_NO" style="text-align:left; "/>
- <col disabled="true" ref="SLAB_DCS_FLAG" type="combo" style="text-align:left; ">
- <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>8</value>
- </item>
- <item>
- <label>外观实绩录入</label>
- <value>9</value>
- </item>
- <item>
- <label>正常流转</label>
- <value>B</value>
- </item>
- <item>
- <label>判次</label>
- <value>C</value>
- </item>
- <item>
- <label>强制合格</label>
- <value>D</value>
- </item>
- <item>
- <label>余材判定</label>
- <value>E</value>
- </item>
- <item>
- <label>待判定</label>
- <value>F</value>
- </item>
- <item>
- <label>化废</label>
- <value>G</value>
- </item>
- <item>
- <label>流转申请中</label>
- <value>H</value>
- </item>
- <item>
- <label>流转申请已取消</label>
- <value>I</value>
- </item>
- </choices>
- </col>
- <col ref="REG_ID" style="text-align:left; "/>
- <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="STL_GRD" style="text-align:left; "/>
- <col ref="BEF_STL_GRD" style="text-align:left; "/>
- <col ref="ORD_NO" style="text-align:right; "/>
- <col ref="ORD_SEQ" style="text-align:right; "/>
- <col ref="LST_INGR_CD"/>
- <col disabled="true" ref="ORD_FL" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="POPORD_NO" style="text-align:left; "/>
- <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>待判</label>
- <value/>
- </item>
- <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>
- <item>
- <label>流转申请成功</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="EXTSHAPE_GRD" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>待判</label>
- <value/>
- </item>
- <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_INGR_DEC_GRD_EXT" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/combo1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="EXTSHAPE_GRD_EXT" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/combo1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_TOT_DEC_GRD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/combo1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="INGR_EXT_NM" visibility="hidden" style="text-align:left; "/>
- <col ref="INGR_EXT_DTIME" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="HIS_DESC" style="text-align:left; "/>
- </datagrid>
- </case>
- </switch>
- <button id="button2" style="left:5px; top:5px; width:120px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>成分异常数据</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- button2.attribute("color") = "#0000ff";
- button3.attribute("color") = "#000000";
- ]]>
- </script>
- </button>
- <button id="button3" style="left:120px; top:5px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>板坯判定历史记录</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- button2.attribute("color") = "#000000";
- button3.attribute("color") = "#0000ff";
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell" style="left:260px; top:32px; width:60px; height:20px; ">板坯号</caption>
- <input id="input3" ref="/root/formData/CHARGENO" style="left:320px; top:32px; width:90px; height:20px; ">
- <hint>
- <![CDATA[可以输入炉号、板坯号查询]]>
- </hint>
- </input>
- <caption id="caption26" class="cell" style="left:420px; top:32px; width:60px; height:20px; ">操作人</caption>
- <input id="input45" ref="/root/formData/DCS_FLAG_ID" style="left:480px; top:32px; width:80px; height:20px; ">
- <hint>
- <![CDATA[操作类型对应的操作人]]>
- </hint>
- </input>
- <caption id="caption25" class="cell" style="left:570px; top:32px; width:60px; height:20px; ">操作类型</caption>
- <select1 id="combo25" ref="/root/formData/DCS_FLAG" appearance="minimal" style="left:630px; top:32px; width:100px; height:20px; ">
- <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>8</value>
- </item>
- <item>
- <label>外观实绩录入</label>
- <value>9</value>
- </item>
- <item>
- <label>正常流转</label>
- <value>B</value>
- </item>
- <item>
- <label>判次</label>
- <value>C</value>
- </item>
- <item>
- <label>强制合格</label>
- <value>D</value>
- </item>
- <item>
- <label>余材判定</label>
- <value>E</value>
- </item>
- <item>
- <label>待判定</label>
- <value>F</value>
- </item>
- <item>
- <label>化废</label>
- <value>G</value>
- </item>
- <item>
- <label>流转申请中</label>
- <value>H</value>
- </item>
- <item>
- <label>流转申请已取消</label>
- <value>I</value>
- </item>
- <item>
- <label>--全部--</label>
- <value>%</value>
- </item>
- </choices>
- <hint>
- <![CDATA[外观判定人所属班组]]>
- </hint>
- </select1>
- <button id="button4" style="left:875px; top:32px; width:60px; height:20px; background-color:#c0c0c0; ">
- <caption>显示重复</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setColor();
- ]]>
- </script>
- <hint>
- <![CDATA[同一板坯号同操作类型若有多次操作会显示蓝色]]>
- </hint>
- </button>
- </xhtml:body>
- </xhtml:html>
|