ce9d047feab510c2d4c5b03513c73461f2869a09.svn-base 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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[系统管理>>问题反馈]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <datagrid1/>
  12. <newElement/>
  13. <interface>
  14. <REG_ID/>
  15. <dept/>
  16. <QUESTION_CD/>
  17. <deptList/>
  18. <QUESTION/>
  19. </interface>
  20. <formData>
  21. <stDate/>
  22. <endDate/>
  23. <ANSWER_TP/>
  24. </formData>
  25. </root>
  26. </instance>
  27. </model>
  28. <script type="javascript" src="../../js/boaCommon.js"/>
  29. <script type="javascript" src="../../js/b01.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. function Init(node)
  33. {
  34. model.makeValue("/root/interface/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  35. model.removenode("/root/reqData");
  36. model.makeNode("/root/reqData");
  37. //无条件查询,获取所有记录
  38. commSubmit("UI_QUESTION_COMMON-service" , "findD" , "glueAction.do");
  39. model.copyNode("/root/interface/deptList" , "/root/resData/DeptResult_VO");
  40. model.setValue("/root/formData/stDate", commLateDate(-10));
  41. model.setValue("/root/formData/endDate", commLateDate(+10));
  42. model.refresh();
  43. }
  44. function find()
  45. {
  46. model.removenode("/root/reqData");
  47. model.makeNode("/root/reqData");
  48. //无条件查询,获取所有记录
  49. commSendReq("/root/formData");
  50. commSubmit("UI_QUESTION_COMMON-service" , "find" , "glueAction.do");
  51. model.copyNode("/root/datagrid1" , "/root/resData/QuestionResult_VO");
  52. model.refresh();
  53. }
  54. function save()
  55. {
  56. model.removenode("/root/reqData");
  57. model.makeNode("/root/reqData");
  58. commMultiUpdate(datagrid1,"/root/reqData" ,"A", true, "rowStatus");
  59. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  60. commSubmit("UIB010170-service" , "save" , "glueAction.do");
  61. model.refresh();
  62. datagrid1.clearStatus();
  63. }
  64. ]]>
  65. </script>
  66. </xhtml:head>
  67. <xhtml:body pagewidth="980" pageheight="620">
  68. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  69. <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  70. <caption id="caption2" class="cell" style="left:0px; top:5px; width:120px; height:20px; text-align:center; ">登记时间</caption>
  71. <input id="input2" ref="/root/formData/stDate" inputtype="date" style="left:140px; top:5px; width:100px; height:20px; border-color:#000000; border-style:solid; "/>
  72. <caption id="caption1" style="left:243px; top:10px; width:20px; height:15px; ">~</caption>
  73. <datagrid id="datagrid1" nodeset="/root/datagrid1/QuestionResult_Row" allowuserresize="true" caption="选择^问题^问题反馈^登记人^登记单位^登记时间^反馈单位^解决人^解决时间" colsep="^" colwidth="50, 200, 200, 88, 100, 75, 88, 100, 75, 100, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:35px; width:980px; height:585px; border-color:#000000; border-style:solid; ">
  74. <col checkvalue="Y,N" type="radio"/>
  75. <col editable="false" ref="QUESTION" type="input" style="background-color:#ffffff; "/>
  76. <col editable="false" ref="ANSWER" type="input" style="background-color:#ccffcc; "/>
  77. <col editable="false" ref="REG_ID" type="input" style="background-color:#ffffff; "/>
  78. <col editable="false" ref="QUE_DEPT" type="input" style="background-color:#ffffff; "/>
  79. <col editable="false" ref="REG_TIME" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  80. <col editable="false" ref="ANS_DEPT" type="input" style="background-color:#ffffff; "/>
  81. <col editable="false" ref="LINK_ID" type="input" style="background-color:#ccffcc; "/>
  82. <col editable="false" ref="ANSWER_TIME" type="input" format="yyyy-mm-dd" style="background-color:#ffffff; "/>
  83. <col editable="false" ref="QUESTION_CD" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  84. <col ref="ANSWER_TP" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  85. <script type="javascript" ev:event="onentercell">
  86. <![CDATA[
  87. datagrid1.editCell();
  88. ]]>
  89. </script>
  90. </datagrid>
  91. <input id="input1" ref="/root/formData/endDate" inputtype="date" style="left:260px; top:5px; width:100px; height:20px; border-color:#000000; border-style:solid; "/>
  92. <button id="button3" style="left:760px; top:5px; width:75px; height:20px; background-image:../../images/btn_add.gif; ">
  93. <caption>增加</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. var vleft = window.screenLeft+window.width/2-150; //- 355;
  97. var vtop = window.screenTop+window.height/2-150; //- 250;
  98. window.load("./_UI_QUESTION_COMMON_CREATE.xrw",
  99. "modal",
  100. "",
  101. "left:"+vleft+"; top:"+vtop+"; width:300; height:300; sysmenu:visible; min:visible; max:true; resize:true; caption:hidden;",
  102. "/root/interface", "/root/rec");
  103. find();
  104. ]]>
  105. </script>
  106. </button>
  107. <button id="button4" style="left:835px; top:5px; width:70px; height:20px; background-image:../../images/btn_move.gif; ">
  108. <caption>删除</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. var deleteRow = 0;
  112. for(var i = 1;i < datagrid1.rows;i++)
  113. {
  114. if(datagrid1.valueMatrix(i,0) == "Y")
  115. {
  116. deleteRow = i;
  117. break;
  118. }
  119. }
  120. if(deleteRow != 0)
  121. {
  122. model.removenode("/root/reqData");
  123. model.makeNode("/root/reqData");
  124. model.makeValue("/root/reqData/flag","d");
  125. model.makeValue("/root/reqData/QUESTION_CD",datagrid1.valueMatrix(i,datagrid1.colRef("QUESTION_CD")));
  126. commSubmit("UI_QUESTION_COMMON-service" , "save" , "glueAction.do");
  127. model.refresh();
  128. find();
  129. }
  130. ]]>
  131. </script>
  132. </button>
  133. <button id="button2" style="left:905px; top:5px; width:70px; height:20px; background-image:../../images/btn_move.gif; ">
  134. <caption>处理</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. var deleteRow = 0;
  138. for(var i = 1;i < datagrid1.rows;i++)
  139. {
  140. if(datagrid1.valueMatrix(i,0) == "Y")
  141. {
  142. deleteRow = i;
  143. break;
  144. }
  145. }
  146. if(deleteRow != 0)
  147. {
  148. model.setValue("/root/interface/QUESTION_CD",datagrid1.valueMatrix(i,datagrid1.colRef("QUESTION_CD")));
  149. model.setValue("/root/interface/QUESTION"," "+datagrid1.valueMatrix(i,datagrid1.colRef("QUESTION")));
  150. var vleft = window.screenLeft+window.width/2-200; //- 355;
  151. var vtop = window.screenTop+window.height/2-200; //- 250;
  152. window.load("./_UI_QUESTION_COMMON_ANS.xrw",
  153. "modal",
  154. "",
  155. "left:"+vleft+"; top:"+vtop+"; width:400; height:400; sysmenu:visible; min:visible; max:true; resize:true; caption:hidden;",
  156. "/root/interface", "/root/rec");
  157. find();
  158. }
  159. /*model.removenode("/root/reqData");
  160. model.makeNode("/root/reqData");
  161. model.makeValue("/root/reqData/flag","d");
  162. model.makeValue("/root/reqData/QUESTION_CD",datagrid1.valueMatrix(i,datagrid1.colRef("QUESTION_CD")));
  163. commSubmit("UI_QUESTION_COMMON-service" , "save" , "glueAction.do");
  164. model.refresh();*/
  165. ]]>
  166. </script>
  167. </button>
  168. <select1 id="combo1" ref="/root/formData/ANSWER_TP" appearance="minimal" style="left:505px; top:5px; width:60px; height:20px; ">
  169. <choices>
  170. <item>
  171. <label>全部</label>
  172. <value/>
  173. </item>
  174. <item>
  175. <label>已解决</label>
  176. <value>Y</value>
  177. </item>
  178. <item>
  179. <label>未解决</label>
  180. <value>N</value>
  181. </item>
  182. </choices>
  183. </select1>
  184. <caption id="caption3" class="cell" style="left:400px; top:5px; width:85px; height:20px; text-align:center; ">状态</caption>
  185. </xhtml:body>
  186. </xhtml:html>