SPPMO02001_정산대상처방조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. </main>
  11. <send>
  12. <worktype/>
  13. <pid/>
  14. <orddd/>
  15. <cretno/>
  16. <prcpdd/>
  17. <execprcpuniqno/>
  18. <execflag>T</execflag>
  19. <rcptflag>N</rcptflag>
  20. </send>
  21. <init/>
  22. <hidden/>
  23. </root>
  24. </instance>
  25. <submission id="TRPAO02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcplist"/>
  26. <submission id="TRPAC04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/nhicinfo"/>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. function getPrcpRcptCheck(workType, pid, orddd, cretno, prcpdd, execPrcpUniqno) {
  33. if (pid == null || pid == '' || pid == '-') {
  34. return 0;
  35. }
  36. model.setValue("/root/send/worktype", workType);
  37. model.setValue("/root/send/pid", pid);
  38. model.setValue("/root/send/orddd", orddd);
  39. model.setValue("/root/send/cretno", cretno);
  40. model.setValue("/root/send/prcpdd", prcpdd);
  41. model.setValue("/root/send/execprcpuniqno", execPrcpUniqno);
  42. model.refresh();
  43. submit("TRPAO02003");
  44. var cnt = getNodesetCount("/root/main/prcplist");
  45. // 결과가 있는 경우 opener로 데이터 전달
  46. if (cnt > 0) {
  47. opener.model.removeNode("/root/hidden/tempprcplist");
  48. opener.model.makeNode("/root/hidden/tempprcplist");
  49. var sourceNode = instance1.selectNodes("/root/main/prcplist");
  50. for(i=0; i<sourceNode.length; i++){
  51. opener.model.duplicate("/root/hidden/tempprcplist", sourceNode.item(i));
  52. }
  53. opener.model.refresh();
  54. }
  55. return cnt;
  56. }
  57. function fResetPrcpList(pid) {
  58. model.removeNodeset("/root/main/prcplist");
  59. model.setValue("/root/send/pid", pid);
  60. var sourceNode = opener.window.instance1.selectNodes("/root/hidden/tempprcplist/prcplist");
  61. for(i=0; i<sourceNode.length; i++){
  62. model.duplicate("/root/main", sourceNode.item(i));
  63. }
  64. model.refresh();
  65. if (sourceNode.length > 0) {
  66. fShowMSG();
  67. }
  68. }
  69. function fSearch() {
  70. submit("TRPAO02003");
  71. if (getNodesetCount("/root/main/prcplist") > 0) {
  72. fShowMSG();
  73. }
  74. }
  75. function fShowMSG() {
  76. if(getUserInfo("dutplceinstcd")=="031"){
  77. messageBox("수가변동으로 인해 진료비정산이 필요한 고객님입니다.\r\n재계산이 필요하니 안내센타 처방변경,수납 창구로 안내바랍니다.", "C000");
  78. }else{
  79. messageBox("수가변동으로 인해 진료비정산이 필요한 고객님입니다.\r\n재계산이 필요하니 원무과 창구로 안내부탁드립니다.", "C000");
  80. }
  81. }
  82. function fCheckNhicInfo(workType, pid, orddd, cretno, prcpdd, execPrcpUniqno) {
  83. if (prcpdd == null || prcpdd.length < 1 || execPrcpUniqno == null || execPrcpUniqno.length < 1) {
  84. return "";
  85. }
  86. model.setValue("/root/send/worktype", workType);
  87. model.setValue("/root/send/pid", pid);
  88. model.setValue("/root/send/orddd", orddd);
  89. model.setValue("/root/send/cretno", cretno);
  90. model.setValue("/root/send/prcpdd", prcpdd);
  91. model.setValue("/root/send/execprcpuniqno", execPrcpUniqno);
  92. model.refresh();
  93. submit("TRPAC04002");
  94. var msg = "";
  95. if (getNodesetCount("/root/main/nhicinfo") > 0) {
  96. if (model.getValue("/root/main/nhicinfo/chkrslt") == "N") {
  97. msg = model.getValue("/root/main/nhicinfo/msg");
  98. }
  99. }
  100. return msg;
  101. }
  102. ]]>
  103. </script>
  104. <script type="javascript" ev:event="xforms-ready">
  105. <![CDATA[
  106. var userid = getUserId();
  107. if (userid == "PAM") {
  108. cmb_worktype.visible= true;
  109. ipt_orddd.visible= true;
  110. ipt_cretno.visible= true;
  111. ipt_prcpdd.visible= true;
  112. ipt_execprcpuniqno.visible= true;
  113. }
  114. if (checkOpener()) {
  115. fResetPrcpList(opener.javascript.getParameter("SPPMO02001_PARM"));
  116. }
  117. ]]>
  118. </script>
  119. </model>
  120. </xhtml:head>
  121. <xhtml:body pagewidth="880" pageheight="380" guideline="2,380;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="group3" scroll="auto" style="left:0px; top:0px; width:860px; height:300px; ">
  123. <group id="group2" style="left:0px; top:0px; width:765px; height:35px; vertical-align:top; ">
  124. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:765px; height:35px; "/>
  125. <caption id="caption2" class="search_name" style="left:3px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  126. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:699px; top:7px; width:56px; height:22px; ">
  127. <caption>조회</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. var pid = model.getValue("/root/send/pid");
  131. if( pid == '' || pid == '' || pid == '-' ){
  132. messageBox("등록번호는 반드시 입력하셔야 합니다.", "E999", "");
  133. return false;
  134. }
  135. model.setValue("/root/send/worktype", "PAM");
  136. model.refresh();
  137. fSearch();
  138. ]]>
  139. </script>
  140. </button>
  141. <input id="input3" ref="/root/send/pid" class="input_search" navindex="1" style="left:91px; top:8px; width:67px; height:19px; text-align:center; ">
  142. <script type="javascript" ev:event="onkeypress">
  143. <![CDATA[
  144. if (event.keyCode == "13") {
  145. model.setValue("/root/send/pid", input3.currentText);
  146. inputEnterKey("btn_search", "DOMActivate");
  147. }
  148. ]]>
  149. </script>
  150. </input>
  151. <select1 id="combo1" appearance="minimal" style="left:190px; top:10px; width:100px; height:19px; ">
  152. <choices>
  153. <item>
  154. <label>combo1</label>
  155. <value>combo1</value>
  156. </item>
  157. </choices>
  158. </select1>
  159. <input id="input1" style="left:310px; top:10px; width:100px; height:20px; "/>
  160. <input id="input2" style="left:420px; top:10px; width:20px; height:19px; "/>
  161. </group>
  162. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:225px; height:13px; ">정산대상처방</caption>
  163. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist" caption="환자번호^성명^진료일자^진료형태^진료과^진료의^처방코드^처방명칭^검사부서명^실시일자^수신자명^희망진료일자" colsep="^" colwidth="58, 56, 80, 57, 107, 54, 91, 145, 100, 70" rowheader="seq" rowsep="|" style="left:0px; top:65px; width:860px; height:235px; text-align:center; ">
  164. <col ref="pid" style="text-align:center; "/>
  165. <col ref="hngnm" style="text-align:center; "/>
  166. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  167. <col ref="ordtype" style="text-align:center; "/>
  168. <col ref="orddeptnm" style="padding-left:5; "/>
  169. <col ref="orddrnm" style="text-align:center; "/>
  170. <col ref="calcscorcd" style="padding-left:5; "/>
  171. <col ref="calcscornm" style="padding-left:5; "/>
  172. <col ref="execdeptnm" style="padding-left:5; "/>
  173. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  174. </datagrid>
  175. <caption id="caption3" style="left:200px; top:50px; width:560px; height:15px; font-size:10ptpt; color:#ff0000; ">* 정산대상이 존재하는 경우 정산(추가수납 / 환불)을 위해 원무창구로 안내해 주시기 바랍니다.</caption>
  176. <group id="group4" style="left:0px; top:0px; width:860px; height:35px; vertical-align:top; ">
  177. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:860px; height:35px; "/>
  178. <caption id="caption4" class="search_name" style="left:8px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  179. <button id="button1" class="btn1_letter2" navindex="2" style="left:799px; top:7px; width:56px; height:22px; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var pid = model.getValue("/root/send/pid");
  184. if( pid == '' || pid == '' || pid == '-' ){
  185. messageBox("등록번호는 반드시 입력하셔야 합니다.", "E999", "");
  186. return false;
  187. }
  188. if (model.getValue("/root/send/worktype") == null || model.getValue("/root/send/worktype") == "") {
  189. model.setValue("/root/send/worktype", "PAM");
  190. }
  191. model.refresh();
  192. fSearch();
  193. ]]>
  194. </script>
  195. </button>
  196. <input id="input4" ref="/root/send/pid" class="input_search" navindex="1" style="left:96px; top:8px; width:67px; height:19px; text-align:center; ">
  197. <script type="javascript" ev:event="onkeypress">
  198. <![CDATA[
  199. if (event.keyCode == "13") {
  200. model.setValue("/root/send/pid", input3.currentText);
  201. inputEnterKey("btn_search", "DOMActivate");
  202. }
  203. ]]>
  204. </script>
  205. </input>
  206. <select1 id="cmb_worktype" ref="/root/send/worktype" visibility="hidden" appearance="minimal" style="left:355px; top:8px; width:60px; height:19px; ">
  207. <choices>
  208. <item>
  209. <label>PAM</label>
  210. <value>PAM</value>
  211. </item>
  212. <item>
  213. <label>EMR</label>
  214. <value>EMR</value>
  215. </item>
  216. <item>
  217. <label>AST</label>
  218. <value>AST</value>
  219. </item>
  220. <item>
  221. <label>LIS</label>
  222. <value>LIS</value>
  223. </item>
  224. </choices>
  225. </select1>
  226. <input id="ipt_orddd" ref="/root/send/orddd" visibility="hidden" style="left:427px; top:8px; width:80px; height:19px; text-align:center; ">
  227. <hint>
  228. <![CDATA[orddd]]>
  229. </hint>
  230. </input>
  231. <input id="ipt_cretno" ref="/root/send/cretno" visibility="hidden" style="left:510px; top:8px; width:30px; height:19px; ">
  232. <hint>
  233. <![CDATA[cretno]]>
  234. </hint>
  235. </input>
  236. <input id="ipt_prcpdd" ref="/root/send/prcpdd" visibility="hidden" style="left:550px; top:8px; width:75px; height:19px; ">
  237. <hint>
  238. <![CDATA[prcpdd]]>
  239. </hint>
  240. </input>
  241. <input id="ipt_execprcpuniqno" ref="/root/send/execprcpuniqno" visibility="hidden" style="left:628px; top:8px; width:97px; height:19px; ">
  242. <hint>
  243. <![CDATA[execprcpuniqno]]>
  244. </hint>
  245. </input>
  246. <select1 id="combo2" ref="/root/send/execflag" appearance="minimal" style="left:165px; top:8px; width:80px; height:19px; ">
  247. <choices>
  248. <item>
  249. <label>전체</label>
  250. <value>A</value>
  251. </item>
  252. <item>
  253. <label>미실시</label>
  254. <value>N</value>
  255. </item>
  256. <item>
  257. <label>실시</label>
  258. <value>Y</value>
  259. </item>
  260. <item>
  261. <label>당일실시</label>
  262. <value>T</value>
  263. </item>
  264. </choices>
  265. </select1>
  266. <select1 id="combo3" ref="/root/send/rcptflag" appearance="minimal" style="left:246px; top:8px; width:94px; height:19px; ">
  267. <choices>
  268. <item>
  269. <label>전체</label>
  270. <value>A</value>
  271. </item>
  272. <item>
  273. <label>정산미실시</label>
  274. <value>N</value>
  275. </item>
  276. <item>
  277. <label>정산실시</label>
  278. <value>Y</value>
  279. </item>
  280. </choices>
  281. </select1>
  282. </group>
  283. </group>
  284. <group id="group1" scroll="auto" style="left:0px; top:300px; width:860px; height:80px; ">
  285. <button id="btn_close" class="btn4_letter2" style="left:789px; top:8px; width:56px; height:22px; ">
  286. <caption>닫기</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. window.close();
  290. ]]>
  291. </script>
  292. </button>
  293. <caption id="caption5" style="left:5px; top:1px; width:565px; height:79px; ">
  294. <![CDATA[* 차트번호만 입력하여 검색 하는 경우 : 당일실시 + 미실시정산 건만 조회됨
  295. * 실시정산 대상 : 2011년 1월 1일 ~ 2014년 7월 31일 발행된 처방중, 2014년 8월 1일 이후 실시하는 경우
  296. * CT/MRI 조영제 수가 코드가 변경된 환자포함
  297. * 공단 암검진 관련 수가 변경된 환자 포함]]>
  298. </caption>
  299. </group>
  300. </xhtml:body>
  301. </xhtml:html>