SPPIZ01600_보험인정기준조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIZ01600_보험인정기준조회.xrw
  4. * 수정이력
  5. * - 2008.04.21 / 최초작성 / 박지욱
  6. *
  7. * - opener 에서 전달받는 조건 경로
  8. /root/send/item3/calcscorcd (수가코드)
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>보험인정기준 안내</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <!-- 보험인정기준 목록 -->
  19. <list1>
  20. <limt/>
  21. </list1>
  22. <!-- 탭3의 질의사항 목록 -->
  23. <list2>
  24. <lmsg/>
  25. </list2>
  26. <!-- 탭1, 탭2 내용 -->
  27. <item1>
  28. <limresn/>
  29. <limmsg/>
  30. </item1>
  31. </main>
  32. <send>
  33. <!-- 조회조건 -->
  34. <item1>
  35. <ioflag/>
  36. <insukindcd/>
  37. <orddeptcd/>
  38. <orddrid/>
  39. <calcflag/>
  40. <calcscorcd/>
  41. <fromdd/>
  42. </item1>
  43. <!-- 질의사항 조회를 위한 조건 -->
  44. <item2>
  45. <calcscorcd/>
  46. <seq/>
  47. </item2>
  48. <!-- opener에서 넘어오는 정보 -->
  49. <item3>
  50. <calcscorcd/>
  51. </item3>
  52. </send>
  53. <init>
  54. <!-- 보험유형 -->
  55. <P0008list>
  56. <P0008>
  57. <cdnm/>
  58. <cdid/>
  59. </P0008>
  60. </P0008list>
  61. <!-- 진료과 -->
  62. <orddeptcd>
  63. <orddeptcdlist>
  64. <cd/>
  65. <nm/>
  66. </orddeptcdlist>
  67. </orddeptcd>
  68. <!-- 진료의사 -->
  69. <orddrid>
  70. <orddridlist>
  71. <cd/>
  72. <nm/>
  73. <dp/>
  74. <sp/>
  75. </orddridlist>
  76. </orddrid>
  77. </init>
  78. <hidden/>
  79. </root>
  80. </instance>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. // 1. 공통코드 조회
  84. zbcfGetCodeList(
  85. new Array("P0008"),
  86. new Array("/root/init/P0008list"));
  87. pamGetDeptCDDrIDList();
  88. model.makeValue("/root/init/orddeptcd/orddeptcdlist["+ 1 +"]/nm","");
  89. model.makeValue("/root/init/orddeptcd/orddeptcdlist["+ 1 +"]/cd","");
  90. model.makeValue("/root/init/orddrid/orddridlist["+ 1 +"]/nm","");
  91. model.makeValue("/root/init/orddrid/orddridlist["+ 1 +"]/cd","");
  92. // 2. 조회필드 초기화
  93. model.setValue("/root/send/item1/ioflag", "-");
  94. model.setValue("/root/send/item1/insukindcd", "");
  95. model.setValue("/root/send/item1/orddeptcd", "");
  96. model.setValue("/root/send/item1/orddrid", "");
  97. model.setValue("/root/send/item1/calcflag", "1");
  98. model.setValue("/root/send/item1/calcscorcd", "");
  99. model.setValue("/root/send/item1/fromdd", "");
  100. // 3. 보험인정기준 목록 조회
  101. fGetInsuLimtList();
  102. // 4. opener에서 넘어온 수가코드가 있으면 그 수가코드에 대한 정보 조회
  103. // root/send/item3/calcscorcd 로 넘겨받는다.
  104. fShowInsuLimtInfo();
  105. model.refresh();
  106. ]]>
  107. </script>
  108. <script type="javascript">
  109. <![CDATA[
  110. // 보험인정기준 목록 조회
  111. function fGetInsuLimtList() {
  112. model.removenode("/root/main/list1");
  113. model.removenode("/root/main/list2");
  114. model.makeNode("/root/main/list1");
  115. model.removenode("/root/main/list2");
  116. model.resetInstanceNode("/root/main/item1");
  117. submit("TRPIZ01601");
  118. }
  119. // Opener에서 넘어온 코드에 대한 보험인정기준 정보 조회
  120. function fShowInsuLimtInfo() {
  121. // 보험인정기준 목록에서 수가코드를 찾아 더블클릭한 상태와 같이 만들어준다.
  122. var openercd = model.getValue("/root/send/item3/calcscorcd");
  123. if (openercd != "") {
  124. // 보험인정기준 목록에서 맞는 수가코드가 있는지 찾는다.
  125. var ret = false;
  126. for (var i = 1; i < grd_limtlist.rows && ret != true; i++) {
  127. var calcscorcd = model.getValue("/root/main/list1/limt[" + i + "]/calcscorcd");
  128. if (openercd == calcscorcd) {
  129. grd_limtlist.select(i, 1) = true;
  130. grd_limtlist.row= i;
  131. grd_limtlist.topRow = i;
  132. ret = true;
  133. }
  134. }
  135. // 보험인정기준 목록에서 맞는 수가코드를 찾았으면
  136. if (ret == true) {
  137. fGetInsuLimtInfo();
  138. }
  139. }
  140. }
  141. // 보험인정기준 목록에서 더블클릭시 우측 심사규제MSG와 질문사항목록을 조회한다.
  142. function fGetInsuLimtInfo() {
  143. // 1. 선택된 보험인정기준 코드에 대한 심사규제요약MSG, 심사규제MSG 조회
  144. var row = grd_limtlist.row;
  145. model.setValue("/root/main/item1/limresn", grd_limtlist.valueMatrix(row, grd_limtlist.colRef("limresn")));
  146. model.setValue("/root/main/item1/limmsg", grd_limtlist.valueMatrix(row, grd_limtlist.colRef("limmsg")));
  147. // 2. 선택된 보험인정기준 코드에 대한 질의사항목록 조회
  148. model.setValue("/root/send/item2/calcscorcd", grd_limtlist.valueMatrix(row, grd_limtlist.colRef("calcscorcd")));
  149. model.setValue("/root/send/item2/seq", grd_limtlist.valueMatrix(row, grd_limtlist.colRef("seq")));
  150. submit("TRPIZ01602");
  151. }
  152. ]]>
  153. </script>
  154. <submission id="TRPIZ01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main/list1"/>
  155. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  156. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  157. <submission id="TRPIZ01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2" resultref="/root/main/list2"/>
  158. </model>
  159. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  160. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  161. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  162. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  163. </xhtml:head>
  164. <xhtml:body pagewidth="1120" pageheight="600" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  165. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:1095px; height:575px; ">
  166. <group id="group2" style="left:0px; top:20px; width:1091px; height:65px; vertical-align:top; ">
  167. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1088px; height:65px; "/>
  168. <caption id="caption2" class="search_name" style="left:240px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
  169. <caption id="caption4" class="search_name" style="left:9px; top:9px; width:86px; height:17px; ">내원유형 :</caption>
  170. <caption id="caption1" class="search_name" style="left:495px; top:9px; width:86px; height:17px; ">진료과 :</caption>
  171. <caption id="caption3" class="search_name" style="left:730px; top:9px; width:86px; height:17px; ">진료의사 :</caption>
  172. <input id="ipt_calcscorcd" ref="/root/send/item1/calcscorcd" class="input_search" style="left:269px; top:36px; width:135px; height:19px; "/>
  173. <caption id="caption5" class="search_name" style="left:9px; top:37px; width:86px; height:17px; ">수가코드 :</caption>
  174. <caption id="caption6" class="search_name" style="left:495px; top:37px; width:86px; height:17px; ">적용일 :</caption>
  175. </group>
  176. <button id="btn_search" class="btn1_letter2" style="left:983px; top:41px; width:56px; height:22px; ">
  177. <caption>조회</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. messageBox("진료과, 진료의사에 대한 조회는", "E001");
  181. fGetInsuLimtList();
  182. ]]>
  183. </script>
  184. </button>
  185. <line id="line13" class="line_4" style="x1:965px; y1:27px; x2:965px; y2:78px; "/>
  186. <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" appearance="minimal" style="left:110px; top:28px; width:80px; height:19px; ">
  187. <choices>
  188. <item>
  189. <label>전체</label>
  190. <value>-</value>
  191. </item>
  192. <item>
  193. <label>입원</label>
  194. <value>I</value>
  195. </item>
  196. <item>
  197. <label>외래</label>
  198. <value>O</value>
  199. </item>
  200. </choices>
  201. </select1>
  202. <select1 id="cmb_insukind" ref="/root/send/item1/insukindcd" class="combo_search" appearance="minimal" style="left:340px; top:28px; width:89px; height:19px; ">
  203. <choices>
  204. <itemset nodeset="/root/init/P0008list/P0008">
  205. <label ref="cdnm"/>
  206. <value ref="cdid"/>
  207. </itemset>
  208. </choices>
  209. </select1>
  210. <select1 id="cmb_orddept" ref="/root/send/item1/orddeptcd" class="combo_search" appearance="minimal" style="left:580px; top:28px; width:87px; height:19px; ">
  211. <choices>
  212. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  213. <label ref="nm"/>
  214. <value ref="cd"/>
  215. </itemset>
  216. </choices>
  217. </select1>
  218. <select1 id="cmb_orddrid" ref="/root/send/item1/orddrid" class="combo_search" appearance="minimal" style="left:825px; top:28px; width:79px; height:19px; ">
  219. <choices>
  220. <itemset nodeset="/root/init/orddrid/orddridlist">
  221. <label ref="nm"/>
  222. <value ref="cd"/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <caption id="caption36" class="tit_2" style="left:1px; top:91px; width:194px; height:14px; vertical-align:middle; ">
  227. <![CDATA[보험인정기준/제한규정코드]]>
  228. </caption>
  229. <datagrid id="grd_limtlist" nodeset="/root/main/list1/limt" caption="수가코드^한글명^단가^구분^수가종료일^EDI코드^seq^limresn^limmsg" colsep="^" colwidth="77, 205, 60, 65, 80, 65, 100, 100, 100" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:110px; width:445px; height:455px; ">
  230. <col ref="calcscorcd"/>
  231. <col ref="hngnm"/>
  232. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  233. <col ref="ordinptflag" style="text-align:center; "/>
  234. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  235. <col ref="edicd"/>
  236. <col ref="seq" visibility="hidden"/>
  237. <col ref="limresn" visibility="hidden"/>
  238. <col ref="limmsg" visibility="hidden"/>
  239. <script type="javascript" ev:event="onaftersort">
  240. <![CDATA[
  241. grd_limtlist.gridToInstance();
  242. ]]>
  243. </script>
  244. <script type="javascript" ev:event="ondblclick">
  245. <![CDATA[
  246. fGetInsuLimtInfo();
  247. model.refresh();
  248. ]]>
  249. </script>
  250. </datagrid>
  251. <switch id="switch1" style="left:451px; top:110px; width:639px; height:460px; ">
  252. <case id="case1" selected="true">
  253. <textarea id="tar_sw1" ref="/root/main/item1/limresn" editable="false" style="left:3px; top:4px; width:630px; height:449px; "/>
  254. </case>
  255. <case id="case2">
  256. <textarea id="tar_sw2" ref="/root/main/item1/limmsg" editable="false" style="left:3px; top:4px; width:630px; height:449px; "/>
  257. </case>
  258. <case id="case3">
  259. <datagrid id="grd_queslist" nodeset="/root/main/list2/lmsg" disabled="true" autoresize="true" caption="질문사항^급여구분" colsep="^" colwidth="480, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:3px; top:5px; width:630px; height:449px; ">
  260. <col disabled="true" ref="quesmsg"/>
  261. <col disabled="true" ref="payflag" type="combo" style="text-align:center; ">
  262. <choices>
  263. <item>
  264. <label>급여</label>
  265. <value>0</value>
  266. </item>
  267. <item>
  268. <label>전액본인부담</label>
  269. <value>1</value>
  270. </item>
  271. <item>
  272. <label>비급여</label>
  273. <value>2</value>
  274. </item>
  275. </choices>
  276. </col>
  277. </datagrid>
  278. </case>
  279. </switch>
  280. </group>
  281. <caption id="caption11" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; vertical-align:middle; ">보험인정기준 안내</caption>
  282. <line id="line3" class="line_1" style="x1:0px; y1:106px; x2:445px; y2:106px; "/>
  283. <button id="btn_sw2" class="btn_sw" group="tab" style="left:610px; top:90px; width:139px; height:22px; font-size:8pt; ">
  284. <caption>심사규제 Message</caption>
  285. <script type="javascript" ev:event="onclick">
  286. <![CDATA[
  287. model.toggle("case2");
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="btn_sw1" class="btn_sw" group="tab" selected="true" style="left:451px; top:90px; width:159px; height:22px; font-size:8pt; ">
  292. <caption>심사규제요약 Message</caption>
  293. <script type="javascript" ev:event="onclick">
  294. <![CDATA[
  295. model.toggle("case1");
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="btn_sw3" class="btn_sw" group="tab" style="left:749px; top:90px; width:105px; height:22px; font-size:8pt; ">
  300. <caption>진료팝업</caption>
  301. <script type="javascript" ev:event="onclick">
  302. <![CDATA[
  303. model.toggle("case3");
  304. ]]>
  305. </script>
  306. </button>
  307. <select1 id="rdo_calcflag" ref="/root/send/item1/calcflag" class="radio_search" navindex="11" appearance="full" cols="4" overflow="visible" style="left:108px; top:58px; width:130px; height:15px; ">
  308. <choices>
  309. <item>
  310. <label>수가</label>
  311. <value>1</value>
  312. </item>
  313. <item>
  314. <label>EDI</label>
  315. <value>2</value>
  316. </item>
  317. <item>
  318. <label>명칭</label>
  319. <value>3</value>
  320. </item>
  321. </choices>
  322. </select1>
  323. <button id="btn_calcsearch" class="icon_search" style="left:409px; top:58px; width:16px; height:16px; ">
  324. <caption/>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. model.resetInstanceNode("/root/temp/picmmech");
  328. //setParameter("iParam_mother_view", "SMPIB00400_보험인정기준코드관리");
  329. model.makeNode("/root/send/data1/con4_search2");
  330. model.setValue("/root/send/data1/con4_search2", model.getValue("/root/main/right/h_limt/limt/limt_calcscorcd"));
  331. modal("SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "/root/send/data1/con4_search2", "/root/temp", "", "");
  332. // 수가 정보 보여주기
  333. fShowCalcInfo2();
  334. ]]>
  335. </script>
  336. </button>
  337. <input id="ipt_fromdd" ref="/root/send/item1/fromdd" class="input_search" inputtype="date" style="left:580px; top:56px; width:88px; height:19px; "/>
  338. </xhtml:body>
  339. </xhtml:html>