SPPAO04600_차상위희귀난치마스터관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <rarescndupdt>
  11. <rarescnd>
  12. <pid/>
  13. <hngnm/>
  14. <fromdd/>
  15. <todd/>
  16. <splccd1/>
  17. <splccd/>
  18. <fstrgstdt/>
  19. <fstrgstrid/>
  20. <lastupdtdt/>
  21. <lastupdtrid/>
  22. <scndflag/>
  23. <rrgstno1/>
  24. <rrgstno2/>
  25. </rarescnd>
  26. </rarescndupdt>
  27. <rarescnd>
  28. <rarescndlist/>
  29. </rarescnd>
  30. </main>
  31. <send>
  32. <rrgstno1/>
  33. <rrgstno2/>
  34. <pid/>
  35. <data/>
  36. <data2/>
  37. </send>
  38. <hidden>
  39. <patinfo>
  40. <pid/>
  41. <rrgstno1/>
  42. <rrgstno2/>
  43. <hngnm/>
  44. </patinfo>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. if (checkOpener()){ //팝업화면으로 사용될 때
  51. if (model.getValue("/root/send/pid") != "") {
  52. fSearch();
  53. model.refresh();
  54. }
  55. }
  56. model.refresh();
  57. model1.setFocus("ipt_pid");
  58. ]]>
  59. </script>
  60. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  61. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/patinfo"/>
  62. <submission id="TRPAO04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rarescnd"/>
  63. <submission id="TRPAO04602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  64. <submission id="TXPAC03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/tmp"/>
  65. <submission id="TXPAC03904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/tmp"/>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  70. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. function fSearch() {
  74. submit("TRPAO04601");
  75. model.refresh();
  76. }
  77. ]]>
  78. </script>
  79. </xhtml:head>
  80. <xhtml:body pagewidth="630" pageheight="360" guideline="1,605;2,402;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  81. <group id="group3" scroll="auto" style="left:0px; top:0px; width:605px; height:316px; ">
  82. <line id="line6" class="line_2" style="x1:0px; y1:87px; x2:605px; y2:87px; "/>
  83. <group id="group2" style="left:0px; top:0px; width:605px; height:35px; vertical-align:top; ">
  84. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:605px; height:35px; "/>
  85. <button id="btn_search" class="btn1_letter2" style="left:539px; top:7px; width:56px; height:22px; ">
  86. <caption>조회</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. var pid = model.getValue("/root/send/pid");
  90. var rrgstno1 = model.getValue("/root/send/rrgstno1");
  91. var rrgstno2 = model.getValue("/root/send/rrgstno2");
  92. if( pid == '' || pid == '-' ) {
  93. if( rrgstno1 == '' || rrgstno1== '-' ) {
  94. if( rrgstno2 == '' || rrgstno2 == '-' ) {
  95. messageBox("등록번호 또는 주민번호 입력 후 조회하십시오.", "I999", "");
  96. return false;
  97. }
  98. }
  99. }
  100. model.resetInstanceNode("/root/main");
  101. model.resetInstanceNode("/root/hidden");
  102. model.refresh();
  103. fSearch();
  104. ]]>
  105. </script>
  106. </button>
  107. <line id="line13" class="line_4" style="x1:524px; y1:7px; x2:524px; y2:29px; "/>
  108. <caption id="caption3" class="search_name" style="left:10px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
  109. <caption id="caption2" class="search_name" style="left:205px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
  110. <input id="input1" ref="/root/send/rrgstno1" class="input_search" maxlength="6" appearance="input" style="left:296px; top:8px; width:79px; height:19px; ">
  111. <script type="javascript" ev:event="onkeypress">
  112. <![CDATA[
  113. if(event.keyCode == "13") {
  114. inputEnterKey("btn_search", "DOMActivate");
  115. }
  116. ]]>
  117. </script>
  118. </input>
  119. <input id="input2" ref="/root/send/rrgstno2" class="input_search" maxlength="7" appearance="input" style="left:385px; top:8px; width:79px; height:19px; ">
  120. <script type="javascript" ev:event="onkeypress">
  121. <![CDATA[
  122. if(event.keyCode == "13") {
  123. inputEnterKey("btn_search", "DOMActivate");
  124. }
  125. ]]>
  126. </script>
  127. </input>
  128. <input id="ipt_pid" ref="/root/send/pid" class="input_search" appearance="input" style="left:100px; top:8px; width:95px; height:19px; ">
  129. <script type="javascript" ev:event="onkeypress">
  130. <![CDATA[
  131. if(event.keyCode == "13") {
  132. inputEnterKey("btn_search", "DOMActivate");
  133. }
  134. ]]>
  135. </script>
  136. </input>
  137. </group>
  138. <caption id="caption1" class="tit_2" style="left:5px; top:120px; width:182px; height:14px; ">차상위 / 희귀난치지원 내역</caption>
  139. <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:605px; y2:135px; "/>
  140. <datagrid id="grd_rarescnd" nodeset="/root/main/rarescnd/rarescndlist" caption="등록번호^성명^시작일자^종료일자^구분^명칭^최초등록일시^최초등록자^최종수정일시^최종수정자" colsep="^" colwidth="70, 58, 79, 77, 35, 109, 104, 71, 111, 71" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:140px; width:605px; height:174px; ">
  141. <col ref="pid"/>
  142. <col ref="hngnm"/>
  143. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  144. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  145. <col ref="splccd1" type="output" style="text-align:center; "/>
  146. <col disabled="true" ref="splccd" type="combo">
  147. <choices>
  148. <item>
  149. <label>차상위 1종(C)</label>
  150. <value>C</value>
  151. </item>
  152. <item>
  153. <label>차상위 2종(E)</label>
  154. <value>E</value>
  155. </item>
  156. <item>
  157. <label>차상위 2종 장애(F)</label>
  158. <value>F</value>
  159. </item>
  160. <item>
  161. <label>희귀난치지원(H)</label>
  162. <value>H</value>
  163. </item>
  164. </choices>
  165. </col>
  166. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
  167. <col ref="fstrgstrid"/>
  168. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  169. <col ref="lastupdtrid"/>
  170. <script type="javascript" ev:event="onclick">
  171. <![CDATA[
  172. if (isDataCell() == true) {
  173. var srow = grd_rarescnd.row;
  174. if (srow <= 0 ) {
  175. srow = 1;
  176. }
  177. //alert(model.getValue("/root/main/rarescndlist["+ srow +"]/pid"));
  178. model.copyNode("/root/main/rarescndupdt/rarescnd", "/root/main/rarescnd/rarescndlist["+ srow +"]");
  179. model.refresh();
  180. }
  181. ]]>
  182. </script>
  183. </datagrid>
  184. <caption id="caption32" class="cell_1" style="left:1px; top:65px; width:73px; height:23px; vertical-align:middle; ">등록번호</caption>
  185. <input id="ipt_fromdd1" ref="/root/main/rarescndupdt/rarescnd/fromdd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:268px; top:91px; width:90px; height:19px; "/>
  186. <caption id="caption8" class="cell_1" style="left:1px; top:89px; width:73px; height:23px; vertical-align:middle; ">구 분</caption>
  187. <select1 id="cmb_building1" ref="/root/main/rarescndupdt/rarescnd/splccd" class="combo_search" navindex="5" appearance="minimal" style="left:76px; top:91px; width:113px; height:19px; ">
  188. <choices>
  189. <item>
  190. <label>차상위 1종(C)</label>
  191. <value>C</value>
  192. </item>
  193. <item>
  194. <label>차상위 2종(E)</label>
  195. <value>E</value>
  196. </item>
  197. <item>
  198. <label>차상위 2종 장애(F)</label>
  199. <value>F</value>
  200. </item>
  201. <item>
  202. <label>희귀난치지원(H)</label>
  203. <value>H</value>
  204. </item>
  205. </choices>
  206. </select1>
  207. <caption id="caption4" class="tit_2" style="left:5px; top:45px; width:200px; height:14px; ">차상위 / 희귀난치지원 대상자</caption>
  208. <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:605px; y2:60px; "/>
  209. <input id="input3" ref="/root/main/rarescndupdt/rarescnd/pid" class="input_default" navindex="1" imemode="disabled" style="left:76px; top:66px; width:113px; height:19px; ">
  210. <script type="javascript" ev:event="onkeypress">
  211. <![CDATA[
  212. if(event.keyCode == "13") {
  213. var spid = input3.currentText;
  214. setInputNodeCurText();
  215. if (spid != "") {
  216. model.setValue("/root/send/pid", model.getValue("/root/main/rarescndupdt/rarescnd/pid"));
  217. submit("TRPAO04602");
  218. if (model.getValue("/root/hidden/patinfo/pid") == "") {
  219. messageBox("등록된 환자가 없습니다.", "I999", "");
  220. return false;
  221. }
  222. model.copynode("/root/main/rarescndupdt/rarescnd", "/root/hidden/patinfo");
  223. model.refresh();
  224. }
  225. }
  226. ]]>
  227. </script>
  228. </input>
  229. <caption id="caption5" class="cell_1" style="left:193px; top:65px; width:73px; height:23px; vertical-align:middle; ">성 명</caption>
  230. <input id="input4" ref="/root/main/rarescndupdt/rarescnd/hngnm" class="input_default" disabled="true" navindex="2" imemode="disabled" style="left:268px; top:66px; width:90px; height:19px; font-weight:bold; "/>
  231. <caption id="caption6" class="cell_1" style="left:193px; top:89px; width:73px; height:23px; vertical-align:middle; ">적용기간</caption>
  232. <input id="input6" ref="/root/main/rarescndupdt/rarescnd/todd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:361px; top:91px; width:90px; height:19px; "/>
  233. <line id="line4" class="line_3" style="x1:0px; y1:112px; x2:605px; y2:112px; "/>
  234. <button id="button6" class="btn5_letter2" navindex="30" style="left:562px; top:40px; width:42px; height:19px; ">
  235. <caption>저장</caption>
  236. <script type="javascript" ev:event="onclick">
  237. <![CDATA[
  238. if (model.getValue("/root/main/rarescndupdt/rarescnd/pid") == "") {
  239. messageBox("등록번호가 입력되지 않았습니다.", "I999", "");
  240. return;
  241. }
  242. if (model.getValue("/root/main/rarescndupdt/rarescnd/hngnm") == "") {
  243. messageBox("성명이 입력되지 않았습니다.", "I999", "");
  244. return;
  245. }
  246. if (model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno1") == "" || model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno2") == "") {
  247. messageBox("주민번호가 입력되지 않았습니다.", "I999", "");
  248. return;
  249. }
  250. if (model.getValue("/root/main/rarescndupdt/rarescnd/splccd") == "") {
  251. messageBox("구분코드가 입력되지 않았습니다.", "I999", "");
  252. return;
  253. }
  254. if (model.getValue("/root/main/rarescndupdt/rarescnd/fromdd") == "" || model.getValue("/root/main/rarescndupdt/rarescnd/todd") == "") {
  255. messageBox("적용기간이 입력되지 않았습니다.", "I999", "");
  256. return;
  257. }
  258. //희귀난치
  259. if (model.getValue("/root/main/rarescndupdt/rarescnd/splccd") == "H") {
  260. model.removenode("/root/send/data");
  261. model.makeNode("/root/send/data");
  262. model.makeValue("/root/send/data/rrgstno1", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno1"));
  263. model.makeValue("/root/send/data/rrgstno2", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno2"));
  264. model.makeValue("/root/send/data/fromdd", model.getValue("/root/main/rarescndupdt/rarescnd/fromdd"));
  265. model.makeValue("/root/send/data/todd", model.getValue("/root/main/rarescndupdt/rarescnd/todd"));
  266. model.makeValue("/root/send/data/delflag", "N");
  267. if (submit("TXPAC03902") == true) {
  268. model.resetInstanceNode("/root/main");
  269. model.resetInstanceNode("/root/hidden");
  270. model.setValue("/root/send/rrgstno1", model.getValue("/root/send/data/rrgstno1"));
  271. model.setValue("/root/send/rrgstno2", model.getValue("/root/send/data/rrgstno2"));
  272. fSearch();
  273. model.refresh();
  274. }
  275. } else {
  276. model.removenode("/root/send/data1");
  277. model.makeNode("/root/send/data1");
  278. if (model.getValue("/root/main/rarescndupdt/rarescnd/splccd") == "C") {
  279. model.makeValue("/root/send/data1/scndflag", "1");
  280. } else {
  281. model.makeValue("/root/send/data1/scndflag", "2");
  282. }
  283. model.makeValue("/root/send/data1/rrgstno1", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno1"));
  284. model.makeValue("/root/send/data1/rrgstno2", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno2"));
  285. model.makeValue("/root/send/data1/fromdd", model.getValue("/root/main/rarescndupdt/rarescnd/fromdd"));
  286. model.makeValue("/root/send/data1/todd", model.getValue("/root/main/rarescndupdt/rarescnd/todd"));
  287. model.makeValue("/root/send/data1/splccd", model.getValue("/root/main/rarescndupdt/rarescnd/splccd"));
  288. model.makeValue("/root/send/data1/delflag", "N");
  289. if (submit("TXPAC03904") == true) {
  290. model.resetInstanceNode("/root/main");
  291. model.resetInstanceNode("/root/hidden");
  292. model.setValue("/root/send/rrgstno1", model.getValue("/root/send/data1/rrgstno1"));
  293. model.setValue("/root/send/rrgstno2", model.getValue("/root/send/data1/rrgstno2"));
  294. fSearch();
  295. model.refresh();
  296. }
  297. }
  298. ]]>
  299. </script>
  300. </button>
  301. <caption id="caption7" class="cell_1" style="left:362px; top:64px; width:73px; height:23px; vertical-align:middle; ">주민번호</caption>
  302. <input id="input7" ref="/root/main/rarescndupdt/rarescnd/rrgstno1" class="input_default" disabled="true" navindex="3" imemode="disabled" style="left:437px; top:66px; width:80px; height:19px; font-weight:bold; "/>
  303. <input id="input8" ref="/root/main/rarescndupdt/rarescnd/rrgstno2" class="input_default" disabled="true" navindex="4" imemode="disabled" style="left:522px; top:66px; width:80px; height:19px; font-weight:bold; "/>
  304. <button id="button1" class="btn2_letter2" navindex="30" style="left:517px; top:40px; width:42px; height:19px; ">
  305. <caption>신규</caption>
  306. <script type="javascript" ev:event="onclick">
  307. <![CDATA[
  308. model.resetInstanceNode("/root/send");
  309. model.resetInstanceNode("/root/main");
  310. model.resetInstanceNode("/root/hidden");
  311. model.refresh();
  312. ]]>
  313. </script>
  314. </button>
  315. </group>
  316. <group id="group1" scroll="auto" style="left:0px; top:316px; width:605px; height:27px; ">
  317. <button id="btn_confirm" class="btn4_letter2" style="left:549px; top:5px; width:56px; height:22px; ">
  318. <caption>닫기</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. window.close();
  322. ]]>
  323. </script>
  324. </button>
  325. </group>
  326. </xhtml:body>
  327. </xhtml:html>