| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?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>钢包烘烤实绩录入</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <ldNo/>
- <hkStart/>
- <hkEnd/>
- <hkStation>HK08</hkStation>
- <rowStatus>u</rowStatus>
- </formData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- init();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function init(){
- var parentWindow = window.opener;
- var ldNo = parentWindow.model.getValue("/root/tempData");
- model.setValue("/root/formData/ldNo",ldNo);
- model.setValue("/root/formData/hkStart",CurentTime());
- input1.refresh();input2.refresh();
- }
-
- function save(){
- commSendReq("/root/formData");
- commSubmit("UIG03COMM-service","LdHkUpdate","glueAction.do");
- alert("操作成功");
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/G02.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="300" pageheight="200">
- <button id="button1" style="left:200px; top:20px; width:85px; height:20px; background-image:../../images/btn_save1.gif; ">
- <caption>保 存</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell" style="left:40px; top:80px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤开始时间</caption>
- <caption id="caption11" class="cell" style="left:40px; top:50px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">钢包号</caption>
- <caption id="caption2" class="cell" style="left:40px; top:15px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤情况</caption>
- <caption id="caption3" class="cell" style="left:40px; top:140px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤站号</caption>
- <caption id="caption4" class="cell" style="left:40px; top:110px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤结束时间</caption>
- <input id="input1" ref="/root/formData/ldNo" disabled="true" style="left:135px; top:50px; width:125px; height:25px; "/>
- <select1 id="combo6" ref="/root/formData/hkStation" appearance="minimal" style="left:135px; top:140px; width:125px; height:25px; ">
- <choices>
- <item>
- <label>1#烘烤站</label>
- <value>HK01</value>
- </item>
- <item>
- <label>2#烘烤站</label>
- <value>HK02</value>
- </item>
- <item>
- <label>3#烘烤站</label>
- <value>HK03</value>
- </item>
- <item>
- <label>4#烘烤站</label>
- <value>HK04</value>
- </item>
- <item>
- <label>5#烘烤站</label>
- <value>HK05</value>
- </item>
- <item>
- <label>6#烘烤站</label>
- <value>HK06</value>
- </item>
- <item>
- <label>7#烘烤站</label>
- <value>HK07</value>
- </item>
- <item>
- <label>8#烘烤站</label>
- <value>HK08</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/formData/hkStart" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:135px; top:80px; width:125px; height:25px; "/>
- <input id="input3" ref="/root/formData/hkEnd" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:135px; top:110px; width:125px; height:25px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tempStr = model.getValue("/root/formData/hkEnd").toString();
- var startTime = model.getValue("/root/formData/hkStart");
- if(tempStr.length == 8){
- var hkEndTime = tempStr + "" + startTime.substr(8,6)
- model.setValue("/root/formData/hkEnd",hkEndTime);
- input3.refresh();
- }
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|