SMPAS01440_본인부담의료미수금현황.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <statinfo>
  11. <ret>
  12. <endflag/>
  13. <insukind/>
  14. <yesacccnt/>
  15. <yesaccamt/>
  16. <todaddcnt/>
  17. <todaddamt/>
  18. <todsubcnt/>
  19. <todsubamt/>
  20. <todacccnt/>
  21. <todaccamt/>
  22. </ret>
  23. </statinfo>
  24. <h_year>
  25. <year>
  26. <endflag/>
  27. <insukind/>
  28. <cnt_3/>
  29. <totamt_3/>
  30. <cnt_2/>
  31. <totamt_2/>
  32. <cnt_1/>
  33. <totamt_1/>
  34. <cnt_org/>
  35. <totamt_org/>
  36. <cnt_all/>
  37. <totamt_all/>
  38. </year>
  39. </h_year>
  40. </main>
  41. <send>
  42. <enddd/>
  43. <lastmondd/>
  44. <thismondd/>
  45. <year/>
  46. <year_org/>
  47. <year_1/>
  48. <year_2/>
  49. <year_3/>
  50. <gijun/>
  51. </send>
  52. <init/>
  53. <temp>
  54. <monthdd/>
  55. <insukind/>
  56. <ordtype/>
  57. <monthgubun/>
  58. </temp>
  59. <hidden>
  60. <session>
  61. <userid/>
  62. <usernm/>
  63. <posinstcd/>
  64. <posinstnm/>
  65. <dutplcecd/>
  66. <dutplcenm/>
  67. <dutinstnm/>
  68. </session>
  69. </hidden>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. // 현재월을 Default로 넣어주기
  75. var currentMonth = getCurrentDate();
  76. model.setValue("/root/send/enddd", currentMonth);
  77. model.setValue("/root/send/year" , currentMonth);
  78. ipt_enddd.attribute("format") = "yyyy-mm";
  79. fGetUserInfo2();
  80. // 전월 말일, 당월 초일 세팅
  81. var temp = currentMonth.toDate("YYYYMMDD");
  82. temp.getAddDate(-1, "M");
  83. var lastmontemp = temp.getDateFormat();
  84. var lastmondd = lastmontemp.substr(0,6) + "10"; // DB에서 마지막날짜로 변환시켜줌
  85. var thismondd = currentMonth.substr(0,6) + "00";
  86. model.setValue("/root/send/lastmondd", lastmondd);
  87. model.setValue("/root/send/thismondd", thismondd);
  88. model.setValue("/root/send/gijun", "orddd");
  89. btn_insukind.dispatch("onclick");
  90. model.refresh();
  91. ]]>
  92. </script>
  93. <submission id="TRPAS01442" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statinfo"/>
  94. <submission id="TRPAS01443" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_year"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript">
  100. <![CDATA[
  101. //로그인한 사용자 정보조회
  102. function fGetUserInfo2(){
  103. var sUserInfosS = getUserInfos();
  104. sUserInfosS = sUserInfosS + "|";
  105. var UserInfosS_Array = sUserInfosS.split("|");
  106. var userid = UserInfosS_Array[0]; //사용자번호
  107. var usernm = UserInfosS_Array[1]; //사용자이름
  108. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  109. var posinstnm = UserInfosS_Array[3]; //소속기관명
  110. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  111. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  112. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  113. model.setValue("/root/hidden/session/userid",userid);
  114. model.setValue("/root/hidden/session/usernm",usernm);
  115. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  116. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  117. model.setValue("/root/hidden/session/dutplcecd",dutplcecd);
  118. model.setValue("/root/hidden/session/dutplcenm",dutplcenm);
  119. model.setValue("/root/hidden/session/dutinstnm",dutinstnm);
  120. }
  121. function fSearchPopup( i, j)
  122. {
  123. var col1=i;
  124. var row1=j;
  125. var ordtype="";
  126. var insukind="";
  127. var monthdd="";
  128. var strmonthgubun="";
  129. model.resetInstanceNode("/root/temp");
  130. //전월말
  131. if ((col1==2) || (col1==3) ){
  132. monthdd=model.getValue("/root/send/lastmondd");
  133. strmonthgubun="P";
  134. }
  135. //당월증가
  136. if ((col1==4) || (col1==5) ){
  137. monthdd=model.getValue("/root/send/thismondd");
  138. strmonthgubun="T";
  139. }
  140. //당월감소
  141. if ((col1==6) || (col1==7) ){
  142. monthdd=model.getValue("/root/send/thismondd");
  143. strmonthgubun="T";
  144. }
  145. //당월말
  146. if ((col1==8) || (col1==9) ){
  147. monthdd=model.getValue("/root/send/thismondd");
  148. strmonthgubun="K";
  149. }
  150. //보험
  151. if ((row1==2) || (row1==8) || (row1==14) ){
  152. insukind="11";
  153. }
  154. //급여
  155. if ((row1==3) || (row1==9) || (row1==15) ){
  156. insukind="2%";
  157. }
  158. //산재
  159. if ((row1==4) || (row1==10) || (row1==16) ){
  160. insukind="41";
  161. }
  162. //자보
  163. if ((row1==5) || (row1==11) || (row1==17) ){
  164. insukind="31";
  165. }
  166. //일반
  167. if ((row1==6) || (row1==12) || (row1==18) ){
  168. insukind="-";
  169. }
  170. //계
  171. if ((row1==7) || (row1==13) || (row1==19) ){
  172. insukind="%";
  173. }
  174. //입원
  175. if ((row1==2) || (row1==3) || (row1==4) || (row1==5) || (row1==6) || (row1==7) ){
  176. ordtype="I";
  177. }
  178. //외래
  179. if ((row1==8) || (row1==9) || (row1==10) || (row1==11) || (row1==12) || (row1==13) ){
  180. ordtype="O";
  181. }
  182. //합계
  183. if ((row1==14) || (row1==15) || (row1==16) || (row1==17) || (row1==18) || (row1==19) ){
  184. ordtype="%";
  185. }
  186. //alert(col1+","+row1);
  187. //alert("monthdd:"+ monthdd+" insukind: "+ insukind + "ordtype:"+ ordtype);
  188. model.setValue("/root/temp/monthdd",monthdd);
  189. model.setValue("/root/temp/insukind",insukind);
  190. model.setValue("/root/temp/ordtype",ordtype);
  191. model.setValue("/root/temp/monthgubun",strmonthgubun);
  192. if((monthdd!="") &&(insukind!="") && (ordtype!=""))
  193. {
  194. modal("SPPAS01441", "1", "100", "100" ,"SPPAS01441", "/root/temp", "/root/source");
  195. }
  196. }
  197. ]]>
  198. </script>
  199. </xhtml:head>
  200. <xhtml:body>
  201. <group id="group3" style="left:0px; top:0px; width:1206px; height:13px; ">
  202. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">본인부담 의료미수금현황.</caption>
  203. </group>
  204. <group id="group4" style="left:0px; top:18px; width:1203px; height:40px; ">
  205. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1203px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  206. <button id="btn_search" class="btn1_letter2" style="left:988px; top:10px; width:56px; height:22px; color:transparent; background-image:../../../com/commonweb/images/btn1_letter2.gif; border-color:transparent; ">
  207. <caption>조회</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. if(switch1.selectedIndex == "0") {
  211. grd_statlist.rebuildStyle();
  212. // 전월 말일, 당월 초일 세팅
  213. var currentMonth = ipt_enddd.value;
  214. var temp = currentMonth.toDate("YYYYMM");
  215. temp.getAddDate(-1, "M");
  216. var lastmontemp = temp.getDateFormat();
  217. var lastmondd = lastmontemp.substr(0,6) + "10"; // DB에서 마지막날짜로 세팅해줌
  218. var thismondd = currentMonth.substr(0,6) + "00";
  219. model.setValue("/root/send/lastmondd", lastmondd);
  220. model.setValue("/root/send/thismondd", thismondd);
  221. submit("TRPAS01442");
  222. // 구분 셀병합
  223. for(var i = 1 ; i<10 ; i++){
  224. grd_statlist.mergecol(i) = false;
  225. }
  226. grd_statlist.mergecells = "bycol";
  227. grd_statlist.refresh();
  228. }
  229. if(switch1.selectedIndex == "1") {
  230. var grd_year_cap = model.getValue("/root/send/year").substr(0,4);
  231. var grd_year_1_cap = grd_year_cap - 1;
  232. var grd_year_2_cap = grd_year_cap - 2;
  233. var grd_year_3_cap = grd_year_cap - 3;
  234. var caption = "구분^급종^" + grd_year_3_cap + "^" + grd_year_3_cap + "^" + grd_year_2_cap + "^" + grd_year_2_cap + "^" + grd_year_1_cap + "^" + grd_year_1_cap + "^" + grd_year_cap + "^" + grd_year_cap + "^계^계|구분^급종^건^금액^건^금액^건^금액^건^금액^건^금액";
  235. grd_year.attribute("caption") = caption;
  236. grd_year.rebuild();
  237. //model.setValue("/root/send/year_org" , grd_year_cap);
  238. //model.setValue("/root/send/year_1" , grd_year_1_cap);
  239. //model.setValue("/root/send/year_2" , grd_year_2_cap);
  240. //model.setValue("/root/send/year_3" , grd_year_3_cap);
  241. //model.setValue("/root/send/gijun" , model.getValue("/root/send/gijun" ));
  242. submit("TRPAS01443");
  243. // 구분 셀병합
  244. for(var i = 1 ; i<12 ; i++){
  245. grd_year.mergecol(i) = false;
  246. }
  247. grd_year.mergecells = "bycol";
  248. grd_year.refresh();
  249. }
  250. ]]>
  251. </script>
  252. </button>
  253. <input id="ipt_enddd" ref="/root/send/enddd" class="input_default" navindex="7" visibility="visible" inputtype="date" style="left:90px; top:10px; width:90px; height:19px; "/>
  254. <button id="btn_excel" class="btn1_letter4" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn6_letter4.gif" style="left:1049px; top:10px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
  255. <caption>EXCEL</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. var enddd = model.getValue("/root/send/enddd");
  259. var year = model.getValue("/root/send/year_org");
  260. if(switch1.selectedIndex == "0") {
  261. //엑셀저장 여부(타이틀별)
  262. var fileName = window.fileDialog("save", ",", false, "본인부담 의료미수금 현황("+enddd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  263. grd_statlist.saveExcel(fileName, "본인부담 의료미수금 현황("+enddd+")", false, false, "", "", false);
  264. }
  265. if(switch1.selectedIndex == "1") {
  266. //엑셀저장 여부(타이틀별)
  267. var fileName = window.fileDialog("save", ",", false, "본인부담 의료미수금 현황_발생년도별("+year+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  268. grd_year.saveExcel(fileName, "본인부담 의료미수금 현황_발생년도별("+year+")", false, false, "", "", false);
  269. }
  270. ]]>
  271. </script>
  272. </button>
  273. <caption id="caption2" class="search_name" style="left:10px; top:10px; width:98px; height:17px; ">조회기준</caption>
  274. <line id="line2" class="line_4" style="top:5px; x1:1046px; y1:9px; x2:1046px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
  275. <button id="button1" class="btn1_letter2" style="left:1131px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  276. <caption>출력</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. if(switch1.selectedIndex == "0") {
  280. // 본인부담 의료미수금 현황 출력
  281. exeReportPreview("RPPAO03100", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  282. }
  283. if(switch1.selectedIndex == "1") {
  284. // 본인부담 의료미수금 현황 출력(발생년도)
  285. exeReportPreview("RPPAO03101", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  286. }
  287. ]]>
  288. </script>
  289. </button>
  290. <input id="ipt_year" ref="/root/send/year" inputtype="date" format="yyyy" style="left:205px; top:10px; width:50; height:20px; "/>
  291. <select1 id="cmb_gijun" ref="/root/send/gijun" overflow="visible" appearance="full" cols="2" style="left:840px; top:12px; width:140px; height:20px; border-style:none; ">
  292. <choices>
  293. <item>
  294. <label>진료일자</label>
  295. <value>orddd</value>
  296. </item>
  297. <item>
  298. <label>수납일자</label>
  299. <value>rcptexecdd</value>
  300. </item>
  301. </choices>
  302. </select1>
  303. </group>
  304. <switch id="switch1" style="left:0px; top:88px; width:1203px; height:662px; ">
  305. <case id="case1" selected="true">
  306. <datagrid id="grd_statlist" nodeset="/root/main/statinfo/ret" class="datagrid2" caption="구분^급종^전월말^전월말^당월증가^당월증가^당월감소^당월감소^당월말^당월말|구분^급종^건^금액^건^금액^건^금액^건^금액" colsep="^" colwidth="98, 100, 75, 175, 75, 175, 75, 175, 75, 175" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:10px; width:1201px; height:650px; ">
  307. <col ref="endflag" style="text-align:center; vertical-align:middle; "/>
  308. <col ref="insukind" style="text-align:center; "/>
  309. <col ref="yesacccnt" style="text-align:right; padding-right:5; "/>
  310. <col ref="yesaccamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  311. <col ref="todaddcnt" style="text-align:right; padding-right:5; "/>
  312. <col ref="todaddamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  313. <col ref="todsubcnt" style="text-align:right; padding-right:5; "/>
  314. <col ref="todsubamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  315. <col ref="todacccnt" style="text-align:right; padding-right:5; "/>
  316. <col ref="todaccamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  317. <script type="javascript" ev:event="ondblclick">
  318. <![CDATA[
  319. //전월말(입원-보험)
  320. var i=grd_statlist.col;
  321. var j=grd_statlist.row;
  322. fSearchPopup(i,j);
  323. ]]>
  324. </script>
  325. </datagrid>
  326. <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:1201; y2:0px; "/>
  327. </case>
  328. <case id="case2">
  329. <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:1201; y2:0px; "/>
  330. <datagrid id="grd_year" nodeset="/root/main/h_year/year" class="datagrid2" caption="구분^급종^-^-^-^-^-^-^-^-^계^계|구분^급종^건^금액^건^금액^건^금액^건^금액^건^금액" colsep="^" colwidth="60, 60, 75, 125, 75, 125, 75, 125, 75, 125, 75, 125" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:1201px; height:650px; ">
  331. <col ref="endflag" style="text-align:center; vertical-align:middle; "/>
  332. <col ref="insukind" style="text-align:center; "/>
  333. <col ref="cnt_3" format="#,###" style="text-align:right; padding-right:5; "/>
  334. <col ref="totamt_3" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  335. <col ref="cnt_2" format="#,###" style="text-align:right; padding-right:5; "/>
  336. <col ref="totamt_2" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  337. <col ref="cnt_1" format="#,###" style="text-align:right; padding-right:5; "/>
  338. <col ref="totamt_1" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  339. <col ref="cnt_org" format="#,###" style="text-align:right; padding-right:5; "/>
  340. <col ref="totamt_org" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  341. <col ref="cnt_all" format="#,###" style="text-align:right; padding-right:5; "/>
  342. <col ref="totamt_all" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  343. </datagrid>
  344. </case>
  345. </switch>
  346. <caption id="caption4" style="left:1101px; top:67px; width:100px; height:20px; font-weight:bold; text-align:right; ">(단위 : 원)</caption>
  347. <caption id="caption5" style="left:0px; top:752px; width:263px; height:20px; ">주) 응급실 : 6시간 이상(입원), 6시간 미만(외래)</caption>
  348. <button id="btn_insukind" class="btn_sw" group="tab" selected="true" style="left:0px; top:66px; width:80px; height:22px; ">
  349. <caption>급종별</caption>
  350. <toggle case="case1" ev:event="onclick"/>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. ipt_enddd.visible = true;
  354. ipt_year.visible = false;
  355. cmb_gijun.visible = false;
  356. ipt_enddd.refresh();
  357. ipt_year.refresh();
  358. cmb_gijun.refresh();
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_year" class="btn_sw" group="tab" selected="true" style="left:81px; top:66px; width:80px; height:22px; ">
  363. <caption>발생년도별</caption>
  364. <toggle case="case2" ev:event="onclick"/>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. ipt_year.attribute("left") = 90;
  368. ipt_enddd.visible = false;
  369. ipt_year.visible = true;
  370. cmb_gijun.visible = true;
  371. ipt_enddd.refresh();
  372. ipt_year.refresh();
  373. cmb_gijun.refresh();
  374. ]]>
  375. </script>
  376. </button>
  377. </xhtml:body>
  378. </xhtml:html>