SMPIF73200_진료비청구심사조정내역.xrw 13 KB

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