SMPIE02300_처방별환자조회(청구삭감).xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. <list01>
  11. <gridclamcut/>
  12. </list01>
  13. <list02>
  14. <comboclamdg>
  15. <clamdgval/>
  16. <clamdglab/>
  17. </comboclamdg>
  18. </list02>
  19. <list03>
  20. <comboclamdg>
  21. <clamdgval/>
  22. <clamdglab/>
  23. </comboclamdg>
  24. </list03>
  25. <list04>
  26. <comboclamdeptcd>
  27. <clamdeptcdval/>
  28. <clamdeptcdlab/>
  29. </comboclamdeptcd>
  30. </list04>
  31. <list05>
  32. <comboorddeptcd>
  33. <orddeptcdval/>
  34. <orddeptcdlab/>
  35. </comboorddeptcd>
  36. </list05>
  37. <list06>
  38. <comboorddrid>
  39. <orddridval/>
  40. <orddridlab/>
  41. </comboorddrid>
  42. </list06>
  43. </main>
  44. <send>
  45. <clamflag/>
  46. <ioflag/>
  47. <prcpcd/>
  48. <prcpcdflag/>
  49. <insukind/>
  50. <orddrid/>
  51. <orddeptcd/>
  52. <clamdeptcd/>
  53. <clamfromym/>
  54. <clamfromdg/>
  55. <clamtoym/>
  56. <clamtodg/>
  57. <offset/>
  58. <pagesize>500</pagesize>
  59. </send>
  60. <init>
  61. <P0408list>
  62. <P0408>
  63. <cdid/>
  64. <cdnm/>
  65. </P0408>
  66. </P0408list>
  67. <P0008list>
  68. <P0008>
  69. <cdid/>
  70. <cdnm/>
  71. </P0008>
  72. </P0008list>
  73. </init>
  74. <tmp>
  75. <send1>
  76. <clamym/>
  77. </send1>
  78. <send2>
  79. <clamym/>
  80. </send2>
  81. </tmp>
  82. </root>
  83. </instance>
  84. <script type="javascript" ev:event="xforms-ready">
  85. <![CDATA[
  86. CommCode_Load();
  87. // 그리드 행을 모두 삭제한다.
  88. model.removeNodeset("/root/main/list01/gridclamcut");
  89. model.refresh();
  90. ]]>
  91. </script>
  92. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  93. <submission id="TRPIE02300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list01"/>
  94. <submission id="TRPIE02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp/send1" resultref="/root/main/list02"/>
  95. <submission id="TRPIE02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp/send2" resultref="/root/main/list03"/>
  96. <submission id="TRPIE02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list04"/>
  97. <submission id="TRPIE02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list05"/>
  98. <submission id="TRPIE02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list06"/>
  99. </model>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  103. <script type="javascript">
  104. <![CDATA[
  105. // 공통코드 Load작업
  106. function CommCode_Load() {
  107. // 관련 Control 초기화
  108. zbcfGetCodeList(new Array("P0408"), new Array("/root/init/P0408list"));
  109. zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"));
  110. rdo_ioflag.select(0);
  111. rdo_prcpcdflag.select(0);
  112. model.refresh();
  113. }
  114. function fSubmitOnScroll() {
  115. if (grd_clamcut.vscroll.attribute("max") != 0 && grd_clamcut.vscroll.attribute("pos") != 0) {
  116. // end of scroll
  117. if (grd_clamcut.vscroll.attribute("max") == grd_clamcut.vscroll.attribute("pos")) {
  118. model.setValue("/root/send/offset",grd_clamcut.rows-1); // grid의 header row는 제외
  119. submit("TRPIE02300");
  120. grd_clamcut.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  121. }
  122. }
  123. }
  124. ]]>
  125. </script>
  126. </xhtml:head>
  127. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  128. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  129. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">처방별환자조회(청구/삭감)</caption>
  130. </group>
  131. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  132. <group id="group6" style="left:0px; top:5px; width:1194px; height:70px; vertical-align:top; ">
  133. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  134. <caption id="caption42" class="search_name" style="left:15px; top:40px; width:90px; height:17px; ">내원유형 :</caption>
  135. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:105px; top:40px; width:135px; height:17px; border-style:none; ">
  136. <choices>
  137. <item>
  138. <label>전체</label>
  139. <value/>
  140. </item>
  141. <item>
  142. <label>입원</label>
  143. <value>I</value>
  144. </item>
  145. <item>
  146. <label>외래</label>
  147. <value>O</value>
  148. </item>
  149. </choices>
  150. </select1>
  151. <caption id="caption43" style="left:497px; top:15px; width:15px; height:10px; ">~</caption>
  152. <caption id="caption41" class="search_name" style="left:770px; top:40px; width:90px; height:17px; ">보험유형 :</caption>
  153. <line id="line28" class="line_4" style="x1:1108px; y1:12px; x2:1108px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  154. <caption id="caption1" class="search_name" style="left:251px; top:12px; width:109px; height:17px; ">청구월/차수 :</caption>
  155. <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" navindex="4" appearance="minimal" style="left:108px; top:10px; width:90px; height:19px; ">
  156. <choices>
  157. <itemset nodeset="/root/init/P0408list/P0408">
  158. <label ref="cdnm"/>
  159. <value ref="cdid"/>
  160. </itemset>
  161. </choices>
  162. </select1>
  163. <caption id="caption2" class="search_name" style="left:16px; top:12px; width:90px; height:17px; ">청구구분 :</caption>
  164. <caption id="caption3" class="search_name" style="left:252px; top:40px; width:75px; height:17px; ">청구과 :</caption>
  165. <caption id="caption4" class="search_name" style="left:420px; top:40px; width:75px; height:17px; ">진료과 :</caption>
  166. <caption id="caption5" class="search_name" style="left:605px; top:40px; width:75px; height:17px; ">진료의 :</caption>
  167. <select1 id="cmb_fromclamdg" ref="/root/send/clamfromdg" class="combo_search" appearance="minimal" style="left:434px; top:10px; width:56px; height:19px; ">
  168. <choices>
  169. <itemset nodeset="/root/main/list02/comboclamdg">
  170. <label ref="clamdglab"/>
  171. <value ref="clamdgval"/>
  172. </itemset>
  173. </choices>
  174. <script type="javascript" ev:event="xforms-select">
  175. <![CDATA[
  176. model.setFocus("ipt_toclamym");
  177. ]]>
  178. </script>
  179. </select1>
  180. <select1 id="cmb_toclamdg" ref="/root/send/clamtodg" class="combo_search" appearance="minimal" style="left:590px; top:10px; width:56px; height:19px; ">
  181. <choices>
  182. <itemset nodeset="/root/main/list03/comboclamdg">
  183. <label ref="clamdglab"/>
  184. <value ref="clamdgval"/>
  185. </itemset>
  186. </choices>
  187. <script type="javascript" ev:event="xforms-select">
  188. <![CDATA[
  189. // [청구월/차수 ~ 청구월/차수]로 [청구과],[진료과],[진료의]를 획득한다.
  190. // 먼저 청구월을 /send 아래 복사해 두어야 한다.
  191. // model.setValue("/root/send/clamfromym",model.getValue("/root/tmp/send1/clamym"));
  192. // model.setValue("/root/send/clamtoym",model.getValue("/root/tmp/send2/clamym"));
  193. submit("TRPIE02303");
  194. submit("TRPIE02304");
  195. // submit("TRPIE02305");
  196. ]]>
  197. </script>
  198. </select1>
  199. <select1 id="cmb_clamdeptcd" ref="/root/send/clamdeptcd" class="combo_search" appearance="minimal" style="left:330px; top:39px; width:80px; height:19px; ">
  200. <choices>
  201. <itemset nodeset="/root/main/list04/comboclamdeptcd">
  202. <label ref="clamdeptcdlab"/>
  203. <value ref="clamdeptcdval"/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:680px; top:39px; width:80px; height:19px; ">
  208. <choices>
  209. <itemset nodeset="/root/main/list06/comboorddrid">
  210. <label ref="orddridlab"/>
  211. <value ref="orddridval"/>
  212. </itemset>
  213. </choices>
  214. </select1>
  215. <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:860px; top:39px; width:80px; height:19px; ">
  216. <choices>
  217. <itemset nodeset="/root/init/P0008list/P0008">
  218. <label ref="cdnm"/>
  219. <value ref="cdid"/>
  220. </itemset>
  221. </choices>
  222. </select1>
  223. <button id="btn_send" class="btn1_letter2" style="left:1123px; top:23px; width:56px; height:22px; ">
  224. <caption>조회</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. if(model.getValue("/root/tmp/send1/clamym") == ""){
  228. messageBox("청구시작월을 입력해 주십시오.", "C009");
  229. }else if(model.getValue("/root/send/clamfromdg") == ""){
  230. messageBox("청구시작차수를 입력해 주십시오.", "C009");
  231. }else if(model.getValue("/root/tmp/send2/clamym") == ""){
  232. messageBox("청구종료월을 입력해 주십시오.", "C009");
  233. }else if(model.getValue("/root/send/clamtodg") == ""){
  234. messageBox("청구종료차수를 입력해 주십시오.", "C009");
  235. }else{
  236. model.removeNodeset("/root/main/list01/gridclamcut");
  237. model.setValue("/root/send/offset","0");
  238. submit("TRPIE02300");
  239. }
  240. ]]>
  241. </script>
  242. </button>
  243. <input id="ipt_prcpcd" ref="/root/send/prcpcd" class="input_search" navindex="4" inputtype="button" style="left:825px; top:10px; width:100px; height:19px; "/>
  244. <select1 id="rdo_prcpcdflag" ref="/root/send/prcpcdflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:725px; top:12px; width:90px; height:17px; border-style:none; ">
  245. <choices>
  246. <item>
  247. <label>수가</label>
  248. <value>1</value>
  249. </item>
  250. <item>
  251. <label>EDI</label>
  252. <value>2</value>
  253. </item>
  254. </choices>
  255. </select1>
  256. <caption id="caption7" class="search_name" style="left:660px; top:12px; width:60px; height:17px; ">코드 :</caption>
  257. <input id="ipt_fromclamym" ref="/root/tmp/send1/clamym" class="input_search" disabled="false" required="true" style="left:360px; top:10px; width:71px; height:19px; ">
  258. <script type="javascript" ev:event="onkeyup">
  259. <![CDATA[
  260. inputEnterKey("btn_getclamfromdg", "DOMActivate");
  261. ]]>
  262. </script>
  263. </input>
  264. <input id="ipt_toclamym" ref="/root/tmp/send2/clamym" class="input_search" disabled="false" required="true" style="left:516px; top:10px; width:71px; height:19px; ">
  265. <script type="javascript" ev:event="onkeyup">
  266. <![CDATA[
  267. inputEnterKey("btn_getclamtodg", "DOMActivate");
  268. ]]>
  269. </script>
  270. </input>
  271. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:500px; top:40px; width:85px; height:19px; ">
  272. <choices>
  273. <itemset nodeset="/root/main/list05/comboorddeptcd">
  274. <label ref="orddeptcdlab"/>
  275. <value ref="orddeptcdval"/>
  276. </itemset>
  277. </choices>
  278. <script type="javascript" ev:event="xforms-select">
  279. <![CDATA[
  280. submit("TRPIE02305");
  281. ]]>
  282. </script>
  283. </select1>
  284. </group>
  285. <caption id="caption36" class="tit_2" style="left:5px; top:90px; width:102px; height:14px; ">청구/삭감내역</caption>
  286. <line id="line27" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
  287. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:85px; width:64px; height:19px; ">
  288. <caption>엑셀저장</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. if (grd_clamcut.rows == 2) {
  292. return;
  293. }
  294. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  295. if (fileName != "")
  296. {
  297. grd_clamcut.saveExcel(fileName, "SheetName", true, true, "", "", true);
  298. }
  299. ]]>
  300. </script>
  301. </button>
  302. <datagrid id="grd_clamcut" nodeset="/root/main/list01/gridclamcut" class="datagrid2" caption="등록번호^성명^내원유형^청구월^구분^차수^유형^보조^청구과^진료과^진료의^주상병^접수번호^명일련^줄번호^처방코드^EDI코드^한글명^단가^수량^횟수^일수^총투여량^금액^입원일자^유형시작일자^종료일^처방의^심사결정^삭감투여량^삭감횟수^삭감일수^총투삭감량" colsep="^" colwidth="70, 60, 30, 55, 30, 30, 30, 30, 65, 70, 70, 70, 60, 45, 45, 80, 80, 450, 100, 50, 50, 50, 50, 100, 65, 65, 65, 65, 50, 50, 50, 50, 50" dataheight="25" ellipsis="false" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:110px; width:1194px; height:632px; ">
  303. <col ref="pid" visibility="visible" style="text-align:center; "/>
  304. <col ref="patnm" visibility="visible" style="text-align:center; "/>
  305. <col ref="ioflag" visibility="visible" style="text-align:center; "/>
  306. <col ref="clamym" visibility="visible" style="text-align:center; "/>
  307. <col ref="clamflag" visibility="visible" style="text-align:center; "/>
  308. <col ref="clamdg" style="text-align:center; "/>
  309. <col checkvalue="Y,N" ref="insukind" style="text-align:center; "/>
  310. <col ref="suppkind" style="text-align:center; "/>
  311. <col ref="clamdeptcd" style="text-align:center; "/>
  312. <col ref="orddeptcd" style="text-align:center; "/>
  313. <col ref="orddrid" style="text-align:center; "/>
  314. <col ref="diagcd" style="text-align:center; "/>
  315. <col ref="acptno" style="text-align:center; "/>
  316. <col ref="docuseqno" style="text-align:center; "/>
  317. <col ref="edilnno" format="#,###" style="text-align:center; "/>
  318. <col ref="snglcalcscorcd" format="#,###" style="text-align:center; "/>
  319. <col ref="edicd" format="#,###" style="text-align:center; "/>
  320. <col ref="cdnm" visibility="hidden" format="#,###" style="text-align:left; "/>
  321. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  322. <col ref="edidrugqty" format="999999-9999999" style="text-align:right; "/>
  323. <col ref="tims" style="text-align:right; "/>
  324. <col ref="edidayno" style="text-align:right; "/>
  325. <col ref="totqty" style="text-align:right; "/>
  326. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  327. <col ref="indd" style="text-align:center; "/>
  328. <col ref="cretfromdd" style="text-align:center; "/>
  329. <col ref="crettodd" style="text-align:center; "/>
  330. <col visibility="hidden" style="text-align:center; "/>
  331. <col ref="cutcd" style="text-align:center; "/>
  332. <col ref="cutdrugqty" style="text-align:right; "/>
  333. <col ref="cuttims" style="text-align:right; "/>
  334. <col ref="cutdayno" style="text-align:right; "/>
  335. <col ref="cuttotqty" style="text-align:right; "/>
  336. <script type="javascript" ev:event="onscroll">
  337. <![CDATA[
  338. fSubmitOnScroll();
  339. ]]>
  340. </script>
  341. </datagrid>
  342. <button id="btn_getclamfromdg" class="btn2_letter11" visibility="hidden" style="left:55px; top:180px; width:141px; height:19px; ">
  343. <caption>[인풋박스]청구차수받기</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. model.setValue("/root/send/clamfromym","");
  347. model.setValue("/root/send/clamfromdg","");
  348. submit("TRPIE02301")
  349. model.setValue("/root/send/clamfromym",model.getValue("/root/tmp/send1/clamym"));
  350. ]]>
  351. </script>
  352. </button>
  353. <button id="btn_getclamtodg" class="btn2_letter11" visibility="hidden" style="left:65px; top:190px; width:141px; height:19px; ">
  354. <caption>[인풋박스]청구차수받기</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. model.setValue("/root/send/clamtoym","");
  358. model.setValue("/root/send/clamtodg","");
  359. submit("TRPIE02302")
  360. model.setValue("/root/send/clamtoym",model.getValue("/root/tmp/send2/clamym"));
  361. ]]>
  362. </script>
  363. </button>
  364. </group>
  365. </xhtml:body>
  366. </xhtml:html>