SMPMS01120_외래및입원환자현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPMS01120" position="absolute 0 0 1211 784" titletext="외래 및 입원환자통계" onload="SMPMS01120_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" class="tit_1" position="absolute 0 0 189 14" style="" text="외래 및 입원환자통계" />
  8. <Static id="caption4" class="patient_text_black" position="absolute 922 0 1194 200" style="" />
  9. <Div id="group4" scrollbars="autoboth" position="absolute 0 732 1190 765" style="">
  10. <Layouts>
  11. <Layout>
  12. <Shape id="line88" class="line_6" linetype="horizontal" position="absolute 0 0 1160 3" style="" anchor="default" />
  13. <Button id="btn_clear" class="btn4_letter3" position="absolute 1090 5 1158 27" style="" text="초기화" onclick="group4_btn_clear_onclick" />
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Div id="group6" position="absolute 0 70 1180 730" style="">
  18. <Layouts>
  19. <Layout>
  20. <Tab id="swt_outpatient" position="absolute 0 5 1160 640" style="border: solid #c7a3cf #c7a3cf;" anchor="default">
  21. <Tabpages>
  22. <Tabpage id="case_otpt" position="absolute 0 5 1210 653" style="" anchor="default">
  23. <Layouts>
  24. <Layout>
  25. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 5 25 1155 28" style="" anchor="default" />
  26. <Button id="btn_cnclexcel" class="btn2_letter4" position="absolute 1088 3 1152 22" style="" text="엑셀저장" onclick="group6_swt_outpatient_case_otpt_btn_cnclexcel_onclick" />
  27. <Grid id="grd_change" binddataset="ds_main_grdpatstats_grdpatstatslist" class="datagrid2" visible="true" position="absolute 5 30 1155 615" style="">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="120" />
  32. <Column size="80" />
  33. <Column size="80" />
  34. <Column size="80" />
  35. <Column size="80" />
  36. <Column size="80" />
  37. <Column size="120" />
  38. <Column size="80" />
  39. <Column size="80" />
  40. <Column size="80" />
  41. <Column size="100" />
  42. </Columns>
  43. <Rows>
  44. <Row size="23" band="head" />
  45. <Row size="23" />
  46. </Rows>
  47. <Band id="head">
  48. <Cell text="임상과" />
  49. <Cell col="1" text="외래" />
  50. <Cell col="2" text="외래" />
  51. <Cell col="3" text="외래" />
  52. <Cell col="4" text="외래" />
  53. <Cell col="5" text="외래" />
  54. <Cell col="6" text="외래" />
  55. <Cell col="7" text=" 입원" />
  56. <Cell col="8" text=" 입원" />
  57. <Cell col="9" text="퇴원" />
  58. <Cell col="10" text="퇴원|임상과" />
  59. <Cell col="11" text="병원초진" />
  60. <Cell col="12" text="과초진" />
  61. <Cell col="13" text="재진" />
  62. <Cell col="14" text="합계" />
  63. <Cell col="15" text="초진율" />
  64. <Cell col="16" text="진료Unit(선택)" />
  65. <Cell col="17" text="입원" />
  66. <Cell col="18" text="재원" />
  67. <Cell col="19" text="실인원" />
  68. <Cell col="20" text="평균재원일수" />
  69. </Band>
  70. <Band id="body">
  71. <Cell text="bind:depthngnm" />
  72. <Cell col="1" text="bind:fstord" />
  73. <Cell col="2" text="bind:fstdeptord" />
  74. <Cell col="3" text="bind:reord" />
  75. <Cell col="4" text="bind:gnrnsum" />
  76. <Cell col="5" text="bind:ratio" />
  77. <Cell col="6" text="bind:unitcnt" />
  78. <Cell col="7" text="bind:incnt" />
  79. <Cell col="8" text="bind:inhosp" />
  80. <Cell col="9" text="bind:outcnt" />
  81. <Cell col="10" text="bind:inhospav" />
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Button id="button4" class="btn2_letter2" position="absolute 1038 3 1080 22" style="" text="출력" onclick="group6_swt_outpatient_case_otpt_button4_onclick" />
  87. </Layout>
  88. </Layouts>
  89. </Tabpage>
  90. </Tabpages>
  91. </Tab>
  92. </Layout>
  93. </Layouts>
  94. </Div>
  95. <Div id="group5" position="absolute 0 15 1180 65" style="align: top;">
  96. <Layouts>
  97. <Layout>
  98. <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1160 47" style="" />
  99. <Button id="button1" class="btn1_letter2" position="absolute 1089 10 1145 32" style="" text="조회" onclick="group5_button1_onclick" />
  100. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1085 7 1088 40" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
  101. <Calendar id="ipt_fromdd" class="input_s_essential" position="absolute 105 14 200 33" style="" anchor="default" />
  102. <Static id="radio_goobun" class="search_name" position="absolute 17 14 110 31" style="" text="조회기간 :" />
  103. <Static id="caption1" position="absolute 202 15 217 30" style="" text="~" />
  104. <Calendar id="ipt_todd" class="input_s_essential" position="absolute 215 14 310 33" style="" anchor="default" />
  105. </Layout>
  106. </Layouts>
  107. </Div>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  112. <ColumnInfo>
  113. <Column id="fromdd" type="STRING" size="256" />
  114. <Column id="todd" type="STRING" size="256" />
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="fromdd"></Col>
  119. <Col id="todd"></Col>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  124. <ColumnInfo>
  125. <Column id="result" type="STRING" size="256" />
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  129. <ColumnInfo>
  130. <Column id="hidden" type="STRING" size="256" />
  131. </ColumnInfo>
  132. <Rows>
  133. <Row>
  134. <Col id="hidden"></Col>
  135. </Row>
  136. </Rows>
  137. </Dataset>
  138. <Dataset id="ds_main_grdpatstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  139. <ColumnInfo>
  140. <Column id="grdpatstatslist" type="STRING" size="256" />
  141. </ColumnInfo>
  142. <Rows>
  143. <Row>
  144. <Col id="grdpatstatslist"></Col>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  149. <ColumnInfo>
  150. <Column id="srchcond" type="STRING" size="256" />
  151. <Column id="pid" type="STRING" size="256" />
  152. <Column id="hngnm" type="STRING" size="256" />
  153. <Column id="rrgstno1" type="STRING" size="256" />
  154. <Column id="rrgstno2" type="STRING" size="256" />
  155. <Column id="acptdd" type="STRING" size="256" />
  156. </ColumnInfo>
  157. </Dataset>
  158. </Objects>
  159. <Bind>
  160. <BindItem id="item0" compid="group5.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd" />
  161. <BindItem id="item1" compid="group5.ipt_todd" propid="value" datasetid="ds_send" columnid="todd" />
  162. </Bind>
  163. <Script type="xscript4.0"><![CDATA[function SMPMS01120_onload(obj:Form, e:LoadEventInfo) {
  164. frmf_initForm(obj);
  165. //grdf_initGrid(grd_XXX);
  166. //grdf_setGridSort(grd_XXX);
  167. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  168. var arrParam = [ {dsNm: "ds_init_comncdlist_P0008list","ds_init_comncdlist_P0021list","ds_init_comncdlist_P0341list","ds_init_comncdlist_P0022list","ds_init_comncdlist_P0020list"
  169. ,"ds_init_comncdlist_P0029list","ds_init_comncdlist_P0344list", "ds_init_comncdlist_P0010list",
  170. cdGrpId: "P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010" } ];
  171. appf_getCodeList(arrParam, );
  172. //진료과코드 진료의사ID 조회
  173. pamGetDeptCDDrIDList();
  174. //초기화 및 날자 입력 항목에 오늘 날자 세팅
  175. fInitialize();
  176. }
  177. include '../../.._com_commonweb_js_common.js'
  178. include '../../.._com_commonweb_js_tfHelper.js'
  179. include '../../.._com_commonweb_js_utilHelper.js'
  180. include '../../.._com_commonweb_js_dateHelper.js'
  181. include '../../.._com_basiccodeweb_js_ZBC001.js'
  182. include '../../.._pam_pamcomnweb_js_PAM.js'
  183. function fInitialize() {
  184. //날자 입력 항목에 오늘 날자 세팅
  185. var curDate = utlf_getCurrentDate();
  186. curDate = curDate.toDate().getAddDate(-1,"D");
  187. var nextDate = curDate.getFullYear();
  188. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  189. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  190. ds_send.setColumn( 0, "todd", nextDate);
  191. var prviousDate = utlf_getCurrentDate();
  192. prviousDate = prviousDate.toDate().getAddDate(-7,"D");
  193. var previousDay = prviousDate.getFullYear();
  194. previousDay = previousDay.toString() + (( prviousDate.getMonth() + 1 > 9 ) ? prviousDate.getMonth() + 1 : "0" + (prviousDate.getMonth() + 1));
  195. previousDay = previousDay.toString() + (( prviousDate.getDate() > 9 ) ? prviousDate.getDate() : "0" + prviousDate.getDate()) ;
  196. ds_send.setColumn( 0, "fromdd", previousDay);
  197. model.toggle("group6.swt_outpatient.case_otpt");
  198. //model.refresh();
  199. }
  200. function group4_btn_clear_onclick(obj:Button, e:ClickEventInfo) {
  201. fInitialize();
  202. }
  203. function group6_swt_outpatient_case_otpt_btn_cnclexcel_onclick(obj:Button, e:ClickEventInfo) {
  204. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  205. if (fileName != "")
  206. {
  207. group6.swt_outpatient.case_otpt.grd_change.saveExcel(fileName, "SheetName", true, true, "", "");
  208. }
  209. window.exec(fileName);
  210. }
  211. function group6_swt_outpatient_case_otpt_button4_onclick(obj:Button, e:ClickEventInfo) {
  212. var objDOM = rptf_createDOM();
  213. var objParam = new Object();
  214. rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
  215. objParam.xml_data_XML1 = objDOM.documentElement.source;
  216. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  217. rptf_exeReportPreview30(["RPPAS02401"],[objParam], option);
  218. }
  219. function group5_button1_onclick(obj:Button, e:ClickEventInfo) {
  220. // submit("TRPMS01121");
  221. var oParam = {};
  222. oParam.id = "TRPMS01121";
  223. oParam.service = "planteamstatsapp.PlanTeamPatStats";
  224. oParam.method = "reqGetOtptInptPatstats";
  225. oParam.inds = "req=ds_";
  226. oParam.outds = "ds_=grdpatstatslist";
  227. oParam.async = false;
  228. oParam.callback = "cf_TRPMS01121";
  229. tranf_submit(oParam);
  230. /*
  231. function cf_TRPMS01121(sSvcId, nErrorCode, sErrorMsg) {
  232. if(nErrorCode < 0) return;
  233. }
  234. function cf_TRPMS01121(sSvcId, nErrorCode, sErrorMsg) {
  235. arErrorCode.push(sSvcId, nErrorCode);
  236. }
  237. arErrorCode.pop("TRPMS01121") > -1
  238. arErrorCode.pop("TRPMS01121") < 0
  239. */
  240. //model.refresh();
  241. }
  242. ]]></Script>
  243. </Form>
  244. </FDL>