| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?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">
- <instance id="instance1">
- <root xmlns="">
- <searchData>
- <PROC_CD/>
- <TRAN_ID/>
- </searchData>
- <gridData/>
- <reqData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- find();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function find()
- {
- commSendReq("/root/searchData");
- commSubmit("UIG060010-service","init","glueAction.do");
-
- model1.duplicate("/root/gridData","root/resData/TranData_VO");
- model1.removenode("root/resData/TranData_VO");
- datagrid1.refresh();
- }
-
- function save()
- {
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
-
- commSubmit("UIG060010-service","save","glueAction.do");
-
-
- model1.removenode("/root/gridData/TranData_VO");
- model1.duplicate("/root/gridData","root/resData/TranData_VO");
- datagrid1.clearStatus();
- model1.removenode("root/resData/TranData_VO");
- model1.refresh();
- }
-
- function send()
- {
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
-
- commSubmit("UIG060010-service","send","glueAction.do");
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body>
- <button id="button1" style="left:655px; top:20px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_find.GIF; ">
- <caption>查询</caption>
- </button>
- <button id="button2" style="left:742px; top:20px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_save.GIF; ">
- <caption>保存</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <button id="button3" style="left:829px; top:20px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_exit.GIF; ">
- <caption>关闭</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();//关闭窗口
- ]]>
- </script>
- </button>
- <button id="button4" style="left:830px; top:50px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_save.GIF; ">
- <caption>发送</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- send();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/searchData/PROC_CD" appearance="minimal" style="left:126px; top:50px; 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>
- </choices>
- </select1>
- <input id="input1" ref="/root/searchData/TRAN_ID" format="999999-9999999" style="left:326px; top:50px; width:100px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/gridData/TranData_VO/TranData_Row" allowuserresize="false" backcoloralternate="#eaf4fe" caption="选择^TRANSACTION ID^TRANSACTION DESC^DATA^TC_PROC_CD|^TRANSACTION ID^TRANSACTION DESC^DATA^TC_PROC_CD" colsep="^" colwidth="38, 144, 154, 462, 58" defaultrows="10" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:35px; top:75px; width:860px; height:485px; font-family:宋体; font-size:11pt; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col disabled="true" ref="TC_ID" type="input"/>
- <col disabled="true" ref="TC_DESC" type="input"/>
- <col disabled="true" ref="TC_DATA" type="input" style="text-align:left; "/>
- <col disabled="true" ref="TC_PROC_CD" type="input"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- datagrid1.isReadOnly(datagrid1.row,datagrid1.colRef("TC_DESC"),datagrid1.row,datagrid1.colRef("TC_PROC_CD")) = false;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- datagrid1.isReadOnly(datagrid1.row,datagrid1.colRef("TC_DESC"),datagrid1.row,datagrid1.colRef("TC_PROC_CD")) = true;
- datagrid1.rowStatus(datagrid1.row) = 0;
- model1.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button5" style="left:620px; top:55px; width:100px; height:20px; background-image:../../images/btn_save.GIF; ">
- <caption>添加行</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid1.addrow();
- var recordRows = datagrid1.row - datagrid1.fixedRows + 1;
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) = "Y";
- ]]>
- </script>
- </button>
- <button id="button6" style="left:695px; top:55px; width:100px; height:20px; background-image:../../images/btn_save.GIF; ">
- <caption>删除行</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid1.removerow();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell" style="left:35px; top:50px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">工序</caption>
- <caption id="caption1" class="cell" style="left:235px; top:50px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">TC ID</caption>
- </xhtml:body>
- </xhtml:html>
|