123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE09000" position="absolute 0 0 1020 886" titletext="감염관리의사 근무관리" oninit="SMMNE09600_oninit" onload="SMMNE09600_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 1 128 320 858" id="grd_drlist" binddataset="ds_grd_drlist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="사번"/>
- <Cell col="1" text="이름"/>
- <Cell col="2" text="nzone"/>
- <Cell col="3" text="Hp No"/>
- <Cell col="4"/>
- </Band>
- <Band id="body">
- <Cell text="bind:drid"/>
- <Cell col="1" text="bind:drnm"/>
- <Cell col="2" text="bind:nzone"/>
- <Cell col="3" text="bind:hpno"/>
- <Cell col="4" text="bind:orddeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="근무 의사 선택" position="absolute 5 72 293 85" id="caption3" class="tit_2"/>
- <Div position="absolute 1 18 996 63" align="align:center top;" id="group4">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Grid position="absolute 322 88 995 858" align="align:center middle;" id="grd_workerlist" binddataset="ds_grd_workerlist" selecttype="cell" oncelldblclick="grd_workerlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="75"/>
- <Column size="45"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="140"/>
- <Column size="140"/>
- <Column size="145"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일자" taborder="undefined"/>
- <Cell col="1" text="요일" taborder="undefined"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="위치" taborder="undefined"/>
- <Cell col="4" text="오전"/>
- <Cell col="5" text="오후"/>
- <Cell col="6" text="비고" taborder="undefined"/>
- <Cell col="7" text="drid_d"/>
- <Cell col="8" text="drid_d2"/>
- <Cell col="9" text="drid_n"/>
- <Cell col="10" text="ddeptcd"/>
- <Cell col="11" text="ddeptnm"/>
- <Cell col="12" text="d2deptcd"/>
- <Cell col="13" text="d2deptnm"/>
- <Cell col="14" text="ndeptcd"/>
- <Cell col="15" text="ndeptnm"/>
- <Cell col="16" text="placecd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" text="bind:workdd" mask="yyyy-MM-dd"/>
- <Cell col="1" text="bind:datenm"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:gbn" enable="false"/>
- <Cell col="3" text="bind:placenm"/>
- <Cell col="4" text="bind:drnm_am"/>
- <Cell col="5" text="bind:drnm_pm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:bigo"/>
- <Cell col="7" text="bind:drid_d"/>
- <Cell col="8" text="bind:drid_d2"/>
- <Cell col="9" text="bind:drid_n"/>
- <Cell col="10" text="bind:ddeptcd"/>
- <Cell col="11" text="bind:ddeptnm"/>
- <Cell col="12" text="bind:d2deptcd"/>
- <Cell col="13" text="bind:d2deptnm"/>
- <Cell col="14" text="bind:ndeptcd"/>
- <Cell col="15" text="bind:ndeptnm"/>
- <Cell col="16" text="bind:placecd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="근무 현황" position="absolute 322 72 715 85" id="cpt_worktitle" class="tit_2"/>
- <Button position="absolute 728 0 808 22" id="button2" class="btn3" enable="true" taborder="3" visible="true" text="처방현황" onclick="button2_onclick"/>
- <Button position="absolute 890 0 1006 22" id="button3" class="btn3" taborder="3" text="진료일정(외래)" onclick="button3_onclick"/>
- <Button position="absolute 809 0 889 22" id="button4" class="btn3" taborder="3" text="휴진일정" onclick="button4_onclick"/>
- <Static text="※ 근무시간: 오전 - 08:30 ~ 12:30, 오후 - 13:30 ~ 17:30" position="absolute 10 861 995 879" id="cap_worktime"/>
- <Static id="caption6" text="감염관리의사 근무스케쥴" class="tit_1" position="absolute 0 0 191 26"/>
- <Div id="grp_srch" taborder="4" class="div_SA" position="absolute 0 26 1006 66">
- <Layouts>
- <Layout>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 754 10 760 33" anchor="default"/>
- <Button id="btn_search00" taborder="8" text="조회" class="btn1" position="absolute 764 9 820 31" anchor="default" onclick="grp_srch_btn_search00_onclick"/>
- <Button id="btn_afyear" taborder="10" class="icon_next_year" position="absolute 259 14 275 30" onclick="grp_srch_btn_afyear_onclick"/>
- <Button id="btn_afmonth" taborder="11" class="icon_next_month" position="absolute 241 14 257 30" onclick="grp_srch_btn_afmonth_onclick"/>
- <Button id="btn_bfmonth" taborder="13" class="icon_pre_month" position="absolute 108 14 124 30" onclick="grp_srch_btn_bfmonth_onclick"/>
- <Button id="btn_bfyear" taborder="14" class="icon_pre_year" position="absolute 90 14 106 30" onclick="grp_srch_btn_bfyear_onclick"/>
- <Static id="caption4" text="근무년월 :" class="search_name" position="absolute 5 13 88 30"/>
- <Button id="button6" taborder="17" text="근무표출력" class="btn2" position="absolute 840 9 934 31" onclick="grp_srch_button6_onclick"/>
- <Button id="button5" taborder="18" text="Excel" onclick="button5_onclick" class="btn7" position="absolute 936 9 999 31"/>
- <Calendar id="ipt_srchdd" taborder="19" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 131 12 238 32" style="align:center middle;"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="roundrect2" type="roundrectangle" position="absolute 1 88 320 123"/>
- <Static id="caption1" text="진 료 과 :" position="absolute 10 96 101 113"/>
- <Combo id="cmb_orddeptcd" taborder="5" innerdataset="ds_init_cmb_orddeptcd" codecolumn="hardcd" datacolumn="hardcdnm" position="absolute 95 96 300 115" onitemchanged="cmb_orddeptcd_onitemchanged"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drid" type="STRING"/>
- <Column id="drnm" type="STRING"/>
- <Column id="nzone" type="STRING"/>
- <Column id="hpno" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_workerlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_workerlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="workdd" type="STRING"/>
- <Column id="datenm" type="STRING"/>
- <Column id="gbn" type="STRING"/>
- <Column id="placecd" type="STRING"/>
- <Column id="placenm" type="STRING"/>
- <Column id="drid_am" type="STRING"/>
- <Column id="drnm_am" type="STRING"/>
- <Column id="drid_pm" type="STRING"/>
- <Column id="drnm_pm" type="STRING"/>
- <Column id="amdeptcd" type="STRING"/>
- <Column id="amdeptnm" type="STRING"/>
- <Column id="pmdeptcd" type="STRING"/>
- <Column id="pmdeptnm" type="STRING"/>
- <Column id="bigo" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_cond_oncolumnchanged">
- <ColumnInfo>
- <Column id="gbn" type="STRING"/>
- <Column id="placecd" type="STRING"/>
- <Column id="srchym" type="STRING"/>
- <Column id="srchdd" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="adminyn" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actgubun" type="STRING"/>
- <Column id="gbn" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="placecd" type="STRING"/>
- <Column id="workdd" type="STRING"/>
- <Column id="duty" type="STRING"/>
- <Column id="drid" type="STRING"/>
- <Column id="fromtm" type="STRING"/>
- <Column id="totm" type="STRING"/>
- <Column id="bigo" type="STRING"/>
- <Column id="ipinfo" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_printinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="weekno" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="weektime" type="STRING" size="256"/>
- <Column id="workdd1" type="STRING" size="256"/>
- <Column id="workam1" type="STRING" size="256"/>
- <Column id="workpm1" type="STRING" size="256"/>
- <Column id="workdd2" type="STRING" size="256"/>
- <Column id="workam2" type="STRING" size="256"/>
- <Column id="workpm2" type="STRING" size="256"/>
- <Column id="workdd3" type="STRING" size="256"/>
- <Column id="workam3" type="STRING" size="256"/>
- <Column id="workpm3" type="STRING" size="256"/>
- <Column id="workdd4" type="STRING" size="256"/>
- <Column id="workam4" type="STRING" size="256"/>
- <Column id="workpm4" type="STRING" size="256"/>
- <Column id="workdd5" type="STRING" size="256"/>
- <Column id="workam5" type="STRING" size="256"/>
- <Column id="workpm5" type="STRING" size="256"/>
- <Column id="workdd6" type="STRING" size="256"/>
- <Column id="workam6" type="STRING" size="256"/>
- <Column id="workpm6" type="STRING" size="256"/>
- <Column id="workdd7" type="STRING" size="256"/>
- <Column id="workam7" type="STRING" size="256"/>
- <Column id="workpm7" type="STRING" size="256"/>
- <Column id="workpm7" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item10" compid="grp_srch.ipt_srchdd" propid="value" datasetid="ds_cond" columnid="srchdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-08-30
- * Description :
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- include "emr_ercarexp::SMMNE09600.xjs";
- function SMMNE09600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_drlist);
- }
- function SMMNE09600_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize_SMMNE09600();
- grdf_setToolTipBind(grd_drlist);
- grdf_setToolTipBind(grd_workerlist);
- }
- function grp_srch_btn_bfyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function grp_srch_btn_bfmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function grp_srch_btn_afmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function grp_srch_btn_afyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Function : fClkArrowBtn
- * Description : 당직년월 화살표 클릭시 날자변경
- * Argument : objName : 버튼명
- * return type :
- * Creator :
- ****************************************************************************************/
- function fClkArrowBtn(objName){
- var srchdd = ds_cond.getColumn(0,"srchdd");
- var sNewdd = "";
-
- if(objName == "btn_bfyear") {
- sNewdd = srchdd.toDate("YYYYMMDD").getAddDate(-1, "Y").getDateFormat();
- } else if(objName == "btn_bfmonth") {
- sNewdd = srchdd.toDate("YYYYMMDD").getAddDate(-1, "M").getDateFormat();
- } else if(objName == "btn_afmonth") {
- sNewdd = srchdd.toDate("YYYYMMDD").getAddDate(1, "M").getDateFormat();
- } else if(objName == "btn_afyear"){
- sNewdd = srchdd.toDate("YYYYMMDD").getAddDate(1, "Y").getDateFormat();
- }
-
- if (!utlf_isNull(sNewdd)) {
- ds_cond.setColumn(0,"srchdd", sNewdd);
- ds_cond.setColumn(0,"srchym", sNewdd.substr(0, 6));
- }
- }
- function cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fgetDrList(); // 근무의사 조회
- }
- function grd_workerlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var oDsBind = eval(obj.binddataset);
- var sActGubun = "";
- var sGbn = "";
- var sWorkDd = "";
- var sDuty = "";
- var sDrid = "";
- var sOrdDeptcd = "";
- var sWorkDrId = "";
- var sBigo = "";
-
- if(e.col == 4 || e.col == 5) { // 오전 또는 오후 클릭시에만
- var nRow = ds_grd_drlist.rowposition;
- if( nRow < 0 ){
- sysf_messageBox("근무의사를 선택해주십시오.", "I");
- return;
- }
-
- sDrid = ds_grd_drlist.getColumn(nRow, "drid");
- sOrdDeptcd = ds_grd_drlist.getColumn(nRow, "orddeptcd");
-
- sGbn = oDsBind.getColumn(e.row, "gbn");
- sWorkDd = oDsBind.getColumn(e.row, "workdd");
- sBigo = oDsBind.getColumn(e.row, "bigo");
- if(e.col == 4) { // 오전 근무
- sDuty = "AM";
- sWorkDrId = oDsBind.getColumn(e.row, "drid_am");
- } else { // 오후 근무
- sDuty = "PM";
- sWorkDrId = oDsBind.getColumn(e.row, "drid_pm");
- }
-
- if(utlf_isNull(sWorkDrId) || sWorkDrId.indexOf(sDrid) == -1) { // 기존에 등록되지 않았으면
- sActGubun = "I";
- } else {// 기존에 등록되었으면
- sActGubun = "D";
- }
-
- fsetWorkInfo(sActGubun, sGbn, sWorkDd, sDuty, sOrdDeptcd, sDrid, sBigo); // 근무정보 설정
- }
- }
- function grp_srch_btn_search00_onclick(obj:Button, e:ClickEventInfo)
- {
- fgetWorkList(); // 근무정보 조회
- }
- function ds_grd_workerlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var sActGubun = "U";
- var sGbn = "";
- var sWorkDd = "";
- var sBigo = "";
- var sDridAm = "";
- var sDridPm = "";
-
-
- if(e.columnid == "bigo"){
- sDridAm = ds_grd_workerlist.getColumn(e.row, "drid_am");
- sDridPm = ds_grd_workerlist.getColumn(e.row, "drid_pm");
-
- if(utlf_isNull(sDridAm) && utlf_isNull(sDridPm)) {
- sysf_messageBox("해당일자에 등록된 근무자가 없습니다.", "I");
- return;
- }
-
- sGbn = ds_grd_workerlist.getColumn(e.row, "gbn");
- sWorkDd = ds_grd_workerlist.getColumn(e.row, "workdd");
- sBigo = ds_grd_workerlist.getColumn(e.row, "bigo");
-
- fsetWorkInfo(sActGubun, sGbn, sWorkDd, "", "", "", sBigo); // 근무정보 설정
- }
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMPMB00900","SMPMB00900","","","","","","","","","","","M");
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMPMB01900","SMPMB01900","","","","","","","","","","","M");
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPMMO33910","SPMMO33910","","","","","","","","","","","M");
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_workerlist, "감염관리실 근무 리스트", "근무",false,"","user",true);
- }
- function ds_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "srchym"){
- fgetDrList(); // 근무의사 조회
- fgetWorkList(); // 근무정보 조회
- }
- }
- function grp_srch_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrintWorkSche();
- }
- ]]></Script>
- </Form>
- </FDL>
|