SPSTP01100_통합수익집계.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  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. <init>
  10. <P0108list>
  11. <P0108/>
  12. </P0108list>
  13. </init>
  14. <main>
  15. <gridlist>
  16. <gridinfo/>
  17. </gridlist>
  18. <errlist>
  19. <gridinfo/>
  20. </errlist>
  21. <ptlist>
  22. <gridinfo/>
  23. </ptlist>
  24. </main>
  25. <send>
  26. <fromdd/>
  27. <todd/>
  28. <srchflag/>
  29. <jipcode/>
  30. <dayflag/>
  31. <readdrid/>
  32. <brateflag>T</brateflag>
  33. <batchflag>E</batchflag>
  34. <uscmflag/>
  35. <uscmid/>
  36. <pid/>
  37. <hiflag/>
  38. <cdgubnflag>T</cdgubnflag>
  39. </send>
  40. <temp>
  41. <gridlist/>
  42. </temp>
  43. <hidden>
  44. <drflag/>
  45. <deptsum/>
  46. <specflag/>
  47. <uscmlist>
  48. <uscminfo>
  49. <listid/>
  50. <listnm/>
  51. </uscminfo>
  52. </uscmlist>
  53. <deptflag/>
  54. <roomdeptflag/>
  55. <ptflag/>
  56. <specshow/>
  57. <esdflag/>
  58. <grupflag/>
  59. <u18yn/>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  64. <submission id="TRSTP01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  65. <submission id="TRSTP01817" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  66. <submission id="TRSTP01903" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/uscmlist/uscminfo"/>
  67. <submission id="TXSTP01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  68. </model>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  73. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. var FLAG = "";
  77. var FLAGNM = "";
  78. var SPECFLAG = "";
  79. var PT_ROW = 0;
  80. function fGetPtList() {
  81. var fromdd = model.getValue("/root/send/fromdd");
  82. var todd = model.getValue("/root/send/todd");
  83. /*
  84. if (fromdd != todd) {
  85. messageBox("환자 목록 조회는 1일만 가능합니다.", "E999");
  86. return;
  87. }
  88. */
  89. fSetPtControl(true);
  90. if (grd_main.rows - grd_main.fixedRows > 1) {
  91. var row = grd_main.row;
  92. var dRow = row - grd_main.fixedRows + 1;
  93. if (PT_ROW > 0) {
  94. grd_main.rowStyle(PT_ROW, "data", "background-color") = "#ffffff";
  95. grd_main.rowStyle(PT_ROW, "data", "font-weight") = "";
  96. }
  97. grd_main.rowStyle(row, "data", "background-color") = "#ffd2d2";
  98. grd_main.rowStyle(row, "data", "font-weight") = "bold";
  99. PT_ROW = row;
  100. }
  101. // 조회구분에 따른 조건변경 by 조중래 20170821
  102. // 16D : 의사별 환자별 선택진료비 집계, 26D : 어린이병원 의사별 환자별 수익집계, 27D : 18세 이하 의사별 환자별 수익집계
  103. if (model.getValue("/root/send/srchflag") == "26D"
  104. || model.getValue("/root/send/srchflag") == "27D") {
  105. model.setValue("/root/send/readdrid", model.getValue("/root/main/gridlist/gridinfo[" + dRow + "]/earndrid"));
  106. } else {
  107. model.setValue("/root/send/readdrid", model.getValue("/root/main/gridlist/gridinfo[" + dRow + "]/readdrid"));
  108. }
  109. fSetDynamicGrid(grd_ptlist, "/root/main/ptlist", "TRSTP01802");
  110. var cnt = instance1.selectNodes("/root/main/ptlist/gridinfo").length;
  111. var prevPid = "";
  112. var flag = true;
  113. for (var i = 1; i <= cnt; i++) {
  114. var pid = model.getValue("/root/main/ptlist/gridinfo[" + i + "]/pid");
  115. if (pid == null || pid == "") {
  116. break;
  117. }
  118. if (pid != prevPid) {
  119. flag = !flag;
  120. prevPid = pid;
  121. }
  122. grd_ptlist.rowStyle(i + grd_ptlist.fixedRows - 1, "data", "background-color") = flag ? "#f4f4f4" : "#ffffff";
  123. }
  124. }
  125. function fSetPtControl(show) {
  126. var val = show ? (parseInt(grd_ptlist.attribute("width")) + 10) : 0;
  127. grd_main.attribute("width") = String(1195 - val);
  128. line1.attribute("x2") = String(1195 - val);
  129. btn_excel.attribute("left") = String(1153 - val);
  130. caption2.visible = show;
  131. grd_ptlist.visible = show;
  132. btn_excel2.visible = show;
  133. btn_ptclose.visible = show;
  134. if (!show) {
  135. if (PT_ROW > 0) {
  136. grd_main.rowStyle(PT_ROW, "data", "background-color") = "#ffffff";
  137. grd_main.rowStyle(PT_ROW, "data", "font-weight") = "";
  138. PT_ROW = 0;
  139. }
  140. }
  141. }
  142. function fSetDynamicGrid(grd, ref, sid) {
  143. model.removeNode("/root/temp");
  144. model.makeNode("/root/temp");
  145. model.resetInstanceNode(ref + "/gridinfo");
  146. grd.refresh();
  147. var cols = grd.cols;
  148. for (var i = 0; i < cols; i++) {
  149. grd.removeColumn(false);
  150. }
  151. grd.refresh();
  152. model.removeNode("/root/temp");
  153. model.makeNode("/root/temp");
  154. if (!submit(sid, false)) {
  155. return;
  156. }
  157. var attr = model.getValue("/root/temp/header/attr");
  158. if (attr == null || attr.length < 1) {
  159. return;
  160. }
  161. var attrArr = attr.split("^");
  162. var width = model.getValue("/root/temp/header/width");
  163. var widthArr = width.split("^");
  164. var hIdx = grd.rowheader != "" ? 1 : 0;
  165. for (var i = 0; i < attrArr.length; i++) {
  166. grd.addColumn(attrArr[i], false);
  167. grd.colWidth(i + hIdx) = widthArr[i];
  168. }
  169. grd.caption = model.getValue("/root/temp/header/caption");
  170. model.copyNode(ref, "/root/temp/gridlist");
  171. grd.refresh();
  172. }
  173. function fSetErrControl(show) {
  174. grd_main.attribute("height") = show ? "300" : "675";
  175. cap_err.visible = btn_errclose.visible = line_err.visible = btn_errxls.visible = grd_err.visible = show;
  176. }
  177. ]]>
  178. </script>
  179. <script type="javascript" ev:event="xforms-ready">
  180. <![CDATA[
  181. btn_excel2.attribute("left") = "1153px";
  182. chk_deptsum.attribute("top") = "32px";
  183. chk_specflag.attribute("top") = "32px";
  184. chk_uscm.attribute("top") = "32px";
  185. cmb_uscm.attribute("top") = "31px";
  186. chk_deptflag.attribute("top") = "32px";
  187. cap_pid.attribute("top") = "32px";
  188. ipt_pid.attribute("top") = "31px";
  189. chk_roomdeptflag.attribute("top") = "32px";
  190. chk_specshow.attribute("top") = "32px";
  191. chk_esdflag.attribute("top") = "32px";
  192. chk_grupflag.attribute("top") = "32px";
  193. cap_cdgubnflag.attribute("top") = "32px";
  194. cmb_cdgubnflag.attribute("top") = "31px";
  195. chk_u18yn.attribute("left") = "865px";
  196. chk_u18yn.attribute("top") = "32px";
  197. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
  198. model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
  199. ipt_fromdd.refresh();
  200. ipt_todd.refresh();
  201. FLAG = getScreenMenuParameter();
  202. model.setValue("/root/send/srchflag", FLAG);
  203. if (FLAG == "11") {
  204. FLAGNM = "진료과별 의사별 수익 집계";
  205. } else if (FLAG == "12D") {
  206. FLAGNM = "진료과별 의사별 급비 항목별 수익 집계";
  207. chk_deptsum.visible = true;
  208. } else if (FLAG == "12") {
  209. FLAGNM = "급비 항목별 수익 집계";
  210. cap_brate.visible = true;
  211. cmb_brate.visible = true;
  212. } else if (FLAG == "13") {
  213. FLAGNM = "수익 명세서";
  214. cap_brate.visible = true;
  215. cmb_brate.visible = true;
  216. } else if (FLAG == "14") {
  217. FLAGNM = "과별 보험 유형별 수익 명세서";
  218. cap_brate.visible = true;
  219. cmb_brate.visible = true;
  220. chk_specshow.visible = true;
  221. } else if (FLAG == "15") {
  222. FLAGNM = "과별 수가 종류별 수익 명세서";
  223. cap_brate.visible = true;
  224. cmb_brate.visible = true;
  225. } else if (FLAG == "16") {
  226. FLAGNM = "선택 진료비 의사별 일자별 수익 집계";
  227. chk_specflag.visible = true;
  228. chk_hiflag.visible = false;
  229. } else if (FLAG == "17") {
  230. FLAGNM = "선택 진료 수당 집계";
  231. cap_jipcode.visible = true;
  232. cmb_jipcode.visible = true;
  233. chk_drflag.visible = true;
  234. cap_brate.visible = true;
  235. cmb_brate.visible = true;
  236. chk_ptflag.visible = true;
  237. pamfGetCodeList(new Array("P0108" ), new Array("/root/init/P0108list"));
  238. model.setValue("/root/send/jipcode", "B");
  239. cmb_jipcode.refresh();
  240. } else if (FLAG == "18") {
  241. FLAGNM = "병동별 수익 집계";
  242. chk_roomdeptflag.visible = true;
  243. chk_hiflag.visible = false;
  244. } else if (FLAG == "26") {
  245. FLAGNM = "어린이병원 수익 집계";
  246. chk_hiflag.visible = false;
  247. chk_u18yn.visible = true;
  248. } else if (FLAG == "20") {
  249. FLAGNM = "수가 코드별 수익 집계";
  250. cap_brate.visible = true;
  251. cmb_brate.visible = true;
  252. chk_uscm.visible = true;
  253. cmb_uscm.visible = true;
  254. chk_deptflag.visible = true;
  255. chk_hiflag.visible = false;
  256. chk_grupflag.visible = true;
  257. submit("TRSTP01903");
  258. cmb_uscm.select(0);
  259. } else if (FLAG == "14S") {
  260. FLAGNM = "보험 유형별 수익 집계";
  261. cap_brate.visible = true;
  262. cmb_brate.visible = true;
  263. } else if (FLAG == "14SI") {
  264. FLAGNM = "선택 진료비 보험 유형별 수익 집계";
  265. } else if (FLAG == "18R") {
  266. FLAGNM = "병동별 병실별 수익 집계";
  267. chk_hiflag.visible = false;
  268. } else if (FLAG == "21Day") {
  269. FLAGNM = "진료과별 일자별 수익 집계";
  270. } else if (FLAG == "23") {
  271. FLAGNM = "센터별 진료과별 급비항목별 수익 집계";
  272. } else if (FLAG == "P") {
  273. cap_pid.visible = true;
  274. ipt_pid.visible = true;
  275. FLAGNM = "환자별 수익 집계";
  276. } else if (FLAG == "ES") {
  277. chk_hiflag.visible = false;
  278. chk_esdflag.visible = true;
  279. FLAGNM = "선택 진료 가상 수익 집계";
  280. } else if (FLAG == "PR") {
  281. chk_uscm.visible = true;
  282. cmb_uscm.visible = true;
  283. submit("TRSTP01903");
  284. cmb_uscm.select(0);
  285. FLAGNM = "과내 검사 판독의 및 처방의별 수익 집계";
  286. } else if (FLAG == "RE") {
  287. chk_hiflag.visible = false;
  288. FLAGNM = "영상의학과 선택진료 판독의 기준 수익 집계";
  289. } else if (FLAG == "25") {
  290. FLAGNM = "진단서 내역";
  291. cap_brate.visible = true;
  292. cmb_brate.visible = true;
  293. cap_cdgubnflag.visible = true;
  294. cmb_cdgubnflag.visible = true;
  295. } else if (FLAG == "dent") {
  296. chk_hiflag.visible = false;
  297. FLAGNM = "구강악안면외과 수익 집계";
  298. }
  299. cap_title.value = FLAGNM;
  300. ]]>
  301. </script>
  302. </xhtml:head>
  303. <xhtml:body style="background-color:transparent; border-color:transparent; margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
  304. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
  305. <line id="line13" style="x1:1119px; y1:27px; x2:1119px; y2:54px; border-color:#FFD799; border-left-style:solid; "/>
  306. <caption id="caption21" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">조회기간 :</caption>
  307. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:30px; width:56px; height:20px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  308. <caption>조회</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. if (FLAG.length < 1) {
  312. return;
  313. }
  314. fSetErrControl(false);
  315. fSetPtControl(false);
  316. SPECFLAG = "";
  317. if (model.getValue("/root/hidden/drflag") == "Y" ||
  318. model.getValue("/root/hidden/deptsum") == "Y") {
  319. model.setValue("/root/send/srchflag", FLAG + "S");
  320. } else if (model.getValue("/root/hidden/specflag") == "Y") {
  321. SPECFLAG = "Y";
  322. model.setValue("/root/send/srchflag", FLAG + "E");
  323. } else if (model.getValue("/root/hidden/deptflag") == "Y") {
  324. model.setValue("/root/send/srchflag", "22");
  325. } else if (model.getValue("/root/hidden/roomdeptflag") == "Y") {
  326. model.setValue("/root/send/srchflag", FLAG + "D");
  327. } else if (model.getValue("/root/hidden/ptflag") == "Y") {
  328. model.setValue("/root/send/srchflag", FLAG + "P");
  329. } else if (model.getValue("/root/hidden/specshow") == "Y") {
  330. model.setValue("/root/send/srchflag", FLAG + "spec");
  331. } else if (model.getValue("/root/hidden/esdflag") == "Y") {
  332. model.setValue("/root/send/srchflag", FLAG + "D");
  333. } else if (model.getValue("/root/hidden/grupflag") == "Y") {
  334. model.setValue("/root/send/srchflag", "24");
  335. } else if (model.getValue("/root/hidden/u18yn") == "Y") { // 어린이병원 수익에서 18세 이하 추출 시
  336. model.setValue("/root/send/srchflag", "27");
  337. } else {
  338. model.setValue("/root/send/srchflag", FLAG);
  339. }
  340. model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
  341. if (FLAG == "P" && model.getValue("/root/send/pid") == "" && model.getValue("/root/send/dayflag") != "Y") {
  342. messageBox("모든 환자 조회는 하루만 조회할 수 있습니다.", "E999");
  343. return;
  344. }
  345. fSetDynamicGrid(grd_main, "/root/main/gridlist", "TRSTP01802");
  346. if (model.getValue("/root/main/gridlist/gridinfo/errflag") == "Y") {
  347. grd_main.rowStyle(1, "data", "background-color") = "yellow";
  348. grd_main.rowStyle(1, "data", "color") = "red";
  349. grd_main.rowStyle(1, "data", "font-weight") = "bold";
  350. } else {
  351. if (FLAG == "P") {
  352. return;
  353. }
  354. var cnt = instance1.selectNodes("/root/main/gridlist/gridinfo").length;
  355. for (var i = 1; i <= cnt; i++) {
  356. var dept = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/earndeptnm");
  357. if (dept == "") {
  358. dept = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/wardnm");
  359. }
  360. var drname = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/earndrname");
  361. var hngnm = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/hngnm");
  362. var insunm = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/insukindnm");
  363. var row = i + grd_main.fixedRows - 1;
  364. if (dept == "소계" || dept == "합계" || drname == "계" || hngnm == "합계" || insunm == "합계") {
  365. var color = (dept == "소계" || drname == "계") ? "#ffffc8" : "#ffffa0";
  366. grd_main.rowStyle(row, "data", "background-color") = color;
  367. grd_main.rowStyle(row, "data", "font-weight") = "bold";
  368. }
  369. if (FLAG == "18R" || FLAG == "13") {
  370. var sinfo = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/suminfo").split(",");
  371. var slv = sinfo[0];
  372. var scol = sinfo[1];
  373. if (slv > 0) {
  374. if (slv == 3) {
  375. color = "#ffffe6";
  376. } else if (slv == 2) {
  377. color = "#ffffc8";
  378. } else if (slv == 1) {
  379. color = "#ffffa0";
  380. }
  381. grd_main.rowStyle(row, "data", "background-color") = color;
  382. if (scol > 0) {
  383. grd_main.cellStyle("font-weight", row, scol) = "bold";
  384. }
  385. grd_main.rowStyle(row, "data", "font-weight") = "bold";
  386. }
  387. }
  388. }
  389. if (cnt > 1 && ( FLAG == "21Day" || FLAG == "23" )) {
  390. grd_main.rowStyle(cnt + grd_main.fixedRows - 1, "data", "font-weight") = "bold";
  391. grd_main.rowStyle(cnt + grd_main.fixedRows - 1, "data", "background-color") = "#ffffa0";
  392. }
  393. }
  394. ]]>
  395. </script>
  396. </button>
  397. <button id="btn_excel" class="btn2_letter2" navindex="30" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1153px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  398. <caption>엑셀</caption>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. var today = model.getValue("/root/send/fromdd");
  402. var filename = window.fileDialog("save", ",", false, cap_title.value + "_" + today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  403. grd_main.saveExcel(filename, "sheetname:" + FLAGNM + ";colhiddenextend:false;rowhiddenextend:false");
  404. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  405. ]]>
  406. </script>
  407. </button>
  408. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:480px; height:14px; font-family:돋움; vertical-align:middle; ">수익집계</caption>
  409. <caption id="caption6" style="left:204px; top:34px; width:15px; height:15px; ">~</caption>
  410. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:110px; top:31px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
  411. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="1" inputtype="date" style="left:217px; top:31px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
  412. <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:90px; height:14px; ">조회 결과</caption>
  413. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195x; y2:85px; "/>
  414. <datagrid id="grd_main" nodeset="/root/main/gridlist/gridinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; ">
  415. <script type="javascript" ev:event="ondblclick">
  416. <![CDATA[
  417. if (!grd_main.isCell(event.target)) {
  418. return;
  419. }
  420. if (grd_main.row < grd_main.fixedRows) {
  421. return;
  422. }
  423. if (model.getValue("/root/main/gridlist/gridinfo/errflag") == "Y") { // 오류 항목 조회
  424. fSetErrControl(true);
  425. fSetDynamicGrid(grd_err, "/root/main/errlist", "TRSTP01817");
  426. }
  427. // 선택진료비 의사별 일자별 수입집계
  428. if (FLAG == "16" && SPECFLAG != "Y") {
  429. model.setValue("/root/send/srchflag", "16D");
  430. fGetPtList();
  431. }
  432. // 어린이병원 수입집계
  433. if (FLAG == "26") {
  434. if (model.getValue("/root/hidden/u18yn") == "Y") {
  435. model.setValue("/root/send/srchflag", "27D");
  436. } else {
  437. model.setValue("/root/send/srchflag", "26");
  438. }
  439. fGetPtList();
  440. }
  441. ]]>
  442. </script>
  443. </datagrid>
  444. <caption id="cap_jipcode" class="search_name" visibility="hidden" style="left:500px; top:32px; width:86px; height:17px; ">집계코드 :</caption>
  445. <select1 id="cmb_jipcode" ref="/root/send/jipcode" class="input_search" visibility="hidden" appearance="minimal" style="left:590px; top:31px; width:100px; height:19px; ">
  446. <choices>
  447. <itemset nodeset="/root/init/P0108list/P0108">
  448. <label ref="cdnm"/>
  449. <value ref="cdid"/>
  450. </itemset>
  451. </choices>
  452. </select1>
  453. <button id="btn_errclose" class="btn2_letter2" visibility="hidden" style="left:85px; top:400px; width:42px; height:19px; ">
  454. <caption>닫기</caption>
  455. <script type="javascript" ev:event="DOMActivate">
  456. <![CDATA[
  457. fSetErrControl(false);
  458. ]]>
  459. </script>
  460. </button>
  461. <caption id="cap_err" class="tit_2" visibility="hidden" style="left:0px; top:405px; width:80px; height:13px; ">오류 내역</caption>
  462. <datagrid id="grd_err" nodeset="/root/main/errlist/gridinfo" visibility="hidden" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:425px; width:1195px; height:340px; "/>
  463. <line id="line_err" class="line_1" visibility="hidden" style="x1:0px; y1:420px; x2:1195px; y2:420px; "/>
  464. <button id="btn_errxls" class="btn2_letter4" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1131px; top:400px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  465. <caption>엑셀저장</caption>
  466. <script type="javascript" ev:event="DOMActivate">
  467. <![CDATA[
  468. var filename = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  469. grd_err.saveExcel(filename, "sheetname:오류내역;colhiddenextend:false;rowhiddenextend:false");
  470. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  471. ]]>
  472. </script>
  473. </button>
  474. <button id="btn_excel2" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1110px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  475. <caption>엑셀</caption>
  476. <script type="javascript" ev:event="DOMActivate">
  477. <![CDATA[
  478. var today = model.getValue("/root/send/fromdd");
  479. var filename = window.fileDialog("save", ",", false, cap_title.value + "(환자목록)_" + today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  480. grd_ptlist.saveExcel(filename, "sheetname:" + FLAGNM + "(환자목록);colhiddenextend:false;rowhiddenextend:false");
  481. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  482. ]]>
  483. </script>
  484. </button>
  485. <caption id="caption2" class="tit_2" visibility="hidden" style="left:605px; top:70px; width:75px; height:13px; ">환자목록</caption>
  486. <line id="line3" class="line_1" style="x1:605px; y1:85px; x2:1195px; y2:85px; "/>
  487. <button id="btn_ptclose" class="btn2_letter2" visibility="hidden" style="left:685px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  488. <caption>닫기</caption>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. fSetPtControl(false);
  492. ]]>
  493. </script>
  494. </button>
  495. <datagrid id="grd_ptlist" nodeset="/root/main/ptlist/gridinfo" visibility="hidden" backcoloralternate="transparent" colsep="^" frozencols="2" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:605px; top:90px; width:590px; height:675px; "/>
  496. <select id="chk_drflag" ref="/root/hidden/drflag" visibility="hidden" overflow="visible" appearance="full" style="left:700px; top:32px; width:83px; height:20px; border-style:none; ">
  497. <choices>
  498. <item>
  499. <label>의사별 합계</label>
  500. <value>Y</value>
  501. </item>
  502. </choices>
  503. <script type="javascript" ev:event="xforms-value-changed">
  504. <![CDATA[
  505. if (model.getValue("/root/hidden/drflag") == "Y" && model.getValue("/root/hidden/ptflag") == "Y") {
  506. model.setValue("/root/hidden/ptflag", "");
  507. chk_ptflag.refresh();
  508. }
  509. ]]>
  510. </script>
  511. </select>
  512. <select id="chk_deptsum" ref="/root/hidden/deptsum" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:62px; width:105px; height:20px; border-style:none; ">
  513. <choices>
  514. <item>
  515. <label>진료과별 합계</label>
  516. <value>Y</value>
  517. </item>
  518. </choices>
  519. </select>
  520. <select id="chk_specflag" ref="/root/hidden/specflag" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:92px; width:135px; height:20px; border-style:none; ">
  521. <choices>
  522. <item>
  523. <label>선택진료비 제외 내역</label>
  524. <value>Y</value>
  525. </item>
  526. </choices>
  527. </select>
  528. <caption id="cap_brate" class="search_name" visibility="hidden" style="left:325px; top:32px; width:95px; height:17px; ">입원/외래 :</caption>
  529. <select1 id="cmb_brate" ref="/root/send/brateflag" class="input_search" visibility="hidden" appearance="minimal" style="left:425px; top:31px; width:60px; height:19px; ">
  530. <choices>
  531. <item>
  532. <label>전체</label>
  533. <value>T</value>
  534. </item>
  535. <item>
  536. <label>입원</label>
  537. <value>I</value>
  538. </item>
  539. <item>
  540. <label>외래</label>
  541. <value>O</value>
  542. </item>
  543. </choices>
  544. </select1>
  545. <button id="btn_file" class="btn4_letter4" style="left:949px; top:30px; width:80px; height:22px; ">
  546. <caption>파일생성</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. SPECFLAG = "";
  550. if (model.getValue("/root/hidden/drflag") == "Y" ||
  551. model.getValue("/root/hidden/deptsum") == "Y") {
  552. model.setValue("/root/send/srchflag", FLAG + "S");
  553. } else if (model.getValue("/root/hidden/specflag") == "Y") {
  554. SPECFLAG = "Y";
  555. model.setValue("/root/send/srchflag", FLAG + "E");
  556. } else if (model.getValue("/root/hidden/deptflag") == "Y") {
  557. model.setValue("/root/send/srchflag", "22");
  558. } else if (model.getValue("/root/hidden/roomdeptflag") == "Y") {
  559. model.setValue("/root/send/srchflag", FLAG + "D");
  560. } else if (model.getValue("/root/hidden/ptflag") == "Y") {
  561. model.setValue("/root/send/srchflag", FLAG + "P");
  562. } else if (model.getValue("/root/hidden/specshow") == "Y") {
  563. model.setValue("/root/send/srchflag", FLAG + "spec");
  564. } else if (model.getValue("/root/hidden/esdflag") == "Y") {
  565. model.setValue("/root/send/srchflag", FLAG + "D");
  566. } else if (model.getValue("/root/hidden/grupflag") == "Y") {
  567. model.setValue("/root/send/srchflag", "24");
  568. } else if (model.getValue("/root/hidden/u18yn") == "Y") { // 어린이병원 수익에서 18세 이하 추출 시
  569. model.setValue("/root/send/srchflag", "27");
  570. } else {
  571. model.setValue("/root/send/srchflag", FLAG);
  572. }
  573. model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
  574. submit("TXSTP01804");
  575. btn_log.dispatch("DOMActivate");
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="btn_log" class="btn4_letter4" style="left:1030px; top:30px; width:80px; height:22px; ">
  580. <caption>생성로그</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. var todd = getCurrentDate();
  584. todd = todd.toDate().getAddDate(1, 'D');
  585. zsbfOpenBatchLogPopup("stspammngtmgr.StsPamFileBatch", getCurrentDate(), todd.getDateFormat());
  586. ]]>
  587. </script>
  588. </button>
  589. <select id="chk_uscm" ref="/root/send/uscmflag" visibility="hidden" overflow="visible" appearance="full" style="left:590px; top:55px; width:140px; height:20px; border-style:none; ">
  590. <choices>
  591. <item>
  592. <label>개인별 등록 수가 적용</label>
  593. <value>Y</value>
  594. </item>
  595. </choices>
  596. </select>
  597. <select1 id="cmb_uscm" ref="/root/send/uscmid" class="combo_search" visibility="hidden" appearance="minimal" style="left:735px; top:55px; width:100px; height:19px; ">
  598. <choices>
  599. <itemset nodeset="/root/hidden/uscmlist/uscminfo">
  600. <label ref="listnm"/>
  601. <value ref="listid"/>
  602. </itemset>
  603. </choices>
  604. </select1>
  605. <select id="chk_deptflag" ref="/root/hidden/deptflag" visibility="hidden" overflow="visible" appearance="full" style="left:500px; top:55px; width:85px; height:20px; border-style:none; ">
  606. <choices>
  607. <item>
  608. <label>진료과 포함</label>
  609. <value>Y</value>
  610. </item>
  611. </choices>
  612. <script type="javascript" ev:event="xforms-value-changed">
  613. <![CDATA[
  614. if (model.getValue("/root/hidden/deptflag") == "Y") {
  615. model.setValue("/root/hidden/grupflag", "");
  616. chk_grupflag.refresh();
  617. }
  618. ]]>
  619. </script>
  620. </select>
  621. <select id="chk_roomdeptflag" ref="/root/hidden/roomdeptflag" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:120px; width:85px; height:20px; border-style:none; ">
  622. <choices>
  623. <item>
  624. <label>진료과 포함</label>
  625. <value>Y</value>
  626. </item>
  627. </choices>
  628. <script type="javascript" ev:event="xforms-value-changed">
  629. <![CDATA[
  630. if (FLAG == "18") {
  631. if (model.getValue("/root/hidden/roomdeptflag") == "Y") {
  632. chk_hiflag.visible = true;
  633. } else {
  634. chk_hiflag.visible = false;
  635. }
  636. }
  637. ]]>
  638. </script>
  639. </select>
  640. <caption id="cap_pid" class="search_name" visibility="hidden" style="left:325px; top:10px; width:95px; height:17px; ">등록번호 :</caption>
  641. <input id="ipt_pid" ref="/root/send/pid" class="input_search" visibility="hidden" style="left:417px; top:9px; width:80px; height:19px; ">
  642. <script type="javascript" ev:event="onkeyup">
  643. <![CDATA[
  644. if(event.keyCode == "13") {
  645. model.setValue("/root/send/pid", ipt_pid.currentText);
  646. btn_search.dispatch("DOMActivate");
  647. }
  648. ]]>
  649. </script>
  650. </input>
  651. <select id="chk_hiflag" ref="/root/send/hiflag" overflow="visible" appearance="full" style="left:875px; top:32px; width:68px; height:20px; border-style:none; ">
  652. <choices>
  653. <item>
  654. <label>건진제외</label>
  655. <value>Y</value>
  656. </item>
  657. </choices>
  658. </select>
  659. <select id="chk_ptflag" ref="/root/hidden/ptflag" visibility="hidden" overflow="visible" appearance="full" style="left:792px; top:32px; width:75px; height:20px; border-style:none; ">
  660. <choices>
  661. <item>
  662. <label>환자 내역</label>
  663. <value>Y</value>
  664. </item>
  665. </choices>
  666. <script type="javascript" ev:event="xforms-value-changed">
  667. <![CDATA[
  668. if (model.getValue("/root/hidden/ptflag") == "Y" && model.getValue("/root/hidden/drflag") == "Y") {
  669. model.setValue("/root/hidden/drflag", "");
  670. chk_drflag.refresh();
  671. }
  672. ]]>
  673. </script>
  674. </select>
  675. <select id="chk_specshow" ref="/root/hidden/specshow" visibility="hidden" overflow="visible" appearance="full" style="left:727px; top:10px; width:143px; height:15px; border-style:none; ">
  676. <choices>
  677. <item>
  678. <label>선택 진료비 별도 표시</label>
  679. <value>Y</value>
  680. </item>
  681. </choices>
  682. </select>
  683. <select id="chk_esdflag" ref="/root/hidden/esdflag" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:150px; width:175px; height:20px; border-style:none; ">
  684. <choices>
  685. <item>
  686. <label>영상의학과, 핵의학과만 조회</label>
  687. <value>Y</value>
  688. </item>
  689. </choices>
  690. </select>
  691. <select id="chk_grupflag" ref="/root/hidden/grupflag" visibility="hidden" overflow="visible" appearance="full" style="left:845px; top:55px; width:95px; height:20px; border-style:none; ">
  692. <choices>
  693. <item>
  694. <label>그룹수가 조회</label>
  695. <value>Y</value>
  696. </item>
  697. </choices>
  698. <script type="javascript" ev:event="xforms-value-changed">
  699. <![CDATA[
  700. if (model.getValue("/root/hidden/grupflag") == "Y") {
  701. model.setValue("/root/hidden/deptflag", "");
  702. chk_deptflag.refresh();
  703. }
  704. ]]>
  705. </script>
  706. </select>
  707. <caption id="cap_cdgubnflag" class="search_name" visibility="hidden" style="left:500px; top:130px; width:104px; height:17px; ">진단서 구분 :</caption>
  708. <select1 id="cmb_cdgubnflag" ref="/root/send/cdgubnflag" class="input_search" visibility="hidden" appearance="minimal" style="left:610px; top:130px; width:100px; height:19px; ">
  709. <choices>
  710. <item>
  711. <label>전체</label>
  712. <value>T</value>
  713. </item>
  714. <item>
  715. <label>진단서</label>
  716. <value>01</value>
  717. </item>
  718. <item>
  719. <label>소견서</label>
  720. <value>02</value>
  721. </item>
  722. <item>
  723. <label>진료확인서</label>
  724. <value>03</value>
  725. </item>
  726. <item>
  727. <label>입퇴원확인서</label>
  728. <value>04</value>
  729. </item>
  730. <item>
  731. <label>상해진단서</label>
  732. <value>05</value>
  733. </item>
  734. <item>
  735. <label>출생증명서</label>
  736. <value>06</value>
  737. </item>
  738. <item>
  739. <label>사망진단서</label>
  740. <value>07</value>
  741. </item>
  742. <item>
  743. <label>장애진단서</label>
  744. <value>08</value>
  745. </item>
  746. <item>
  747. <label>후유장애진단서</label>
  748. <value>09</value>
  749. </item>
  750. <item>
  751. <label>기타</label>
  752. <value>99</value>
  753. </item>
  754. </choices>
  755. </select1>
  756. <select id="chk_u18yn" ref="/root/hidden/u18yn" visibility="hidden" overflow="visible" appearance="full" style="left:955px; top:55px; width:85px; height:20px; border-style:none; ">
  757. <choices>
  758. <item>
  759. <label>만18세이하</label>
  760. <value>Y</value>
  761. </item>
  762. </choices>
  763. <script type="javascript" ev:event="xforms-value-changed">
  764. <![CDATA[
  765. if (model.getValue("/root/hidden/grupflag") == "Y") {
  766. model.setValue("/root/hidden/deptflag", "");
  767. chk_deptflag.refresh();
  768. }
  769. ]]>
  770. </script>
  771. </select>
  772. </xhtml:body>
  773. </xhtml:html>