123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT14000" position="absolute 0 0 1199 793" titletext="진료협력 월별 통계" oninit="SMSDT14000_oninit" onload="SMSDT14000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="진료협력 월별 통계" class="tit_1" position="absolute 0 0 150 24"/>
- <Tab id="tab_main" taborder="1" tabindex="0" scrollbars="autoboth" position="absolute 0 24 1195 760">
- <Tabpages>
- <Tabpage id="tab_summary" text=" 요 약 " style="anchor:default;margin:3 0 0 0;">
- <Layouts>
- <Layout>
- <Grid id="grd_hiecnt" class="datagrid2" taborder="6" binddataset="ds_summary_hiecnt" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 78 590 708" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="249"/>
- <Column size="125"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="전송년월" taborder="undefined"/>
- <Cell col="2" text="병원명"/>
- <Cell col="3" text="구 분"/>
- <Cell col="4" text="건 수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" style="align:center middle;padding:5 2 3 2;" text="bind:trnsym" wordwrap="word" mask="####.##" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 10;" text="bind:hospnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="3" text="bind:reqnm"/>
- <Cell col="4" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="7" text="엑셀저장" onclick="btn_excel_onclick" class="btn7" position="absolute 1115 43 1195 62" anchor="top right"/>
- <Static id="caption00" text="HIE 전송건수" class="tit_2" position="absolute 0 57 232 79"/>
- <Shape id="line00" class="line_10" position="absolute 0 72 590 81" anchor="left top right"/>
- <Static id="caption01" text="진료협력센터 예약 건수" class="tit_2" position="absolute 605 57 837 79"/>
- <Shape id="line01" class="line_10" position="absolute 605 72 1195 81" anchor="left top right"/>
- <Grid id="grd_rsvcnt" class="datagrid2" taborder="8" binddataset="ds_summary_rsrvcnt" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 605 78 1195 198" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="130"/>
- <Column size="204"/>
- <Column size="120"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="접수년월" taborder="undefined"/>
- <Cell col="2" text="예약구분"/>
- <Cell col="3" text="예약건수"/>
- <Cell col="4" text="접수건수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" style="align:center middle;padding:5 2 3 2;" text="bind:trnsym" wordwrap="word" mask="####.##"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 10;" text="bind:rsrvnm"/>
- <Cell col="3" text="bind:cnt"/>
- <Cell col="4" text="bind:acptcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption02" text="처방별 구분별 건수" class="tit_2" position="absolute 605 206 837 228"/>
- <Shape id="line02" class="line_10" position="absolute 605 221 1195 230" anchor="left top right"/>
- <Grid id="grd_prcpcnt" class="datagrid2" taborder="9" binddataset="ds_summary_prcpcnt" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 605 227 1195 527" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="130"/>
- <Column size="164"/>
- <Column size="180"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="진료년월" taborder="undefined"/>
- <Cell col="2" text="처방코드"/>
- <Cell col="3" text="보험유형"/>
- <Cell col="4" text="건 수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" style="align:center middle;padding:5 2 3 2;" text="bind:trnsym" wordwrap="word" mask="####.##"/>
- <Cell col="2" text="bind:prcpcd"/>
- <Cell col="3" text="bind:insukind"/>
- <Cell col="4" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption03" text="HIE 의뢰받아 회신건수" class="tit_2" position="absolute 605 535 837 557"/>
- <Shape id="line03" class="line_10" position="absolute 605 550 1195 559" anchor="left top right"/>
- <Grid id="grd_hiereplcnt" class="datagrid2" taborder="10" binddataset="ds_summary_hiereplcnt" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 605 556 1195 708" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="130"/>
- <Column size="289"/>
- <Column size="155"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="진료년월" taborder="undefined"/>
- <Cell col="2" text="병원명"/>
- <Cell col="3" text="건 수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" style="align:center middle;padding:5 2 3 2;" text="bind:trnsym" wordwrap="word" mask="####.##"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 10;" text="bind:hospnm"/>
- <Cell col="3" style="align:center middle;" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="div_search" anchor="left top right" taborder="11" class="div_SA" position="absolute 0 0 1195 40">
- <Layouts>
- <Layout>
- <cp_monthCal id="ipt_searchym" titletext="monthCalendar" taborder="19" text="cp_monthCal" scrollbars="none" position="absolute 80 10 160 30"/>
- <Button id="btn_search" taborder="20" text="조회" onclick="tab_main_tab_summary_div_search_btn_search_onclick" class="btn1" position="absolute 1125 9 1181 31" anchor="top right"/>
- <Shape id="line2" linetype="vertical" position="absolute 1112 9 1118 31" anchor="top right"/>
- <Static id="caption2" text="조회년월" class="search_name" position="absolute 9 5 77 35"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="tab_031" text=" 본 원 " scrollbars="none">
- <Layouts>
- <Layout>
- <Div id="div_search" anchor="left top right" taborder="4" class="div_SA" position="absolute 0 0 1195 40">
- <Layouts>
- <Layout>
- <cp_monthCal id="ipt_searchym" titletext="monthCalendar" taborder="21" text="cp_monthCal00" scrollbars="none" position="absolute 80 10 160 30"/>
- <Button id="btn_search" taborder="22" text="조회" onclick="tab_main_tab_031_div_search_btn_search_onclick" class="btn1" position="absolute 1125 9 1181 31" anchor="top right"/>
- <Shape id="line2" linetype="vertical" position="absolute 1112 9 1118 31" anchor="top right"/>
- <Static id="caption2" text="조회년월" class="search_name" position="absolute 9 5 77 35"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line37" class="line_6" position="absolute 0 761 1195 767" anchor="left right bottom"/>
- <Grid id="grd_profdesc" class="datagrid2" taborder="5" binddataset="ds_031_profdesc" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 78 590 708" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="125"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="No."/>
- <Cell col="2" text="진료과명" taborder="undefined"/>
- <Cell col="3" text="사번"/>
- <Cell col="4" text="이름"/>
- <Cell col="5" text="처방코드"/>
- <Cell col="6" text="보험유형"/>
- <Cell col="7" text="처방건수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" celltype="head" expr="currow + 1"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 10;" text="bind:orddeptnm" wordwrap="word"/>
- <Cell col="3" text="bind:orddrid"/>
- <Cell col="4" text="bind:orddrnm"/>
- <Cell col="5" text="bind:prcpcd"/>
- <Cell col="6" text="bind:insukind"/>
- <Cell col="7" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="6" text="엑셀저장" onclick="btn_excel_onclick" class="btn7" position="absolute 1115 43 1195 62" anchor="top right"/>
- <Static id="caption00" text="교수별 처방내역(IA230)" class="tit_2" position="absolute 0 57 232 79"/>
- <Shape id="line00" class="line_10" position="absolute 0 72 590 81" anchor="left top right"/>
- <Static id="caption01" text="임상강사 회송수당" class="tit_2" position="absolute 605 57 837 79"/>
- <Shape id="line01" class="line_10" position="absolute 605 72 1195 81" anchor="left top right"/>
- <Grid id="grd_fellowdesc" class="datagrid2" taborder="7" binddataset="ds_031_fellowdesc" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 605 78 1195 708" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="85"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" style="align:center;" text="No."/>
- <Cell col="2" text="진료과" taborder="undefined"/>
- <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="작성의사명"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" celltype="head" expr="currow+1"/>
- <Cell col="2" style="align:center middle;padding:5 2 3 2;" text="bind:deptnm" wordwrap="word"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 10;" text="bind:orddrid"/>
- <Cell col="4" text="bind:orddrnm"/>
- <Cell col="5" text="bind:prcpyyyymm"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:prcpcd"/>
- <Cell col="8" text="bind:issid"/>
- <Cell col="9" text="bind:issnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="tab_032" text=" 칠 곡 " scrollbars="none">
- <Layouts>
- <Layout>
- <Shape id="line37" class="line_6" position="absolute 0 761 1195 767" anchor="all"/>
- <Shape id="line00" class="line_6" position="absolute 8 769 1203 775" anchor="left right bottom"/>
- <Grid id="grd_hiedesc" class="datagrid2" taborder="5" binddataset="ds_032_hiedesc" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 78 590 708" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="140"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" celltype="head" text="No."/>
- <Cell col="2" text="상태" taborder="undefined"/>
- <Cell col="3" text="발행일"/>
- <Cell col="4" text="등록번호"/>
- <Cell col="5" text="환자명"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="진료의사"/>
- <Cell col="8" style="align:center;" text="입/외"/>
- <Cell col="9" text="발행"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" celltype="head" expr="currow+1"/>
- <Cell col="2" style="align:left top;padding:5 2 3 2;" text="bind:stat" wordwrap="word"/>
- <Cell col="3" text="bind:formrecdd" mask="####.##.##"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" text="bind:chosflag"/>
- <Cell col="9" text="bind:issflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="6" text="엑셀저장" onclick="btn_excel_onclick" class="btn7" position="absolute 1115 43 1195 62" anchor="top right"/>
- <Static id="caption00" text="HIE 의뢰 내역" class="tit_2" position="absolute 0 57 232 79"/>
- <Shape id="line01" class="line_10" position="absolute 0 72 590 81" anchor="left top right"/>
- <Static id="caption01" text="회송 상세내역" class="tit_2" position="absolute 605 57 837 79"/>
- <Shape id="line02" class="line_10" position="absolute 605 72 1195 81" anchor="left top right"/>
- <Grid id="grd_repldesc" class="datagrid2" taborder="7" binddataset="ds_032_repldesc" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 605 78 1195 708" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="No."/>
- <Cell col="2" text="상태" taborder="undefined"/>
- <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="발행"/>
- </Band>
- <Band id="body">
- <Cell text="bind:coophospcd"/>
- <Cell col="1" celltype="head" expr="currow+1"/>
- <Cell col="2" style="align:left top;padding:5 2 3 2;" text="bind:stat" wordwrap="word"/>
- <Cell col="3" text="bind:formrecdd"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" text="bind:chosflag"/>
- <Cell col="9" text="bind:issflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="div_search" anchor="left top right" taborder="8" class="div_SA" position="absolute 0 0 1195 40">
- <Layouts>
- <Layout>
- <cp_monthCal id="ipt_searchym" titletext="monthCalendar" taborder="23" text="cp_monthCal00" scrollbars="none" position="absolute 80 10 160 30"/>
- <Button id="btn_search" taborder="24" text="조회" onclick="tab_main_tab_032_div_search_btn_search_onclick" class="btn1" position="absolute 1125 9 1181 31" anchor="top right"/>
- <Shape id="line2" linetype="vertical" position="absolute 1112 9 1118 31" anchor="top right"/>
- <Static id="caption2" text="조회년월" class="search_name" position="absolute 9 5 77 35"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="summendym" type="STRING" size="256"/>
- <Column id="031endym" type="STRING" size="256"/>
- <Column id="032endym" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_summary_hiecnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_summary_rsrvcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_summary_prcpcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_summary_hiereplcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_031_profdesc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_031_fellowdesc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_032_hiedesc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_032_repldesc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2020.02.03
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMSDT14000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT14000_onload(obj:Form, e:LoadEventInfo)
- {
- // 요약
- grdf_initGrid(tab_main.tab_summary.grd_hiecnt);
- grdf_initGrid(tab_main.tab_summary.grd_rsvcnt);
- grdf_initGrid(tab_main.tab_summary.grd_prcpcnt);
- grdf_initGrid(tab_main.tab_summary.grd_hiereplcnt);
-
- // 본원
- grdf_initGrid(tab_main.tab_031.grd_profdesc);
- grdf_initGrid(tab_main.tab_031.grd_fellowdesc);
-
- // 칠곡
- grdf_initGrid(tab_main.tab_032.grd_hiedesc);
- grdf_initGrid(tab_main.tab_032.grd_repldesc);
-
- fInit();
- }
- function fn_Cal_endym1()
- {
- var endym = tab_main.tab_summary.div_search.ipt_searchym.getData();
- ds_main_search.setColumn(0, "summendym", endym);
- }
- function fn_Cal_endym2()
- {
- var endym = tab_main.tab_031.div_search.ipt_searchym.getData();
- ds_main_search.setColumn(0, "031endym", endym);
- }
- function fn_Cal_endym3()
- {
- var endym = tab_main.tab_032.div_search.ipt_searchym.getData();
- ds_main_search.setColumn(0, "032endym", endym);
- }
- function fInit()
- {
- tab_main.tab_summary.div_search.ipt_searchym.setCallEvent("fn_Cal_endym1");
- tab_main.tab_031.div_search.ipt_searchym.setCallEvent("fn_Cal_endym2");
- tab_main.tab_032.div_search.ipt_searchym.setCallEvent("fn_Cal_endym3");
-
-
- var CurrentDate = utlf_getCurrentDate();
- var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM = LastDate.substr(0,6);
-
- tab_main.tab_summary.div_search.ipt_searchym.setData(LastDateYM);
- tab_main.tab_031.div_search.ipt_searchym.setData(LastDateYM);
- tab_main.tab_032.div_search.ipt_searchym.setData(LastDateYM);
-
- ds_main_search.setColumn(0, "summendym", LastDateYM);
- ds_main_search.setColumn(0, "031endym", LastDateYM);
- ds_main_search.setColumn(0, "032endym", LastDateYM);
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
- if(instcd == "031"){
- // 본원
- tab_main.removeTabpage(2);
- } else {
- // 칠곡
- tab_main.removeTabpage(1);
- }
- }
- // 요약탭 조회
- function tab_main_tab_summary_div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch("01"); // 요약탭
- }
- // 본원탭 조회
- function tab_main_tab_031_div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch("02"); // 본원탭
- }
- // 칠곡탭 조회
- function tab_main_tab_032_div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch("03"); // 칠곡탭
- }
- function fSearch(reqflag)
- {
- ds_send_reqdata.clearData();
-
- if(reqflag == "01"){
- dsf_makeValue(ds_send_reqdata, "endym", "string", ds_main_search.getColumn(0, "summendym"));
- } else if(reqflag == "02"){
- dsf_makeValue(ds_send_reqdata, "endym", "string", ds_main_search.getColumn(0, "031endym"));
- } else {
- dsf_makeValue(ds_send_reqdata, "endym", "string", ds_main_search.getColumn(0, "032endym"));
- }
-
- dsf_makeValue(ds_send_reqdata, "reqflag", "string", reqflag);
-
- var oParam = {};
- oParam.id = "TRSDT14001";
- oParam.service = "stscmcnwapp.CoopEndStats";
- oParam.method = "reqGetHealCareCoopMonthly";
- oParam.inds = "req=ds_send_reqdata";
- if(reqflag == "01")
- {
- oParam.outds = "ds_summary_hiecnt=hiecnt ds_summary_rsrvcnt=rsrvcnt ds_summary_prcpcnt=prcpcnt ds_summary_hiereplcnt=hiereplcnt";
- }
- else if(reqflag == "02")
- {
- oParam.outds = "ds_031_profdesc=profdesc ds_031_fellowdesc=fellowdesc";
- }
- else
- {
- oParam.outds = "ds_032_hiedesc=hiedesc ds_032_repldesc=repldesc";
- }
- oParam.async = false;
- oParam.callback = "cf_TRSDT14001";
- tranf_submit(oParam);
-
-
- }
- function cf_TRSDT14001(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- }
- }
- // 엑셀저장
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- var title = "Excel";
- var gridID;
- var sheetNm;
- var instcd = sysf_getUserInfo("dutplceinstcd");
-
- if(instcd == "031") {
- if((tab_main.tabindex == 0 && ds_summary_hiecnt.rowcount == 0) ||
- (tab_main.tabindex == 1 && ds_031_profdesc.rowcount == 0)){
- sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
- } else {
- if((tab_main.tabindex == 0 && ds_summary_hiecnt.rowcount == 0) ||
- (tab_main.tabindex == 1 && ds_032_hiedesc.rowcount == 0)){
- sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
- }
-
- if(tab_main.tabindex == 0) // 요약
- {
- title = "요약";
- sheetNm = "HIE전송건수, 진료협력센터 예약 건수,처방별 구분별 건수,HIE 의뢰받아 회신건수";
- gridID = "tab_main.tab_summary.grd_hiecnt,tab_main.tab_summary.grd_rsvcnt,tab_main.tab_summary.grd_prcpcnt,tab_main.tab_summary.grd_hiereplcnt";
- }
- else if(instcd == "031" && tab_main.tabindex == 1) // 본원
- {
- title = "본원";
- sheetNm = "교수별 처방내역(IA230),임상강사 회송수당";
- gridID = "tab_main.tab_031.grd_profdesc,tab_main.tab_031.grd_fellowdesc";
- }
- else // 칠곡
- {
- title = "칠곡";
- sheetNm = "HIE 의뢰 내역,회송 상세내역";
- gridID = "tab_main.tab_032.grd_hiedesc,tab_main.tab_032.grd_repldesc";
- }
-
- grdf_exportExcelMulti(gridID, title, sheetNm);
- }]]></Script>
- </Form>
- </FDL>
|