SPMNH04000_회원별 월 약정금액.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <monmtlist>
  11. <memno/>
  12. <membnm/>
  13. <sexage/>
  14. <paybankflag/>
  15. <amtyy/>
  16. <monamt/>
  17. </monmtlist>
  18. </main>
  19. <send>
  20. </send>
  21. <init>
  22. <A00001>
  23. <cdid/>
  24. <cdnm/>
  25. </A00001>
  26. <mondetl>
  27. <monamt/>
  28. </mondetl>
  29. </init>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. fGetCodeList( new Array("A00001"), new Array("/root/init"));//호스피스 코드 조회
  35. fRemoveNode(new Array("A00001"));//콤보 공백 제거
  36. getdate = getCurrentDate();
  37. var memno = opener.javascript.getParameter("memno");
  38. var membnm = opener.javascript.getParameter("membnm");
  39. var sexage = opener.javascript.getParameter("sexage");
  40. var paybankflag = opener.javascript.getParameter("paybankflag");
  41. var getdate = getCurrentDate();
  42. grd_monmtlist.valueMatrix(1,0) = memno;
  43. grd_monmtlist.valueMatrix(1,1) = membnm;
  44. grd_monmtlist.valueMatrix(1,2) = sexage;
  45. grd_monmtlist.valueMatrix(1,3) = paybankflag;
  46. grd_monmtlist.valueMatrix(1,4) = getdate.substring(0,4);
  47. grd_monmtlist.isReadOnly(1, 3) = true;
  48. model.refresh();
  49. model.removenode("/root/send");
  50. model.makeValue("/root/send/membno",grd_monmtlist.valueMatrix(1,0));
  51. model.makeValue("/root/send/amtyy", grd_monmtlist.valueMatrix(1,4));
  52. submit("TRMNH04001");
  53. grd_monmtlist.valueMatrix(1,5) = model.getValue("/root/init/mondetl/monamt");
  54. ]]>
  55. </script>
  56. <submission id="TRMNH00001" mediatype="application/x-www-form-urlencoded" method="post"/>
  57. <submission id="TXMNH04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  58. <submission id="TRMNH04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/mondetl"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH00001.js"/>
  64. </xhtml:head>
  65. <xhtml:body pagewidth="563" pageheight="110" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  66. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:489px; top:7px; width:56px; height:22px; ">
  67. <caption>닫기</caption>
  68. <script type="javascript" ev:event="DOMActivate">
  69. <![CDATA[
  70. window.close();
  71. ]]>
  72. </script>
  73. </button>
  74. <datagrid id="grd_monmtlist" nodeset="/root/main/monmtlist" caption="회원번호^회원명^S/A^입금은행^약정연도^월 약정금액" colsep="^" colwidth="87, 90, 84, 89, 92, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:1px; top:35px; width:544px; height:48px; ">
  75. <col ref="memno" style="text-align:center; "/>
  76. <col ref="membnm" style="text-align:center; "/>
  77. <col ref="sexage" style="text-align:center; "/>
  78. <col ref="paybankflag" type="combo">
  79. <choices>
  80. <itemset nodeset="/root/init/A00001">
  81. <label ref="cdnm"/>
  82. <value ref="cdid"/>
  83. </itemset>
  84. </choices>
  85. </col>
  86. <col ref="amtyy" type="combo" style="text-align:center; ">
  87. <choices>
  88. <item>
  89. <label>2000년</label>
  90. <value>2000</value>
  91. </item>
  92. <item>
  93. <label>2001년</label>
  94. <value>2001</value>
  95. </item>
  96. <item>
  97. <label>2002년</label>
  98. <value>2002</value>
  99. </item>
  100. <item>
  101. <label>2003년</label>
  102. <value>2003</value>
  103. </item>
  104. <item>
  105. <label>2004년</label>
  106. <value>2004</value>
  107. </item>
  108. <item>
  109. <label>2005년</label>
  110. <value>2005</value>
  111. </item>
  112. <item>
  113. <label>2006년</label>
  114. <value>2006</value>
  115. </item>
  116. <item>
  117. <label>2007년</label>
  118. <value>2007</value>
  119. </item>
  120. <item>
  121. <label>2008년</label>
  122. <value>2008</value>
  123. </item>
  124. <item>
  125. <label>2009년</label>
  126. <value>2009</value>
  127. </item>
  128. <item>
  129. <label>2010년</label>
  130. <value>2010</value>
  131. </item>
  132. <item>
  133. <label>2011년</label>
  134. <value>2011</value>
  135. </item>
  136. <item>
  137. <label>2012년</label>
  138. <value>2012</value>
  139. </item>
  140. <item>
  141. <label>2013년</label>
  142. <value>2013</value>
  143. </item>
  144. <item>
  145. <label>2014년</label>
  146. <value>2014</value>
  147. </item>
  148. <item>
  149. <label>2015년</label>
  150. <value>2015</value>
  151. </item>
  152. <item>
  153. <label>2016년</label>
  154. <value>2016</value>
  155. </item>
  156. <item>
  157. <label>2017년</label>
  158. <value>2017</value>
  159. </item>
  160. <item>
  161. <label>2018년</label>
  162. <value>2018</value>
  163. </item>
  164. <item>
  165. <label>2019년</label>
  166. <value>2019</value>
  167. </item>
  168. <item>
  169. <label>2020년</label>
  170. <value>2020</value>
  171. </item>
  172. </choices>
  173. </col>
  174. <col ref="monamt" type="input" format="#,###,###,###" maxlength="10" style="text-align:center; "/>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. if(grd_monmtlist.col == 4){
  178. grd_monmtlist.valueMatrix(1,5) = "";
  179. model.removenode("/root/send");
  180. model.makeValue("/root/send/membno",grd_monmtlist.valueMatrix(1,0));
  181. model.makeValue("/root/send/amtyy", grd_monmtlist.valueMatrix(1,4));
  182. submit("TRMNH04001");
  183. grd_monmtlist.valueMatrix(1,5) = model.getValue("/root/init/mondetl/monamt");
  184. }
  185. ]]>
  186. </script>
  187. </datagrid>
  188. <caption id="caption1" class="tit_2" style="left:1px; top:13px; width:131px; height:14px; ">회원별 월 약정금액</caption>
  189. <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:544px; y2:30px; "/>
  190. <button id="button1" class="btn4_letter2" navindex="9" style="left:431px; top:7px; width:56px; height:22px; ">
  191. <caption>저장</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. if(messageBox("","Q002") != 6) return;
  195. if(grd_monmtlist.valueMatrix(1,5) == ""){
  196. messageBox("월 약정금액은", "I003");
  197. return;
  198. }
  199. model.removenode("/root/send");
  200. model.makeValue("/root/send/membno",grd_monmtlist.valueMatrix(1,0));
  201. model.makeValue("/root/send/amtyy", grd_monmtlist.valueMatrix(1,4));
  202. model.makeValue("/root/send/monamt", grd_monmtlist.valueMatrix(1,5));
  203. if(submit("TXMNH04001")){
  204. messageBox("월 약정금액 저장이", "I001");
  205. }
  206. window.close();
  207. ]]>
  208. </script>
  209. </button>
  210. </xhtml:body>
  211. </xhtml:html>