SMMNH04400_호스피스 코드관리.xrw 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. <cond>
  11. <refcls/>
  12. <supcdid/>
  13. </cond>
  14. <supcodeinfo>
  15. <supcodelist>
  16. <supcdid/>
  17. <suphngnm/>
  18. <supengnm/>
  19. <endyn/>
  20. </supcodelist>
  21. <temp>
  22. <maxid/>
  23. </temp>
  24. </supcodeinfo>
  25. <lowcodeinfo>
  26. <lowcodelist>
  27. <supcdid/>
  28. <cdid/>
  29. <hngnm/>
  30. <engnm/>
  31. <refseqno/>
  32. <lowcdid/>
  33. <endyn/>
  34. </lowcodelist>
  35. <temp>
  36. <maxid/>
  37. </temp>
  38. </lowcodeinfo>
  39. </main>
  40. <send>
  41. <reqdata/>
  42. <savedata/>
  43. </send>
  44. <hidden/>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. model.removenode("/root/main/supcodeinfo/supcodelist");
  50. model.removenode("/root/main/lowcodeinfo/lowcodelist");
  51. model.refresh();
  52. ]]>
  53. </script>
  54. <submission id="TRMNH04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/supcodeinfo"/>
  55. <submission id="TXMNH04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/supcodeinfo"/>
  56. <submission id="TRMNH04402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/lowcodeinfo"/>
  57. <submission id="TXMNH04402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lowcodeinfo"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  62. <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH04400.js"/>
  63. </xhtml:head>
  64. <xhtml:body guideline="2,295;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  65. <group id="group5" style="left:0px; top:0px; width:1195px; height:720px; ">
  66. <datagrid id="grd_supcodelist" nodeset="/root/main/supcodeinfo/supcodelist" allowbigselection="false" allowselection="false" autoresize="true" caption="코드군ID^코드군명^코드영문명^종료여부" colsep="^" colwidth="70, 110, 110, 70" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" navindex="7" style="left:0px; top:80px; width:415px; height:635px; ">
  67. <col ref="supcdid" maxlength="5" style="text-align:center; "/>
  68. <col ref="suphngnm" type="input" maxlength="50" style="text-align:center; "/>
  69. <col ref="supengnm" type="input" maxlength="50" style="text-align:center; "/>
  70. <col ref="endyn" style="text-align:center; "/>
  71. <script type="javascript" ev:event="ondblclick">
  72. <![CDATA[
  73. var refcls = model.getValue("/root/main/cond/refcls");
  74. if( refcls == "" ) {
  75. messageBox("분류를 ", "C002");
  76. }else {
  77. if( grd_supcodelist.col == 1 ) {
  78. model.setValue("/root/main/cond/supcdid", model.getValue("/root/main/supcodeinfo/supcodelist[" + grd_supcodelist.row + "]/supcdid"));
  79. model.copyNode("/root/send/reqdata", "/root/main/cond");
  80. submit("TRMNH04402");
  81. }
  82. }
  83. ]]>
  84. </script>
  85. </datagrid>
  86. <caption id="caption1" class="tit_2" style="left:0px; top:60px; width:131px; height:14px; ">코드군</caption>
  87. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:415px; y2:75px; "/>
  88. <button id="button2" class="btn2_letter3" style="left:255px; top:55px; width:53px; height:19px; ">
  89. <caption>행추가</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. var refcls = model.getValue("/root/main/cond/refcls");
  93. if( refcls == "" ) {
  94. messageBox("분류를 ", "C002");
  95. }else {
  96. grd_supcodelist.addRow();
  97. var maxid = model.getValue("/root/main/supcodeinfo/temp/maxid");
  98. model.setValue("/root/main/supcodeinfo/supcodelist[" + grd_supcodelist.row + "]/supcdid", maxid.getLeftPad(5, '0'));//다음 코드군ID 셋팅
  99. model.setValue("/root/main/supcodeinfo/temp/maxid", parseInt(maxid) + 1 );//다음 코드군ID로 변경
  100. model.refresh();
  101. }
  102. ]]>
  103. </script>
  104. </button>
  105. <button id="button3" class="btn5_letter2" style="left:365px; top:55px; width:42px; height:19px; ">
  106. <caption>저장</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. fSaveSupCode();
  110. ]]>
  111. </script>
  112. </button>
  113. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:15px; width:1194px; height:35px; "/>
  114. <caption id="caption13" class="search_name" style="left:20px; top:24px; width:86px; height:17px; ">분류 :</caption>
  115. <select1 id="combo1" ref="/root/main/cond/refcls" appearance="minimal" style="left:88px; top:22px; width:100px; height:19px; ">
  116. <choices>
  117. <item>
  118. <label>전체</label>
  119. <value/>
  120. </item>
  121. <item>
  122. <label>호스피스 공통</label>
  123. <value>C</value>
  124. </item>
  125. <item>
  126. <label>호스피스 후원회</label>
  127. <value>A</value>
  128. </item>
  129. </choices>
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. model.copyNode("/root/send/reqdata", "/root/main/cond");
  133. submit("TRMNH04401");
  134. ]]>
  135. </script>
  136. </select1>
  137. <caption id="caption6" class="tit_1" style="left:0px; top:10px; width:160px; height:13px; ">회원정보 관리</caption>
  138. <button id="button1" class="btn2_letter3" style="left:1093px; top:55px; width:53px; height:19px; ">
  139. <caption>행삭제</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. var rowStatus = grd_lowcodelist.rowstatus(grd_lowcodelist.row);
  143. if( (rowStatus == "1")||(rowStatus == "3") ) {//INSERT 모드에서 삭제시 컬럼 삭제
  144. grd_lowcodelist.deleteRow(grd_lowcodelist.row);
  145. }else {
  146. grd_lowcodelist.rowstatus(grd_lowcodelist.row) = "4";
  147. }
  148. model.refresh();
  149. ]]>
  150. </script>
  151. </button>
  152. <datagrid id="grd_lowcodelist" nodeset="/root/main/lowcodeinfo/lowcodelist" allowbigselection="false" allowselection="false" caption="코드군ID^코드ID^코드명^코드영문명^조회순서^하위코드ID^종료여부" colsep="^" colwidth="75, 70, 175, 175, 65, 75, 80" dataheight="23" ellipsis="true" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" navindex="7" style="left:425px; top:80px; width:769px; height:635px; ">
  153. <col ref="supcdid" style="text-align:center; "/>
  154. <col ref="cdid" type="input" maxlength="2" style="text-align:center; "/>
  155. <col ref="hngnm" type="input" style="text-align:center; "/>
  156. <col ref="engnm" type="input" style="text-align:center; "/>
  157. <col ref="refseqno" type="input" style="text-align:center; "/>
  158. <col ref="lowcdid" type="input" style="text-align:center; "/>
  159. <col ref="endyn" type="input" style="text-align:center; "/>
  160. <script type="javascript" ev:event="onendedit">
  161. <![CDATA[
  162. if( grd_lowcodelist.col == 2 ) {
  163. var curid = model.getValue("/root/main/lowcodeinfo/lowcodelist[" + grd_lowcodelist.row + "]/cdid");
  164. model.setValue("/root/main/lowcodeinfo/lowcodelist[" + grd_lowcodelist.row + "]/cdid", curid.getLeftPad(2, '0'));
  165. }
  166. ]]>
  167. </script>
  168. </datagrid>
  169. <button id="button4" class="btn5_letter2" style="left:1148px; top:55px; width:42px; height:19px; ">
  170. <caption>저장</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. fSaveDetlCode();
  174. ]]>
  175. </script>
  176. </button>
  177. <caption id="caption2" class="tit_2" style="left:425px; top:60px; width:131px; height:13px; ">코드</caption>
  178. <line id="line2" class="line_1" style="x1:425px; y1:75px; x2:1194px; y2:75px; "/>
  179. <button id="button5" class="btn2_letter3" style="left:310px; top:55px; width:53px; height:19px; ">
  180. <caption>행삭제</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var rowStatus = grd_supcodelist.rowstatus(grd_supcodelist.row);
  184. if( (rowStatus == "1")||(rowStatus == "3") ) {//INSERT 모드에서 삭제시 컬럼 삭제
  185. grd_supcodelist.deleteRow(grd_supcodelist.row);
  186. }else {
  187. grd_supcodelist.rowstatus(grd_supcodelist.row) = "4";
  188. }
  189. model.refresh();
  190. ]]>
  191. </script>
  192. </button>
  193. <button id="button6" class="btn2_letter3" style="left:1038px; top:55px; width:53px; height:19px; ">
  194. <caption>행추가</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. var supcdid = model.getValue("/root/main/cond/supcdid");
  198. if( supcdid == "" ) {
  199. messageBox("코드군을 ", "C002");
  200. }else {
  201. grd_lowcodelist.addRow();
  202. model.setValue("/root/main/lowcodeinfo/lowcodelist[" + grd_lowcodelist.row + "]/supcdid", model.getValue("/root/main/cond/supcdid"));
  203. model.refresh();
  204. }
  205. ]]>
  206. </script>
  207. </button>
  208. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:22px; width:56px; height:22px; ">
  209. <caption>조회</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. model.removenode("/root/main/supcodeinfo");
  213. model.removenode("/root/main/lowcodeinfo");
  214. model.setValue("/root/main/cond/supcdid", "");
  215. model.copyNode("/root/send/reqdata", "/root/main/cond");
  216. submit("TRMNH04401");
  217. ]]>
  218. </script>
  219. </button>
  220. </group>
  221. </xhtml:body>
  222. </xhtml:html>