123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE05500" position="absolute 0 0 986 768" titletext="응급 당직 전문의 스케줄 조회" oninit="SMMNE05500_oninit" onload="SMMNE05500_onload" ontimer="SMMNE05500_ontimer">
- <Layouts>
- <Layout>
- <Static text="응급실 당직 전문의 (on-call) 명단" position="absolute 0 0 980 30" align="align:center middle;" id="caption6" style="align:center middle;font:arial,14,bold;"/>
- <Static text="caption1" position="absolute 795 671 985 691" align="align:right middle;" id="caption1"/>
- <Shape id="line3" class="line_1" position="absolute 0 90 980 96" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_workerlist1" taborder="1" binddataset="ds_grd_workerlist1" useinputpanel="false" autofittype="col" position="absolute 0 94 490 501" autosizemergetype="nomerge" fillareatype="none" style="font:Dotum,9,bold;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="70"/>
- <Column size="160"/>
- <Column size="130"/>
- </Columns>
- <Rows>
- <Row size="45" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell style="font:arial,12,bold;" text="일자"/>
- <Cell col="1" style="font:arial,12,bold;" text="요일"/>
- <Cell col="2" style="font:arial,12,bold;" text="진료과"/>
- <Cell col="3" style="font:arial,12,bold;" text="당직의"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="font:arial,12,bold;" text="bind:workdd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle" calendardisplaynulltype="none"/>
- <Cell col="1" style="font:arial,12,bold;" text="bind:datenm" suppress="2" suppressalign="middle"/>
- <Cell col="2" style="align:left;font:arial,12,bold;" text="bind:orddeptnm"/>
- <Cell col="3" style="font:arial,12,bold;" text="bind:drnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group2" taborder="2" class="div_SA" position="absolute 0 43 980 83">
- <Layouts>
- <Layout>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 891 10 897 33"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 910 10 966 32" onclick="group2_btn_search_onclick"/>
- <Static id="caption52" text="조회일자 :" class="search_name" position="absolute 30 11 116 28"/>
- <Calendar id="int_outdt" taborder="4" position="absolute 125 11 260 30" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_workerlist2" taborder="3" binddataset="ds_grd_workerlist2" useinputpanel="false" autofittype="col" position="absolute 490 94 980 501">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="70"/>
- <Column size="160"/>
- <Column size="130"/>
- </Columns>
- <Rows>
- <Row size="45" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell style="font:arial,12,bold;" text="일자"/>
- <Cell col="1" style="font:arial,12,bold;" text="요일"/>
- <Cell col="2" style="font:arial,12,bold;" text="진료과"/>
- <Cell col="3" style="font:arial,12,bold;" text="당직의"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="font:arial,12,bold;" text="bind:workdd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle" calendardisplaynulltype="none"/>
- <Cell col="1" style="font:arial,12,bold;" text="bind:datenm" suppress="2" suppressalign="middle"/>
- <Cell col="2" style="align:left;font:arial,12,bold;" text="bind:orddeptnm"/>
- <Cell col="3" style="font:arial,12,bold;" text="bind:drnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_workerlist3" taborder="4" binddataset="ds_grd_workerlist3" useinputpanel="false" position="absolute 0 504 744 576">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="70"/>
- <Column size="163"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- </Columns>
- <Rows>
- <Row size="45" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell style="font:arial,12,bold;" text="일자"/>
- <Cell col="1" style="font:arial,12,bold;" text="요일"/>
- <Cell col="2" style="font:arial,12,bold;" text="진료과"/>
- <Cell col="3" style="font:arial,12,bold;" text="당직의D"/>
- <Cell col="4" style="font:arial,12,bold;" text="당직의E"/>
- <Cell col="5" style="font:arial,12,bold;" text="당직의N"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="font:arial,12,bold;" text="bind:workdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="1" style="font:arial,12,bold;" text="bind:datenm"/>
- <Cell col="2" style="align:left;font:arial,12,bold;" text="bind:orddeptnm"/>
- <Cell col="3" style="font:arial,12,bold;" text="bind:drnm1"/>
- <Cell col="4" style="font:arial,12,bold;" text="bind:drnm2"/>
- <Cell col="5" style="font:arial,12,bold;" text="bind:drnm3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="* 당직 근무시간 - 평일: 17:30 ~ 익일 08:30, 토·일요일 및 공휴일: 08:30 ~ 익일 08:30" position="absolute 0 585 980 607" style="font:arial,14,bold;"/>
- <Static id="caption3" text="* 위 당직 전문의는 환자 및 보호자의 요청이 아닌 응급실 근무의사의 의학적 판단에 따른 요청으로 직접진료 여부가 결정됩니다." position="absolute 0 625 980 671" style="font:arial,14,bold;"/>
- <Static id="caption4" text="* 당직 전문의 응급수술, 출장 등 사정에 의하여 당직 전문의가 변경될 수 있습니다." onclick="group1_caption4_onclick" position="absolute 0 605 980 627" style="font:arial,14,bold;"/>
- <Shape id="line00" class="line_1" position="absolute 0 501 744 507" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_workerlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
- <Column id="duty" type="STRING" size="256" sumtext="duty"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="drid" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm" type="STRING" size="256" sumtext="당직의사이름"/>
- <Column id="nzone" type="STRING" size="256" sumtext="nzone"/>
- <Column id="hpno" type="STRING" size="256" sumtext="hpno"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="기준과"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_workerlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
- <Column id="duty" type="STRING" size="256" sumtext="duty"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="drid" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm" type="STRING" size="256" sumtext="당직의사이름"/>
- <Column id="nzone" type="STRING" size="256" sumtext="nzone"/>
- <Column id="hpno" type="STRING" size="256" sumtext="hpno"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="기준과"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_workerlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="drid1" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm1" type="STRING" size="256" sumtext="당직의사이름"/>
- <Column id="drid2" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm2" type="STRING" size="256" sumtext="당직의사이름"/>
- <Column id="drid3" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm3" type="STRING" size="256" sumtext="당직의사이름"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fSearch(){
- var srchdd = utlf_getCurrentDate();
- var srchtm = utlf_getCurrentTime();
-
- // 하단의 caption1 에 문구를 넣는다
- caption1.text = srchdd.substring(0,4) + "/" +
- srchdd.substring(4, 6) + "/" +
- srchdd.substring(6, 8) + " " +
- srchtm.substring(0, 2) + ":" +
- srchtm.substring(2, 4) + ":" +
- srchtm.substring(4, 6);
-
- // 검색 시간이 근무시간 이전이라면 이전 날짜로 설정한다
- if(srchtm < '083000'){
- srchdd = new Date();
- srchdd.setDate(srchdd.getDate() - 1);
- srchdd = srchdd.getDateFormat('YYYYMMDD');
- }
-
- group2.int_outdt.value = srchdd;
-
- // workerlist1 을 서버로 부터 가져온다
- dsf_createDsRow("ds_req",
- [
- { col: "workdd", type: "string", size: 256, val: srchdd },
- { col: "flag", type: "string", size: 256, val: '1' },
- { col: "gbn", type: "string", size: 256, val: 'E' }
- ],
- true);
-
- var oParam = {};
- oParam.id = "TRMNE05501";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetErProfscheByDate";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_grd_workerlist1=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
-
- // workerlist2 를 서버로 부터 가져온다
- ds_req.setColumn(0, 'flag', '2');
-
- oParam.id = "TRMNE05501";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetErProfscheByDate";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_grd_workerlist2=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05501";
- tranf_submit(oParam);
-
- // workerlist3 를 서버로 부터 가져온다
- dsf_createDsRow("ds_req3",
- [
- { col: "workdd", type: "string", size: 256, val: srchdd }
- ],
- true);
-
- oParam.id = "TRMNE05502";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetErProfscheByDateEM";
- oParam.inds = "req=ds_req3";
- oParam.outds = "ds_grd_workerlist3=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05502";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /******************************************************************
- * Argument :
- * Description : oninit 메서드
- ******************************************************************/
- function SMMNE05500_oninit(obj:Form, e:InitEventInfo){
-
- }
- /******************************************************************
- * Argument :
- * Description : onload 메서드
- ******************************************************************/
- function SMMNE05500_onload(obj:Form, e:LoadEventInfo){
- // 화면공통
- frmf_initForm(obj);
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
-
- if(instcd == '031'){
- caption3.text = '* 위 당직 전문의는 환자 및 보호자의 요청이 아닌 응급실 근무의사의 의학적 판단에 따른 요청으로 직접진료 여부가 결정됩니다.';
- grd_workerlist3.visible = true;
- }
- else{
- caption3.text = '* 칠곡경북대학교병원은 특정질환 전문병원으로서 응급실에 내원하는 환자분의 증상(진단) 또는 병원의 의료인력과 시설에 따라 필요시 진료가 가능한 상급의료기관으로 전원할 수 있음을 양해해 주시기 바랍니다.';
- grd_workerlist3.visible = false;
- }
- //속도개선
- this.setTimer(0, 100);
- //fSearch();
- }
- /******************************************************************
- * Argument :
- * Description : 조회 버튼 클릭
- ******************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo){
- fSearch();
- }
- function SMMNE05500_ontimer(obj:Form, e:TimerEventInfo)
- {
- if (e.timerid == 0) {
- this.killTimer(0);
- fSearch();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|