| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <?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[系统管理>>问题反馈>>重要信息发布(UIH090130)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <datagrid1/>
- <searchData>
- <Ftime/>
- <Ttime/>
- <SECTION/>
- <CRASH/>
- <EFFECTIVE/>
- <TIME/>
- <INFO/>
- <MARK/>
- </searchData>
- <SEQ_NO_U/>
- <FB_TIME_U/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function InitParams(node) {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++)
- node.appendChild(nodeList.item(i));
- }
-
- function Init(node)
- {
- var vDate = commCurDate('ymd');
- model.setValue("/root/searchData/Ftime",vDate);
- model.setValue("/root/searchData/Ttime",vDate);
- model.refresh();
- InitParams(node);
- }
-
- function excelExport(){
- return datagrid1;
- }
-
- function find(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- commSendReq("/root/searchData");
-
- commSubmit("UIH090130-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/ImportInfo_VO","/root/resData/ImportInfo_VO");
-
- model.refresh();
- }
-
- function save(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //这里要给出标志为信息,1为新的信息插入、2为有效标志取消
- model.setValue("/root/searchData/MARK","1");
- model.refresh();
-
- commSendReq("/root/searchData");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- commSubmit("UIH090130-service", "save", "glueAction.do");
-
- commAppendData("/root/datagrid1/ImportInfo_VO","/root/resData/ImportInfo_VO");
-
- model.refresh();
- }
-
- //无效处理
- function update(){
- var nodeSet1 = datagrid1.nodeset;
- for(var i=0;i<datagrid1.rows;i++){
- var CHK = model.getValue(nodeSet1+"["+i+"]/CHK");
-
- if(CHK == "Y"){
- var SEQ_NO = model.getValue(nodeSet1+"["+i+"]/SEQ_NO");
- var FB_TIME = model.getValue(nodeSet1+"["+i+"]/FB_TIME");
-
- model.setValue("/root/SEQ_NO_U",SEQ_NO);
- model.setValue("/root/FB_TIME_U",FB_TIME);
-
- //这里要给出标志为信息,1为新的信息插入、2为有效标志取消
- model.setValue("/root/searchData/MARK","2");
- model.refresh();
-
- model.duplicate("/root/reqData","/root/SEQ_NO_U");
- model.duplicate("/root/reqData","/root/FB_TIME_U");
- model.duplicate("/root/reqData",""/root/searchData/MARK);
-
- commSubmit("UIH090130-service", "save", "glueAction.do");
-
- commAppendData("/root/datagrid1/ImportInfo_VO","/root/resData/ImportInfo_VO");
-
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption1" class="cell" style="left:0px; top:0px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">发布时间</caption>
- <line id="line1" style="x1:170px; y1:10px; x2:185px; y2:10px; "/>
- <input id="input1" ref="/root/searchData/Ftime" inputtype="date" format="yyyy-mm-dd" style="left:77px; top:0px; width:93px; height:20px; "/>
- <input id="input2" ref="/root/searchData/Ttime" inputtype="date" format="yyyy-mm-dd" style="left:185px; top:0px; width:95px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/ImportInfo_VO/ImportInfo_Row" caption="选择^编号^发布部门^发布时间^信息^紧急程度^是否有效^有效结束时间^录入人" colsep="^" colwidth="38, 50, 100, 100, 337, 80, 80, 100, 93" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:980px; height:520px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio" visibility="hidden"/>
- <col ref="SEQ_NO"/>
- <col ref="SECTION"/>
- <col ref="FB_TIME" format="yyyy-mm-dd"/>
- <col ref="INFO"/>
- <col ref="CRASH"/>
- <col ref="EFFECTIVE"/>
- <col ref="TIME" format="yyyy-mm-dd"/>
- <col ref="REG"/>
- </datagrid>
- <caption id="caption2" class="cell" style="left:285px; top:0px; width:95px; height:20px; font-weight:bold; border-color:#000000; ">发布部门(人)</caption>
- <input id="input3" ref="/root/searchData/SECTION" maxlength="20" style="left:380px; top:0px; width:120px; height:20px; background-color:#ffff00; "/>
- <caption id="caption3" class="cell" style="left:505px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">紧急程度</caption>
- <select1 id="combo2" ref="/root/searchData/CRASH" appearance="minimal" editmode="input" style="left:565px; top:0px; width:65px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <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="combo1" ref="/root/searchData/EFFECTIVE" appearance="minimal" editmode="input" style="left:700px; top:0px; width:78px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>有效</label>
- <value>Y</value>
- </item>
- <item>
- <label>无效</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="cell" style="left:635px; top:0px; width:65px; height:20px; font-weight:bold; border-color:#000000; ">是否有效</caption>
- <caption id="caption5" class="cell" style="left:785px; top:0px; width:87px; height:20px; font-weight:bold; border-color:#000000; ">有效结束时间</caption>
- <input id="input4" ref="/root/searchData/TIME" inputtype="date" format="yyyy-mm-dd" style="left:872px; top:0px; width:103px; height:20px; background-color:#ffff99; "/>
- <caption id="caption6" class="cell" style="left:0px; top:25px; width:95px; height:20px; font-weight:bold; border-color:#000000; ">信息录入</caption>
- <input id="input5" ref="/root/searchData/INFO" maxlength="200" style="left:0px; top:45px; width:980px; height:55px; background-color:#ffff00; "/>
- <button id="button2" visibility="hidden" style="left:850px; top:25px; width:60px; height:20px; background-color:#c0c0c0; ">
- <caption>发布</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:920px; top:25px; width:60px; height:20px; background-color:#c0c0c0; ">
- <caption>无效处理</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|