123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSDT12000" position="absolute 0 0 1202 805" titletext="의료협력병의원의사별진료의뢰통계" oninit="SMSDT12000_oninit" onload="SMSDT12000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="의료협력병의원의사별진료의뢰통계" class="tit_1" position="absolute 0 0 278 24"/>
- <Static id="caption21" text="의료협력병의원의사별진료의뢰통계" class="tit_2" position="absolute 0 78 232 100"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 93 1195 102" anchor="left top right"/>
- <Div id="group4" taborder="2" class="div_SA" position="absolute 0 24 1195 64" anchor="left top right">
- <Layouts>
- <Layout>
- <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="11" text="cp_monthCal00" scrollbars="none" position="absolute 310 10 386 30"/>
- <cp_monthCal id="ipt_todd" titletext="monthCalendar" taborder="12" text="cp_monthCal00" scrollbars="none" position="absolute 411 10 487 30"/>
- <Button id="button2" taborder="6" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group4_button2_onclick"/>
- <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
- <Static id="cap1" text="~" position="absolute 392 10 409 30"/>
- <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 229 12 329 29"/>
- <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 12 101 29"/>
- <Combo id="cmb_reqflag" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 104 10 189 29" onitemchanged="group4_cmb_reqflag_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>
- </Combo>
- <Calendar id="ipt_fromentryy" taborder="7" class="input_search" position="absolute 310 10 368 30" mask="yyyy" autoselect="true" dateformat="yyyy" value="null" editformat="yyyy" onchanged="group4_ipt_fromentryy_onchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 75 1195 94" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_brgstincmexpsprescond" class="datagrid2" taborder="4" binddataset="ds_main_brgstincmexpspres_brgstincmexpsprescond" useinputpanel="false" position="absolute 0 99 1195 763" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="178"/>
- <Column size="0"/>
- <Column size="227"/>
- <Column size="0"/>
- <Column size="138"/>
- <Column size="118"/>
- <Column size="118"/>
- <Column size="96"/>
- <Column size="96"/>
- <Column size="87"/>
- <Column size="88"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="caption3" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="지역" taborder="undefined"/>
- <Cell col="3" text="caption1"/>
- <Cell col="4" rowspan="2" text="병원명" taborder="undefined"/>
- <Cell col="5" text="caption2"/>
- <Cell col="6" rowspan="2" text="의사별" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="전기간의뢰건수" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="조회기간의뢰건수" taborder="undefined"/>
- <Cell col="9" colspan="2" text="증감(전기간대비)" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="동문여부" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="협력여부" taborder="undefined"/>
- <Cell row="1" col="3" text="caption1"/>
- <Cell row="1" col="5" text="caption2"/>
- <Cell row="1" col="9" text="건수"/>
- <Cell row="1" col="10" text="증감율(%)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:areacd"/>
- <Cell col="2" text="bind:areanm" suppress="1" suppressalign="middle,over"/>
- <Cell col="3" text="bind:coophospcd"/>
- <Cell col="4" displaytype="text" style="align:left middle;padding:2 2 2 2;" text="bind:coophospnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="5" text="bind:coopdrcd"/>
- <Cell col="6" style="align:center middle;" text="bind:drnm"/>
- <Cell col="7" displaytype="number" style="align:center middle;" text="bind:lstconscnt"/>
- <Cell col="8" displaytype="number" style="align:center middle;" text="bind:conscnt"/>
- <Cell col="9" displaytype="number" style="align:center middle;" text="bind:cnt"/>
- <Cell col="10" displaytype="number" style="align:center middle;" text="bind:cntpet"/>
- <Cell col="11" text="bind:clsmatyn"/>
- <Cell col="12" text="bind:coopyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 772 1195 794" anchor="right bottom" onclick="btn_search0_onclick"/>
- <Shape id="line37" class="line_6" position="absolute 0 768 1195 774" anchor="left right bottom"/>
- </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="reqflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="fromentryy" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqflag">1</Col>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="fromentryy"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_brgstincmexpspres_brgstincmexpsprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="areacd" type="STRING" size="256" sumtext="지역코드"/>
- <Column id="areanm" type="STRING" size="256" sumtext="지역"/>
- <Column id="coophospcd" type="STRING" size="256" sumtext="병원코드"/>
- <Column id="coophospnm" type="STRING" size="256" sumtext="병원명"/>
- <Column id="coopdrcd" type="STRING" size="256" sumtext="의사코드"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="lstconscnt" type="STRING" size="256" sumtext="전기간의뢰건수"/>
- <Column id="conscnt" type="STRING" size="256" sumtext="조회기간의뢰건수"/>
- <Column id="cnt" type="STRING" size="256" sumtext="전월대비증감건수"/>
- <Column id="cntpet" type="STRING" size="256" sumtext="전월대비증감율"/>
- <Column id="clsmatyn" type="STRING" size="256" sumtext="동문여부"/>
- <Column id="coopyn" type="STRING" size="256" sumtext="협력여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_reqflag" propid="value" datasetid="ds_main_search" columnid="reqflag"/>
- <BindItem id="item3" compid="group4.ipt_fromentryy" propid="value" datasetid="ds_main_search" columnid="fromentryy"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMSDT12000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMSDT12000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_brgstincmexpsprescond);
-
- fInit();
- fReqBrgstIncmExpsCond();
- }
- function fn_Cal_fromdd()
- {
- var fromdd = group4.ipt_fromdd.getData();
- ds_main_search.setColumn(0, "fromdd", fromdd);
- }
- function fn_Cal_todd()
- {
- var todd = group4.ipt_todd.getData();
- ds_main_search.setColumn(0, "todd", todd);
- }
- function fInit()
- {
- group4.ipt_fromdd.setCallEvent("fn_Cal_fromdd");
- group4.ipt_todd.setCallEvent("fn_Cal_todd");
-
- ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
-
- var CurrentDate = utlf_getCurrentDate();
-
- var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM = LastDate.substr(0,6);
- var CurrentDateYY = CurrentDate.substring(0,4);
-
- group4.ipt_fromdd.setData(LastDateYM);
- group4.ipt_todd.setData(LastDateYM);
- dsf_makeValue(ds_main_search, "fromentryy", "string", CurrentDateYY);
- dsf_makeValue(ds_main_search, "toentryy", "string", CurrentDateYY);
-
- dsf_makeValue(ds_main_search, "fromdd", "string", LastDateYM);
- dsf_makeValue(ds_main_search, "todd", "string", LastDateYM);
-
- group4.ipt_fromentryy.visible = false;
- }
- function fReqBrgstIncmExpsCond()
- {
- ds_send_reqdata.clearData();
-
- var fromdd = ds_main_search.getColumn(0, "fromdd");
- var todd = ds_main_search.getColumn(0, "todd");
- var reqflag = ds_main_search.getColumn(0, "reqflag");
- var fromentryy = ds_main_search.getColumn(0, "fromentryy");
-
- dsf_makeValue(ds_send_reqdata, "reqflag", "string", reqflag);
- if(reqflag == "1") //조회 구분이 월 일때
- {
- if(utlf_isNull(fromdd))
- {
- sysf_messageBox("조회시작일자는","I003");
- group4.ipt_fromdd.setFocus();
- return;
- }
- if(utlf_isNull(todd))
- {
- sysf_messageBox("조회종료일자는","I003");
- group4.ipt_todd.setFocus();
- return;
- }
- var dateintval = utlf_getDateInterval(fromdd+"01",todd+"31");
- if(fromdd > todd)
- {
- sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
- group4.ipt_todd.setFocus();
- return;
- }
- if(dateintval > "370")
- {
- sysf_messageBox("조회기간은 최대 1년까지 할 수 있습니다","I");
- group4.ipt_fromdd.setFocus();
- return;
- }
-
- dsf_makeValue(ds_send_reqdata, "fromdd", "string", fromdd);
- dsf_makeValue(ds_send_reqdata, "todd", "string", todd);
-
- dsf_makeValue(ds_send_reqdata, "fromentryy", "string", "");
-
- if(fromdd == todd)
- {
- dsf_makeValue(ds_send_reqdata, "dateflag", "string", "1"); // 조회월이 같으면 전기간을 전월로 하기 위해 dateflag셋팅
- }
- else
- {
- dsf_makeValue(ds_send_reqdata, "dateflag", "string", "2");
- }
- }
- else //조회구분이 년도 일때
- {
- if(utlf_isNull(fromentryy))
- {
- sysf_messageBox("조회시작연도는","I003");
- group4.ipt_fromentryy.setFocus();
- return;
- }
-
- dsf_makeValue(ds_send_reqdata, "fromdd", "string", "");
- dsf_makeValue(ds_send_reqdata, "todd", "string", "");
- dsf_makeValue(ds_send_reqdata, "dateflag", "string", "");
- dsf_makeValue(ds_send_reqdata, "fromentryy", "string", fromentryy);
- }
-
- var oParam = {};
- oParam.id = "TRSDT12001";
- oParam.service = "stscmcnwapp.CoopEndStats";
- oParam.method = "reqGetHealCareCoopDrAchiv";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_brgstincmexpspres_brgstincmexpsprescond=brgstincmexpsprescond";
- oParam.async = false;
- oParam.callback = "cf_TRSDT12001";
- tranf_submit(oParam);
- }
- function cf_TRSDT12001(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- for(var i = 0; i < ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount; i++)
- {
- var cnt = ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(i, "cnt");
- var lstconscnt = ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(i, "lstconscnt");
- var cntpet = Math.round(cnt/lstconscnt*100, 2);
- dsf_makeValue(ds_main_brgstincmexpspres_brgstincmexpsprescond, "cntpet", "float", cntpet, i);
- }
- }
- }
- function group4_ipt_fromentryy_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_main_search.setColumn(0, "fromentryy", String(obj.value).substr(0,4));
- }
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqBrgstIncmExpsCond();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- if (ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount == 0)
- {
- sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- grdf_exportExcel(grd_brgstincmexpsprescond, "의료협력병의원의사별진료의뢰통계", "SheetName", "true", "", "");
- }
- function btn_search0_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
- }
- function group4_cmb_reqflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var CurrentDate = utlf_getCurrentDate();
-
- if(obj.value == "1")
- {
- group4.ipt_fromdd.visible = true;
- group4.ipt_todd.visible = true;
- group4.ipt_fromentryy.visible = false;
- group4.cap1.visible = true;
- }
- else
- {
- group4.ipt_fromdd.visible = false;
- group4.ipt_todd.visible = false;
- group4.ipt_fromentryy.visible = true;
-
- group4.cap1.visible = false;
- ds_send_reqdata.setColumn(0, "fromdd", "");
- ds_send_reqdata.setColumn(0, "todd", "");
- }
-
- fReqBrgstIncmExpsCond(); //조회함수
- }
- ]]></Script>
- </Form>
- </FDL>
|