123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SSMNO00200" position="absolute 0 0 1256 805" titletext="외래환자예약현황" onload="SSMNO00200_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Static text="*** 기타: 물리치료, 인공신장실, 주사, F/U, 치료방사선 *** 과예약: 외래, 병동, 응급, DSC, 특수주사실 포함한 예약건수" position="absolute 10 768 1194 803" id="caption2" positiontype="position" anchor="left right bottom" style="font:Dotum,9,bold;"/>
- <Static id="Static11" text="폼의 상단부터 h25" class="sta_guide" visible="false" position="absolute 313 0 533 25"/>
- <Static id="caption6" text="외래환자예약현황" class="tit_1" position="absolute 0 0 130 26"/>
- <Div id="Div00" anchor="left top right" taborder="1" text="Div00" scrollbars="none" class="div_SA" position="absolute 0 26 1256 68">
- <Layouts>
- <Layout>
- <Static id="sta_Fund" text="기간 :" class="search_name" position="absolute 8 10 88 30" ustext="Fund" anchor="default"/>
- <Static id="Static08" class="sta_WF_Line" position="absolute 265 19 267 30" anchor="default"/>
- <Static id="sta_Fund00" text="진료과별 :" class="search_name" position="absolute 191 10 273 31" ustext="Fund" anchor="default"/>
- <Static id="Static11" text="h10" class="sta_guide" visible="false" position="absolute 1189 0 1244 10" anchor="default"/>
- <Static id="Static10" text="w 10" onclick="Static04_onclick" class="sta_guide" visible="false" position="absolute 1244 0 1254 41" anchor="default"/>
- <Static id="Static00" text="w24" onclick="Static04_onclick" class="sta_guide" visible="false" position="absolute 390 0 414 41" anchor="default"/>
- <Static id="Static03" text="w8" class="sta_guide" visible="false" position="absolute 489 1 497 41" anchor="default"/>
- <Static id="sta_Fund01" text="진료의별 :" class="search_name" position="absolute 414 10 496 31" ustext="Fund" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="2" text="엑셀" onclick="btn_excel_onclick" class="btn7" position="absolute 1145 74 1200 94" anchor="top right"/>
- <Static id="caption26" text="외래환자예약현황" class="tit_2" position="absolute 1 79 128 93"/>
- <Static id="Static00" text="h10" class="sta_guide" visible="false" position="absolute 0 67 55 77"/>
- <Button id="btn_srch" taborder="3" text="조회" onclick="btn_srch_onclick" class="btn1" position="absolute 1189 36 1245 56" anchor="top right"/>
- <Static id="Static10" text="w24" onclick="Static04_onclick" class="sta_guide" visible="false" position="absolute 168 25 192 66"/>
- <Static id="Static01" text="h7" class="sta_guide" visible="false" position="absolute 1200 67 1255 74"/>
- <Static id="Static02" text="h3" class="sta_guide" visible="false" position="absolute 1200 94 1255 97"/>
- <Static id="Static19" text="w8" class="sta_guide" visible="false" position="absolute 58 26 66 66"/>
- <Static id="Static03" text="w8" class="sta_guide" visible="false" position="absolute 267 26 275 66"/>
- <Calendar id="input1" taborder="4" autoselect="true" class="input_s_essential" position="absolute 66 36 169 56"/>
- <Combo id="cmb_orddeptcd" taborder="5" innerdataset="ds_init_cmb_orddeptcd" onitemchanged="cmb_orddeptcd_onitemchanged" class="combo_search" position="absolute 275 36 391 56" codecolumn="deptcd" datacolumn="depthngnm"/>
- <Combo id="cmb_orddrid" taborder="6" class="combo_search" position="absolute 498 36 604 56"/>
- <Button id="btn_print" taborder="7" text="출력" onclick="btn_print_onclick" class="btn6" position="absolute 1204 74 1256 94" anchor="top right"/>
- <Grid id="grd_outpatrsrv" taborder="8" binddataset="ds_grid_grd_outpatrsrv" useinputpanel="false" position="absolute 0 97 1256 765" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="107" band="left"/>
- <Column size="45"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="45"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- <Column size="48"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="3"/>
- <Cell col="1" rowspan="3"/>
- <Cell col="2" colspan="11" text="초진"/>
- <Cell col="13" colspan="10" text="재진"/>
- <Cell col="23" colspan="3" text="외래환자수"/>
- <Cell col="26" rowspan="3" text="특진율"/>
- <Cell col="27" rowspan="3" text="초진율"/>
- <Cell col="28" rowspan="3" text="진료 예약"/>
- <Cell col="29" rowspan="3" text="진료 반환"/>
- <Cell col="30" rowspan="3" text="진료 과별 비율"/>
- <Cell row="1" col="2" rowspan="2" text="전화 예약"/>
- <Cell row="1" col="3" rowspan="2" text="과예약"/>
- <Cell row="1" col="4" rowspan="2" text=" 인터넷 예약"/>
- <Cell row="1" col="5" rowspan="2" text="당일 접수"/>
- <Cell row="1" col="6" rowspan="2" text="당일 예약"/>
- <Cell row="1" col="7" rowspan="2" text="협력 예약"/>
- <Cell row="1" col="8" rowspan="2" text="의뢰"/>
- <Cell row="1" col="9" rowspan="2" text="기타"/>
- <Cell row="1" col="10" colspan="3" text="외래환자수"/>
- <Cell row="1" col="13" rowspan="2" text="전화 예약"/>
- <Cell row="1" col="14" rowspan="2" text="과예약"/>
- <Cell row="1" col="15" rowspan="2" text="당일 접수"/>
- <Cell row="1" col="16" rowspan="2" text="당일 예약"/>
- <Cell row="1" col="17" rowspan="2" text="협력 예약"/>
- <Cell row="1" col="18" rowspan="2" text="의뢰"/>
- <Cell row="1" col="19" rowspan="2" text="기타"/>
- <Cell row="1" col="20" colspan="3" text="외래환자수"/>
- <Cell row="1" col="23" rowspan="2" text="특진"/>
- <Cell row="1" col="24" rowspan="2" text="일반"/>
- <Cell row="1" col="25" rowspan="2" text="합계"/>
- <Cell row="2" col="10" text="특진"/>
- <Cell row="2" col="11" text="일반"/>
- <Cell row="2" col="12" text="합계"/>
- <Cell row="2" col="20" text="특진"/>
- <Cell row="2" col="21" text="일반"/>
- <Cell row="2" col="22" text="합계"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" style="align:left;" text="bind:stsview"/>
- <Cell col="2" style="align:right;" text="bind:fstelrsrv"/>
- <Cell col="3" style="align:right;" text="bind:fsdeptrsrv"/>
- <Cell col="4" style="align:right;" text="bind:fsitnrsrv"/>
- <Cell col="5" style="align:right;" text="bind:fstdyrsrv"/>
- <Cell col="6" style="align:right;" text="bind:fscurntrsrv"/>
- <Cell col="7" style="align:right;" text="bind:fscorsrv"/>
- <Cell col="8" style="align:right;" text="bind:fscnsltrsrv"/>
- <Cell col="9" style="align:right;" text="bind:fsetcrsrv"/>
- <Cell col="10" style="align:right;" text="bind:fssltdiagrsrv"/>
- <Cell col="11" style="align:right;" text="bind:fsgendiagrsrv"/>
- <Cell col="12" style="align:right;" text="bind:fsotpttot"/>
- <Cell col="13" style="align:right;" text="bind:sectelrsrv"/>
- <Cell col="14" style="align:right;" text="bind:secdeptrsrv"/>
- <Cell col="15" style="align:right;" text="bind:sectdyrsrv"/>
- <Cell col="16" style="align:right;" text="bind:seccurntrsrv"/>
- <Cell col="17" style="align:right;" text="bind:seccorsrv"/>
- <Cell col="18" style="align:right;" text="bind:seccnsltrsrv"/>
- <Cell col="19" style="align:right;" text="bind:secetcrsrv"/>
- <Cell col="20" style="align:right;" text="bind:secsltdiagrsrv"/>
- <Cell col="21" style="align:right;" text="bind:secgendiagrsrv"/>
- <Cell col="22" style="align:right;" text="bind:secotpttot"/>
- <Cell col="23" style="align:right;" text="bind:sltotpt"/>
- <Cell col="24" style="align:right;" text="bind:genotpt"/>
- <Cell col="25" style="align:right;" text="bind:otpttot"/>
- <Cell col="26" style="align:right;" text="bind:sltotptrate"/>
- <Cell col="27" style="align:right;" text="bind:genotptrate"/>
- <Cell col="28" style="align:right;" text="bind:totrsrv"/>
- <Cell col="29" style="align:right;" text="bind:cnclrsrv"/>
- <Cell col="30" style="align:right;" text="bind:deptrate"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_outpatrsrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stsview" type="STRING"/>
- <Column id="fstelrsrv" type="STRING"/>
- <Column id="fsdeptrsrv" type="STRING"/>
- <Column id="fsitnrsrv" type="STRING"/>
- <Column id="fstdyrsrv" type="STRING"/>
- <Column id="fscurntrsrv" type="STRING"/>
- <Column id="fscorsrv" type="STRING"/>
- <Column id="fscnsltrsrv" type="STRING"/>
- <Column id="fsetcrsrv" type="STRING"/>
- <Column id="fssltdiagrsrv" type="STRING"/>
- <Column id="fsgendiagrsrv" type="STRING"/>
- <Column id="fsotpttot" type="STRING"/>
- <Column id="sectelrsrv" type="STRING"/>
- <Column id="secdeptrsrv" type="STRING"/>
- <Column id="sectdyrsrv" type="STRING"/>
- <Column id="seccurntrsrv" type="STRING"/>
- <Column id="seccorsrv" type="STRING"/>
- <Column id="seccnsltrsrv" type="STRING"/>
- <Column id="secetcrsrv" type="STRING"/>
- <Column id="secsltdiagrsrv" type="STRING"/>
- <Column id="secgendiagrsrv" type="STRING"/>
- <Column id="secotpttot" type="STRING"/>
- <Column id="sltotpt" type="STRING"/>
- <Column id="genotpt" type="STRING"/>
- <Column id="otpttot" type="STRING"/>
- <Column id="sltotptrate" type="STRING"/>
- <Column id="genotptrate" type="STRING"/>
- <Column id="totrsrv" type="STRING"/>
- <Column id="cnclrsrv" type="STRING"/>
- <Column id="deptrate" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdd" type="STRING" size="256"/>
- <Column id="srchyear" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="srchflag1" type="STRING" size="256"/>
- <Column id="srchflag2" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="menu" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="orddrnm" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="printdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="255"/>
- <Column id="deptcd" type="STRING" size="255"/>
- <Column id="depthngnm" type="STRING" size="255"/>
- <Column id="ordclsdeptflag" type="STRING" size="255"/>
- <Column id="orddeptkind" type="STRING" size="255"/>
- <Column id="supdeptcd" type="STRING" size="255"/>
- <Column id="clincdeptdispseq" type="BIGDECIMAL" size="255"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="userdepthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordclsdeptflag" type="STRING" size="256"/>
- <Column id="supdeptcd" type="STRING" size="256"/>
- <Column id="prcpspecflag" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="MDdeptcd" type="STRING" size="256"/>
- <Column id="srchdd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="menu" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_grd_outpatrsrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stsview" type="STRING"/>
- <Column id="fstelrsrv" type="STRING"/>
- <Column id="fsdeptrsrv" type="STRING"/>
- <Column id="fsitnrsrv" type="STRING"/>
- <Column id="fstdyrsrv" type="STRING"/>
- <Column id="fscurntrsrv" type="STRING"/>
- <Column id="fscorsrv" type="STRING"/>
- <Column id="fscnsltrsrv" type="STRING"/>
- <Column id="fsetcrsrv" type="STRING"/>
- <Column id="fssltdiagrsrv" type="STRING"/>
- <Column id="fsgendiagrsrv" type="STRING"/>
- <Column id="fsotpttot" type="STRING"/>
- <Column id="sectelrsrv" type="STRING"/>
- <Column id="secdeptrsrv" type="STRING"/>
- <Column id="sectdyrsrv" type="STRING"/>
- <Column id="seccurntrsrv" type="STRING"/>
- <Column id="seccorsrv" type="STRING"/>
- <Column id="seccnsltrsrv" type="STRING"/>
- <Column id="secetcrsrv" type="STRING"/>
- <Column id="secsltdiagrsrv" type="STRING"/>
- <Column id="secgendiagrsrv" type="STRING"/>
- <Column id="secotpttot" type="STRING"/>
- <Column id="sltotpt" type="STRING"/>
- <Column id="genotpt" type="STRING"/>
- <Column id="otpttot" type="STRING"/>
- <Column id="sltotptrate" type="STRING"/>
- <Column id="genotptrate" type="STRING"/>
- <Column id="totrsrv" type="STRING"/>
- <Column id="cnclrsrv" type="STRING"/>
- <Column id="deptrate" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main_cond" columnid="srchdd"/>
- <BindItem id="item1" compid="cmb_orddeptcd" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
- <BindItem id="item2" compid="cmb_orddrid" propid="value" datasetid="ds_main_cond" columnid="orddrid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : Himed
- * Job Name :
- * File Name : SSMNO00200_외래환자예약현황.xfdl
- * Creator :
- * Make Date : 2014-08-20
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-08-20 Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : 데이터셋 바인드
- ****************************************************************************************/
- function lf_initDataSet()
- {
- // cmb_orddeptcd의 INIT Dataset
- this.cmb_orddeptcd.innerdataset = "ds_init_cmb_orddeptcd";
- this.cmb_orddeptcd.codecolumn = "deptcd";
- this.cmb_orddeptcd.datacolumn = "depthngnm";
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SSMNO00200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 온로드
- ****************************************************************************************/
- function SSMNO00200_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- lf_commoduleDataSetShow(); //DataSet 조회;
- var currDate = utlf_getCurrentDate();
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var rslt_ref = "/root/init/orddeptlist";
- ds_main_cond.enableevent = false;
- ds_main_cond.setColumn(0, "srchdd", currDate);
- ds_main_cond.setColumn(0, "orddrid", "");
- ds_main_cond.enableevent = true;
- var dt = ds_main_cond.getColumn(0, "srchdd");
-
- if( utlf_isNull(instcd) ) {
- return;
- }
- ds_cond_cmb_orddeptcd.enableevent = false;
- ds_cond_cmb_orddeptcd.setColumn(0, "instcd", instcd);
- ds_cond_cmb_orddeptcd.setColumn(0, "basedd", currDate);
- ds_cond_cmb_orddeptcd.enableevent = true;
- tranf_submit({
- id : "TRZSD00206"
- , service : "departmentcodeapp.DepartmentCodeUser"
- , method : "reqGetCareOutOrderDepartmentList"
- , inds : "req=ds_cond_cmb_orddeptcd"
- , outds : "ds_init_cmb_orddeptcd=dept"
- , async : false
- });
-
- ds_init_cmb_orddeptcd.insertRow(0);
- ds_init_cmb_orddeptcd.enableevent = false;
- ds_init_cmb_orddeptcd.setColumn(0, "depthngnm", "전 체");
- ds_init_cmb_orddeptcd.setColumn(0, "deptcd", "");
- ds_init_cmb_orddeptcd.enableevent = true;
- lf_initDataSet();
-
- ds_main_cond.enableevent = false;
- ds_main_cond.setColumn(0, "orddeptcd", "");
- ds_main_cond.enableevent = true;
-
- ds_init_cmb_orddrid.clearData();
- ds_init_cmb_orddrid.addRow();
- ds_init_cmb_orddrid.enableevent = false;
- ds_init_cmb_orddrid.setColumn(0, "usernm", "전 체");
- ds_init_cmb_orddrid.setColumn(0, "userid", "");
- ds_init_cmb_orddrid.enableevent = true;
-
- this.cmb_orddrid.innerdataset = "ds_init_cmb_orddrid";
- this.cmb_orddrid.codecolumn = "userid";
- this.cmb_orddrid.datacolumn = "usernm";
-
- ds_main_cond.enableevent = false;
- ds_main_cond.setColumn(0, "orddrid", "");
- ds_main_cond.enableevent = true;
- btn_srch_onclick();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_print
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력
- ****************************************************************************************/
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var srchdd = ds_main_cond.getColumn(0, "srchdd");
- var currdt = utlf_getCurrentDate()+""+utlf_getCurrentTime();
-
- ds_send_grd_outpatrsrv.copyData(ds_grid_grd_outpatrsrv);
-
- var objDOM = rptf_createDOM(); //DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/send/outpatinfo/outpatlist", ds_send_grd_outpatrsrv);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.srchdd = srchdd.substring(0,4)+"/"+srchdd.substring(4,6)+"/"+srchdd.substring(6,8);
- objParam.orddeptnm = cmb_orddeptcd.text;
- objParam.orddrnm = cmb_orddrid.text;
- objParam.usernm = sysf_getUserInfo("usernm");
- objParam.printdt = currdt.substring(0,4)+"/"+currdt.substring(4,6)+"/"+currdt.substring(6,8)+" "+
- currdt.substring(8,10)+":"+currdt.substring(10,12)+":"+currdt.substring(12,14) ;
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPSTO00101"],[objParam], option);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_srch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회
- ****************************************************************************************/
- function btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- input1.updateToDataset();
-
- if ( utlf_isNull(ds_main_cond.getColumn(0, "srchdd")) || ds_main_cond.getColumn(0, "srchdd") < utlf_getCurrentDate() ){
- sysf_messageBox("금일이후의 외래환자예약현황을 조회합니다.기간을 ","I007");
- return;
- }
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
- ds_send_reqdata.enableevent = false;
- ds_send_reqdata.setColumn(0, "srchdd", ds_main_cond.getColumn(0, "srchdd") );
- ds_send_reqdata.setColumn(0, "menu", "");
- if ( !utlf_isNull( ds_main_cond.getColumn(0, "orddeptcd") ) && ds_main_cond.getColumn(0, "orddeptcd") != "%") {
- ds_send_reqdata.setColumn(0, "orddeptcd", ds_main_cond.getColumn(0, "orddeptcd"));
- }
- if ( !utlf_isNull( ds_main_cond.getColumn(0, "orddrid") ) && ds_main_cond.getColumn(0, "orddrid") != "%") {
- ds_send_reqdata.setColumn(0, "orddrid", ds_main_cond.getColumn(0, "orddrid"));
- }
- ds_send_reqdata.enableevent = true;
-
- tranf_submit({
- id : "TRSNO00101"
- , service : "stsenrapp.StsOutMngt"
- , method : "reqGetOutPatlist"
- , inds : "req=ds_send_reqdata"
- , outds : "ds_grid_grd_outpatrsrv=outpatlist"
- , async : false
- });
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀
- ****************************************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_outpatrsrv, "외래환자예약현황_"+ ds_main_cond.getColumn(0, "srchdd"), "외래환자예약현황_"+ ds_main_cond.getColumn(0, "srchdd"));
- }
- /****************************************************************************************
- * Components :
- * Components ID : cmb_orddeptcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진료과 변경시
- ****************************************************************************************/
- function cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var fRow = ds_init_cmb_orddeptcd.findRow("deptcd", ds_main_cond.getColumn(0, "orddeptcd"));
- var sordclsdeptflag = ds_init_cmb_orddeptcd.getColumn(fRow, "ordclsdeptflag"); // 대표/분과/서브 구분
- var sorddeptkind = ds_init_cmb_orddeptcd.getColumn(fRow, "orddeptkind"); // 센터/대표 구분
- var ssupdeptcd = ds_init_cmb_orddeptcd.getColumn(fRow, "supdeptcd"); // 상위부서코드
- var sorddeptflag = "";
- if (sorddeptkind == "C") { // 센터이면
- sorddeptflag = "C";
- } else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
- sorddeptflag = "A";
- } else { // 그외에 기타과
- sorddeptflag = "etc";
- }
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
- ds_send_reqdata.enableevent = false;
- ds_send_reqdata.setColumn(0, "ordclsdeptflag", sorddeptflag);
- ds_send_reqdata.setColumn(0, "supdeptcd", ssupdeptcd);
- ds_send_reqdata.setColumn(0, "prcpspecflag", "Y");
- ds_send_reqdata.setColumn(0, "orddd", ds_main_cond.getColumn(0, "srchdd"));
- ds_send_reqdata.setColumn(0, "orddeptcd", ds_main_cond.getColumn(0, "orddeptcd"));
- ds_send_reqdata.enableevent = true;
-
- // 의사리스트 조회
- ds_init_cmb_orddrid.clearData();
- tranf_submit({
- id : "TRMNO00104"
- , service : "outcareapp.OutCareMngt"
- , method : "reqGetDrId"
- , inds : "reqdrid=ds_send_reqdata"
- , outds : "ds_init_cmb_orddrid=orddr"
- , async : false
- });
- // cmb_orddrid의 INIT Dataset
- this.cmb_orddrid.innerdataset = "ds_init_cmb_orddrid";
- this.cmb_orddrid.codecolumn = "userid";
- this.cmb_orddrid.datacolumn = "usernm";
-
- cmb_orddrid.index = 1;
- cmb_orddrid.index = 0;
- }
- ]]></Script>
- </Form>
- </FDL>
|