123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPMS01120" position="absolute 0 0 1211 784" titletext="외래 및 입원환자통계" onload="SMPMS01120_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 189 14" style="" text="외래 및 입원환자통계" />
- <Static id="caption4" class="patient_text_black" position="absolute 922 0 1194 200" style="" />
- <Div id="group4" scrollbars="autoboth" position="absolute 0 732 1190 765" style="">
- <Layouts>
- <Layout>
- <Shape id="line88" class="line_6" linetype="horizontal" position="absolute 0 0 1160 3" style="" anchor="default" />
- <Button id="btn_clear" class="btn4_letter3" position="absolute 1090 5 1158 27" style="" text="초기화" onclick="group4_btn_clear_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group6" position="absolute 0 70 1180 730" style="">
- <Layouts>
- <Layout>
- <Tab id="swt_outpatient" position="absolute 0 5 1160 640" style="border: solid #c7a3cf #c7a3cf;" anchor="default">
- <Tabpages>
- <Tabpage id="case_otpt" position="absolute 0 5 1210 653" style="" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 5 25 1155 28" style="" anchor="default" />
- <Button id="btn_cnclexcel" class="btn2_letter4" position="absolute 1088 3 1152 22" style="" text="엑셀저장" onclick="group6_swt_outpatient_case_otpt_btn_cnclexcel_onclick" />
- <Grid id="grd_change" binddataset="ds_main_grdpatstats_grdpatstatslist" class="datagrid2" visible="true" position="absolute 5 30 1155 615" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="120" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </Rows>
- <Band id="head">
- <Cell text="임상과" />
- <Cell col="1" text="외래" />
- <Cell col="2" text="외래" />
- <Cell col="3" text="외래" />
- <Cell col="4" text="외래" />
- <Cell col="5" text="외래" />
- <Cell col="6" text="외래" />
- <Cell col="7" text=" 입원" />
- <Cell col="8" text=" 입원" />
- <Cell col="9" text="퇴원" />
- <Cell col="10" text="퇴원|임상과" />
- <Cell col="11" text="병원초진" />
- <Cell col="12" text="과초진" />
- <Cell col="13" text="재진" />
- <Cell col="14" text="합계" />
- <Cell col="15" text="초진율" />
- <Cell col="16" text="진료Unit(선택)" />
- <Cell col="17" text="입원" />
- <Cell col="18" text="재원" />
- <Cell col="19" text="실인원" />
- <Cell col="20" text="평균재원일수" />
- </Band>
- <Band id="body">
- <Cell text="bind:depthngnm" />
- <Cell col="1" text="bind:fstord" />
- <Cell col="2" text="bind:fstdeptord" />
- <Cell col="3" text="bind:reord" />
- <Cell col="4" text="bind:gnrnsum" />
- <Cell col="5" text="bind:ratio" />
- <Cell col="6" text="bind:unitcnt" />
- <Cell col="7" text="bind:incnt" />
- <Cell col="8" text="bind:inhosp" />
- <Cell col="9" text="bind:outcnt" />
- <Cell col="10" text="bind:inhospav" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button4" class="btn2_letter2" position="absolute 1038 3 1080 22" style="" text="출력" onclick="group6_swt_outpatient_case_otpt_button4_onclick" />
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group5" position="absolute 0 15 1180 65" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1160 47" style="" />
- <Button id="button1" class="btn1_letter2" position="absolute 1089 10 1145 32" style="" text="조회" onclick="group5_button1_onclick" />
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1085 7 1088 40" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
- <Calendar id="ipt_fromdd" class="input_s_essential" position="absolute 105 14 200 33" style="" anchor="default" />
- <Static id="radio_goobun" class="search_name" position="absolute 17 14 110 31" style="" text="조회기간 :" />
- <Static id="caption1" position="absolute 202 15 217 30" style="" text="~" />
- <Calendar id="ipt_todd" class="input_s_essential" position="absolute 215 14 310 33" style="" anchor="default" />
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="result" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grdpatstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="grdpatstatslist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="grdpatstatslist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256" />
- <Column id="pid" type="STRING" size="256" />
- <Column id="hngnm" type="STRING" size="256" />
- <Column id="rrgstno1" type="STRING" size="256" />
- <Column id="rrgstno2" type="STRING" size="256" />
- <Column id="acptdd" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd" />
- <BindItem id="item1" compid="group5.ipt_todd" propid="value" datasetid="ds_send" columnid="todd" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPMS01120_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var arrParam = [ {dsNm: "ds_init_comncdlist_P0008list","ds_init_comncdlist_P0021list","ds_init_comncdlist_P0341list","ds_init_comncdlist_P0022list","ds_init_comncdlist_P0020list"
- ,"ds_init_comncdlist_P0029list","ds_init_comncdlist_P0344list", "ds_init_comncdlist_P0010list",
- cdGrpId: "P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010" } ];
- appf_getCodeList(arrParam, );
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_commonweb_js_utilHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._pam_pamcomnweb_js_PAM.js'
- function fInitialize() {
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = utlf_getCurrentDate();
- curDate = curDate.toDate().getAddDate(-1,"D");
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
- ds_send.setColumn( 0, "todd", nextDate);
- var prviousDate = utlf_getCurrentDate();
- prviousDate = prviousDate.toDate().getAddDate(-7,"D");
- var previousDay = prviousDate.getFullYear();
- previousDay = previousDay.toString() + (( prviousDate.getMonth() + 1 > 9 ) ? prviousDate.getMonth() + 1 : "0" + (prviousDate.getMonth() + 1));
- previousDay = previousDay.toString() + (( prviousDate.getDate() > 9 ) ? prviousDate.getDate() : "0" + prviousDate.getDate()) ;
- ds_send.setColumn( 0, "fromdd", previousDay);
- model.toggle("group6.swt_outpatient.case_otpt");
- //model.refresh();
- }
- function group4_btn_clear_onclick(obj:Button, e:ClickEventInfo) {
- fInitialize();
- }
- function group6_swt_outpatient_case_otpt_btn_cnclexcel_onclick(obj:Button, e:ClickEventInfo) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- group6.swt_outpatient.case_otpt.grd_change.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- }
- function group6_swt_outpatient_case_otpt_button4_onclick(obj:Button, e:ClickEventInfo) {
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPPAS02401"],[objParam], option);
- }
- function group5_button1_onclick(obj:Button, e:ClickEventInfo) {
- // submit("TRPMS01121");
- var oParam = {};
- oParam.id = "TRPMS01121";
- oParam.service = "planteamstatsapp.PlanTeamPatStats";
- oParam.method = "reqGetOtptInptPatstats";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=grdpatstatslist";
- oParam.async = false;
- oParam.callback = "cf_TRPMS01121";
- tranf_submit(oParam);
- /*
- function cf_TRPMS01121(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPMS01121(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPMS01121") > -1
- arErrorCode.pop("TRPMS01121") < 0
- */
- //model.refresh();
- }
- ]]></Script>
- </Form>
- </FDL>
|