SMPIF73100_진료비미수현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. <datagrid/>
  11. </main>
  12. <hidden>
  13. <isexist/>
  14. </hidden>
  15. <send>
  16. <clamym/>
  17. <datagrid/>
  18. <research/>
  19. <ordfildcd/>
  20. </send>
  21. <init>
  22. <PAM>
  23. <PK069list/>
  24. </PAM>
  25. </init>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. // 화면을 초기화한다.
  31. fInitialize();
  32. ]]>
  33. </script>
  34. <submission id="TRPIF73101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/datagrid"/>
  35. <submission id="TXPIF73101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/tmp"/>
  36. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  44. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. // -----------------------
  48. // ▶ 화면초기화
  49. // -----------------------
  50. function fInitialize() {
  51. pamfGetCodeList(new Array("PK069"),
  52. new Array("/root/init/PAM/PK069list"
  53. ));
  54. //화면버튼 권한설정 : 기본 (숨김)
  55. if (model.getXPathValue("/root/init/PAM/PK069list/PK069[cdid='"+getUserId()+"']/cdid") != '') {
  56. setSpclScrnAuth("x", true);
  57. } else {
  58. setSpclScrnAuth("r", true);
  59. }
  60. ipt_clamym.value = getCurrentDate().substring(0,6);
  61. ipt_clamym.refresh();
  62. if ( model.getValue("/root/main/datagrid[1]/isexist") == "O") {
  63. btn_prnt.disabled = false;
  64. button4.disabled = false;
  65. button3.disabled = false;
  66. } else {
  67. btn_prnt.disabled = true;
  68. button4.disabled = true;
  69. button3.disabled = true;
  70. }
  71. }
  72. function fGetDocuList () {
  73. submit("TRPIF73101");
  74. grd_clbsmast.sort(grd_clbsmast.fixedRows,grd_clbsmast.colRef("ioflag"),grd_clbsmast.rows-1 ,grd_clbsmast.colRef("insuflag")) = "asc";
  75. var bfuncoamt,afinsuclamamt,depoamt,buncoamt,bdepoamt,cutamt,mvuncoamt,compamt,otheramt = 0;
  76. for (i=grd_clbsmast.fixedRows; i < grd_clbsmast.rows; i++) {
  77. bfuncoamt,afinsuclamamt,depoamt,buncoamt,bdepoamt,cutamt,mvuncoamt,compamt,otheramt = 0;
  78. bfuncoamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("bfuncoamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("bfuncoamt"))) : 0;
  79. afinsuclamamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("afinsuclamamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("afinsuclamamt"))) : 0;
  80. depoamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("depoamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("depoamt"))) : 0;
  81. buncoamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("buncoamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("buncoamt"))) : 0;
  82. bdepoamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("bdepoamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("bdepoamt"))) : 0;
  83. cutamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("cutamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("cutamt"))) : 0;
  84. mvuncoamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("mvuncoamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("mvuncoamt"))) : 0;
  85. compamt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("compamt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("compamt"))) : 0;
  86. otheramt = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("otheramt")).length > 0 ? parseInt(grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("otheramt"))) : 0;
  87. grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("uncoamt")) = bfuncoamt + afinsuclamamt - depoamt + buncoamt - bdepoamt+ cutamt + mvuncoamt + compamt + otheramt;
  88. grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("uncoym")) = ipt_clamym.value;
  89. if (grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("isexist")) == 'I') {
  90. grd_clbsmast.rowStatus(i) = 3;
  91. }
  92. }
  93. grd_clbsmast.subtotalposition="below";
  94. for (i=3; i < grd_clbsmast.cols; i++) {
  95. grd_clbsmast.subtotal("sum", grd_clbsmast.colRef("ioflag"), i, "(-)#,###", "background-color:#99ff99", 1, "소계");
  96. grd_clbsmast.subtotal("sum", -1, i, "(-)#,###", "background-color:#99ff99", 1, "합계");
  97. }
  98. grd_clbsmast.merge();
  99. if ( model.getValue("/root/main/datagrid[1]/isexist") == "O") {
  100. btn_prnt.disabled = false;
  101. button4.disabled = false;
  102. button3.disabled = false;
  103. } else {
  104. btn_prnt.disabled = true;
  105. button4.disabled = true;
  106. button3.disabled = true;
  107. }
  108. }
  109. function fGetListExistChk() {
  110. if (grd_clbsmast.valueMatrix(grd_clbsmast.fixedRows + 1, grd_clbsmast.colRef("isexist")) == 'O') {
  111. model.setValue("/root/hidden/isexist", "Y");
  112. } else {
  113. model.setValue("/root/hidden/isexist", "N");
  114. }
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body pagewidth="1215" pageheight="800" guideline="1,1197;2,771;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  121. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">미수현황</caption>
  122. </group>
  123. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  124. <datagrid id="grd_clbsmast" nodeset="/root/main/datagrid" class="datagrid2" caption="구분^구분^전월미수금&#xA;(A)^금월 발생액^금월 발생액^금월 발생액^청구불능&#xA;자체조정&#xA;(D-C)^심사후청구액&#xA;(D)^청구^뇌사자^뇌사자^삭감액&#xA;(H)^미수&#xA;이관&#xA;(I)^기타^기타^금월미수금&#xA;(A+D-E+F-G+H+I+J+K)^존재여부^청구년월^장애인^장애인뺀금액^누락금액^추가금액^보완차액금액^보완삭제금액^환수액^원삭감액|구분^구분^전월미수금&#xA;(A)^원무청구액&#xA;(B)^심사전청구액&#xA;(C)^차액&#xA;(C-B)^청구불능&#xA;자체조정&#xA;(D-C)^심사후청구액&#xA;(D)^미수입급&#xA;(E)^미수금&#xA;(F)^미수입금&#xA;(G)^삭감액&#xA;(H)^미수&#xA;이관&#xA;(I)^추가당초.&#xA;보완청구&#xA;(J)&#xA;&#xA;^기타&#xA;(K)^금월미수금&#xA;(A+D-E+F-G+H+I+J+K)^존재여부^청구년월^장애인^장애인뺀금액^누락금액^추가금액^보완차액금액^보완삭제금액^환수액^원삭감액|구분^구분^전월미수금&#xA;(A)^원무청구액&#xA;(B)^심사전청구액&#xA;(C)^차액&#xA;(C-B)^청구불능&#xA;자체조정&#xA;(D-C)^심사후청구액&#xA;(D)^미수입급&#xA;(E)^미수금&#xA;(F)^미수입금&#xA;(G)^삭감액&#xA;(H)^미수&#xA;이관&#xA;(I)^추가당초.&#xA;보완청구&#xA;(J)&#xA;&#xA;^기타&#xA;(K)^금월미수금&#xA;(A+D-E+F-G+H+I+J+K)^존재여부^청구년월^장애인^장애인뺀금액^누락금액^추가금액^보완차액금액^보완삭제금액^환수액^원삭감액" colsep="^" colwidth="48, 58, 91, 95, 99, 91, 89, 79, 82, 73, 82, 86, 93, 78, 70, 139, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecells="byrestriccol" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:72px; width:1194px; height:686px; ">
  125. <col disabled="true" ref="ioflag" type="combo">
  126. <choices>
  127. <item>
  128. <label>입원</label>
  129. <value>I</value>
  130. </item>
  131. <item>
  132. <label>외래</label>
  133. <value>O</value>
  134. </item>
  135. </choices>
  136. </col>
  137. <col disabled="true" ref="insuflag" type="combo" visibility="visible">
  138. <choices>
  139. <item>
  140. <label>건강보험</label>
  141. <value>1</value>
  142. </item>
  143. <item>
  144. <label>의료급여</label>
  145. <value>2</value>
  146. </item>
  147. <item>
  148. <label>자보</label>
  149. <value>3</value>
  150. </item>
  151. <item>
  152. <label>산재</label>
  153. <value>4</value>
  154. </item>
  155. <item>
  156. <label>기타</label>
  157. <value>5</value>
  158. </item>
  159. <item>
  160. <label>장기이식</label>
  161. <value>9</value>
  162. </item>
  163. </choices>
  164. </col>
  165. <col ref="bfuncoamt" type="output" format="(-)#,###" style="text-align:right; "/>
  166. <col ref="insuclamamt" type="output" format="(-)#,###" style="text-align:right; "/>
  167. <col ref="bfinsuclamamt" type="output" format="(-)#,###" style="text-align:right; "/>
  168. <col ref="bfdiffamt" type="output" format="(-)#,###" style="text-align:right; "/>
  169. <col ref="afdiffamt" type="output" format="(-)#,###" style="text-align:right; "/>
  170. <col ref="afinsuclamamt" type="output" format="(-)#,###" style="text-align:right; "/>
  171. <col ref="depoamt" type="output" format="(-)#,###" style="left:332px; top:32px; width:53px; height:23px; text-align:right; "/>
  172. <col ref="buncoamt" type="output" format="(-)#,###" style="text-align:right; "/>
  173. <col ref="bdepoamt" type="output" format="(-)#,###" style="text-align:right; "/>
  174. <col ref="cutamt" type="output" format="(-)#,###" style="text-align:right; "/>
  175. <col ref="mvuncoamt" type="output" format="(-)#,###" style="text-align:right; "/>
  176. <col ref="compamt" type="output" format="(-)#,###" style="text-align:right; "/>
  177. <col ref="otheramt" type="output" format="(-)#,###" style="text-align:right; "/>
  178. <col ref="uncoamt" type="output" format="(-)#,###" style="left:1234px; top:72px; width:88px; height:23px; text-align:right; "/>
  179. <col ref="isexist" visibility="hidden"/>
  180. <col ref="uncoym" visibility="hidden"/>
  181. <col ref="bfhandcaprfund" visibility="hidden"/>
  182. <col ref="bfnosuminsuclamamt" visibility="hidden"/>
  183. <col ref="misscompamt" visibility="hidden"/>
  184. <col ref="addcompamt" visibility="hidden"/>
  185. <col ref="minuscompamt" visibility="hidden"/>
  186. <col ref="delcompamt" visibility="hidden"/>
  187. <col ref="rtnamt" visibility="hidden"/>
  188. <col ref="orgreduamt" visibility="hidden"/>
  189. </datagrid>
  190. <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:52px; width:245px; height:15px; ">미수현황</caption>
  191. <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1194px; y2:67px; "/>
  192. <group id="group1" style="left:0px; top:4px; width:1195px; height:41px; vertical-align:top; ">
  193. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  194. <caption id="caption30" class="search_name" style="left:10px; top:7px; width:85px; height:17px; ">청구년월</caption>
  195. <input id="ipt_clamym" ref="/root/send/clamym" class="input_search" navindex="1" editable="true" inputtype="date" format="yyyy-mm" style="left:91px; top:7px; width:69px; height:19px; text-align:center; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. ]]>
  199. </script>
  200. </input>
  201. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:1130px; top:6px; width:56px; height:22px; ">
  202. <caption>조회</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. model.setValue("/root/send/research", "");
  206. fGetDocuList();
  207. fGetListExistChk();
  208. ]]>
  209. </script>
  210. </button>
  211. <line id="line3" class="line_4" style="x1:1120px; y1:7px; x2:1120px; y2:29px; "/>
  212. <caption id="caption1" class="search_name" style="left:170px; top:7px; width:85px; height:17px; ">진료분야</caption>
  213. <select1 id="combo1" ref="/root/send/ordfildcd" appearance="minimal" style="left:255px; top:7px; width:100px; height:19px; ">
  214. <choices>
  215. <item>
  216. <label>전체</label>
  217. <value/>
  218. </item>
  219. <item>
  220. <label>치과</label>
  221. <value>6</value>
  222. </item>
  223. </choices>
  224. </select1>
  225. </group>
  226. <button id="btn_cancel" class="btn4_letter2" _auth="X" style="left:1139px; top:45px; width:56px; height:22px; ">
  227. <caption>마감</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. var gridStatusCheck = getGridUpdateData(grd_clbsmast);
  231. if (gridStatusCheck == "") {
  232. messageBox("변경된 정보가 없습니다.", "");
  233. return;
  234. }
  235. if (model.getValue("/root/hidden/isexist") == "Y") {
  236. var retMes = messageBox("이미 저장된 데이터가 존재합니다. \n이전의 데이터 삭제 후 ", "Q002");
  237. if ( retMes != 6) return;
  238. for (i=grd_clbsmast.fixedRows; i < grd_clbsmast.rows; i++) {
  239. if (grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("isexist")) == 'O') {
  240. grd_clbsmast.rowStatus(i) = 3;
  241. }
  242. }
  243. } else {
  244. var retMes = messageBox("", "Q002");
  245. }
  246. if ( retMes != 6) return;
  247. model.setValue("/root/send/datagrid",grd_clbsmast.getUpdateData());
  248. submit("TXPIF73101");
  249. model.setValue("/root/send/research", "");
  250. btn_select.dispatch("DOMActivate");
  251. ]]>
  252. </script>
  253. </button>
  254. <button id="btn_prnt" class="btn6_letter7" style="left:429px; top:45px; width:116px; height:22px; ">
  255. <caption>진료비미수현황</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. if (model.getValue(combo1.attribute("ref")) == "6") {
  259. exeReportPreview("RPPIF73110", "XMLSTR", "","", "false","","","","","false");
  260. } else {
  261. exeReportPreview("RPPIF73100", "XMLSTR", "","", "false","","","","","false");
  262. }
  263. ]]>
  264. </script>
  265. </button>
  266. <button id="button1" class="btn1_letter3" navindex="32" style="left:1070px; top:45px; width:68px; height:22px; ">
  267. <caption>재생성</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. model.setValue("/root/send/research", "Y");
  271. fGetDocuList();
  272. ]]>
  273. </script>
  274. </button>
  275. <button id="button3" class="btn6_letter9" style="left:690px; top:45px; width:140px; height:22px; ">
  276. <caption>심사전 진료비현황</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. exeReportPreview("RPPIF73103", "XMLSTR", "","", "false","","","","","false");
  280. ]]>
  281. </script>
  282. </button>
  283. <button id="button4" class="btn6_letter9" style="left:548px; top:45px; width:140px; height:22px; ">
  284. <caption>진료비 재조정내역</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. exeReportPreview("RPPIF73104", "XMLSTR", "","", "false","","","","","false");
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="button5" class="btn1_letter9" style="left:833px; top:45px; width:140px; height:22px; ">
  292. <caption>청구심사조정내역</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. open("SMPIF73200");
  296. ]]>
  297. </script>
  298. </button>
  299. </group>
  300. </xhtml:body>
  301. </xhtml:html>