123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPMS01130" position="absolute 0 0 1211 784" titletext="외래환자현황" onload="SMPMS01130_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_otptordstatistic_otptordstatisticlist" class="datagrid2" visible="true" position="absolute 5 30 1155 615" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="90" />
- <Column size="70" />
- <Column size="70" />
- <Column size="100" />
- <Column size="80" />
- <Column size="100" />
- <Column size="70" />
- <Column size="70" />
- <Column size="100" />
- <Column size="80" />
- <Column size="80" />
- <Column size="70" />
- <Column size="70" />
- <Column size="100" />
- <Column size="100" />
- <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="초 진" />
- <Cell col="17" text="재 진" />
- <Cell col="18" text="합계" />
- <Cell col="19" text="일평균" />
- <Cell col="20" text="진료 Unit수" />
- <Cell col="21" text="초 진" />
- <Cell col="22" text="재 진" />
- <Cell col="23" text="합계" />
- <Cell col="24" text="일평균" />
- <Cell col="25" text="진료 Unit수" />
- <Cell col="26" text="초 진" />
- <Cell col="27" text="재 진" />
- <Cell col="28" text="합계" />
- <Cell col="29" text="일평균" />
- <Cell col="30" text="진료Unit수" />
- </Band>
- <Band id="body">
- <Cell text="bind:depthngnm" />
- <Cell col="1" text="bind:bffstord" />
- <Cell col="2" text="bind:bfreord" />
- <Cell col="3" text="bind:bfgnrnsum" />
- <Cell col="4" text="bind:bfdayavg" />
- <Cell col="5" text="bind:bfunitcnt" />
- <Cell col="6" text="bind:fstord" />
- <Cell col="7" text="bind:reord" />
- <Cell col="8" text="bind:gnrnsum" />
- <Cell col="9" text="bind:dayavg" />
- <Cell col="10" text="bind:unitcnt" />
- <Cell col="11" text="bind:calfstord" />
- <Cell col="12" text="bind:calreord" />
- <Cell col="13" text="bind:calgnrnsum" />
- <Cell col="14" text="bind:caldayavg" />
- <Cell col="15" text="bind:calunitcnt" />
- </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" taborder="6" 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" taborder="2" position="absolute 305 14 400 33" style="" anchor="default" />
- <Static id="caption9" class="search_name" position="absolute 215 14 340 31" style="" text="조회기간 :" />
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="statistic_gooboon" taborder="1" position="absolute 107 14 205 34" style="" onitemchanged="group5_statistic_gooboon_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="radio_goobun" class="search_name" position="absolute 17 14 110 31" style="" text="진료 구분 :" />
- <Static id="caption1" position="absolute 402 15 417 30" style="" text="~" />
- <Calendar id="ipt_todd" class="input_s_essential" taborder="3" position="absolute 415 14 510 33" style="" anchor="default" />
- <Static id="caption2" position="absolute 787 15 802 30" style="" text="~" />
- <Calendar id="input1" class="input_s_essential" taborder="5" position="absolute 800 14 895 33" style="" anchor="default" />
- <Static id="caption3" class="search_name" position="absolute 575 14 687 31" style="" text="비교대상기간 :" />
- <Calendar id="input2" class="input_s_essential" taborder="4" position="absolute 690 14 785 33" style="" anchor="default" />
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_comncdlist_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0344list_P0344" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0341list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0344list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0021list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <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" />
- <Column id="statisticgooboon" type="STRING" size="256" />
- <Column id="fromdata" type="STRING" size="256" />
- <Column id="todata" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="statisticgooboon"></Col>
- <Col id="fromdata"></Col>
- <Col id="todata"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0029list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </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" />
- <Column id="popupendflag" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0029list_P0029" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0022list_P0022" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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_init_orddeptcd_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="nm" type="STRING" size="256" />
- <Column id="cd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="nm"></Col>
- <Col id="cd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0020list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0010list_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0341list_P0341" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0008list_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_inptordstatistic" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="inptordstatisticlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="inptordstatisticlist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid_orddridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" />
- <Column id="nm" type="STRING" size="256" />
- <Column id="dp" type="STRING" size="256" />
- <Column id="sp" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd"></Col>
- <Col id="nm"></Col>
- <Col id="dp"></Col>
- <Col id="sp"></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>
- <Dataset id="ds_main_otptordstatistic" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="otptordstatisticlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="otptordstatisticlist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0020list_P0020" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="patinfolist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patinfolist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0021list_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0022list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd" />
- <BindItem id="item1" compid="group5.statistic_gooboon" propid="value" datasetid="ds_send" columnid="statisticgooboon" />
- <BindItem id="item2" compid="group5.ipt_todd" propid="value" datasetid="ds_send" columnid="todd" />
- <BindItem id="item3" compid="group5.input1" propid="value" datasetid="ds_send" columnid="todata" />
- <BindItem id="item4" compid="group5.input2" propid="value" datasetid="ds_send" columnid="fromdata" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPMS01130_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);
- // 비교 대상 기간의 from 과 to의 날자를 세팅한다..
- ds_send.setColumn( 0, "todata", previousDay);
- var tmpDate = utlf_getCurrentDate();
- tmpDate = tmpDate.toDate().getAddDate(-14,"D");
- var tmpToDate = tmpDate.getFullYear();
- tmpToDate = tmpToDate.toString() + (( tmpDate.getMonth() + 1 > 9 ) ? tmpDate.getMonth() + 1 : "0" + (tmpDate.getMonth() + 1));
- tmpToDate = tmpToDate.toString() + (( tmpDate.getDate() > 9 ) ? tmpDate.getDate() : "0" + tmpDate.getDate()) ;
- ds_send.setColumn( 0, "fromdata", tmpToDate);
- group5.statistic_gooboon.select(0);
- model.toggle("group6.swt_outpatient.case_otpt");
- //model.refresh();
- }
- function fSearch(){
- if( ds_main.getColumn(0, "popupendflag") == "ok" ){
- //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
- dsf_makeValue( ds_hidden, "tmpnode", "string", "" );
- ds_hidden_tmpnode.copyData(ds_main_patinfo);
- //보험_감면_진료기록_신생하*산모내역 조회
- ds_send.setColumn( 0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- // submit("TRPMC01401");
- var oParam = {};
- oParam.id = "TRPMC01401";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatBaseInfo";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=patinsuinfolist ds_=patdiscinfolist ds_=patordrecinfolist ds_=nbabyinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC01401";
- tranf_submit(oParam);
- /*
- function cf_TRPMC01401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPMC01401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPMC01401") > -1
- arErrorCode.pop("TRPMC01401") < 0
- */
- //dsf_makeValue( ds_main, "popupendflag", "string", "" );
- }
- }
- function searchdepart(){
- for(var i=1; i<grd_reservationstatistic.rows ; i++){
- var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
- var index =0;
- while(tmpdepart != (ds_init_orddeptcd_orddeptcdlist.getColumn(index, "cd")) ) ){
- index++;
- if(index > 300) break;
- }
- if(ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) ==""){
- sysf_messageBox("부서명과 " +ds_main_reservationstatistic_reservationstatisticlist.getColumn(i, "orddeptcd") +"이", "E004")
- }else if(ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) !="") {
- ds_main_reservationstatistic.setColumn( i , "orddeptcd",
- ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) );
- }
- }
- }
- 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(["RPPAS02231"],[objParam], option);
- }
- function group5_button1_onclick(obj:Button, e:ClickEventInfo) {
- if (group5.statistic_gooboon.value == 1 ) {
- //group5.statistic_gooboon.select(0);
- model.toggle("group6.swt_outpatient.case_otpt");
- // submit("TRPMS01131");
- var oParam = {};
- oParam.id = "TRPMS01131";
- oParam.service = "planteamstatsapp.PlanTeamPatStats";
- oParam.method = "reqGetOtptPatStats";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=otptordstatisticlist";
- oParam.async = false;
- oParam.callback = "cf_TRPMS01131";
- tranf_submit(oParam);
- /*
- function cf_TRPMS01131(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPMS01131(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPMS01131") > -1
- arErrorCode.pop("TRPMS01131") < 0
- */
- }
- //model.refresh();
- }
- function group5_statistic_gooboon_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- //group5.button1.dispatch("DOMActivate");
- ds_send.setColumn( 0, "statisticgooboon", group5.statistic_gooboon.value );
- switch(ds_send.getColumn(0, "statisticgooboon")){
- case 1 : model.toggle("group6.swt_outpatient.case_otpt");
- case 2 : model.totggle("case_ inpt");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|