SMPIS01100_청구이력조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPIS01100_청구이력조회.xrw
  4. ************************************************
  5. * [ Maps ]
  6. * TRZBC00102 : 공통코드(청구 구분)
  7. * TRPID20201 : 청구과 콤보 리스트
  8. -->
  9. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  10. <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">
  11. <xhtml:head>
  12. <xhtml:title>청구이력조회</xhtml:title>
  13. <model id="model1">
  14. <instance id="instance1">
  15. <root xmlns="">
  16. <send>
  17. <insukind>A</insukind>
  18. <pid/>
  19. <patnm/>
  20. </send>
  21. <main>
  22. <grdlist>
  23. <clamhist>
  24. <chk/>
  25. <pid/>
  26. <pidsn/>
  27. <patnm/>
  28. <rrgstno/>
  29. <clamym/>
  30. <clamflagcd/>
  31. <clamdg/>
  32. <ioflag/>
  33. <insukind/>
  34. <suppkind/>
  35. <clamdeptnm/>
  36. <orddeptabbr/>
  37. <orddeptcd/>
  38. <orddrnm/>
  39. <judgendyn/>
  40. <judgmemo/>
  41. <clamendyn/>
  42. <acptno/>
  43. <docuseqno/>
  44. <indd/>
  45. <dschdd/>
  46. <ordfromdd/>
  47. <ordtodd/>
  48. <fromdd/>
  49. <todd/>
  50. <judgyn/>
  51. <delreason/>
  52. <rtnrsncd1/>
  53. <rtnrsncd2/>
  54. <edimedcaretotamt/>
  55. <ediownbamt/>
  56. <ediinsuclamamt/>
  57. <ediownbmaxexamt/>
  58. <edisuppamt/>
  59. <edisubtamt/>
  60. <edihandcaprfund/>
  61. <judgrid/>
  62. <judgenddd/>
  63. <insuno/>
  64. <ordfromdd/>
  65. <ordtodd/>
  66. <cretfromdd/>
  67. <crettodd/>
  68. <ordfildcd/>
  69. <lockyn/>
  70. </clamhist>
  71. </grdlist>
  72. </main>
  73. <init>
  74. <!-- 청구구분 -->
  75. <P0155list>
  76. <P0155>
  77. <cdnm/>
  78. <cdid/>
  79. <cdengabbrnm/>
  80. </P0155>
  81. </P0155list>
  82. <!-- 청구과 -->
  83. <P0437list>
  84. <P0437>
  85. <cdnm/>
  86. <cdid/>
  87. <cdengabbrnm/>
  88. </P0437>
  89. </P0437list>
  90. <!-- 심사상태 -->
  91. <P0151list>
  92. <P0151>
  93. <cdnm/>
  94. <cdid/>
  95. <cdengabbrnm/>
  96. </P0151>
  97. </P0151list>
  98. <!-- 명세서서상태 -->
  99. <P0430list>
  100. <P0430>
  101. <cdnm/>
  102. <cdid/>
  103. <cdengabbrnm/>
  104. </P0430>
  105. </P0430list>
  106. <!-- 삭제사유 -->
  107. <P0465list>
  108. <P0465>
  109. <cdnm/>
  110. <cdid/>
  111. <cdengabbrnm/>
  112. </P0465>
  113. </P0465list>
  114. <clamdeptlist>
  115. <cdid/>
  116. <cdnm/>
  117. </clamdeptlist>
  118. </init>
  119. <!-- 환자 조회 -->
  120. <hidden>
  121. <sppmc02500>
  122. <cond>
  123. <srchcond/>
  124. <pid/>
  125. <hngnm/>
  126. </cond>
  127. </sppmc02500>
  128. <clbs>
  129. <judgmemo/>
  130. </clbs>
  131. </hidden>
  132. </root>
  133. </instance>
  134. <script type="javascript" ev:event="xforms-ready">
  135. <![CDATA[
  136. // 화면 초기화
  137. model.removeNodeset("/root/main/grdlist/clamhist"); // 그리드 초기화
  138. zbcfGetCodeList(new Array("P0155","P0437","P0151","P0430","P0465")
  139. ,new Array("/root/init/P0155list","/root/init/P0437list","/root/init/P0151list","/root/init/P0430list","/root/init/P0465list")
  140. ,false); // 청구구분
  141. // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
  142. if ( model.getValue("/root/send/pid") != "" || model.getValue("/root/send/patnm") != "")
  143. {
  144. fSearch();
  145. }
  146. // 청구과 콤보 조회시 내원유형이 조건에 포함되므로 팝업의 경우를 고려해서 여기서 뿌려준다.
  147. //fGetClamDept(); // 청구과 콤보 리스트
  148. ]]>
  149. </script>
  150. <!-- submission -->
  151. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  152. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  153. <submission id="TRPIS01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clamhist"/>
  154. </model>
  155. <!-- js import -->
  156. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  157. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  159. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  160. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  161. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  162. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  164. <!-- 뽕숑 -->
  165. <script type="javascript">
  166. <![CDATA[
  167. // 청구과 리스트 가져오기
  168. function fGetClamDept()
  169. {
  170. submit("TRPID20201");
  171. }
  172. // 환자단위 조회
  173. function fPatSrch()
  174. {
  175. var ipt_pid = model.getValue("/root/send/patunitsrch");
  176. if (ipt_pid) {
  177. if ( !isNaN(ipt_pid) )
  178. {
  179. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  180. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  181. }
  182. else
  183. {
  184. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  185. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  186. }
  187. } else {
  188. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  189. }
  190. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  191. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  192. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  193. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  194. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  195. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  196. model.setValue("/root/send/patunitsrch", srch_pid);
  197. }
  198. model.refresh();
  199. }
  200. // 조회
  201. function fSearch()
  202. {
  203. var chk_pid = model.getValue("/root/send/pid");
  204. var chk_hngnm = model.getValue("/root/send/patnm");
  205. if (chk_pid == "" && chk_hngnm == "")
  206. {
  207. messageBox("환자조회 조건은 ", "I003");
  208. }
  209. else
  210. {
  211. model.removeNodeset("/root/main/grdlist/clamhist");
  212. submit("TRPIS01100");
  213. }
  214. }
  215. ]]>
  216. </script>
  217. </xhtml:head>
  218. <xhtml:body pagewidth="740" pageheight="450" guideline="1,1212;2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  219. <!-- TITLE -->
  220. <group id="group1" style="left:0px; top:0px; width:715px; height:13px; ">
  221. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">청구이력조회</caption>
  222. </group>
  223. <!-- 전체 그룹 -->
  224. <group id="group2" scroll="auto" style="left:0px; top:13px; width:715px; height:382px; ">
  225. <!-- 조회조건 -->
  226. <group id="group3" style="left:0px; top:10px; width:713px; height:35px; vertical-align:top; ">
  227. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:713px; height:35px; "/>
  228. <line id="line1" class="line_4" style="x1:640px; y1:5px; x2:640px; y2:27px; "/>
  229. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:650px; top:5px; width:56px; height:22px; ">
  230. <caption>조회</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. fSearch();
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption26" class="search_name" style="left:309px; top:9px; width:80px; height:17px; ">환자번호</caption>
  238. <caption id="caption3" class="search_name" style="left:7px; top:9px; width:76px; height:17px; ">보험유형</caption>
  239. <select1 id="rdo_insukind" ref="/root/send/insukind" class="radio_search" appearance="full" cols="5" overflow="visible" style="left:87px; top:9px; width:218px; height:20px; border-style:none; ">
  240. <choices>
  241. <item>
  242. <label>전체</label>
  243. <value>A</value>
  244. </item>
  245. <item>
  246. <label>보험</label>
  247. <value>11</value>
  248. </item>
  249. <item>
  250. <label>보호</label>
  251. <value>21</value>
  252. </item>
  253. <item>
  254. <label>자보</label>
  255. <value>31</value>
  256. </item>
  257. <item>
  258. <label>산재</label>
  259. <value>41</value>
  260. </item>
  261. </choices>
  262. <script type="javascript" ev:event="xforms-value-changed">
  263. <![CDATA[
  264. fGetClamDept();
  265. ]]>
  266. </script>
  267. </select1>
  268. <input id="ipt_patunitsrch" ref="/root/send/pid" class="input_search" navindex="3" maxlength="10" style="left:392px; top:7px; width:100px; height:19px; ">
  269. <hint>
  270. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  271. </hint>
  272. <script type="javascript" ev:event="onkeypress">
  273. <![CDATA[
  274. if (event.keyCode == "13") { // Enter 입력 시에
  275. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  276. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  277. if( isNaN(model.getValue("/root/send/patunitsrch")) ) // PID로 검색시 조회
  278. {
  279. fPatSrch();
  280. }
  281. else
  282. {
  283. fSearch();
  284. }
  285. }
  286. }
  287. ]]>
  288. </script>
  289. <script type="javascript" ev:event="onbuttonclick">
  290. <![CDATA[
  291. fPatSrch();
  292. ]]>
  293. </script>
  294. </input>
  295. <input id="ipt_acptno" ref="/root/send/patnm" class="input_search" navindex="3" imemode="hangul" maxlength="15" style="left:560px; top:8px; width:70px; height:19px; ">
  296. <hint>
  297. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  298. </hint>
  299. <script type="javascript" ev:event="onkeypress">
  300. <![CDATA[
  301. if (event.keyCode == "13") { // Enter 입력 시에
  302. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  303. fSearch();
  304. }
  305. ]]>
  306. </script>
  307. </input>
  308. <caption id="caption5" class="search_name" style="left:494px; top:10px; width:80px; height:17px; ">환자명</caption>
  309. </group>
  310. <caption id="caption8" class="tit_2" style="left:0px; top:60px; width:100px; height:13px; ">환자 리스트</caption>
  311. <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/clamhist" class="datagrid2" caption="청구월^차수^등록번호^순번^성명^주민번호^구분^내원유형^기관기호^기관명^유형^보조^진료과^진료의^심사상태^청구상태^접수번호^명일련^입원일^퇴원일^진료개시일^진료종료일^심사결정^삭제사유^반송사유^반송사유^심사자^심사시간" colsep="^" colwidth="76, 44, 62, 19, 49, 103, 39, 37, 62, 176, 20, 23, 103, 55, 66, 72, 66, 54, 78, 78, 78, 78, 37, 170, 29, 29, 59, 83" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:715px; height:300px; ">
  312. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  313. <col ref="clamdg" style="text-align:center; "/>
  314. <col ref="pid" style="text-align:center; "/>
  315. <col ref="pidsn" style="text-align:center; "/>
  316. <col ref="patnm" style="text-align:center; "/>
  317. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  318. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  319. <choices>
  320. <itemset nodeset="/root/init/P0155list/P0155">
  321. <label ref="cdengabbrnm"/>
  322. <value ref="cdid"/>
  323. </itemset>
  324. </choices>
  325. </col>
  326. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  327. <choices>
  328. <item>
  329. <label>입원</label>
  330. <value>I</value>
  331. </item>
  332. <item>
  333. <label>외래</label>
  334. <value>O</value>
  335. </item>
  336. </choices>
  337. </col>
  338. <col ref="insuno" style="text-align:center; "/>
  339. <col ref="insunm" style="text-align:left; "/>
  340. <col ref="insukind" style="text-align:center; "/>
  341. <col ref="suppkind" style="text-align:center; "/>
  342. <col ref="orddeptabbr" style="text-align:center; "/>
  343. <col ref="orddrnm" style="text-align:center; "/>
  344. <col disabled="true" ref="judgendyn" type="combo">
  345. <choices>
  346. <itemset nodeset="/root/init/P0151list/P0151">
  347. <label ref="cdnm"/>
  348. <value ref="cdid"/>
  349. </itemset>
  350. </choices>
  351. </col>
  352. <col disabled="true" ref="clamendyn" type="combo" style="text-align:center; ">
  353. <choices>
  354. <itemset nodeset="/root/init/P0430list/P0430">
  355. <label ref="cdnm"/>
  356. <value ref="cdid"/>
  357. </itemset>
  358. </choices>
  359. </col>
  360. <col ref="acptno" style="text-align:center; "/>
  361. <col ref="docuseqno" style="text-align:right; "/>
  362. <col ref="indd" format="yyyy-mm-dd" style="left:1050px; top:32px; width:78px; height:23px; text-align:center; "/>
  363. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  364. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  365. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  366. <col ref="judgyn" format="yyyy-mm-dd" style="text-align:center; "/>
  367. <col disabled="true" ref="delreason" type="combo">
  368. <choices>
  369. <itemset nodeset="/root/init/P0465list/P0465">
  370. <label ref="cdnm"/>
  371. <value ref="cdid"/>
  372. </itemset>
  373. </choices>
  374. </col>
  375. <col ref="rtnrsncd1"/>
  376. <col ref="rtnrsncd2"/>
  377. <col ref="judgrid" style="text-align:center; "/>
  378. <col ref="judgenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  379. <script type="javascript" ev:event="xforms-value-changed">
  380. <![CDATA[
  381. var icol = grd_outjudg.col;
  382. var irow = grd_outjudg.row;
  383. if (icol == grd_outjudg.colRef("chk")) {
  384. if (model.getValue("/root/main/grdlist/clamhist[ " + irow + "]/chk") == "Y") {
  385. // 잠금설정이 되어 있으면 생성삭제를 할 수 없다.
  386. if (model.getValue("/root/main/grdlist/clamhist[ " + irow + "]/lockyn") == "Y") {
  387. messageBox("잠금설정되어서 선택할 수", "I004"); // I004=없습니다.
  388. model.setValue("/root/main/grdlist/clamhist[ " + irow + "]/chk", "N");
  389. }
  390. }
  391. }
  392. ]]>
  393. </script>
  394. <script type="javascript" ev:event="ondblclick">
  395. <![CDATA[
  396. var icol = grd_outjudg.col;
  397. var irow = grd_outjudg.row;
  398. if (icol == grd_outjudg.colRef("chk") && irow == 0) {
  399. var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
  400. var i = 1;
  401. for ( i = 1; i <= nodeList.length; i++) {
  402. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y") {
  403. model.setValue("/root/main/grdlist/clamhist[" + i + "]/chk", "N");
  404. } else {
  405. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
  406. model.setValue("/root/main/grdlist/clamhist[" + i + "]/chk", "Y");
  407. }
  408. }
  409. }
  410. }
  411. ]]>
  412. </script>
  413. <script type="javascript" ev:event="onmouseup">
  414. <![CDATA[
  415. // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
  416. // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
  417. if (grd_outjudg.isCell(event.target) && grd_outjudg.row >= grd_outjudg.fixedRows) {
  418. var col = grd_outjudg.mouseCol;
  419. if (col == grd_outjudg.colRef("judgmemo")) { // 메모
  420. if (grp_judgmemo.visible) {
  421. grp_judgmemo.visible = false;
  422. } else {
  423. grd_outjudg.toprow = grd_outjudg.mouseRow;
  424. model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/grdlist/clamhist[" + grd_outjudg.mouseRow + "]/judgmemo"));
  425. model.refresh();
  426. grp_judgmemo.visible = true;
  427. model.setFocus("tar_judgmemo");
  428. }
  429. }
  430. }
  431. ]]>
  432. </script>
  433. <script type="javascript" ev:event="onbuttonclick">
  434. <![CDATA[
  435. // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
  436. // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
  437. // if (grd_outjudg.isCell(event.target) && grd_outjudg.row >= grd_outjudg.fixedRows) {
  438. var col = grd_outjudg.mouseCol;
  439. if (col == grd_outjudg.colRef("judgmemo")) { // 메모
  440. if (grp_judgmemo.visible) {
  441. grp_judgmemo.visible = false;
  442. } else {
  443. grd_outjudg.toprow = grd_outjudg.mouseRow;
  444. model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/grdlist/clamhist[" + grd_outjudg.mouseRow + "]/judgmemo"));
  445. model.refresh();
  446. grp_judgmemo.visible = true;
  447. model.setFocus("tar_judgmemo");
  448. }
  449. }
  450. // }
  451. ]]>
  452. </script>
  453. <script type="javascript" ev:event="oncopy">
  454. <![CDATA[
  455. grid_oncopy();
  456. ]]>
  457. </script>
  458. </datagrid>
  459. </group>
  460. <group id="group4" scroll="auto" style="left:0px; top:395px; width:715px; height:27px; ">
  461. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:590px; top:5px; width:56px; height:22px; ">
  462. <caption>확인</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. if ( checkOpener() ) {
  466. row = grd_outjudg.row;
  467. if( row > 0 ){
  468. if( getNodesetCount("/root/main/grdlist/clamhist") > 0 ){
  469. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_outjudg.getNode( row ));
  470. }
  471. }else {
  472. messageBox("행이 정확히 선택되지", "E007");
  473. }
  474. } else {
  475. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  476. }
  477. opener.model.refresh();
  478. window.close();
  479. ]]>
  480. </script>
  481. </button>
  482. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:649px; top:5px; width:56px; height:22px; ">
  483. <caption>취소</caption>
  484. <script type="javascript" ev:event="DOMActivate">
  485. <![CDATA[
  486. opener.model.makeNode("/root/main/popupendflag");
  487. opener.model.setValue("/root/main/popupendflag", "cancel");
  488. window.close();
  489. ]]>
  490. </script>
  491. </button>
  492. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
  493. </group>
  494. </xhtml:body>
  495. </xhtml:html>