SMPMC02800_민원처리내역.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>민원처리내역</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list1>
  11. <grdcivilaplcnts>
  12. <civilrgstdd/>
  13. <civilaplcnts/>
  14. </grdcivilaplcnts>
  15. </list1>
  16. <list2>
  17. <grdtretfact>
  18. <civilaplcnts/>
  19. <civilrgstdd/>
  20. </grdtretfact>
  21. </list2>
  22. <list3>
  23. <grdrsltcnts>
  24. <civilrgstdd/>
  25. <civilaplcnts/>
  26. </grdrsltcnts>
  27. </list3>
  28. </main>
  29. <send>
  30. <data1>
  31. <s_cacm>
  32. <pid/>
  33. <civilgenrdd/>
  34. <civilseqno/>
  35. <civilmngtno/>
  36. <instcd/>
  37. <civiltretflag/>
  38. <civilaplcnts/>
  39. <civilrgstdd/>
  40. <fstrgstrid/>
  41. <fstrgstdt/>
  42. <lastupdtrid/>
  43. <lastupdtdt/>
  44. </s_cacm>
  45. <grd_cacm/>
  46. </data1>
  47. <data2>
  48. <pid/>
  49. <civilgenrdd/>
  50. <civilseqno/>
  51. </data2>
  52. </send>
  53. <hidden>
  54. <capm>
  55. <pop_capm/>
  56. </capm>
  57. <cnts/>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <submission id="TXPMC02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1"/>
  62. <submission id="TRPMC02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/main"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. fCivilTretSpecRef();
  72. ]]>
  73. </script>
  74. <script type="javascript">
  75. <![CDATA[
  76. // 선택된 그리드 아이디
  77. var gSelectedGrid = "";
  78. function fCivilTretSpecRef(){
  79. model.setValue("/root/send/data2/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
  80. model.setValue("/root/send/data2/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
  81. model.setValue("/root/send/data2/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
  82. submit("TRPMC02801");
  83. grd_civilaplcnts.resizeCells();
  84. grd_civildecicnts.resizeCells();
  85. grd_civilmeasfact.resizeCells();
  86. model.resetInstanceNode("/root/send/data1");
  87. model.resetInstanceNode("/root/send/data2");
  88. model.refresh();
  89. }
  90. // 민원내용저장
  91. function fSetCivilAplCnts() {
  92. model.resetInstanceNode("/root/send/data1");
  93. var cur_row = grd_civilaplcnts.row;
  94. model.setValue("/root/send/data1/s_cacm/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
  95. model.setValue("/root/send/data1/s_cacm/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
  96. model.setValue("/root/send/data1/s_cacm/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
  97. model.setValue("/root/send/data1/s_cacm/civiltretflag" , "1");
  98. model.setValue("/root/send/data1/grd_cacm" , grd_civilaplcnts.getUpdateData());
  99. //model.setValue("/root/send/data1/s_cacm/civilrgstdd",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilrgstdd"));
  100. //model.setValue("/root/send/data1/s_cacm/civilaplcnts",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilaplcnts"));
  101. submit("TXPMC02801");
  102. }
  103. // 처리내용저장
  104. function fSetCivilMeasFact() {
  105. model.resetInstanceNode("/root/send/data1");
  106. var cur_row = grd_civilmeasfact.row;
  107. model.setValue("/root/send/data1/s_cacm/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
  108. model.setValue("/root/send/data1/s_cacm/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
  109. model.setValue("/root/send/data1/s_cacm/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
  110. model.setValue("/root/send/data1/s_cacm/civiltretflag" , "2");
  111. model.setValue("/root/send/data1/grd_cacm" , grd_civilmeasfact.getUpdateData());
  112. //model.setValue("/root/send/data1/s_cacm/civilrgstdd",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilrgstdd"));
  113. //model.setValue("/root/send/data1/s_cacm/civilaplcnts",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilaplcnts"));
  114. submit("TXPMC02801");
  115. }
  116. // 결론저장
  117. function fSetCivilDeciCnts() {
  118. model.resetInstanceNode("/root/send/data1");
  119. var cur_row = grd_civildecicnts.row;
  120. model.setValue("/root/send/data1/s_cacm/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
  121. model.setValue("/root/send/data1/s_cacm/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
  122. model.setValue("/root/send/data1/s_cacm/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
  123. model.setValue("/root/send/data1/s_cacm/civiltretflag" , "3");
  124. model.setValue("/root/send/data1/grd_cacm",grd_civildecicnts.getUpdateData());
  125. //model.setValue("/root/send/data1/s_cacm/civilrgstdd",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilrgstdd"));
  126. //model.setValue("/root/send/data1/s_cacm/civilaplcnts",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilaplcnts"));
  127. submit("TXPMC02801");
  128. }
  129. ]]>
  130. </script>
  131. </xhtml:head>
  132. <xhtml:body pagewidth="800" pageheight="860" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:0; ">
  133. <group id="group3" scroll="auto" style="left:0px; top:0px; width:776px; height:860px; ">
  134. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">민원내용</caption>
  135. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:776px; y2:25px; "/>
  136. <caption id="caption2" class="tit_2" style="left:5px; top:294px; width:95px; height:13px; ">민원답변</caption>
  137. <line id="line2" class="line_1" style="x1:0px; y1:309px; x2:776px; y2:309px; "/>
  138. <caption id="caption3" class="tit_2" style="left:5px; top:578px; width:95px; height:13px; ">개선사항</caption>
  139. <line id="line3" class="line_1" style="x1:0px; y1:593px; x2:776px; y2:593px; "/>
  140. <button id="button1" class="btn5_letter2" style="left:566px; top:5px; width:42px; height:19px; ">
  141. <caption>저장</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. fSetCivilAplCnts();
  145. fSetCivilMeasFact();
  146. fSetCivilDeciCnts();
  147. fCivilTretSpecRef();
  148. ]]>
  149. </script>
  150. </button>
  151. <button id="button2" class="btn2_letter3" style="left:611px; top:5px; width:53px; height:19px; ">
  152. <caption>행추가</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. grd_civilaplcnts.addItem();
  156. //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
  157. grd_civilaplcnts.selectionMode = "free";
  158. model.setValue("/root/main/list1/grdcivilaplcnts["+ (grd_civilaplcnts.rows - grd_civilaplcnts.fixedRows) +"]/civilrgstdd", getCurrentDate());
  159. ]]>
  160. </script>
  161. </button>
  162. <button id="button3" class="btn2_letter3" style="left:669px; top:5px; width:53px; height:19px; ">
  163. <caption>행삽입</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var cur_row = grd_civilaplcnts.row;
  167. if (cur_row == -1) {
  168. grd_civilaplcnts.addItem();
  169. grd_civilaplcnts.selectionMode = "free";
  170. model.setValue("/root/main/list1/grdcivilaplcnts["+ 1 +"]/civilrgstdd", getCurrentDate());
  171. } else {
  172. grd_civilaplcnts.insertItem(cur_row,"after");
  173. grd_civilaplcnts.selectionMode = "free";
  174. model.setValue("/root/main/list1/grdcivilaplcnts["+ (cur_row + 1) +"]/civilrgstdd", getCurrentDate());
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <button id="button4" class="btn2_letter3" style="left:723px; top:5px; width:53px; height:19px; ">
  180. <caption>행삭제</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var cur_row = grd_civilaplcnts.row;
  184. grd_civilaplcnts.deleteItem(cur_row);
  185. ]]>
  186. </script>
  187. </button>
  188. <button id="button5" class="btn5_letter2" style="left:566px; top:289px; width:42px; height:19px; ">
  189. <caption>저장</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. fSetCivilAplCnts();
  193. fSetCivilMeasFact();
  194. fSetCivilDeciCnts();
  195. fCivilTretSpecRef();
  196. ]]>
  197. </script>
  198. </button>
  199. <button id="button6" class="btn2_letter3" style="left:611px; top:289px; width:53px; height:19px; ">
  200. <caption>행추가</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. grd_civilmeasfact.addItem();
  204. //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
  205. grd_civilmeasfact.selectionMode = "free";
  206. model.setValue("/root/main/list2/grdtretfact["+ (grd_civilmeasfact.rows - grd_civilmeasfact.fixedRows) +"]/civilrgstdd", getCurrentDate());
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button7" class="btn2_letter3" style="left:669px; top:289px; width:53px; height:19px; ">
  211. <caption>행삽입</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var cur_row = grd_civilmeasfact.row;
  215. if (cur_row == -1) {
  216. grd_civilmeasfact.addItem();
  217. grd_civilmeasfact.selectionMode = "free";
  218. model.setValue("/root/main/list2/grdtretfact["+ 1 +"]/civilrgstdd", getCurrentDate());
  219. } else {
  220. grd_civilmeasfact.insertItem(cur_row,"after");
  221. grd_civilmeasfact.selectionMode = "free";
  222. model.setValue("/root/main/list2/grdtretfact["+ (cur_row + 1) +"]/civilrgstdd", getCurrentDate());
  223. }
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="button8" class="btn2_letter3" style="left:723px; top:289px; width:53px; height:19px; ">
  228. <caption>행삭제</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. var cur_row = grd_civilmeasfact.row;
  232. grd_civilmeasfact.deleteItem(cur_row);
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="button9" class="btn5_letter2" style="left:566px; top:573px; width:42px; height:19px; ">
  237. <caption>저장</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fSetCivilAplCnts();
  241. fSetCivilMeasFact();
  242. fSetCivilDeciCnts();
  243. fCivilTretSpecRef();
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="button10" class="btn2_letter3" style="left:611px; top:573px; width:53px; height:19px; ">
  248. <caption>행추가</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. grd_civildecicnts.addItem();
  252. //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
  253. grd_civildecicnts.selectionMode = "free";
  254. model.setValue("/root/main/list3/grdrsltcnts["+ (grd_civildecicnts.rows - grd_civildecicnts.fixedRows) +"]/civilrgstdd", getCurrentDate());
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="button11" class="btn2_letter3" style="left:669px; top:573px; width:53px; height:19px; ">
  259. <caption>행삽입</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. var cur_row = grd_civildecicnts.row;
  263. if (cur_row == -1) {
  264. grd_civildecicnts.addItem();
  265. grd_civildecicnts.selectionMode = "free";
  266. model.setValue("/root/main/list3/grdrsltcnts["+ 1 +"]/civilrgstdd", getCurrentDate());
  267. } else {
  268. grd_civildecicnts.insertItem(cur_row,"after");
  269. grd_civildecicnts.selectionMode = "free";
  270. model.setValue("/root/main/list3/grdrsltcnts["+ (cur_row + 1) +"]/civilrgstdd", getCurrentDate());
  271. }
  272. ]]>
  273. </script>
  274. </button>
  275. <button id="button12" class="btn2_letter3" style="left:723px; top:573px; width:53px; height:19px; ">
  276. <caption>행삭제</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. var cur_row = grd_civildecicnts.row;
  280. grd_civildecicnts.deleteItem(cur_row);
  281. ]]>
  282. </script>
  283. </button>
  284. <datagrid id="grd_civilaplcnts" nodeset="/root/main/list1/grdcivilaplcnts" autoresize="true" caption="입력일자^민원내용^담당자^caption1" colsep="^" colwidth="86, 580, 70, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:776px; height:250px; ">
  285. <col ref="civilrgstdd" type="inputdate"/>
  286. <col ref="civilaplcnts" type="input"/>
  287. <col ref="chrgernm"/>
  288. <col ref="civilmngtno" visibility="hidden"/>
  289. <script type="javascript" ev:event="ondblclick">
  290. <![CDATA[
  291. if (isDataCell() == true) {
  292. gSelectedGrid = "grd_civilaplcnts";
  293. caption62.value = "민원내용";
  294. model.setValue("/root/hidden/cnts", "");
  295. var cur_row = grd_civilaplcnts.row;
  296. if (cur_row >= 1) {
  297. model.setValue("/root/hidden/cnts", model.getValue("/root/main/list1/grdcivilaplcnts["+ (cur_row) +"]/civilaplcnts"));
  298. group2.visible = true;
  299. model.setFocus("textarea1");
  300. model.refresh();
  301. }
  302. }
  303. ]]>
  304. </script>
  305. </datagrid>
  306. <datagrid id="grd_civilmeasfact" nodeset="/root/main/list2/grdtretfact" autoresize="true" caption="입력일자^조치사항^담당자^caption1" colsep="^" colwidth="86, 580, 70, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:314px; width:776px; height:250px; ">
  307. <col ref="civilrgstdd" type="inputdate"/>
  308. <col ref="civilaplcnts" type="input"/>
  309. <col ref="chrgernm"/>
  310. <col ref="civilmngtno" visibility="hidden"/>
  311. <script type="javascript" ev:event="ondblclick">
  312. <![CDATA[
  313. if (isDataCell() == true) {
  314. gSelectedGrid = "grd_civilmeasfact";
  315. caption62.value = "조치사항";
  316. model.setValue("/root/hidden/cnts", "");
  317. var cur_row = grd_civilmeasfact.row;
  318. if (cur_row >= 1) {
  319. model.setValue("/root/hidden/cnts", model.getValue("/root/main/list2/grdtretfact["+ (cur_row) +"]/civilaplcnts"));
  320. group2.visible = true;
  321. model.setFocus("textarea1");
  322. model.refresh();
  323. }
  324. }
  325. ]]>
  326. </script>
  327. </datagrid>
  328. <datagrid id="grd_civildecicnts" nodeset="/root/main/list3/grdrsltcnts" autoresize="true" caption="입력일자^결론내용^담당자^caption1" colsep="^" colwidth="86, 580, 70, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:600px; width:776px; height:250px; ">
  329. <col ref="civilrgstdd" type="inputdate"/>
  330. <col ref="civilaplcnts" type="input"/>
  331. <col ref="chrgernm"/>
  332. <col ref="civilmngtno" visibility="hidden"/>
  333. <script type="javascript" ev:event="ondblclick">
  334. <![CDATA[
  335. if (isDataCell() == true) {
  336. gSelectedGrid = "grd_civildecicnts";
  337. caption62.value = "결론";
  338. model.setValue("/root/hidden/cnts", "");
  339. var cur_row = grd_civildecicnts.row;
  340. if (cur_row >= 1) {
  341. model.setValue("/root/hidden/cnts", model.getValue("/root/main/list3/grdrsltcnts["+ (cur_row) +"]/civilaplcnts"));
  342. group2.visible = true;
  343. model.setFocus("textarea1");
  344. model.refresh();
  345. }
  346. }
  347. ]]>
  348. </script>
  349. </datagrid>
  350. <group id="group2" visibility="hidden" style="left:5px; top:90px; width:765px; height:535px; ">
  351. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:760px; height:520px; "/>
  352. <textarea id="textarea1" ref="/root/hidden/cnts" editable="true" imemode="hangul" style="left:5px; top:30px; width:750px; height:485px; "/>
  353. <caption id="caption62" class="tit_2" style="left:5px; top:5px; width:133px; height:14px; font-family:돋움; vertical-align:middle; ">색션</caption>
  354. <button id="btn_close" class="btn2_letter2" style="left:715px; top:5px; width:44px; height:19px; ">
  355. <caption>닫기</caption>
  356. <script type="javascript" ev:event="DOMActivate">
  357. <![CDATA[
  358. model.setValue("/root/hidden/cnts", "");
  359. group2.visible = false;
  360. model.refresh();
  361. ]]>
  362. </script>
  363. </button>
  364. <button id="btn_apply" class="btn2_letter2" style="left:670px; top:5px; width:42px; height:19px; ">
  365. <caption>입력</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. var cur_row = -1;
  369. // 민원내용
  370. if (gSelectedGrid == "grd_civilaplcnts") {
  371. cur_row = grd_civilaplcnts.row;
  372. if (cur_row >= 1) {
  373. model.setValue("/root/main/list1/grdcivilaplcnts["+ (cur_row) +"]/civilaplcnts", model.getValue("/root/hidden/cnts"));
  374. grd_civilaplcnts.addStatus(cur_row, "update");
  375. grd_civilaplcnts.resizeCells();
  376. }
  377. }
  378. // 조치
  379. if (gSelectedGrid == "grd_civilmeasfact") {
  380. cur_row = grd_civilmeasfact.row;
  381. if (cur_row >= 1) {
  382. model.setValue("/root/main/list2/grdtretfact["+ (cur_row) +"]/civilaplcnts", model.getValue("/root/hidden/cnts"));
  383. grd_civilmeasfact.addStatus(cur_row, "update");
  384. grd_civilmeasfact.resizeCells();
  385. }
  386. }
  387. // 결론
  388. if (gSelectedGrid == "grd_civildecicnts") {
  389. cur_row = grd_civildecicnts.row;
  390. if (cur_row >= 1) {
  391. model.setValue("/root/main/list3/grdrsltcnts["+ (cur_row) +"]/civilaplcnts", model.getValue("/root/hidden/cnts"));
  392. grd_civildecicnts.addStatus(cur_row, "update");
  393. grd_civildecicnts.resizeCells();
  394. }
  395. }
  396. model.setValue("/root/hidden/cnts", "");
  397. group2.visible = false;
  398. model.refresh();
  399. ]]>
  400. </script>
  401. </button>
  402. </group>
  403. </group>
  404. </xhtml:body>
  405. </xhtml:html>