SMPID20900_환자단위최근삭감내역조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. <send>
  10. <data1>
  11. <pid/>
  12. <clamym/>
  13. <clamdg/>
  14. <ioflag/>
  15. </data1>
  16. </send>
  17. <main>
  18. <list1>
  19. </list1>
  20. <patinfo>
  21. <patinfolist/>
  22. </patinfo>
  23. </main>
  24. <init>
  25. <!-- 명세서구분코드(청구구분) -->
  26. <P0155list>
  27. <P0155>
  28. <cdnm/>
  29. <cdid/>
  30. </P0155>
  31. </P0155list>
  32. </init>
  33. <hidden>
  34. <sppmc02500>
  35. <cond>
  36. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  37. <srchcond/>
  38. <pid/>
  39. <hngnm/>
  40. <rrgstno1/>
  41. <rrgstno2/>
  42. </cond>
  43. </sppmc02500>
  44. <popup>
  45. <pid/>
  46. </popup>
  47. </hidden>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. zbcfGetCodeList(
  53. new Array("P0155"), new Array("/root/init/P0155list"));
  54. // 2. 화면초기화
  55. fInitialize();
  56. ]]>
  57. </script>
  58. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init/clamdg"/>
  59. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  60. <submission id="TRPID20901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. // 화면 초기화
  72. function fInitialize() {
  73. // 1. 조회부 초기화
  74. model.setValue("/root/send/data1/pid", "");
  75. var today = new Date();
  76. var baseyear = today.getDateFormat("YYYY");
  77. var basemonth = today.getDateFormat("MM");
  78. var baseday = today.getDateFormat("DD");
  79. var currentym = baseyear + basemonth;
  80. var currentdd = baseyear + basemonth + baseday;
  81. model.setValue("/root/send/data1/clamym", currentym);
  82. model.setValue("/root/send/data1/clamdg", "");
  83. model.setValue("/root/send/data1/ioflag", "-");
  84. // 청구년월에 대한 청구차수 조회
  85. pidfGetClamdg();
  86. // 2. 그리드 초기화
  87. model.removenode("/root/main/list1");
  88. model.makeNode("/root/main/list1");
  89. // 3. 팝업인 경우 넘겨받은 pid를 넣어준다.
  90. model.setValue("/root/send/data1/pid", model.getValue("/root/hidden/popup/pid"));
  91. model.refresh();
  92. }
  93. // 환자단위 삭감내역 조회
  94. function fGetClodCutList() {
  95. if (model.getValue("/root/send/data1/pid") == "") {
  96. messageBox("환자번호가", "I004");
  97. return false;
  98. }
  99. if (model.getValue("/root/send/data1/clamym") == "") {
  100. messageBox("청구년월이", "I004");
  101. return false;
  102. }
  103. if (submit("TRPID20901")) {
  104. grd_clodcutlist.refresh();
  105. grd_clodcutlist.row = 2;
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body guideline="1,850;2,494;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  112. <group id="group1" style="left:0px; top:0px; width:850px; height:13px; ">
  113. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:13px; ">환자단위 최근삭감내역 조회</caption>
  114. </group>
  115. <group id="group3" scroll="auto" style="left:0px; top:13px; width:850px; height:452px; ">
  116. <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:95px; height:13px; ">처방삭감내역</caption>
  117. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:850px; y2:75px; "/>
  118. <datagrid id="grd_clodcutlist" nodeset="/root/main/list1/clod" caption="청구&#xA;년월^차&#xA;수^청구&#xA;구분^그룹코드^수가코드^수가명^처방^처방^처방^처방^삭감^삭감^삭감^삭감^삭감사유|청구&#xA;년월^차&#xA;수^청구&#xA;구분^그룹코드^수가코드^수가명^투여량^횟수^일수^금액^투여량^횟수^일수^금액^삭감사유" colsep="^" colwidth="45, 21, 60, 80, 80, 150, 43, 35, 35, 53, 43, 35, 35, 53, 55" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:80px; width:850px; height:370px; ">
  119. <col ref="clamym" style="text-align:center; "/>
  120. <col ref="clamdg" style="text-align:center; "/>
  121. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  122. <choices>
  123. <itemset nodeset="/root/init/P0155list/P0155">
  124. <label ref="cdnm"/>
  125. <value ref="cdid"/>
  126. </itemset>
  127. </choices>
  128. </col>
  129. <col ref="grupcalcscorcd" style="text-align:left; "/>
  130. <col ref="snglcalcscorcd" style="text-align:left; "/>
  131. <col ref="hngnm" style="text-align:left; "/>
  132. <col ref="drugqty" format="#.00" style="text-align:right; "/>
  133. <col ref="tims" format="#.00" style="text-align:right; "/>
  134. <col ref="dayno" format="#.00" style="text-align:right; "/>
  135. <col ref="amt" format="#,###" style="text-align:right; "/>
  136. <col ref="cutdrugqty" format="#.00" style="text-align:right; "/>
  137. <col ref="cuttims" format="#.00" style="text-align:right; "/>
  138. <col ref="cutdayno" format="#.00" style="text-align:right; "/>
  139. <col ref="cutamt" format="#,###" style="text-align:right; "/>
  140. <col ref="cutcd" style="text-align:left; "/>
  141. </datagrid>
  142. <button id="button5" class="btn2_letter4" style="left:781px; top:54px; width:64px; height:19px; ">
  143. <caption>엑셀저장</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. if (grd_clodcutlist.rows == 2) {
  147. return;
  148. }
  149. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  150. if (fileName != "")
  151. {
  152. grd_clodcutlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  153. messageBox("EXCEL 저장이 완료되었습니다.","I999");
  154. }
  155. ]]>
  156. </script>
  157. </button>
  158. </group>
  159. <group id="group4" scroll="auto" style="left:0px; top:467px; width:850px; height:27px; ">
  160. <button id="btn_confirm" class="btn4_letter3" style="left:779px; top:5px; width:56px; height:22px; ">
  161. <caption>초기화</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. fInitialize();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:850px; height:43px; "/>
  170. <caption id="caption2" class="search_name" style="left:10px; top:32px; width:86px; height:17px; ">환자번호 :</caption>
  171. <button id="btn_down" class="icon_down" style="left:438px; top:42px; width:10px; height:9px; ">
  172. <caption/>
  173. <script type="javascript" ev:event="onclick">
  174. <![CDATA[
  175. // 청구년월 이전월
  176. var nowym = model.getValue("/root/send/data1/clamym");
  177. var downym;
  178. downym = pidfCalMonth(-1, nowym);
  179. model.setValue("/root/send/data1/clamym", downym);
  180. ipt_clamym.refresh();
  181. // 청구년월에 대한 청구차수 조회
  182. model.setValue("/root/send/data1/clamdg", "");
  183. cmb_clamdg.refresh();
  184. pidfGetClamdg();
  185. ]]>
  186. </script>
  187. </button>
  188. <select1 id="cmb_clamdg" ref="/root/send/data1/clamdg" navindex="3" appearance="minimal" editmode="input" style="left:453px; top:32px; width:62px; height:19px; ">
  189. <choices>
  190. <itemset nodeset="/root/init/clamdg/clamdglist">
  191. <label ref="clamdgnm"/>
  192. <value ref="clamdgcd"/>
  193. </itemset>
  194. </choices>
  195. </select1>
  196. <caption id="caption7" class="search_name" style="left:275px; top:32px; width:86px; height:17px; ">청구년월 :</caption>
  197. <button id="btn_up" class="icon_up" style="left:438px; top:32px; width:10px; height:9px; ">
  198. <caption/>
  199. <script type="javascript" ev:event="onclick">
  200. <![CDATA[
  201. // 청구년월 다음월
  202. var nowym = model.getValue("/root/send/data1/clamym");
  203. var upym;
  204. upym = pidfCalMonth(1, nowym);
  205. model.setValue("/root/send/data1/clamym", upym);
  206. ipt_clamym.refresh();
  207. // 청구년월에 대한 청구차수 조회
  208. model.setValue("/root/send/data1/clamdg", "");
  209. cmb_clamdg.refresh();
  210. pidfGetClamdg();
  211. ]]>
  212. </script>
  213. </button>
  214. <input id="ipt_clamym" ref="/root/send/data1/clamym" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:365px; top:32px; width:69px; height:19px; text-align:center; ">
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. // 청구년월에 대한 청구차수 조회
  218. model.setValue("/root/send/data1/clamdg", "");
  219. cmb_clamdg.refresh();
  220. pidfGetClamdg();
  221. ]]>
  222. </script>
  223. </input>
  224. <line id="line3" class="line_4" style="x1:759px; y1:30px; x2:759px; y2:52px; "/>
  225. <button id="btn_search" class="btn1_letter2" navindex="32" style="left:775px; top:30px; width:56px; height:22px; ">
  226. <caption>조회</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. fGetClodCutList();
  230. ]]>
  231. </script>
  232. </button>
  233. <input id="ipt_pid" ref="/root/send/data1/pid" class="input_search" navindex="1" inputtype="button" maxlength="10" style="left:100px; top:32px; width:85px; height:19px; ">
  234. <script type="javascript" ev:event="onbuttonclick">
  235. <![CDATA[
  236. // 1. 환자조회 팝업 호출
  237. var pid = model.getValue("/root/send/data1/pid");
  238. if (pid != "") {
  239. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1");
  240. model.setValue("/root/hidden/sppmc02500/cond/pid", pid);
  241. } else {
  242. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  243. }
  244. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
  245. // 2. 조회된 환자번호 입력
  246. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  247. if (srch_pid) {
  248. model.removeNodeset("/root/main/patinfo/patinfolist");
  249. model.makeNode("/root/main/patinfo/patinfolist");
  250. model.setValue("/root/send/data1/pid", srch_pid);
  251. }
  252. model.refresh();
  253. ]]>
  254. </script>
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. ]]>
  258. </script>
  259. </input>
  260. </xhtml:body>
  261. </xhtml:html>