SPAAA00600_포상처리.xrw 7.4 KB

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