SMPIJ02700_급여구분별진료비구성현황.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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. <list1>
  11. <summary/>
  12. </list1>
  13. <list2>
  14. <pat/>
  15. </list2>
  16. <list3>
  17. <day/>
  18. </list3>
  19. </main>
  20. <init>
  21. <!-- <sppid21600>
  22. <cond>
  23. <pid/>
  24. <indd/>
  25. <fromdd/>
  26. <todd/>
  27. <calcscorcd/>
  28. <insukindcd/>
  29. <insukind/>
  30. <suppkindcd/>
  31. <suppkind/>
  32. <ownbrate/>
  33. </cond>
  34. </sppid21600>-->
  35. <P0008list>
  36. <P0008>
  37. <cdnm>전체</cdnm>
  38. <cdid/>
  39. </P0008>
  40. </P0008list>
  41. <init_pam/>
  42. <judgrid/>
  43. </init>
  44. <hidden>
  45. </hidden>
  46. <temp>
  47. <insukind/>
  48. <fromdd/>
  49. <todd/>
  50. <orddeptcd/>
  51. <orddrid/>
  52. <insupynpy1/>
  53. <judgrid/>
  54. <ordtype>Y</ordtype>
  55. <brateflag>Y</brateflag>
  56. </temp>
  57. <init_pam>
  58. <init>
  59. <orddeptcd>
  60. <cd/>
  61. <nm/>
  62. <deptengabbr/>
  63. <reqdeptno/>
  64. </orddeptcd>
  65. <orddrid>
  66. <cd/>
  67. <nm/>
  68. <dp/>
  69. <sp/>
  70. </orddrid>
  71. </init>
  72. </init_pam>
  73. <send>
  74. <fromdd/>
  75. <todd/>
  76. <insukind/>
  77. <orddeptcd/>
  78. <orddrid/>
  79. <insupynpy1/>
  80. <judgrid/>
  81. <pid/>
  82. <indd/>
  83. <cretno/>
  84. <ordtype/>
  85. <brateflag/>
  86. </send>
  87. </root>
  88. </instance>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. fInitialize();
  92. model.setValue("/root/temp/fromdd",getCurrentDate());
  93. model.setValue("/root/temp/todd",getCurrentDate());
  94. submit("TRPID23105");
  95. submit("TRPAMCOM01");
  96. addComboItem("cmb_orddeptcd","전체","","above");
  97. ]]>
  98. </script>
  99. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init_pam/init"/>
  100. <submission id="TRPID23105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/judgrid"/>
  101. <submission id="TRPID23102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/insukind"/>
  102. <submission id="TRPIJ02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list3"/>
  103. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  104. <submission id="TRPIJ02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list2"/>
  105. <submission id="TRPIJ02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
  106. </model>
  107. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  112. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  114. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  115. <script type="javascript" src="../../../pam/calcscormngtweb/js/PIC001.js"/>
  116. <script type="javascript">
  117. <![CDATA[
  118. function fInitialize(){
  119. zbcfGetCodeList(new Array("P0008"),new Array("/root/init/P0008list"),false);
  120. opt_insupynpy1.visible = false; //전체,전액본인,일반(옵션)
  121. caption12.visible = false; //비급여구분(라벨)
  122. model.refresh();
  123. }
  124. function fSave(flag) {
  125. //alert(flag);
  126. model.makeValue("/root/send/updatedata/histstat", flag);
  127. if (submit("TXPID23100") == true) {
  128. //btn_srch.dispatch("onclick"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
  129. }
  130. }
  131. // 청구년월 증감 함수
  132. function CalMonth(idc, av_date)
  133. {
  134. var lv_date = av_date.toDate("YYYYMM" + "01");
  135. lv_date = lv_date.getAddDate(idc, "M")
  136. return lv_date.getDateFormat("YYYYMM");
  137. }
  138. ]]>
  139. </script>
  140. </xhtml:head>
  141. <xhtml:body pagewidth="1210" pageheight="752" guideline="1,1007;1,1025;1,1038;1,-17;1,1095;1,1008;1,1011;1,1012;1,1083;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  142. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1160px; height:690px; ">
  143. <caption id="caption10" class="tit_2" style="left:5px; top:5px; width:183px; height:14px; ">급여구분별 진료비 구성현황</caption>
  144. <group id="group2" style="left:5px; top:20px; width:1150px; height:65px; vertical-align:top; ">
  145. <shape id="roundrect1" class="roundrerct_search" appearance="roundrect" style="left:5px; top:0px; width:1145px; height:65px; "/>
  146. <button id="btn_srch" class="btn1_letter2" style="left:1080px; top:20px; width:56px; height:22px; ">
  147. <caption>조회</caption>
  148. <script type="javascript" ev:event="onclick">
  149. <![CDATA[
  150. if(model.getValue("/root/temp/fromdd") == "" || model.getValue("/root/temp/todd") == ""){
  151. messageBox("퇴원일자는", "I003");
  152. return;
  153. }
  154. var dateDif = getDateInterval(model.getValue("/root/temp/fromdd"), model.getValue("/root/temp/todd"));
  155. if (dateDif < 0) {
  156. messageBox("검색 시작일자가 종료일자 보다 이후", "E008"); ///검색 시작일자가 종료일자 보다 이후 입니다.
  157. return;
  158. }
  159. else if (dateDif > 14) {
  160. messageBox("검색기간은 최대 2주(14일)", "E008"); ///검색기간은 최대 2주(14일) 입니다.
  161. return;
  162. }
  163. model.setValue("/root/send/orddeptcd","");
  164. model.setValue("/root/send/orddrid","");
  165. model.setValue("/root/send/judgrid","");
  166. model.setValue("/root/send/pid","");
  167. model.setValue("/root/send/indd","");
  168. model.setValue("/root/send/cretno","");
  169. model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
  170. model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
  171. model.setValue("/root/send/insukind",model.getValue("/root/temp/insukind").removeMask('\n'));
  172. model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd").removeMask('\n'));
  173. model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid").removeMask('\n'));
  174. model.setValue("/root/send/insupynpy1",model.getValue("/root/temp/insupynpy1").removeMask('\n'));
  175. model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid").removeMask('\n'));
  176. model.setValue("/root/send/ordtype",model.getValue("/root/temp/ordtype").removeMask('\n'));
  177. model.setValue("/root/send/brateflag",model.getValue("/root/temp/brateflag").removeMask('\n'));
  178. if (swt_fee.selectedIndex == 0 ) { //요약탭
  179. model.removeNodeset("/root/main/list1/summary");
  180. model.refresh();
  181. submit("TRPIJ02703");
  182. for(var i = 2; i<grd_summary.rows; i++){
  183. grd_summary.cellStyle('background-color', i, 10) = "#ffff00";
  184. grd_summary.cellStyle('background-color', i, 11) = "#ffff00";
  185. }
  186. } else if(swt_fee.selectedIndex == 1){ //일자탭
  187. model.removeNodeset("/root/main/list3/day");
  188. model.refresh();
  189. submit("TRPIJ02701");
  190. } else if(swt_fee.selectedIndex == 2){ //환자탭
  191. model.removeNodeset("/root/main/list2/pat");
  192. model.refresh();
  193. submit("TRPIJ02702");
  194. for(var j = 2; j<grdpatlist.rows; j++){
  195. grdpatlist.cellStyle('background-color', j, 12) = "#ffff00";
  196. grdpatlist.cellStyle('background-color', j, 13) = "#ffff00";
  197. }
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <caption id="caption5" class="search_name" style="left:15px; top:6px; width:86px; height:17px; ">퇴원일자 :</caption>
  203. <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_search" inputtype="date" style="left:113px; top:5px; width:85px; height:19px; "/>
  204. <caption id="caption6" style="left:200px; top:5px; width:11px; height:18px; ">~</caption>
  205. <input id="ipt_todd" ref="/root/temp/todd" class="input_search" inputtype="date" style="left:215px; top:5px; width:85px; height:19px; "/>
  206. <!-- rdo_mchrgcode : 세부계산내역 조회용이 아닌 "코드조회" 에 사용될 수가코드 검색용 Radio 구분임 -->
  207. <caption id="caption7" class="search_name" style="left:350px; top:5px; width:100px; height:17px; ">보험유형 :</caption>
  208. <line id="line1" class="line_4" style="x1:1060px; y1:5px; x2:1060px; y2:57px; "/>
  209. <caption id="caption9" class="search_name" style="left:818px; top:5px; width:86px; height:17px; ">진료의사 :</caption>
  210. <caption id="caption11" class="search_name" style="left:594px; top:5px; width:77px; height:17px; ">진료과 :</caption>
  211. <select1 id="cmb_orddeptcd" ref="/root/temp/orddeptcd" class="combo_search" appearance="minimal" style="left:680px; top:5px; width:120px; height:19px; ">
  212. <choices>
  213. <itemset nodeset="/root/init_pam/init/orddeptcd">
  214. <label ref="nm"/>
  215. <value ref="cd"/>
  216. </itemset>
  217. </choices>
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. var varorddeptcd= cmb_orddeptcd.value;
  221. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init_pam/init/orddrid[dp = '" + cmb_orddeptcd.value + "']";
  222. if (varorddeptcd == null || varorddeptcd == "" || varorddeptcd == " " || varorddeptcd == "-"){
  223. model.setValue("/root/temp/orddrid", "");
  224. }
  225. model.refresh();
  226. ]]>
  227. </script>
  228. </select1>
  229. <select1 id="cmb_orddrid" ref="/root/temp/orddrid" class="combo_search" appearance="minimal" style="left:913px; top:5px; width:120px; height:19px; ">
  230. <choices>
  231. <itemset nodeset="/root/init_pam/init/orddrid">
  232. <label ref="nm"/>
  233. <value ref="cd"/>
  234. </itemset>
  235. </choices>
  236. <script type="javascript" ev:event="xforms-value-changed">
  237. <![CDATA[
  238. var orddeptcd = model.getValue("/root/temp/orddeptcd");
  239. if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-")
  240. {
  241. messageBox("진료과 선택을 먼저 하십시요!","E999","");
  242. model.setValue("/root/temp/orddrid","");
  243. //cmb_orddrid.dispatch("xforms-value-changed");
  244. model.refresh();
  245. model.setFocus("cmb_orddeptcd");
  246. return;
  247. }
  248. ]]>
  249. </script>
  250. </select1>
  251. <select1 id="cmb_preinsukind" ref="/root/temp/insukind" class="combo_search" appearance="minimal" style="left:450px; top:5px; width:105px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/P0008list/P0008">
  254. <label ref="cdnm"/>
  255. <value ref="cdid"/>
  256. </itemset>
  257. </choices>
  258. <script type="javascript" ev:event="xforms-value-changed">
  259. <![CDATA[
  260. ]]>
  261. </script>
  262. </select1>
  263. <caption id="caption3" class="search_name" style="left:350px; top:30px; width:75px; height:17px; ">심사자 :</caption>
  264. <select1 id="cmb_judgrid" ref="/root/temp/judgrid" class="combo_search" appearance="minimal" style="left:450px; top:30px; width:105px; height:19px; ">
  265. <choices>
  266. <itemset nodeset="/root/temp/judgrid">
  267. <label ref="nm"/>
  268. <value ref="cd"/>
  269. </itemset>
  270. </choices>
  271. </select1>
  272. <select1 id="opt_insupynpy1" ref="/root/temp/insupynpy1" appearance="full" cols="5" rows="1" overflow="visible" style="left:122px; top:35px; width:180px; height:15px; font-weight:bold; border-style:none; ">
  273. <choices>
  274. <item>
  275. <label>전체</label>
  276. <value/>
  277. </item>
  278. <item>
  279. <label>전액본인</label>
  280. <value>1</value>
  281. </item>
  282. <item>
  283. <label>비급여</label>
  284. <value>2</value>
  285. </item>
  286. </choices>
  287. </select1>
  288. <select id="chkOrdType" ref="/root/temp/ordtype" overflow="visible" appearance="full" style="left:596px; top:35px; width:140px; height:15px; border-style:none; ">
  289. <choices>
  290. <item>
  291. <label>응급실퇴원 제외</label>
  292. <value>Y</value>
  293. </item>
  294. </choices>
  295. </select>
  296. <select id="chkBrateFlag" ref="/root/temp/brateflag" overflow="visible" appearance="full" style="left:816px; top:35px; width:150px; height:20px; border-style:none; ">
  297. <choices>
  298. <item>
  299. <label>6시간퇴원 제외</label>
  300. <value>Y</value>
  301. </item>
  302. </choices>
  303. </select>
  304. <caption id="caption12" class="search_name" style="left:15px; top:35px; width:104px; height:17px; ">비급여 구분 :</caption>
  305. </group>
  306. <button id="btn_summary" class="btn_sw" group="tab" selected="true" style="left:6px; top:95px; width:65px; height:22px; ">
  307. <caption>요약</caption>
  308. <toggle case="case_outrgst" ev:event="onclick"/>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. swt_fee.selectedIndex = 0;
  312. opt_insupynpy1.visible = false; //전체,전액본인,일반(옵션)
  313. caption12.visible = false; //비급여구분(라벨)
  314. //btn_srch.dispatch("onclick");
  315. ]]>
  316. </script>
  317. </button>
  318. <button id="btn_pat" class="btn_sw" group="tab" selected="false" style="left:73px; top:95px; width:65px; height:22px; ">
  319. <caption>환자별</caption>
  320. <toggle case="case_outupdt" ev:event="onclick"/>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. swt_fee.selectedIndex = 2;
  324. opt_insupynpy1.visible = false; //전체,전액본인,일반(옵션)
  325. caption12.visible = false; //비급여구분(라벨)
  326. //btn_srch.dispatch("onclick");
  327. ]]>
  328. </script>
  329. </button>
  330. <switch id="swt_fee" style="left:5px; top:115px; width:1150px; height:570px; border-color:#c7a3cf; border-style:solid; ">
  331. <case id="case_summary" selected="true">
  332. <line id="line17" class="line_1" style="x1:0px; y1:25px; x2:1145px; y2:25px; "/>
  333. <button id="btn_cnclexcel" class="btn2_letter4" style="left:1065px; top:5px; width:64px; height:19px; ">
  334. <caption>엑셀저장</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. if (grd_summary.rows > 1) {
  338. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  339. if (fileName != "") {
  340. grd_summary.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  341. }
  342. } else {
  343. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  344. }
  345. ]]>
  346. </script>
  347. </button>
  348. <datagrid id="grd_summary" nodeset="/root/main/list1/summary" caption="진료과^진료의^심사자^총진료비^급여총액^비급여총액^비급여액^전액본인^선택진료^급여비^비급여비^비급여중비율^비급여중비율^비급여중비율^orddeptcd^orddrid^judgrid1|진료과^진료의^심사자^총진료비^급여총액^비급여총액^비급여액^전액본인^선택진료^급여비^비급여비^비급여^전액본인^선택^orddeptcd^orddrid^judgrid1" colsep="^" colwidth="57, 57, 57, 77, 77, 77, 77, 77, 77, 55, 55, 55, 55, 55, 100, 100, 100" ellipsis="true" explorerbar="sortshowmove" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1145px; height:475px; ">
  349. <col ref="deptnm" style="text-align:center; "/>
  350. <col ref="drname" style="text-align:center; "/>
  351. <col ref="judgrid" style="text-align:center; "/>
  352. <col ref="total" format="#,###" style="text-align:right; "/>
  353. <col ref="payamt" format="#,###" style="text-align:right; "/>
  354. <col ref="totnopy" format="#,###" style="text-align:right; "/>
  355. <col ref="nopyamt" format="#,###" style="text-align:right; "/>
  356. <col ref="allownownbamt" format="#,###" style="text-align:right; "/>
  357. <col ref="specamt" format="#,###" style="text-align:right; "/>
  358. <col ref="divpayamt" style="text-align:right; "/>
  359. <col ref="divtotnopy" style="text-align:right; "/>
  360. <col ref="divnopyamt" style="text-align:right; "/>
  361. <col ref="divallownownbamt" style="text-align:right; "/>
  362. <col ref="divspecamt" style="text-align:right; "/>
  363. <col ref="orddeptcd" visibility="hidden"/>
  364. <col ref="orddrid" visibility="hidden"/>
  365. <col ref="judgrid1" visibility="hidden"/>
  366. <script type="javascript" ev:event="ondblclick">
  367. <![CDATA[
  368. var row = grd_summary.row - 1;
  369. if( isDataCell() && row > 0 ){
  370. model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
  371. model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
  372. model.setValue("/root/send/insukind",model.getValue("/root/temp/insukind").removeMask('\n'));
  373. model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd").removeMask('\n'));
  374. model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid").removeMask('\n'));
  375. model.setValue("/root/send/insupynpy1",model.getValue("/root/temp/insupynpy1").removeMask('\n'));
  376. model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid").removeMask('\n'));
  377. model.setValue("/root/send/orddeptcd",model.getValue("/root/main/list1/summary[" + row + "]/orddeptcd"));
  378. model.setValue("/root/send/orddrid",model.getValue("/root/main/list1/summary[" + row + "]/orddrid"));
  379. model.setValue("/root/send/judgrid",model.getValue("/root/main/list1/summary[" + row + "]/judgrid1"));
  380. submit("TRPIJ02702");
  381. for(var j = 2; j<grdpatlist.rows; j++){
  382. grdpatlist.cellStyle('background-color', j, 12) = "#ffff00";
  383. grdpatlist.cellStyle('background-color', j, 13) = "#ffff00";
  384. }
  385. swt_fee.selectedIndex = 2;
  386. btn_summary.selected = false;
  387. btn_pat.selected = true;
  388. btn_day.selected = false;
  389. }
  390. ]]>
  391. </script>
  392. <script type="javascript" ev:event="onaftersort">
  393. <![CDATA[
  394. grd_summary.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  395. ]]>
  396. </script>
  397. </datagrid>
  398. <caption id="caption8" style="left:5px; top:510px; width:589px; height:15px; ">[참고] 총진료비 = 급여총액+ 비급여총액 비급여총액 = 비급여액(일반처방 SUM)+ 전액본인 +선택진료</caption>
  399. </case>
  400. <case id="case_day" style="vertical-align:top; ">
  401. <line id="line3" class="line_1" style="x1:0px; y1:30px; x2:1145px; y2:30px; "/>
  402. <button id="button1" class="btn2_letter4" style="left:1075px; top:5px; width:64px; height:19px; ">
  403. <caption>엑셀저장</caption>
  404. <script type="javascript" ev:event="DOMActivate">
  405. <![CDATA[
  406. if (grddaylist.rows > 1) {
  407. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  408. if (fileName != "") {
  409. grddaylist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  410. }
  411. } else {
  412. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  413. }
  414. ]]>
  415. </script>
  416. </button>
  417. <caption id="caption1" style="left:5px; top:515px; width:814px; height:15px; ">
  418. <![CDATA[[참고1] 계산수량 : 투여량*횟수*일수 금액 :가산액포함 비급여총액 : 금액+선택진료비 @ : 전액본인 가능한 고시 약제
  419. ]]>
  420. </caption>
  421. <datagrid id="grddaylist" nodeset="/root/main/list3/day" class="datagrid2" visibility="visible" caption="등록번호^수진자^유형^보조^입원일^퇴원일^항^목^G^그룹코드^싱글코드^@^한글명^급비^단가^계산수량^금액^선택진료비^비급여총액^진료과^진료의^심사자|등록번호^수진자^유형^보조^입원일^퇴원일^항^목^G^그룹코드^싱글코드^@^한글명^급비^단가^계산수량^금액^선택진료비^비급여총액^진료과^진료의^심사자" colsep="^" colwidth="54, 46, 19, 19, 68, 68, 19, 18, 17, 67, 68, 19, 179, 27, 56, 31, 56, 56, 56, 48, 49, 49" explorerbar="sortshowmove" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1145px; height:480px; ">
  422. <col ref="pid" style="text-align:center; "/>
  423. <col ref="hngnm" style="text-align:center; "/>
  424. <col ref="insukind" format="yyyy-mm" style="text-align:center; "/>
  425. <col ref="suppkind" style="text-align:center; "/>
  426. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  427. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  428. <col ref="grupcalcscorcls1" style="text-align:center; "/>
  429. <col ref="grupcalcscorcls2" style="text-align:center; "/>
  430. <col ref="grupflag" style="text-align:center; "/>
  431. <col ref="grupcalcscorcd" style="text-align:left; "/>
  432. <col ref="snglcalcscorcd" style="text-align:left; "/>
  433. <col ref="insupynpy1" style="text-align:center; "/>
  434. <col ref="code_hngnm" style="text-align:left; "/>
  435. <col ref="calcpayflag" style="text-align:center; "/>
  436. <col ref="appunitcost" format="#,###" style="text-align:right; "/>
  437. <col ref="calcqty" style="text-align:center; "/>
  438. <col ref="amt" format="#,###" style="text-align:right; "/>
  439. <col ref="specamt" format="#,###" style="text-align:right; "/>
  440. <col ref="total" format="#,###" style="text-align:right; "/>
  441. <col ref="deptnm" style="text-align:center; "/>
  442. <col ref="drname" style="text-align:center; "/>
  443. <col ref="judgrid" style="text-align:center; "/>
  444. <script type="javascript" ev:event="ondblclick">
  445. <![CDATA[
  446. ]]>
  447. </script>
  448. <script type="javascript" ev:event="onaftersort">
  449. <![CDATA[
  450. grddaylist.gridToInstance();
  451. ]]>
  452. </script>
  453. </datagrid>
  454. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1145px; y2:25px; "/>
  455. <caption id="caption2" style="left:0px; top:530px; width:350px; height:15px; ">
  456. <![CDATA[ [참고2] 급여처방 및 계산내역상 0원처리 된 처방 제외
  457. ]]>
  458. </caption>
  459. </case>
  460. <case id="case_pat">
  461. <line id="line4" class="line_1" style="x1:0px; y1:25px; x2:1145px; y2:25px; "/>
  462. <button id="button2" class="btn2_letter4" style="left:1075px; top:5px; width:64px; height:19px; ">
  463. <caption>엑셀저장</caption>
  464. <script type="javascript" ev:event="DOMActivate">
  465. <![CDATA[
  466. if (grdpatlist.rows > 1) {
  467. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  468. if (fileName != "") {
  469. grdpatlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  470. }
  471. } else {
  472. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  473. }
  474. ]]>
  475. </script>
  476. </button>
  477. <caption id="caption4" style="left:5px; top:515px; width:589px; height:15px; ">[참고] 총진료비 = 급여총액+ 비급여총액 비급여총액 = 비급여액(일반처방 SUM)+ 전액본인 +선택진료</caption>
  478. <datagrid id="grdpatlist" nodeset="/root/main/list2/pat" class="datagrid2" visibility="visible" caption="등록번호^수진자^유형^보조^입원일^퇴원일^총진료비^급여총액^비급여총액^비급여액^전액본인^선택진료^급여비^비급여비^비급여중 비율^비급여중 비율^비급여중 비율^진료과^진료의^심사자^cretno|등록번호^수진자^유형^보조^입원일^퇴원일^총진료비^급여총액^비급여총액^비급여액^전액본인^선택진료^급여비^비급여비^비급여^전액본인^선택^진료과^진료의^심사자^cretno" colsep="^" colwidth="58, 47, 25, 25, 77, 77, 74, 71, 71, 71, 71, 68, 45, 45, 45, 55, 45, 53, 56, 55, 100" explorerbar="sortshowmove" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1145px; height:480px; ">
  479. <col ref="pid" style="text-align:right; "/>
  480. <col ref="hngnm" style="text-align:right; "/>
  481. <col ref="insukind" format="yyyy-mm" style="text-align:right; "/>
  482. <col ref="suppkind" style="text-align:right; "/>
  483. <col ref="indd" format="yyyy-mm-dd" style="text-align:right; "/>
  484. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:right; "/>
  485. <col ref="total" format="#,###" style="text-align:right; "/>
  486. <col ref="payamt" format="#,###" style="text-align:right; "/>
  487. <col ref="totnopy" format="#,###" style="text-align:right; "/>
  488. <col ref="nopyamt" format="#,###" style="text-align:right; "/>
  489. <col ref="allownownbamt" format="#,###" style="text-align:right; "/>
  490. <col ref="specamt" format="#,###" style="text-align:right; "/>
  491. <col ref="divpayamt" style="text-align:right; "/>
  492. <col ref="divtotnopy" style="text-align:right; "/>
  493. <col ref="divnopyamt" style="text-align:right; "/>
  494. <col ref="divallownownbamt" style="text-align:right; "/>
  495. <col ref="divspecamt" style="text-align:right; "/>
  496. <col ref="deptnm" style="text-align:right; "/>
  497. <col ref="drname" style="text-align:right; "/>
  498. <col ref="judgrid" style="text-align:right; "/>
  499. <col ref="cretno" visibility="hidden" style="text-align:right; "/>
  500. <script type="javascript" ev:event="ondblclick">
  501. <![CDATA[
  502. var row = grdpatlist.row - 1;
  503. if( isDataCell() && row > 0 ){
  504. model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
  505. model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
  506. model.setValue("/root/send/insukind",model.getValue("/root/temp/insukind").removeMask('\n'));
  507. model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd").removeMask('\n'));
  508. model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid").removeMask('\n'));
  509. model.setValue("/root/send/insupynpy1",model.getValue("/root/temp/insupynpy1").removeMask('\n'));
  510. model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid").removeMask('\n'));
  511. model.setValue("/root/send/pid",model.getValue("/root/main/list2/pat[" + row + "]/pid"));
  512. model.setValue("/root/send/indd",model.getValue("/root/main/list2/pat[" + row + "]/indd"));
  513. model.setValue("/root/send/cretno",model.getValue("/root/main/list2/pat[" + row + "]/cretno"));
  514. submit("TRPIJ02701");
  515. swt_fee.selectedIndex = 1;
  516. btn_summary.selected = false;
  517. btn_pat.selected = false;
  518. btn_day.selected = true;
  519. caption12.visible = true; //비급여구분(라벨)
  520. opt_insupynpy1.visible = true; //전체,전액본인,일반(옵션)
  521. }
  522. ]]>
  523. </script>
  524. <script type="javascript" ev:event="onaftersort">
  525. <![CDATA[
  526. grdpatlist.gridToInstance();
  527. ]]>
  528. </script>
  529. </datagrid>
  530. </case>
  531. </switch>
  532. <button id="btn_day" class="btn_sw" group="tab" selected="false" style="left:140px; top:95px; width:65px; height:22px; ">
  533. <caption>일자별</caption>
  534. <toggle case="case_outcncl" ev:event="onclick"/>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. swt_fee.selectedIndex = 1;
  538. opt_insupynpy1.visible = true; //전체,전액본인,일반(옵션)
  539. caption12.visible = true; //비급여구분(라벨)
  540. //btn_srch.dispatch("onclick");
  541. ]]>
  542. </script>
  543. </button>
  544. </group>
  545. </xhtml:body>
  546. </xhtml:html>