123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO34000" position="absolute 0 0 937 877" titletext="응급 자동 CallVisit 관리" oninit="SPMMO34000_oninit" onload="SPMMO34000_onload" onclose="SPMMO34000_onclose">
- <Layouts>
- <Layout>
- <Static id="caption6" text="응급 의사 CallVisit Schedule 등록" class="tit_1" position="absolute 0 0 256 24"/>
- <Div id="group4" taborder="2" class="div_SA" position="absolute 0 24 329 106">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="11" text="조회" class="btn1" position="absolute 265 20 321 42" anchor="default" onclick="group4_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 255 9 261 54" anchor="default"/>
- <Static id="caption4" text="당직년월 :" class="search_name" position="absolute 8 9 99 26" anchor="default"/>
- <MaskEdit id="ipt_srchym" taborder="12" mask="@@@@-@@" class="input_search" position="absolute 126 8 214 27" anchor="default" type="string" style="align:center middle;"/>
- <Static id="caption1" text="진 료 과 :" class="search_name" position="absolute 8 32 86 49" anchor="default"/>
- <Combo id="cmb_orddeptcd" taborder="13" innerdataset="@ds_init_deptlist" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 90 32 250 51" anchor="default" onitemchanged="group4_cmb_orddeptcd_onitemchanged"/>
- <Button id="btn_bfyear" taborder="14" class="icon_pre_year" position="absolute 90 10 106 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
- <Button id="btn_bfmonth" taborder="15" class="icon_pre_month" position="absolute 108 10 124 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
- <Button id="btn_afmonth" taborder="16" class="icon_next_month" position="absolute 217 10 233 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
- <Button id="btn_afyear" taborder="17" class="icon_next_year" position="absolute 235 10 251 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
- <Static id="caption13" text="PART :" class="search_name" position="absolute 8 56 105 73" anchor="default"/>
- <Combo id="cmb_partinfo" taborder="18" innerdataset="@ds_init_deptpartinfo_partlist" codecolumn="partcd" datacolumn="partnm" position="absolute 90 55 250 74" anchor="default" onitemchanged="group4_cmb_partinfo_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="상 세 정 보" class="tit_2" position="absolute 1 751 112 767"/>
- <Shape id="sha_state" type="roundrectangle" position="absolute 1 772 330 876"/>
- <Grid id="grd_drlist" taborder="3" binddataset="ds_main_drinfolist" useinputpanel="false" position="absolute 0 131 329 686" autofittype="col" onlbuttonup="grd_drlist_onlbuttonup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="280"/>
- <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="의사 Call 대상자"/>
- <Cell col="1" text="userid"/>
- <Cell col="2" text="userdeptcd"/>
- <Cell col="3" text="phone"/>
- <Cell col="4" text="bbtel"/>
- <Cell col="5" text="saveyn"/>
- </Band>
- <Band id="body">
- <Cell text="bind:drnm"/>
- <Cell col="1" text="bind:drid"/>
- <Cell col="2" text="bind:deptcd"/>
- <Cell col="3" text="bind:phone"/>
- <Cell col="4" text="bind:bbtel"/>
- <Cell col="5" text="bind:saveyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="roundrect3" type="roundrectangle" class="roundrect_example" position="absolute 332 798 936 876"/>
- <Static id="caption10" text="기준시간" class="cell_1" position="absolute 0 720 115 743"/>
- <Static id="caption11" text="~" position="absolute 212 723 237 743" style="align:center middle;"/>
- <Static id="caption8" text="기 준 시 간" class="tit_2" position="absolute 1 699 112 715"/>
- <Static id="caption9" text="의사 Call 대상자" class="tit_2" position="absolute 1 114 143 131"/>
- <Static id="caption14" text="▶ 1st call 후 30분 이내 visiting하지 않을 경우 2nd call 당직자에게 자동 문자 전송" position="absolute 340 823 848 838"/>
- <Static id="caption16" text="▶ 2nd call 후 30분 이내 visiting하지 않을 경우 주치 교수(3rd call)에게 자동 문자 전송" position="absolute 340 841 848 856"/>
- <Static id="caption19" text="▶ 주치 교수 3rd call의 경우 00:00-06:00까지 발송 보류되고 06:00 이후 일괄 전송" position="absolute 340 859 848 874"/>
- <Grid id="grd_workerlist" taborder="6" binddataset="ds_main_workerinfolist" useinputpanel="false" position="absolute 332 42 936 796" autofittype="col" style="background:#ffffffff;" onkeyup="grd_workerlist_onkeyup" onlbuttonup="grd_workerlist_onlbuttonup" onrbuttondown="grd_workerlist_onrbuttondown" selecttype="multiarea">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="155"/>
- <Column size="0"/>
- <Column size="135"/>
- <Column size="135"/>
- <Column size="135"/>
- <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"/>
- <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"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일자"/>
- <Cell col="1" text="part"/>
- <Cell col="2" text="1"/>
- <Cell col="3" text="2"/>
- <Cell col="4" text="스탭"/>
- <Cell col="5" text="4"/>
- <Cell col="6" text="5"/>
- <Cell col="7" text="6"/>
- <Cell col="8" text="7"/>
- <Cell col="9" text="8"/>
- <Cell col="10" text="9"/>
- <Cell col="11" text="10"/>
- <Cell col="12" text="fromdd"/>
- <Cell col="13" text="todd"/>
- <Cell col="14" text="grtype"/>
- <Cell col="15" text="orddeptcd"/>
- <Cell col="16" text="staffid"/>
- <Cell col="17" text="drid1"/>
- <Cell col="18" text="drid2"/>
- <Cell col="19" text="drid3"/>
- <Cell col="20" text="drid4"/>
- <Cell col="21" text="drid5"/>
- <Cell col="22" text="drid6"/>
- <Cell col="23" text="drid7"/>
- <Cell col="24" text="drid8"/>
- <Cell col="25" text="drid9"/>
- <Cell col="26" text="drid10"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="background:#ffffffff;background2:#ffffffff;" text="bind:workdd"/>
- <Cell col="1" text="bind:deptdetlflag"/>
- <Cell col="2" style="background:EXPR(getColumn(currow,'selyn4')=='Y'?"#F4A6EE":"#FFFFFF");background2:EXPR(getColumn(currow,'selyn4')=='Y'?"#F4A6EE":"#FFFFFF");" text="bind:drnm1"/>
- <Cell col="3" style="background:EXPR(getColumn(currow,'selyn4')=='Y'?"#F4A6EE":"#FFFFFF");background2:EXPR(getColumn(currow,'selyn4')=='Y'?"#F4A6EE":"#FFFFFF");" text="bind:drnm2"/>
- <Cell col="4" style="background:EXPR(getColumn(currow,'selyn4')=='Y'?"#F4A6EE":"#FFFFFF");background2:EXPR(getColumn(currow,'selyn4')=='Y'?"#F4A6EE":"#FFFFFF");" text="bind:drnm3"/>
- <Cell col="5" text="bind:drnm4"/>
- <Cell col="6" text="bind:drnm5"/>
- <Cell col="7" text="bind:drnm6"/>
- <Cell col="8" text="bind:drnm7"/>
- <Cell col="9" text="bind:drnm8"/>
- <Cell col="10" text="bind:drnm9"/>
- <Cell col="11" text="bind:drnm10"/>
- <Cell col="12" text="bind:fromdd"/>
- <Cell col="13" text="bind:todd"/>
- <Cell col="14" text="bind:grtype"/>
- <Cell col="15" text="bind:orddeptcd"/>
- <Cell col="16" text="bind:staffid"/>
- <Cell col="17" text="bind:drid1"/>
- <Cell col="18" text="bind:drid2"/>
- <Cell col="19" text="bind:drid3"/>
- <Cell col="20" text="bind:drid4"/>
- <Cell col="21" text="bind:drid5"/>
- <Cell col="22" text="bind:drid6"/>
- <Cell col="23" text="bind:drid7"/>
- <Cell col="24" text="bind:drid8"/>
- <Cell col="25" text="bind:drid9"/>
- <Cell col="26" text="bind:drid10"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button42" taborder="7" text="저장" class="btn4" position="absolute 880 19 936 41" onclick="button42_onclick"/>
- <Edit id="op_staffid" taborder="8" readonly="true" visible="false" position="absolute 524 21 659 40"/>
- <Static id="cpt_worktitle" text="의사 Call 리스트" class="tit_2" position="absolute 333 25 508 41"/>
- <Static id="caption3" text="◈ 당직대상자가 근무자관리에 연락처가 등록되어 있어야 당직스케줄을 입력하실 수 있습니다. " position="absolute 340 804 901 820"/>
- <Static id="caption12" visible="false" position="absolute 911 825 926 840" style="background:#b7daffff;"/>
- <Static id="caption15" visible="false" position="absolute 911 840 926 855" style="background:#b7f9aaff;"/>
- <Static id="caption18" text="추가선택 대상자" position="absolute 844 837 935 857"/>
- <Static id="caption7" text="등록할 대상자" position="absolute 844 857 924 877"/>
- <Static id="caption17" position="absolute 827 840 842 855" style="background:#f4a6eeff;border:1 solid #000000ff ;"/>
- <Static id="caption5" position="absolute 827 859 842 874" style="background:#7fef0fff;border:1 solid #000000ff ;"/>
- <Static id="op_usernm" text="김달현" position="absolute 10 784 150 821" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
- <Static id="op_userid" text="00000000" position="absolute 160 784 315 821" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
- <Static id="op_mp" text="000-0000-0000" position="absolute 10 831 230 865" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
- <Static id="op_bp" text="0000" position="absolute 240 831 315 865" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
- <Shape id="line4" class="line_1" position="absolute 0 715 329 721" style="strokepen:3 solid #9ebed4ff;"/>
- <Shape id="line1" class="line_1" position="absolute 1 767 329 773" style="strokepen:3 solid #9ebed4ff;"/>
- <MaskEdit id="op_fromtm" taborder="9" type="string" mask="@@:@@" enable="false" position="absolute 120 722 214 741" style=":disabled {align:center middle;}"/>
- <MaskEdit id="op_totm" taborder="10" type="string" mask="@@:@@" enable="false" position="absolute 235 722 329 741" style=":disabled {align:center middle;}"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_grpmasterinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="shownm" type="STRING" size="256"/>
- <Column id="grtype" type="STRING" size="256"/>
- <Column id="staffid" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchym" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="deptpartinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_titleinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="worktitle" type="STRING" size="256"/>
- <Column id="grpmtitle" type="STRING" size="256"/>
- <Column id="staffnm" type="STRING" size="256"/>
- <Column id="staffid" type="STRING" size="256"/>
- <Column id="fromtm" type="STRING" size="256"/>
- <Column id="totm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_deptpartinfo_partlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_drdetlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="phone" type="STRING" size="256"/>
- <Column id="bbtel" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_workerinfolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="deptdetlflag" type="STRING" size="256" sumtext="부서상세구분"/>
- <Column id="drid1" type="STRING" size="256" sumtext="당직의사id1"/>
- <Column id="drid2" type="STRING" size="256" sumtext="당직의사id2"/>
- <Column id="drid3" type="STRING" size="256" sumtext="당직의사id3"/>
- <Column id="drid4" type="STRING" size="256" sumtext="당직의사id4"/>
- <Column id="drid5" type="STRING" size="256" sumtext="당직의사id5"/>
- <Column id="drid6" type="STRING" size="256" sumtext="당직의사id6"/>
- <Column id="drid7" type="STRING" size="256" sumtext="당직의사id7"/>
- <Column id="drid8" type="STRING" size="256" sumtext="당직의사id8"/>
- <Column id="drid9" type="STRING" size="256" sumtext="당직의사id9"/>
- <Column id="drid10" type="STRING" size="256" sumtext="당직의사id10"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="당직시작일시"/>
- <Column id="todd" type="STRING" size="256" sumtext="당직종료일시"/>
- <Column id="grtype" type="STRING" size="256" sumtext="중증분류"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="staffid" type="STRING" size="256" sumtext="스탭아이디"/>
- <Column id="drnm1" type="STRING" size="256" sumtext="당직의사명1"/>
- <Column id="drnm2" type="STRING" size="256" sumtext="당직의사명2"/>
- <Column id="drnm3" type="STRING" size="256" sumtext="당직의사명3"/>
- <Column id="drnm4" type="STRING" size="256" sumtext="당직의사명4"/>
- <Column id="drnm5" type="STRING" size="256" sumtext="당직의사명5"/>
- <Column id="drnm6" type="STRING" size="256" sumtext="당직의사명6"/>
- <Column id="drnm7" type="STRING" size="256" sumtext="당직의사명7"/>
- <Column id="drnm8" type="STRING" size="256" sumtext="당직의사명8"/>
- <Column id="drnm9" type="STRING" size="256" sumtext="당직의사명9"/>
- <Column id="drnm10" type="STRING" size="256" sumtext="당직의사명10"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_drinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drnm" type="STRING" size="256" sumtext="당직대상자명"/>
- <Column id="drid" type="STRING" size="256" sumtext="당직대상자코드"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="당직대상자부서코드"/>
- <Column id="phone" type="STRING" size="256" sumtext="핸드폰번호"/>
- <Column id="bbtel" type="STRING" size="256" sumtext="beeper"/>
- <Column id="saveyn" type="STRING" size="256" sumtext="근무자저장여부"/>
- <Column id="mespclyn" type="STRING" size="256" sumtext="주치의 여부 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_code_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_orgscheinfo_workerinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item5" compid="op_usernm" propid="text" datasetid="ds_main_drdetlinfo" columnid="drnm"/>
- <BindItem id="item6" compid="op_userid" propid="text" datasetid="ds_main_drdetlinfo" columnid="drid"/>
- <BindItem id="item7" compid="op_mp" propid="text" datasetid="ds_main_drdetlinfo" columnid="phone"/>
- <BindItem id="item8" compid="op_bp" propid="text" datasetid="ds_main_drdetlinfo" columnid="bbtel"/>
- <BindItem id="item0" compid="group4.ipt_srchym" propid="value" datasetid="ds_cond" columnid="srchym"/>
- <BindItem id="item1" compid="group4.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item2" compid="group4.cmb_partinfo" propid="value" datasetid="ds_cond" columnid="deptpartinfo"/>
- <BindItem id="item3" compid="op_staffid" propid="value" datasetid="ds_main_titleinfo" columnid="staffid"/>
- <BindItem id="item4" compid="op_fromtm" propid="value" datasetid="ds_main_titleinfo" columnid="fromtm"/>
- <BindItem id="item9" compid="op_totm" propid="value" datasetid="ds_main_titleinfo" columnid="totm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-01-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-01-27 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- include "emr_prcpmngtxp::SPMMO34000.xjs"
- //include "emr_carecomxp::CareCom.xjs"
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMO34000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMMO34000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMO30000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로드시 초기화 함수 실행
- ****************************************************************************************/
- function SPMMO34000_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
-
- frmf_createPopupMenu("popupMenu"
- ,"fMouseDownGridRow"
- ,[{id: "A", level: "0", title: "추가"} //항목추가
- ,{id: "R", level: "0", title: "새로고침"}] //항목추가
- );
-
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group4.btn_search", "onclick", ev );
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMO30000
- * Event : onclose
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 전환시 실행
- ****************************************************************************************/
- function SPMMO34000_onclose(obj:Form, e:CloseEventInfo)
- {
- //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- var isRefresh = isScheduleRefresh(true);
- if(isRefresh == "N"){
- //grd_grpmaster.row = curRow;
- return;
- }else{
- // this.close();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭
- ****************************************************************************************/
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- var isRefresh = isScheduleRefresh();
- if(isRefresh == "N"){
- //grd_grpmaster.row = curRow;
- return;
- }
- var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
- var srchym = ds_cond.getColumn(0,"srchym");
- var grtype = "X";
- var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
- var staffid = "";
- fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
- fGetDeptDetlFlag(); // 진료과의 파트정보 조회
- fChkSelDeptDetlFlag();
- var deptpartinfo = ds_cond.getColumn(0,"deptpartinfo");
- fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid, deptpartinfo);//당직자리스트를 조회한다
- }
- /****************************************************************************************
- * Components : MaskEdit
- * Components ID : group4.ipt_srchym
- * Event : ontextchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 날자 초기화 실행
- ****************************************************************************************/
- function group4_ipt_srchym_ontextchanged(obj:MaskEdit, e:TextChangedEventInfo)
- {
- //당직년월을 조회하기전에 변경사항이 있는지 확인한다.
- var isRefresh = isScheduleRefresh();
- if(isRefresh == "N"){
- return;
- }
- fInit("A");
- //타이틀 헤더세팅
- var curym = ds_cond.getColumn(0,"srchym");
- var worktitle = curym.substring(0, 4) + "년 " + curym.substring(4, 6) + "월 당직리스트";
- cpt_worktitle.text = worktitle;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.btn_bfyear(btn_bfmonth,btn_afmonth,btn_afyear)
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 당직년월 변경 화살표 클릭시 실행
- ****************************************************************************************/
- function group4_btn_arrow_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- //조회버튼 실행
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group4.btn_search", "onclick", ev );
- //타이틀 헤더세팅
- var curym = ds_cond.getColumn(0,"srchym");
- var worktitle = curym.substring(0, 4) + "년 " + curym.substring(4, 6) + "월 당직리스트";
- cpt_worktitle.text = worktitle;
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : group4.cmb_orddeptcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진료과 변경시 조회실행
- ****************************************************************************************/
- function group4_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group4.btn_search", "onclick", ev );
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : group4.cmb_partinfo
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : PART 변경시 당직자 리스트 조회
- ****************************************************************************************/
- function group4_cmb_partinfo_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var srchym = ds_cond.getColumn(0,"srchym");
- var grtype = "X";
- var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
- var staffid = "";
- var deptpartinfo = ds_cond.getColumn(0,"deptpartinfo");
- fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid, deptpartinfo); //당직자리스트를 조회한다
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_drlist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 의사 Call 대상자 클릭시 실행
- ****************************************************************************************/
- function grd_drlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- var drid = ds_main_drinfolist.getColumn(ds_main_drinfolist.rowposition,"drid");
- fSetDrInfo("drlist", drid); //의사상세정보를 세팅
- fChkDeptDetlFlag(); // 파트정보가 있는지 확인하고 파트를 선택하지 않고 의사 선택시 블록킹
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_workerlist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 우클릭시 팝업메뉴 띄움
- ****************************************************************************************/
- function grd_workerlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1 && obj.selectstartcol[0] > 1 && obj.selectendcol[0] > 1) {
- if(obj.selectstartrow == obj.selectendrow && obj.selectstartcol == obj.selectendcol) {
- obj.setFocus();
-
- grdf_setSelectedCell(obj, e);
- }
- popupMenu.trackPopup(e.screenX,e.screenY);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_workerlist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 당직리스트에 선택된 당직대상자를 그리드에 세팅
- ****************************************************************************************/
- function grd_workerlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col > 0 && obj.selectstartrow == obj.selectendrow && obj.selectstartcol == obj.selectendcol){//기준일클릭한게 아니면 의사정보세팅
- fSetWorkDr("ADD");//당직리스트에 선택된 당직대상자를 그리드에 세팅
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_workerlist
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : DEL키나 Backspace키 눌렀을때 의사정보삭제
- ****************************************************************************************/
- function grd_workerlist_onkeyup(obj:Grid, e:KeyEventInfo)
- {
- // if(ds_main_workerinfolist.rowposition > -1 && obj.selectstartcol[0] > 1 && obj.selectendcol[0] > 1) {
- // var clickColNm = lf_getBindCellName(grd_workerlist,obj.currentcol);
- // if(clickColNm != "workdd") {//기준일클릭한게 아니면 의사정보세팅
- // if(e.keycode == 46 || e.keycode == 8) {
- // fSetWorkDr("DEL");//의사정보삭제
- // }
- // }
- // }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button42
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭 스케줄 저장
- ****************************************************************************************/
- function button42_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveWorkDr();//당직자스케줄을저장한다
- }
- ]]></Script>
- </Form>
- </FDL>
|