SPAAA00900_수혜처리.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. <send>
  10. <savedata/>
  11. </send>
  12. <main>
  13. <benfsource>
  14. <voluntrid/>
  15. <prizbenfflag/>
  16. <prizbenfdd/>
  17. <benfflagcd/>
  18. <prizflagcd/>
  19. <prizbenfrem/>
  20. <status/>
  21. </benfsource>
  22. <returnsts>
  23. <statusinfo>
  24. <restatus/>
  25. <voluntrid/>
  26. <actstatflag/>
  27. <restatusdd/>
  28. </statusinfo>
  29. </returnsts>
  30. </main>
  31. <init>
  32. <posteam1>
  33. <A0359/>
  34. </posteam1>
  35. <posteam2>
  36. <A0360/>
  37. </posteam2>
  38. <benfcd>
  39. <A0364>
  40. </A0364>
  41. </benfcd>
  42. </init>
  43. <hidden>
  44. <init>
  45. <comcd/>
  46. </init>
  47. </hidden>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. fInit();
  53. ]]>
  54. </script>
  55. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  56. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  57. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  58. <submission id="TXAAA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  66. </xhtml:head>
  67. <script type="javascript">
  68. <![CDATA[
  69. // 초기값
  70. function fInit()
  71. {
  72. /*if (checkOpener()) {
  73. var benfdd = opener.javascript.getParameter("benfdd");
  74. var posteam1 = opener.javascript.getParameter("posteam1");
  75. var posteam2 = opener.javascript.getParameter("posteam2");
  76. } else {
  77. messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  78. }
  79. // 공통코드 셋팅
  80. zbcfGetCodeList(new Array("A0359", "A0360", "A0364"), new Array( "/root/init/posteam1", "/root/init/posteam2", "/root/init/benfcd") , true);
  81. //화면 오픈시 간병인명에 이름 셋팅
  82. //alert(sinursnm);
  83. model.setValue("/root/main/benfinfo/benfdd",benfdd);
  84. model.setValue("/root/main/benfinfo/posteam1",posteam1);
  85. model.setValue("/root/main/benfinfo/posteam2",posteam2);
  86. model.refresh(); */
  87. zbcfGetCodeList(new Array("A0364"), new Array( "/root/hidden/init/comcd") , true);
  88. zbcfGetKindCodeList(new Array("A0021"), new Array("A0364"),new Array("/root/hidden/init/comcd"),true,'','');
  89. model.refresh();
  90. }
  91. //확인
  92. function fSendParam()
  93. {
  94. if(model.getValue("/root/main/benfsource/prizbenfdd")=="")
  95. {
  96. //저장시 수혜일이나 수혜명이 비어있으면
  97. messageBox("수혜일은","I003");
  98. return;
  99. }
  100. if(model.getValue("/root/main/benfsource/benfflagcd")=='')
  101. { //저장시 수혜일이나 수혜명이 비어있으면
  102. messageBox("수혜명은","I003");
  103. return;
  104. }
  105. model.removeNodeset("/root/send/savedata");
  106. model.makeNode("/root/send/savedata");
  107. model.copyNode("/root/send/savedata","/root/main/benfsource");
  108. if(submit("TXAAA00601")==true)
  109. {
  110. if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="P")
  111. {
  112. messageBox("활동기간 정보가","I004");
  113. return;
  114. }
  115. else
  116. {
  117. messageBox("수혜 처리가","I002");
  118. opener.model.makeValue("/root/benfsource/status","u");
  119. opener.model.makeValue("/root/benfsource/reflag","c");
  120. opener.model.refresh();
  121. window.close();
  122. }
  123. }
  124. }
  125. function fDelBenf()
  126. {
  127. var btn=messageBox("수혜내역을","Q001");
  128. if(btn=='6')
  129. {
  130. if(model.getValue("/root/main/benfsource/status")=="i") // // 등록을 위해 팝업창을 열었을 경우에는 삭제할 수 없다.
  131. {
  132. messageBox("삭제할 수혜 처리 내역이","I004");
  133. return;
  134. }
  135. model.makeValue("/root/main/benfsource/status","d");
  136. model.removeNodeset("/root/send/savedata");
  137. model.makeNode("/root/send/savedata");
  138. model.copyNode("/root/send/savedata","/root/main/benfsource");
  139. if(submit("TXAAA00601")==true)
  140. {
  141. messageBox("수혜 삭제가","I002");
  142. opener.model.makeValue("/root/benfsource/reflag","c");
  143. opener.model.refresh();
  144. }
  145. window.close();
  146. }
  147. else if(btn=='7')
  148. {
  149. return;
  150. }
  151. }
  152. ]]>
  153. </script>
  154. <xhtml:body pagewidth="465" pageheight="132" guideline="1,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  155. <group id="grp_btn" scroll="auto" style="left:0px; top:105px; width:449px; height:27px; ">
  156. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:448px; y2:0px; "/>
  157. <button id="btn_cancel" class="btn4_letter2" style="left:392px; top:5px; width:56px; height:22px; ">
  158. <caption>취소</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. opener.javascript.setParameter("flag", "N");
  162. //opener.model.makeValue("/root/benfsource/status","r"); // 취소 상태값인 r 저장
  163. model.close();
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="button1" class="btn4_letter2" style="left:273px; top:5px; width:56px; height:22px; ">
  168. <caption>저장</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. fSendParam();
  172. //model.close();
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_confirm" class="btn4_letter2" style="left:333px; top:5px; width:56px; height:22px; ">
  177. <caption>삭제</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fDelBenf();
  181. ]]>
  182. </script>
  183. </button>
  184. </group>
  185. <group id="group1" scroll="auto" style="left:0px; top:0px; width:449px; height:105px; ">
  186. <line id="line8" class="line_2" style="x1:0px; y1:22px; x2:446px; y2:22px; "/>
  187. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; vertical-align:middle; ">수혜일</caption>
  188. <caption id="caption6" class="cell_1" style="left:0px; top:24px; width:85px; height:76px; vertical-align:middle; ">비고</caption>
  189. <caption id="caption8" class="cell_1" style="left:198px; top:0px; width:85px; height:23px; vertical-align:middle; ">수혜명</caption>
  190. <select1 id="cmb_posteam2" ref="/root/main/benfsource/benfflagcd" class="combo_search" disabled="false" navindex="2" appearance="minimal" style="left:285px; top:2px; width:160px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/hidden/init/comcd/A0021A0364">
  193. <label ref="cdnm"/>
  194. <value ref="cdid"/>
  195. </itemset>
  196. </choices>
  197. </select1>
  198. <input id="ipt_benfdd" ref="/root/main/benfsource/prizbenfdd" class="input_default" disabled="false" navindex="1" inputtype="date" style="left:88px; top:2px; width:107px; height:19px; "/>
  199. <textarea id="tar_rem" ref="/root/main/benfsource/prizbenfrem" navindex="3" maxlength="33" style="left:88px; top:25px; width:357px; height:76px; "/>
  200. </group>
  201. </xhtml:body>
  202. </xhtml:html>