123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE05100" position="absolute 0 0 1070 805" titletext="EDCIS Schedule 당직관리" onload="SMMNE05100_onload" class="frm_POP">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 11 45 339 112">
- <Layouts>
- <Layout>
- <Static id="caption5" text="당직년월" class="search_name" position="absolute 8 10 82 30" onkeydown="caption5_onkeydown" anchor="default"/>
- <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 268 10 324 30" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption13" text="진료과" class="search_name" position="absolute 8 35 88 55" anchor="default"/>
- <Button id="btn_bfyear" taborder="3" onclick="btn_bfyear_onclick" class="icon_pre_year" position="absolute 74 10 90 30" anchor="default"/>
- <Button id="btn_bfmonth" taborder="4" onclick="btn_bfmonth_onclick" class="icon_pre_month" position="absolute 92 10 108 30" anchor="default"/>
- <Button id="btn_afmonth" taborder="6" onclick="btn_afmonth_onclick" class="icon_next_month" position="absolute 223 10 239 30" anchor="default"/>
- <Button id="btn_afyear" taborder="7" onclick="btn_afyear_onclick" class="icon_next_year" position="absolute 241 10 257 30" anchor="default"/>
- <Combo id="cmb_orddeptcd" taborder="8" position="absolute 74 35 257 55" index="-1" innerdataset="@ds_data_orddeptinfolist" datacolumn="deptnm" codecolumn="deptcd" onitemchanged="grp_sea_cmb_orddeptcd_onitemchanged" autoselect="false"/>
- <Calendar id="ipt_srchdd" taborder="9" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 111 10 218 30" style="align:center middle;"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="stt_titleText" text="EDCIS Schedule 당직관리" class="sta_POP_title" position="absolute 12 8 209 28"/>
- <Static id="cpt_grpmtitle" text="중증분류명" class="tit_2" position="absolute 9 244 275 265"/>
- <Static id="caption2" text="상 세 정 보" class="tit_2" position="absolute 17 670 128 683"/>
- <Shape id="sha_state" type="roundrectangle" position="absolute 9 690 338 794" style="background:transparent;"/>
- <Static id="op_usernm" position="absolute 18 703 158 740" onclick="op_usernm_onclick" text="김달현" style="color:royalblue;font:굴림체,22,bold;"/>
- <Static id="op_userid" text="00000000" position="absolute 168 703 323 740" style="color:royalblue;font:굴림체,22,bold;"/>
- <Static id="op_mp" text="000-0000-0000" position="absolute 18 750 238 784" style="color:royalblue;align:left top;font:굴림체,22,bold;"/>
- <Static id="op_bp" text="0000" position="absolute 248 750 323 784" style="color:royalblue;font:굴림체,22,bold;"/>
- <Grid id="grd_drlist" taborder="3" binddataset="ds_grid_grd_drlist" useinputpanel="false" oncellclick="grd_drlist_oncellclick" position="absolute 9 269 338 657" onmouseenter="grd_drlist_onmouseenter" onmouseleave="grd_drlist_onmouseleave" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="311"/>
- <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="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 style="selectbackground:chartreuse;" 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 356 737 1059 793" style="background:transparent;color:transparent;"/>
- <Grid id="grd_grpmaster" taborder="4" binddataset="ds_grid_grd_grpmaster" useinputpanel="false" oncellclick="grd_grpmaster_oncellclick" position="absolute 11 121 340 238" onmouseenter="grd_grpmaster_onmouseenter" onmouseleave="grd_grpmaster_onmouseleave" autofittype="col" style="align:center middle;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="326"/>
- <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="grtype"/>
- <Cell col="2" text="staffid"/>
- <Cell col="3" text="orddeptcd"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;selectbackground:chartreuse;" text="bind:shownm"/>
- <Cell col="1" text="bind:grtype"/>
- <Cell col="2" text="bind:staffid"/>
- <Cell col="3" text="bind:orddeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cpt_worktitle" text="당직 리스트" class="tit_2" position="absolute 354 44 529 60"/>
- <Button id="button42" taborder="5" text="저장" onclick="button42_onclick" class="btn2" position="absolute 1016 60 1060 80"/>
- <Grid id="grd_workerlist" taborder="6" binddataset="ds_grid_grd_workerlist" useinputpanel="false" oncellclick="grd_workerlist_oncellclick" position="absolute 352 85 1061 719" onbuttondown="grd_workerlist_onbuttondown" autofittype="col" onrbuttondown="grd_workerlist_onrbuttondown" style="align:left middle;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <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="1"/>
- <Cell col="2" text="2"/>
- <Cell col="3" text="3"/>
- <Cell col="4" text="4"/>
- <Cell col="5" text="5"/>
- <Cell col="6" text="6"/>
- <Cell col="7" text="7"/>
- <Cell col="8" text="8"/>
- <Cell col="9" text="9"/>
- <Cell col="10" text="10"/>
- <Cell col="11" text="fromdd"/>
- <Cell col="12" text="todd"/>
- <Cell col="13" text="grtype"/>
- <Cell col="14" text="orddeptcd"/>
- <Cell col="15" text="staffid"/>
- <Cell col="16" text="drid1"/>
- <Cell col="17" text="drid2"/>
- <Cell col="18" text="drid3"/>
- <Cell col="19" text="drid4"/>
- <Cell col="20" text="drid5"/>
- <Cell col="21" text="drid6"/>
- <Cell col="22" text="drid7"/>
- <Cell col="23" text="drid8"/>
- <Cell col="24" text="drid9"/>
- <Cell col="25" text="drid10"/>
- </Band>
- <Band id="body">
- <Cell text="bind:workdd" mask="@@@@-@@-@@"/>
- <Cell col="1" text="bind:drnm1"/>
- <Cell col="2" text="bind:drnm2"/>
- <Cell col="3" displaytype="normal" edittype="expr:ds_grid_grd_workerlist.getColumn(ds_grid_grd_workerlist.rowposition,"delimage") == 1 ? 'theme://images/ico_i.png' : "";" text="bind:drnm3"/>
- <Cell col="4" text="bind:drnm4"/>
- <Cell col="5" text="bind:drnm5"/>
- <Cell col="6" text="bind:drnm6"/>
- <Cell col="7" text="bind:drnm7"/>
- <Cell col="8" text="bind:drnm8"/>
- <Cell col="9" text="bind:drnm9"/>
- <Cell col="10" text="bind:drnm10"/>
- <Cell col="11" text="bind:fromdd"/>
- <Cell col="12" text="bind:todd"/>
- <Cell col="13" text="bind:grtype"/>
- <Cell col="14" text="bind:orddeptcd"/>
- <Cell col="15" text="bind:staffid"/>
- <Cell col="16" text="bind:drid1"/>
- <Cell col="17" text="bind:drid2"/>
- <Cell col="18" text="bind:drid3"/>
- <Cell col="19" text="bind:drid4"/>
- <Cell col="20" text="bind:drid5"/>
- <Cell col="21" text="bind:drid6"/>
- <Cell col="22" text="bind:drid7"/>
- <Cell col="23" text="bind:drid8"/>
- <Cell col="24" text="bind:drid9"/>
- <Cell col="25" text="bind:drid10"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption13" text="STAFF" class="cell_1" position="absolute 353 60 468 83"/>
- <Static id="caption10" text="기준시간" class="cell_1" position="absolute 625 60 740 83"/>
- <Edit id="op_staffnm" taborder="7" position="absolute 472 62 607 82" readonly="true"/>
- <MaskEdit id="op_fromtm" taborder="8" mask="@@:@@" enable="false" position="absolute 745 62 820 82" imemode="hangul" maxlength="4" type="string"/>
- <Static id="caption11" text="~" position="absolute 828 62 845 82"/>
- <MaskEdit id="op_totm" taborder="9" mask="@@:@@" enable="false" position="absolute 852 62 927 82" imemode="hangul" maxlength="4" type="string"/>
- <Edit id="op_staffid" taborder="10" visible="false" position="absolute 514 37 649 57"/>
- <Static id="caption3" text="◈ 당직대상자가 근무자관리에 연락처가 등록되어 있어야 당직스케줄을 입력하실 수 있습니다. " position="absolute 361 743 1041 782"/>
- <Static id="caption7" text="등록할 대상자" position="absolute 504 770 584 790"/>
- <Static id="caption18" text="추가선택 대상자" position="absolute 384 770 479 790"/>
- <Static id="caption17" position="absolute 364 771 379 786" style="background:#f4a6eeff;"/>
- <Static id="caption5" position="absolute 484 771 499 786" style="background:#7fef0fff;"/>
- <Static id="caption12" visible="false" position="absolute 1009 770 1024 785" style="background:#b7daffff;"/>
- <Static id="caption15" visible="false" position="absolute 1039 770 1054 785" style="background:#b7f9aaff;"/>
- <Button id="Button00" taborder="11" onclick="Button00_onclick" class="btn_POP_cls" position="absolute 1044 12 1058 26"/>
- <Static id="Static00" position="absolute 13 705 152 741" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
- <Static id="Static01" position="absolute 165 705 312 741" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
- <Static id="Static02" position="absolute 13 748 232 784" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
- <Static id="Static03" position="absolute 245 748 312 784" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_grpmaster" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="shownm" type="STRING"/>
- <Column id="grtype" type="STRING"/>
- <Column id="staffid" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_workerlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING"/>
- <Column id="drnm1" type="STRING"/>
- <Column id="drnm2" type="STRING"/>
- <Column id="drnm3" type="STRING"/>
- <Column id="drnm4" type="STRING"/>
- <Column id="drnm5" type="STRING"/>
- <Column id="drnm6" type="STRING"/>
- <Column id="drnm7" type="STRING"/>
- <Column id="drnm8" type="STRING"/>
- <Column id="drnm9" type="STRING"/>
- <Column id="drnm10" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="grtype" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="staffid" type="STRING"/>
- <Column id="drid1" type="STRING"/>
- <Column id="drid2" type="STRING"/>
- <Column id="drid3" type="STRING"/>
- <Column id="drid4" type="STRING"/>
- <Column id="drid5" type="STRING"/>
- <Column id="drid6" type="STRING"/>
- <Column id="drid7" type="STRING"/>
- <Column id="drid8" type="STRING"/>
- <Column id="drid9" type="STRING"/>
- <Column id="drid10" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drnm" type="STRING"/>
- <Column id="drid" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- <Column id="phone" type="STRING"/>
- <Column id="bbtel" type="STRING"/>
- <Column id="saveyn" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" 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="srchdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="grtype" 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"/>
- <Column id="monthcnt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_data_orddeptinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="deptengabbr" 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="srchdd" type="STRING" size="256"/>
- <Column id="srchym" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_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>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_data_drdetlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="phone" type="STRING" size="256"/>
- <Column id="bbtel" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="grp_sea.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item2" compid="op_usernm" propid="text" datasetid="ds_data_drdetlinfo" columnid="drnm"/>
- <BindItem id="item3" compid="op_userid" propid="text" datasetid="ds_data_drdetlinfo" columnid="drid"/>
- <BindItem id="item4" compid="op_mp" propid="text" datasetid="ds_data_drdetlinfo" columnid="phone"/>
- <BindItem id="item5" compid="op_bp" propid="text" datasetid="ds_data_drdetlinfo" columnid="bbtel"/>
- <BindItem id="item6" compid="cpt_grpmtitle" propid="text" datasetid="ds_init_titleinfo" columnid="grpmtitle"/>
- <BindItem id="item7" compid="op_staffnm" propid="value" datasetid="ds_init_titleinfo" columnid="staffnm"/>
- <BindItem id="item8" compid="op_fromtm" propid="value" datasetid="ds_init_titleinfo" columnid="fromtm"/>
- <BindItem id="item9" compid="op_totm" propid="value" datasetid="ds_init_titleinfo" columnid="totm"/>
- <BindItem id="item10" compid="grp_sea.ipt_srchdd" propid="value" datasetid="ds_cond" columnid="srchdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMMNE05100_EDC스케줄관리.xfdl
- * Creator :
- * Make Date : 2015-11-17
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-17 DBS Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_ercarexp::SMMNE05100.xjs";
- //include "emr_prcpmngtxp::MMOCommon.xjs"
- include "emr_carecomxp::CareCom.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //******************************************************************
- // 데이터셋 동적 생성
- //******************************************************************
- function lf_initDataSet(){
- // cmb_orddeptcd의 INIT Dataset
- this.cmb_orddeptcd.innerdataset = "ds_init_cmb_orddeptcd";
- this.cmb_orddeptcd.codecolumn = "deptcd";
- this.cmb_orddeptcd.datacolumn = "deptnm";
- }
- //이전 셀의 행,열 인덱스를 저장하는 변수
- var col = 0;
- var row = 0;
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMMNE05100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMMNE05100_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick", [{id: "add", level: "1", title: "추가"},{id: "delete", level: "1", title: "삭제"},{id: "reload", level: "1", title: "새로고침"}]);
- fInit();
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_grpmaster
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_grpmaster_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //20090629 dhkim
- //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- var isRefresh = isScheduleRefresh();
- if(isRefresh == 'N'){
- grd_grpmaster.row = curRow;
- return;
- }
-
- var srchym = ds_cond.getColumn(0,"srchym");
- var grtype = ds_grid_grd_grpmaster.getColumn(ds_grid_grd_grpmaster.rowposition,"grtype");
- var orddeptcd = ds_grid_grd_grpmaster.getColumn(ds_grid_grd_grpmaster.rowposition,"orddeptcd");
- var staffid = ds_grid_grd_grpmaster.getColumn(ds_grid_grd_grpmaster.rowposition,"staffid");
- fSetStaffInfo(srchym, ds_grid_grd_grpmaster.rowposition);//당직대상자의 헤더, staff이름 세팅
- fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid);//당직자리스트를 조회한다
-
- }
- /****************************************************************************************
- * Components :
- * 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();//당직자스케줄을저장한다
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_workerlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_workerlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //당직의사세팅
- var clickRow = e.row;
- var clickCol = e.cell;
- if(e.col !==0){ //기준일클릭한게 아니면 의사정보세팅
- fSetWorkDr('ADD',clickRow,clickCol);//당직리스트에 선택된 당직대상자를 그리드에 세팅
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- //20090629 dhkim
- //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- var isRefresh = isScheduleRefresh();
- if(isRefresh == 'N'){
- grd_grpmaster.row = curRow;
- return;
- }
- var orddeptcd = model.getValue('/root/cond/orddeptcd');
- fGetGroupMaster(orddeptcd);//선택된 진료과의 중증분류마스터조회
- fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_bfyear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_bfyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_bfmonth
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_bfmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_afmonth
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_afmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_afyear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_afyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_drlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_drlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var drid = ds_grid_grd_drlist.getColumn(ds_grid_grd_drlist.rowposition,"drid");
- fSetDrInfo('drlist', drid);//의사상세정보를 세팅
- }
- /****************************************************************************************
- * Components :
- * Components ID :
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var isRefresh = isScheduleRefresh();
- if(isRefresh == "N"){
- grd_grpmaster.row = curRow;
- return;
- }
- var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
- fGetGroupMaster(orddeptcd);//선택된 진료과의 중증분류마스터조회
- fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
- lf_addColor(ds_grid_grd_workerlist, grd_workerlist);
- }
- /****************************************************************************************
- * Components :
- * Components ID :
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 클릭
- ****************************************************************************************/
- function grp_sea_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var isRefresh = isScheduleRefresh();
- if(isRefresh == 'N'){
- grd_grpmaster.row = curRow;
- return;
- }
- grp_sea_btn_sea_onclick();
- }
- /****************************************************************************************
- * Components :
- * Components ID :
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기 버튼 클릭
- ****************************************************************************************/
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- var isRefresh = isScheduleRefresh(true);
- if(isRefresh == 'N'){
- grd_grpmaster.row = curRow;
- return;
- }else{
- form.close();
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID :
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 우클릭
- ****************************************************************************************/
- var a;
- var b;
- function grd_workerlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- ds_grid_grd_workerlist.rowposition = e.row;
- a = ds_grid_grd_workerlist.rowposition;
- b = e.cell;
- pmn_popupMenu.trackPopup(e.screenX,e.screenY);
- }
- /****************************************************************************************
- * Components :
- * Components ID :
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 우클릭후 메뉴 클릭시(추가,삭제,새로고침)
- ****************************************************************************************/
- function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- if(e.id == "add"){
- fSetWorkDr("ADD",a,b);
- }else if(e.id == "delete"){
- fSetWorkDr("del",a,b);
- }else if(e.id == "reload"){
- fRefreshWorkDr();
- }
- }
- function lf_addColor(objDs:Dataset, objGrd:Grid)
- {
- var sColNm = "_bgcolor";
- var sColNm2 = "_attdyn";
- var sColNm3 = "_lineAtt";
- var sColNm4 = "_delimage";
- var nCol = objGrd.getCellCount("Body");
- var nRow = objDs.getRowCount();
- var sName = "";
- var sName2 = "";
-
- for( var i = 0; i < nCol; i++ )
- {
- var colID = objDs.getColID(i);
- sName = colID+sColNm;
- sName2 = colID+sColNm2;
- sName3 = colID+sColNm3;
- sName4 = colID+sColNm4;
-
- var nColIndex = objGrd.getBindCellIndex("Body", colID);
- if( nColIndex > -1)
- {
- objDs.addColumn(sName, "string");
- objDs.addColumn(sName2, "string");
- objDs.addColumn(sName3, "string");
- objDs.addColumn(sName4, "string");
- objGrd.setCellProperty("Body", nColIndex, "background", "BIND("+sName+")");
- objGrd.setCellProperty("Body", nColIndex, "background2", "BIND("+sName+")");
- objGrd.setCellProperty("Body", nColIndex, "selectbackground", "BIND("+sName+")");
- objGrd.setCellProperty("Body", nColIndex, "font", "BIND("+sName2+")");
- objGrd.setCellProperty("Body", nColIndex, "line", "BIND("+sName3+")");
- objGrd.setCellProperty("Body", nColIndex, "backgroundimage", "BIND("+sName4+")");
- }
- }
- }]]></Script>
- </Form>
- </FDL>
|