UIH090130.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[系统管理>>问题反馈>>重要信息发布(UIH090130)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <datagrid1/>
  14. <searchData>
  15. <Ftime/>
  16. <Ttime/>
  17. <SECTION/>
  18. <CRASH/>
  19. <EFFECTIVE/>
  20. <TIME/>
  21. <INFO/>
  22. <MARK/>
  23. </searchData>
  24. <SEQ_NO_U/>
  25. <FB_TIME_U/>
  26. </root>
  27. </instance>
  28. </model>
  29. <script type="javascript" src="../../js/boaMsg.js"/>
  30. <script type="javascript" src="../../js/boaCommon.js"/>
  31. <script type="javascript">
  32. <![CDATA[
  33. function InitParams(node) {
  34. if (typeof node == "undefined" && typeof node != "object") return;
  35. model.removenode("/root/initData/rcvInfo");
  36. model.makeNode("/root/initData/rcvInfo");
  37. var nodeList = node.childNodes;
  38. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  39. for (var i = 0; i < nodeList.length; i++)
  40. node.appendChild(nodeList.item(i));
  41. }
  42. function Init(node)
  43. {
  44. var vDate = commCurDate('ymd');
  45. model.setValue("/root/searchData/Ftime",vDate);
  46. model.setValue("/root/searchData/Ttime",vDate);
  47. model.refresh();
  48. InitParams(node);
  49. }
  50. function excelExport(){
  51. return datagrid1;
  52. }
  53. function find(){
  54. model.removenode("/root/reqData");
  55. model.makeNode("/root/reqData");
  56. model.removenode("/root/datagrid1");
  57. model.makeNode("/root/datagrid1");
  58. commSendReq("/root/searchData");
  59. commSubmit("UIH090130-service", "find", "glueAction.do");
  60. commAppendData("/root/datagrid1/ImportInfo_VO","/root/resData/ImportInfo_VO");
  61. model.refresh();
  62. }
  63. function save(){
  64. model.removenode("/root/reqData");
  65. model.makeNode("/root/reqData");
  66. model.removenode("/root/datagrid1");
  67. model.makeNode("/root/datagrid1");
  68. //这里要给出标志为信息,1为新的信息插入、2为有效标志取消
  69. model.setValue("/root/searchData/MARK","1");
  70. model.refresh();
  71. commSendReq("/root/searchData");
  72. //这里加入登录用户名,会不会与已有的initData冲突
  73. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  74. commSubmit("UIH090130-service", "save", "glueAction.do");
  75. commAppendData("/root/datagrid1/ImportInfo_VO","/root/resData/ImportInfo_VO");
  76. model.refresh();
  77. }
  78. //无效处理
  79. function update(){
  80. var nodeSet1 = datagrid1.nodeset;
  81. for(var i=0;i<datagrid1.rows;i++){
  82. var CHK = model.getValue(nodeSet1+"["+i+"]/CHK");
  83. if(CHK == "Y"){
  84. var SEQ_NO = model.getValue(nodeSet1+"["+i+"]/SEQ_NO");
  85. var FB_TIME = model.getValue(nodeSet1+"["+i+"]/FB_TIME");
  86. model.setValue("/root/SEQ_NO_U",SEQ_NO);
  87. model.setValue("/root/FB_TIME_U",FB_TIME);
  88. //这里要给出标志为信息,1为新的信息插入、2为有效标志取消
  89. model.setValue("/root/searchData/MARK","2");
  90. model.refresh();
  91. model.duplicate("/root/reqData","/root/SEQ_NO_U");
  92. model.duplicate("/root/reqData","/root/FB_TIME_U");
  93. model.duplicate("/root/reqData",""/root/searchData/MARK);
  94. commSubmit("UIH090130-service", "save", "glueAction.do");
  95. commAppendData("/root/datagrid1/ImportInfo_VO","/root/resData/ImportInfo_VO");
  96. model.refresh();
  97. }
  98. }
  99. }
  100. ]]>
  101. </script>
  102. </xhtml:head>
  103. <xhtml:body>
  104. <caption id="caption1" class="cell" style="left:0px; top:0px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">发布时间</caption>
  105. <line id="line1" style="x1:170px; y1:10px; x2:185px; y2:10px; "/>
  106. <input id="input1" ref="/root/searchData/Ftime" inputtype="date" format="yyyy-mm-dd" style="left:77px; top:0px; width:93px; height:20px; "/>
  107. <input id="input2" ref="/root/searchData/Ttime" inputtype="date" format="yyyy-mm-dd" style="left:185px; top:0px; width:95px; height:20px; "/>
  108. <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; ">
  109. <col checkvalue="Y,N" ref="CHK" type="radio" visibility="hidden"/>
  110. <col ref="SEQ_NO"/>
  111. <col ref="SECTION"/>
  112. <col ref="FB_TIME" format="yyyy-mm-dd"/>
  113. <col ref="INFO"/>
  114. <col ref="CRASH"/>
  115. <col ref="EFFECTIVE"/>
  116. <col ref="TIME" format="yyyy-mm-dd"/>
  117. <col ref="REG"/>
  118. </datagrid>
  119. <caption id="caption2" class="cell" style="left:285px; top:0px; width:95px; height:20px; font-weight:bold; border-color:#000000; ">发布部门(人)</caption>
  120. <input id="input3" ref="/root/searchData/SECTION" maxlength="20" style="left:380px; top:0px; width:120px; height:20px; background-color:#ffff00; "/>
  121. <caption id="caption3" class="cell" style="left:505px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">紧急程度</caption>
  122. <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; ">
  123. <choices>
  124. <item>
  125. <label>普通</label>
  126. <value>1</value>
  127. </item>
  128. <item>
  129. <label>重要</label>
  130. <value>2</value>
  131. </item>
  132. <item>
  133. <label>紧急</label>
  134. <value>3</value>
  135. </item>
  136. </choices>
  137. </select1>
  138. <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; ">
  139. <choices>
  140. <item>
  141. <label>有效</label>
  142. <value>Y</value>
  143. </item>
  144. <item>
  145. <label>无效</label>
  146. <value>N</value>
  147. </item>
  148. </choices>
  149. </select1>
  150. <caption id="caption4" class="cell" style="left:635px; top:0px; width:65px; height:20px; font-weight:bold; border-color:#000000; ">是否有效</caption>
  151. <caption id="caption5" class="cell" style="left:785px; top:0px; width:87px; height:20px; font-weight:bold; border-color:#000000; ">有效结束时间</caption>
  152. <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; "/>
  153. <caption id="caption6" class="cell" style="left:0px; top:25px; width:95px; height:20px; font-weight:bold; border-color:#000000; ">信息录入</caption>
  154. <input id="input5" ref="/root/searchData/INFO" maxlength="200" style="left:0px; top:45px; width:980px; height:55px; background-color:#ffff00; "/>
  155. <button id="button2" visibility="hidden" style="left:850px; top:25px; width:60px; height:20px; background-color:#c0c0c0; ">
  156. <caption>发布</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. save();
  160. ]]>
  161. </script>
  162. </button>
  163. <button id="button3" visibility="hidden" style="left:920px; top:25px; width:60px; height:20px; background-color:#c0c0c0; ">
  164. <caption>无效处理</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. //
  168. ]]>
  169. </script>
  170. </button>
  171. </xhtml:body>
  172. </xhtml:html>