SMPID24500_KDRG질병군별분류통계.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID23300_DRG상세정보 .xrw
  4. * 수정이력
  5. * - 2010.07.19 / 최초작성 / 김용민
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>질병군별 진료과분류 현황</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <patinfo>
  16. <patinfolist/>
  17. </patinfo>
  18. <kdrglist>
  19. <kdrg>
  20. <orddeptcd/>
  21. <pidtotcnt/>
  22. <daywardcnt/>
  23. <typeectcnt/>
  24. <typeectratio/>
  25. <type1cnt/>
  26. <type1ratio/>
  27. <type1allratio/>
  28. <type2cnt/>
  29. <type2ratio/>
  30. <type3cnt/>
  31. <type3ratio/>
  32. </kdrg>
  33. </kdrglist>
  34. </main>
  35. <send>
  36. <filepath/>
  37. <attach>
  38. <file/>
  39. </attach>
  40. <pid/>
  41. <clamfromym/>
  42. <clamtoym/>
  43. <clamym/>
  44. <offset/>
  45. <daywardyn>N</daywardyn>
  46. <ioflagyn>N</ioflagyn>
  47. </send>
  48. <init>
  49. <item1>
  50. <clamym/>
  51. <clamdg/>
  52. <pid/>
  53. <pidsn/>
  54. <patnm/>
  55. <insukind/>
  56. <suppkind/>
  57. <orddeptcd/>
  58. <indd/>
  59. </item1>
  60. <!-- 보험유형 -->
  61. <P0008list>
  62. <P0008>
  63. <cdnm/>
  64. <cdid/>
  65. </P0008>
  66. </P0008list>
  67. <!-- 보조유형 -->
  68. <P0010list>
  69. <P0010>
  70. <cdnm/>
  71. <cdid/>
  72. </P0010>
  73. </P0010list>
  74. <!-- 진료결과 -->
  75. <P0110list>
  76. <P0110>
  77. <cdnm/>
  78. <cdid/>
  79. </P0110>
  80. </P0110list>
  81. <orddeptcd2/>
  82. <PAM>
  83. <PK015list/>
  84. <PK016list/>
  85. <PK054list/>
  86. <PK055list/>
  87. </PAM>
  88. </init>
  89. <hidden>
  90. <sppmc02500>
  91. <cond>
  92. <srchcond/>
  93. <pid/>
  94. </cond>
  95. </sppmc02500>
  96. </hidden>
  97. </root>
  98. </instance>
  99. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  100. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. // ---------------------------------------------------------------
  104. // 진료과 초기화
  105. // ---------------------------------------------------------------
  106. submit("TRPID20309", false);
  107. model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
  108. model.removeNodeset("/root/hidden/tmp/orddeptcd");
  109. model.removeNodeset("/root/hidden/tmp/orddeptcd2");
  110. model.removeNodeset("/root/hidden/tmp/orddrid");
  111. model.removeNodeset("/root/hidden/tmp/orddrid2");
  112. fInitialize();
  113. ]]>
  114. </script>
  115. <submission id="TXPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/drginfo" resultref="/root/rslt"/>
  116. <submission id="TXPID24301" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
  117. <submission id="TXPID24302" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main"/>
  118. <submission id="TRPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  119. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  120. <submission id="TXPID24300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/tmp/tmp"/>
  121. <submission id="TXPIJ03208" mediatype="multipart/form-data" method="form-data-post"/>
  122. <submission id="TRPIJ03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drginfo" resultref="/root/main/endchkinfo"/>
  123. <submission id="TRPID24500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/kdrglist"/>
  124. <submission id="TRPID24301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/"/>
  125. </model>
  126. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  131. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  132. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  133. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  135. <script type="javascript">
  136. <![CDATA[
  137. function fInitialize() {
  138. var gToday = new Date();
  139. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  140. var gBasemonth = gToday.getDateFormat("MM");
  141. var gBaseday = gToday.getDateFormat("DD");
  142. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  143. var gCurrentym = gBaseyear + gBasemonth;
  144. var gUserid = getUserId();
  145. model.setValue(ipt_clamfromym.attribute("ref"), gCurrentym );
  146. model.setValue(ipt_clamtoym.attribute("ref"), gCurrentym);
  147. //fGetdrgDetail();
  148. model.refresh();
  149. btn_clspcd.selected = true;
  150. }
  151. function fGetdrgDetail() {
  152. submit("TRPIJ03200");
  153. //진료결과 체크 - 중간청구인경우 : 계속, 퇴원인경우 : 퇴원
  154. var dschnotiyn = model.getValue("/root/main/drginfo/dschnotiyn");
  155. var ordrslt = model.getValue("/root/main/drginfo/ordrsltcd");
  156. if(dschnotiyn == "Y"){
  157. if(ordrslt == "" || ordrslt == "-" || ordrslt == "1"){
  158. if(ordrslt != "4"){
  159. model.setValue("/root/main/drginfo/ordrsltcd","9");
  160. }
  161. }
  162. }else{
  163. if(ordrslt == "" || ordrslt == "-"){
  164. model.setValue("/root/main/drginfo/ordrsltcd","1");
  165. }
  166. }
  167. }
  168. function fSleep(filenm) {
  169. var now = new Date();
  170. var exitTime = now.getTime() + 30000;
  171. var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
  172. var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg33.in";
  173. var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg33.out";
  174. var fso = new ActiveXObject("Scripting.FileSystemObject");
  175. while (true) {
  176. now = new Date();
  177. //3초동안 파일이 있는지 체크한다. 생성되었으면 루프를 나온다.
  178. if (fso.FileExists(fldr+filenm) && fso.GetFile(fldr+filenm).Size > "0") { break; }
  179. //3초동안 파일이 없으면 빠져나온다.
  180. if (now.getTime() > exitTime) { break; }
  181. }
  182. }
  183. function fStandby() {
  184. var now = new Date();
  185. var exitTime = now.getTime() + 3000;
  186. while (true) {
  187. now = new Date();
  188. //3초동안 후 빠져나온다.
  189. if (now.getTime() > exitTime) { break; }
  190. }
  191. }
  192. function fGetDocuList() {
  193. model.removeNodeset("/root/main/kdrgdrlist")
  194. var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
  195. model.setValue("/root/send/offset", offcnt);
  196. submit("TRPID24500");
  197. }
  198. function responseHandlerTXPID24300() {
  199. removeLoadingWindow();
  200. }
  201. ]]>
  202. </script>
  203. </xhtml:head>
  204. <xhtml:body pagewidth="910" pageheight="910" guideline="1,1143;2,881;" style="margin-left:5; margin-top:0; margin-right:5; margin-bottom:0; ">
  205. <group id="grp_tle" style="left:0px; top:0px; width:785px; height:13px; ">
  206. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:195px; height:14px; ">질병군별 진료과분류 현황</caption>
  207. </group>
  208. <group id="group1" scroll="auto" style="left:0px; top:15px; width:900px; height:890px; ">
  209. <group id="group2" style="left:0px; top:4px; width:895px; height:41px; vertical-align:top; ">
  210. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:895px; height:40px; "/>
  211. <caption id="caption30" class="search_name" style="left:3px; top:11px; width:87px; height:17px; ">청구년월 :</caption>
  212. <input id="ipt_clamfromym" ref="/root/send/clamfromym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:90px; top:10px; width:69px; height:19px; text-align:center; "/>
  213. <input id="ipt_clamtoym" ref="/root/send/clamtoym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:185px; top:10px; width:69px; height:19px; text-align:center; "/>
  214. <caption id="caption2" style="left:165px; top:10px; width:15px; height:20px; ">~</caption>
  215. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:835px; top:10px; width:56px; height:22px; ">
  216. <caption>조회</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. fGetDocuList();
  220. ]]>
  221. </script>
  222. </button>
  223. <line id="line3" class="line_4" style="x1:825px; y1:5px; x2:825px; y2:38px; "/>
  224. <bool id="bool1" checkvalue="Y,N" ref="/root/send/daywardyn" style="left:264px; top:10px; width:20px; height:20px; "/>
  225. <caption id="caption3" style="left:285px; top:10px; width:100px; height:20px; ">낮병동포함</caption>
  226. <bool id="bool2" checkvalue="Y,N" ref="/root/send/ioflagyn" style="left:394px; top:10px; width:20px; height:20px; "/>
  227. <caption id="caption4" style="left:415px; top:10px; width:100px; height:20px; ">응급실퇴원포함</caption>
  228. </group>
  229. <button id="button3" class="btn4_letter2" style="left:839px; top:866px; width:56px; height:22px; ">
  230. <caption>종료</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. model.dispatch("xforms-close");
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="button2" class="btn_sw" group="tab" style="left:100px; top:53px; width:100px; height:22px; ">
  238. <caption>진료과별의사별</caption>
  239. <script type="javascript" ev:event="onclick">
  240. <![CDATA[
  241. model.toggle("case2"); // 해당 tab 으로 토글시킨다.
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="btn_clspcd" class="btn_sw" group="tab" style="left:0px; top:53px; width:100px; height:22px; ">
  246. <caption>진료과별</caption>
  247. <script type="javascript" ev:event="onclick">
  248. <![CDATA[
  249. model.toggle("case1"); // 해당 tab 으로 토글시킨다.
  250. ]]>
  251. </script>
  252. </button>
  253. </group>
  254. <switch id="switch1" style="left:0px; top:90px; width:895px; height:789px; ">
  255. <case id="case1" selected="true">
  256. <button id="btn_excelsave" class="btn2_letter4" style="left:827px; top:2px; width:64px; height:19px; ">
  257. <caption>엑셀저장</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. if (grd_kdrglist.rows > 1) {
  261. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  262. if (fileName != "") {
  263. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  264. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  265. grd_kdrglist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;col_1:label;col_2:label;", true, true, "", "", true);
  266. }
  267. } else {
  268. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  269. }
  270. ]]>
  271. </script>
  272. </button>
  273. <line id="line1" class="line_1" style="x1:0px; y1:23px; x2:890px; y2:23px; "/>
  274. <datagrid id="grd_kdrglist" nodeset="/root/main/kdrglist/kdrg" class="datagrid3" caption="진료과^과별합계&#xA;건수^과별합계&#xA;건수^미분류^미분류^단순^단순^단순^일반^일반^일반^전문^전문^전문|진료과^과별합계&#xA;건수^과별합계&#xA;건수^건수^비율^건수^비율^전체비율^건수^비율^전체비율^건수^비율^전체비율" colsep="^" colwidth="124, 87, 21, 65, 73, 45, 57, 59, 50, 56, 61, 57, 50, 64" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:28px; width:890px; height:752px; text-align:center; ">
  275. <col ref="orddeptcd" type="combo" style="text-align:left; ">
  276. <choices>
  277. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  278. <label ref="nm"/>
  279. <value ref="cd"/>
  280. </itemset>
  281. </choices>
  282. </col>
  283. <col ref="pidtotcnt" type="output" style="text-align:right; "/>
  284. <col ref="daywardcnt" visibility="hidden"/>
  285. <col ref="typeectcnt" style="text-align:right; "/>
  286. <col ref="typeectratio" style="text-align:right; "/>
  287. <col ref="type3cnt" style="text-align:right; "/>
  288. <col ref="type3ratio" style="text-align:right; "/>
  289. <col ref="type3allratio" style="text-align:right; "/>
  290. <col ref="type2cnt" style="text-align:right; "/>
  291. <col ref="type2ratio" style="text-align:right; "/>
  292. <col ref="type2allratio" style="text-align:right; "/>
  293. <col ref="type1cnt" style="text-align:right; "/>
  294. <col ref="type1ratio" style="text-align:right; "/>
  295. <col ref="type1allratio" style="text-align:right; "/>
  296. <script type="javascript" ev:event="onscrollpos">
  297. <![CDATA[
  298. ]]>
  299. </script>
  300. <script type="javascript" ev:event="onscroll">
  301. <![CDATA[
  302. var rowno = grd_kdrglist.rows - grd_kdrglist.fixedRows;
  303. var cvalue = 0;
  304. if(rowno / 10000 >= 1) {
  305. cvalue = (rowno/10000) / Math.floor(rowno/10000);
  306. }
  307. if(grd_kdrglist.vscroll.attribute("max") == grd_kdrglist.vscroll.attribute("pos") && grd_kdrglist.row > 0 && cvalue == 1) {
  308. // end of scroll
  309. var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
  310. model.setValue("/root/send/offset", offcnt);
  311. submit("TRPID24301");
  312. grd_kdrglist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  313. }
  314. //
  315. // if (model.getValue("/root/main/kdrglist/kdrg/tot_cnt") == rowno) {
  316. // alert("마지막");
  317. // return false;
  318. // }
  319. //
  320. ]]>
  321. </script>
  322. </datagrid>
  323. </case>
  324. <case id="case2">
  325. <button id="button1" class="btn2_letter4" style="left:827px; top:2px; width:64px; height:19px; ">
  326. <caption>엑셀저장</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. if (datagrid1.rows > 1) {
  330. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  331. if (fileName != "") {
  332. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  333. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  334. datagrid1.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;col_1:label;col_2:label;", true, true, "", "", true);
  335. }
  336. } else {
  337. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  338. }
  339. ]]>
  340. </script>
  341. </button>
  342. <line id="line2" class="line_1" style="x1:0px; y1:23px; x2:890px; y2:23px; "/>
  343. <datagrid id="datagrid1" nodeset="/root/main/kdrgdrlist/kdrg" class="datagrid3" caption="진료과^진료의^과별합계&#xA;건수^과별합계&#xA;건수^미분류^미분류^단순^단순^단순^일반^일반^일반^전문^전문^전문|진료과^진료의^과별합계&#xA;건수^과별합계&#xA;건수^건수^비율^건수^비율^전체비율^건수^비율^전체비율^건수^비율^전체비율" colsep="^" colwidth="124, 100, 87, 21, 65, 73, 45, 57, 59, 50, 56, 61, 57, 50, 64" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:28px; width:890px; height:752px; text-align:center; ">
  344. <col ref="orddeptcd" type="combo" style="text-align:left; ">
  345. <choices>
  346. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  347. <label ref="nm"/>
  348. <value ref="cd"/>
  349. </itemset>
  350. </choices>
  351. </col>
  352. <col ref="orddrnm"/>
  353. <col ref="pidtotcnt" type="output" style="text-align:right; "/>
  354. <col ref="daywardcnt" visibility="hidden"/>
  355. <col ref="typeectcnt" style="text-align:right; "/>
  356. <col ref="typeectratio" style="text-align:right; "/>
  357. <col ref="type3cnt" style="text-align:right; "/>
  358. <col ref="type3ratio" style="text-align:right; "/>
  359. <col ref="type3allratio" style="text-align:right; "/>
  360. <col ref="type2cnt" style="text-align:right; "/>
  361. <col ref="type2ratio" style="text-align:right; "/>
  362. <col ref="type2allratio" style="text-align:right; "/>
  363. <col ref="type1cnt" style="text-align:right; "/>
  364. <col ref="type1ratio" style="text-align:right; "/>
  365. <col ref="type1allratio" style="text-align:right; "/>
  366. <script type="javascript" ev:event="onscrollpos">
  367. <![CDATA[
  368. ]]>
  369. </script>
  370. <script type="javascript" ev:event="onscroll">
  371. <![CDATA[
  372. var rowno = grd_kdrglist.rows - grd_kdrglist.fixedRows;
  373. var cvalue = 0;
  374. if(rowno / 10000 >= 1) {
  375. cvalue = (rowno/10000) / Math.floor(rowno/10000);
  376. }
  377. if(grd_kdrglist.vscroll.attribute("max") == grd_kdrglist.vscroll.attribute("pos") && grd_kdrglist.row > 0 && cvalue == 1) {
  378. // end of scroll
  379. var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
  380. model.setValue("/root/send/offset", offcnt);
  381. submit("TRPID24301");
  382. grd_kdrglist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  383. }
  384. //
  385. // if (model.getValue("/root/main/kdrglist/kdrg/tot_cnt") == rowno) {
  386. // alert("마지막");
  387. // return false;
  388. // }
  389. //
  390. ]]>
  391. </script>
  392. </datagrid>
  393. </case>
  394. </switch>
  395. </xhtml:body>
  396. </xhtml:html>