SMPID24400_KDRG 통계 프로그램.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPID24400" position="absolute 0 0 903 852" titletext="KDRG 통계프로그램" oninit="SMPID24400_oninit" onload="SMPID24400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="switch1" taborder="4" tabindex="0" position="absolute 1 71 896 842" anchor="all">
  8. <Tabpages>
  9. <Tabpage id="case1" text="진료과">
  10. <Layouts>
  11. <Layout>
  12. <Grid id="grd_kdrglist" class="datagrid3" taborder="0" binddataset="ds_main_kdrglist" useinputpanel="false" autofittype="col" position="absolute 1 26 894 721" anchor="all" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="26"/>
  17. <Column size="57"/>
  18. <Column size="100"/>
  19. <Column size="42"/>
  20. <Column size="54"/>
  21. <Column size="426"/>
  22. <Column size="45"/>
  23. <Column size="66"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell/>
  31. <Cell col="1" text="대분류"/>
  32. <Cell col="2" text="진료과"/>
  33. <Cell col="3" text="MDC"/>
  34. <Cell col="4" text="DRG번호"/>
  35. <Cell col="5" text="DRG명"/>
  36. <Cell col="6" text="환자수"/>
  37. <Cell col="7" text="총입원일수"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head" expr="currow+1"/>
  41. <Cell col="1" text="bind:drgtype"/>
  42. <Cell col="2" displaytype="combo" edittype="combo" style="align:center;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd2" combocodecol="cd" combodatacol="nm"/>
  43. <Cell col="3" text="bind:mdc"/>
  44. <Cell col="4" text="bind:drgno"/>
  45. <Cell col="5" text="bind:drgname"/>
  46. <Cell col="6" text="bind:pidcnt"/>
  47. <Cell col="7" text="bind:chosindaynocnt"/>
  48. </Band>
  49. </Format>
  50. </Formats>
  51. </Grid>
  52. <Shape id="line1" class="line_1" position="absolute 1 15 894 33" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  53. <Button id="btn_excelsave" taborder="1" text="엑셀저장" onclick="btn_excelsave_onclick" class="btn7" position="absolute 814 2 894 21" anchor="top right"/>
  54. </Layout>
  55. </Layouts>
  56. </Tabpage>
  57. <Tabpage id="case2" text="진료과별의사별">
  58. <Layouts>
  59. <Layout>
  60. <Grid id="grd_kdrglist" class="datagrid3" taborder="1" binddataset="ds_main_kdrglist1" useinputpanel="false" autofittype="col" position="absolute 1 26 894 721" anchor="all" cellsizingtype="col">
  61. <Formats>
  62. <Format id="default">
  63. <Columns>
  64. <Column size="32"/>
  65. <Column size="57"/>
  66. <Column size="100"/>
  67. <Column size="53"/>
  68. <Column size="42"/>
  69. <Column size="54"/>
  70. <Column size="440"/>
  71. <Column size="45"/>
  72. <Column size="66"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head"/>
  76. <Row size="24"/>
  77. </Rows>
  78. <Band id="head">
  79. <Cell/>
  80. <Cell col="1" text="대분류"/>
  81. <Cell col="2" text="진료과"/>
  82. <Cell col="3" text="진료의"/>
  83. <Cell col="4" text="MDC"/>
  84. <Cell col="5" text="DRG번호"/>
  85. <Cell col="6" text="DRG명"/>
  86. <Cell col="7" text="환자수"/>
  87. <Cell col="8" text="총입원일수"/>
  88. </Band>
  89. <Band id="body">
  90. <Cell celltype="head" expr="currow+1"/>
  91. <Cell col="1" text="bind:drgtype"/>
  92. <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd2" combocodecol="cd" combodatacol="nm"/>
  93. <Cell col="3" displaytype="text" style="align:center middle;" text="bind:orddrnm"/>
  94. <Cell col="4" text="bind:mdc"/>
  95. <Cell col="5" text="bind:drgno"/>
  96. <Cell col="6" text="bind:drgname"/>
  97. <Cell col="7" text="bind:pidcnt"/>
  98. <Cell col="8" text="bind:chosindaynocnt"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Shape id="line1" class="line_1" position="absolute 1 15 894 33" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  104. <Button id="button1" taborder="2" text="엑셀저장" class="btn7" position="absolute 814 2 894 21" anchor="top right" onclick="switch1_case2_button1_onclick"/>
  105. </Layout>
  106. </Layouts>
  107. </Tabpage>
  108. </Tabpages>
  109. </Tab>
  110. <Static id="cap_title" text="KDRG 통계프로그램" class="tit_1" position="absolute 1 0 217 23"/>
  111. <Div id="group2" taborder="3" class="div_SA" position="absolute 1 24 896 65" anchor="left top right">
  112. <Layouts>
  113. <Layout>
  114. <Static id="caption30" text="청구년월 :" class="search_name" position="absolute 8 11 95 28" anchor="default"/>
  115. <Static id="caption2" text="~" position="absolute 168 10 183 30" anchor="default"/>
  116. <Button id="btn_select" taborder="39" text="조회" class="btn1" position="absolute 835 10 891 32" anchor="top right" onclick="group2_btn_select_onclick"/>
  117. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 822 5 828 38" anchor="top right"/>
  118. <CheckBox id="bool1" taborder="40" position="absolute 268 10 371 30" anchor="default" text="낮병동포함" truevalue="Y" falsevalue="N"/>
  119. <CheckBox id="bool2" taborder="41" text="응급실퇴원포함" position="absolute 375 10 478 30" truevalue="Y" falsevalue="N" anchor="default"/>
  120. <cp_monthCal id="ipt_clamfromym" titletext="monthCalendar" taborder="42" text="cp_monthCal00" scrollbars="none" position="absolute 87 10 162 30"/>
  121. <cp_monthCal id="ipt_clamtoym" titletext="monthCalendar" taborder="43" text="cp_monthCal00" scrollbars="none" position="absolute 184 10 259 30"/>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. <Button id="button3" taborder="5" text="종료" position="absolute 836 824 894 847" class="btn4" anchor="right bottom" onclick="button3_onclick"/>
  126. </Layout>
  127. </Layouts>
  128. <Objects>
  129. <Dataset id="ds_main_kdrglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="orddeptcd" type="STRING" size="256" sumtext="기관코드"/>
  132. <Column id="mdc" type="STRING" size="256" sumtext="청구년월"/>
  133. <Column id="drgno" type="STRING" size="256" sumtext="청구차수"/>
  134. <Column id="pidcnt" type="STRING" size="256" sumtext="환자번호"/>
  135. <Column id="chosindaynocnt" type="STRING" size="256" sumtext="환자번호순번"/>
  136. <Column id="drgtype" type="STRING" size="256" sumtext="진단"/>
  137. <Column id="drgname" type="STRING" size="256" sumtext="시술"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="cdnm" type="STRING" size="256"/>
  143. <Column id="cdid" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row/>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="cdnm" type="STRING" size="256"/>
  152. <Column id="cdid" type="STRING" size="256"/>
  153. </ColumnInfo>
  154. <Rows>
  155. <Row/>
  156. </Rows>
  157. </Dataset>
  158. <Dataset id="ds_init_P0110list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="cdid" type="STRING" size="256"/>
  161. <Column id="cdnm" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row/>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_init_pam_PK016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  168. <Dataset id="ds_init_pam_PK054list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  169. <Dataset id="ds_init_pam_PK055list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  170. <Dataset id="ds_init_pam_PK015list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  171. <Dataset id="ds_hidden_tmp_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  172. <ColumnInfo>
  173. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  174. <Column id="nm" type="STRING" size="256" sumtext="진료과명칭"/>
  175. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  176. <Column id="reqfild" type="STRING" size="256" sumtext="청구진료분야"/>
  177. <Column id="reqdeptno" type="STRING" size="256" sumtext="청구과코드"/>
  178. <Column id="orddeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row/>
  182. </Rows>
  183. </Dataset>
  184. <Dataset id="ds_hidden_tmp_orddeptcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  187. <Column id="nm" type="STRING" size="256" sumtext="진료과명칭"/>
  188. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  189. <Column id="reqfild" type="STRING" size="256" sumtext="청구진료분야"/>
  190. <Column id="reqdeptno" type="STRING" size="256" sumtext="청구과코드"/>
  191. <Column id="orddeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  192. </ColumnInfo>
  193. <Rows>
  194. <Row/>
  195. </Rows>
  196. </Dataset>
  197. <Dataset id="ds_hidden_tmp_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="cd" type="STRING" size="256" sumtext="진료의사코드"/>
  200. <Column id="nm" type="STRING" size="256" sumtext="진료의사명칭"/>
  201. <Column id="dp" type="STRING" size="256" sumtext="부서코드"/>
  202. <Column id="sp" type="STRING" size="256" sumtext="선택진료여부"/>
  203. <Column id="reqdp" type="STRING" size="256" sumtext="청구과코드"/>
  204. </ColumnInfo>
  205. <Rows>
  206. <Row/>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_hidden_tmp_orddrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="cd" type="STRING" size="256" sumtext="진료의사코드"/>
  212. <Column id="nm" type="STRING" size="256" sumtext="진료의사명칭"/>
  213. <Column id="dp" type="STRING" size="256" sumtext="부서코드"/>
  214. <Column id="sp" type="STRING" size="256" sumtext="선택진료여부"/>
  215. <Column id="reqdp" type="STRING" size="256" sumtext="청구과코드"/>
  216. </ColumnInfo>
  217. <Rows>
  218. <Row/>
  219. </Rows>
  220. </Dataset>
  221. <Dataset id="ds_init_orddeptcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  224. <Column id="nm" type="STRING" size="256" sumtext="진료과명칭"/>
  225. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  226. <Column id="reqfild" type="STRING" size="256" sumtext="청구진료분야"/>
  227. <Column id="reqdeptno" type="STRING" size="256" sumtext="청구과코드"/>
  228. <Column id="orddeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row/>
  232. </Rows>
  233. </Dataset>
  234. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="clamfromym" type="STRING" size="256"/>
  237. <Column id="clamtoym" type="STRING" size="256"/>
  238. <Column id="daywardyn" type="STRING" size="256"/>
  239. <Column id="ioflagyn" type="STRING" size="256"/>
  240. <Column id="offset" type="STRING" size="256"/>
  241. </ColumnInfo>
  242. <Rows>
  243. <Row/>
  244. </Rows>
  245. </Dataset>
  246. <Dataset id="ds_main_kdrglist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  247. <ColumnInfo>
  248. <Column id="orddeptcd" type="STRING" size="256" sumtext="기관코드"/>
  249. <Column id="mdc" type="STRING" size="256" sumtext="청구년월"/>
  250. <Column id="drgno" type="STRING" size="256" sumtext="청구차수"/>
  251. <Column id="pidcnt" type="STRING" size="256" sumtext="환자번호"/>
  252. <Column id="chosindaynocnt" type="STRING" size="256" sumtext="환자번호순번"/>
  253. <Column id="drgtype" type="STRING" size="256" sumtext="진단"/>
  254. <Column id="drgname" type="STRING" size="256" sumtext="시술"/>
  255. </ColumnInfo>
  256. </Dataset>
  257. </Objects>
  258. <Bind>
  259. <BindItem id="item2" compid="group2.bool1" propid="value" datasetid="ds_send" columnid="daywardyn"/>
  260. <BindItem id="item3" compid="group2.bool2" propid="value" datasetid="ds_send" columnid="ioflagyn"/>
  261. </Bind>
  262. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  263. * System Name :
  264. * Job Name :
  265. * Creator :
  266. * Make Date : 2016-05-24
  267. * Description :
  268. *---------------------------------------------------------------------------------------
  269. * Modify Date Modifier Modify Description
  270. *---------------------------------------------------------------------------------------
  271. * 2016-05-24 Live Converter TF->XP
  272. *
  273. *---------------------------------------------------------------------------------------
  274. ****************************************************************************************/
  275. include "com_commonxp::comm_main.xjs";
  276. include "pam_pamcomnxp::PAM001.xjs";
  277. include "pam_pamcomnxp::PAM.xjs";
  278. function SMPID24400_oninit(obj:Form, e:InitEventInfo)
  279. {
  280. frmf_initForm(obj);
  281. }
  282. function SMPID24400_onload(obj:Form, e:LoadEventInfo)
  283. {
  284. var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
  285. ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}
  286. ,{dsNm: "ds_init_P0110list", cdGrpId: "P0110"}]
  287. appf_getCodeList(arrParam);
  288. pamGetDeptCDDrIDList();
  289. var arrParam1 = new Array();
  290. arrParam1 = [{dsNm: "ds_init_pam_PK015list", cdGrpId: "PK015", showValue: false}
  291. , {dsNm: "ds_init_pam_PK016list", cdGrpId: "PK016", showValue: false}
  292. , {dsNm: "ds_init_pam_PK054list", cdGrpId: "PK054", showValue: false}
  293. , {dsNm: "ds_init_pam_PK055list", cdGrpId: "PK055", showValue: false}];
  294. pamfGetCodeList(arrParam1, true, "cf_pamfGetCodeList"); //비동기
  295. dsf_createDsRow("ds_tmp", [{col:"ioflag", type:"STRING", size:256, val: ""}]);
  296. var oParam = {};
  297. oParam.id = "TRPID20309";
  298. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  299. oParam.method = "reqGetDeptCDDrID";
  300. oParam.inds = "req=ds_tmp";
  301. oParam.outds = "ds_hidden_tmp_orddeptcd=orddeptcd ds_hidden_tmp_orddeptcd2=orddeptcd2 ds_hidden_tmp_orddrid=orddrid ds_hidden_tmp_orddrid2=orddrid2";
  302. oParam.async = false;
  303. //oParam.callback = "cf_TRPID20309";
  304. tranf_submit(oParam);
  305. ds_init_orddeptcd2.copyData(ds_hidden_tmp_orddeptcd2);
  306. fInitialize();
  307. switch1.tabindex = 0;
  308. }
  309. function cf_pamfGetCodeList(){}
  310. function fInitialize()
  311. {
  312. var gToday = new Date();
  313. var gBaseyear = gToday.getDateFormat("YYYY");
  314. var gBasemonth = gToday.getDateFormat("MM");
  315. var gBaseday = gToday.getDateFormat("DD");
  316. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  317. var gCurrentym = gBaseyear + gBasemonth;
  318. var gUserid = sysf_getUserId();
  319. ds_send.setColumn(0, "clamfromym", gCurrentym);
  320. ds_send.setColumn(0, "clamtoym", gCurrentym);
  321. group2.ipt_clamfromym.setData(gCurrentym);
  322. group2.ipt_clamtoym.setData(gCurrentym);
  323. }
  324. //조회
  325. function group2_btn_select_onclick(obj:Button, e:ClickEventInfo)
  326. {
  327. fGetDocuList();
  328. }
  329. function fGetDocuList()
  330. {
  331. ds_send.setColumn(0, "offset", "0");
  332. ds_send.setColumn(0, "clamfromym", group2.ipt_clamfromym.getData());
  333. ds_send.setColumn(0, "clamtoym", group2.ipt_clamtoym.getData());
  334. dsf_setDefaultVal(ds_send, "pageyn:Y,daywardyn:N,ioflagyn:N");
  335. var oParam = {};
  336. oParam.id = "TRPID24400";
  337. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  338. oParam.method = "reqGetKdrgTotList";
  339. oParam.inds = "req=ds_send";
  340. oParam.outds = "ds_main_kdrglist=kdrglist ds_main_kdrglist1=kdrgdrlist";
  341. oParam.async = false;
  342. //oParam.callback = "cf_TRPID24400";
  343. tranf_submit(oParam);
  344. }
  345. //종료
  346. function button3_onclick(obj:Button, e:ClickEventInfo)
  347. {
  348. this.close();
  349. }
  350. //엑셀저장1
  351. function btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  352. {
  353. if (ds_main_kdrglist.rowcount > 0)
  354. {
  355. grdf_exportExcel(switch1.case1.grd_kdrglist, "exportExcel", "see");
  356. }
  357. else
  358. {
  359. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  360. }
  361. }
  362. //엑셀저장2
  363. function switch1_case2_button1_onclick(obj:Button, e:ClickEventInfo)
  364. {
  365. if (ds_main_kdrglist1.rowcount > 0)
  366. {
  367. grdf_exportExcel(switch1.case2.grd_kdrglist, "exportExcel", "see");
  368. }
  369. else
  370. {
  371. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  372. }
  373. }
  374. ]]></Script>
  375. </Form>
  376. </FDL>