123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMI00900" position="absolute 0 0 1073 802" titletext="당직스케줄 관리" oninit="SMMMI00900_oninit" onload="SMMMI00900_onload">
- <Layouts>
- <Layout>
- <Static text="당직 스케줄 관리" position="absolute 0 0 157 25" id="caption6" class="tit_1"/>
- <Div id="grp_right" anchor="all" taborder="2" position="absolute 327 62 1072 800">
- <Layouts>
- <Layout>
- <Static id="cpt_worktitle" text="당직 리스트" class="tit_2" position="absolute 2 7 114 23" anchor="left top"/>
- <Shape id="line3" class="line_10" position="absolute 2 20 745 32" anchor="left top right"/>
- <Grid id="grd_workschelist" taborder="3" binddataset="ds_workschelist" useinputpanel="false" selecttype="multiarea" cellsizingtype="col" position="absolute 2 28 745 730" anchor="all" autofittype="none" onenterdown="grp_right_grd_workschelist_onenterdown" onrbuttondown="grp_right_grd_workschelist_onrbuttondown" onlbuttondown="grp_right_grd_workschelist_onlbuttondown" oncelldblclick="grp_right_grd_workschelist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="30"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="190"/>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell text="일자" taborder="undefined"/>
- <Cell col="1" text="요일" taborder="undefined"/>
- <Cell col="2" text="D"/>
- <Cell col="3" text="E"/>
- <Cell col="4" text="N"/>
- <Cell col="5" text="비고"/>
- <Cell col="6" text="확인" taborder="undefined"/>
- <Cell col="7" text="drid_d"/>
- <Cell col="8" text="drid_e"/>
- <Cell col="9" text="drid_n"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="color:EXPR(fChngGrdCellColor(color));color2:EXPR(fChngGrdCellColor(color));" text="bind:workdd" calendardisplaynulltype="none"/>
- <Cell col="1" style="color:EXPR(fChngGrdCellColor(color));color2:EXPR(fChngGrdCellColor(color));" text="bind:datenm"/>
- <Cell col="2" text="bind:drnm_d"/>
- <Cell col="3" text="bind:drnm_e"/>
- <Cell col="4" text="bind:drnm_n"/>
- <Cell col="5" displaytype="text" edittype="textarea" style="align:left top;" text="bind:rmk" wordwrap="char" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="6" displaytype="combo" style="align:center;" text="bind:confirmyn" combodataset="ds_confirmyn" combocodecol="value" combodatacol="label"/>
- <Cell col="7" text="bind:drid_d"/>
- <Cell col="8" text="bind:drid_e"/>
- <Cell col="9" text="bind:drid_n"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_prt00" taborder="4" text="출력" class="btn6" position="absolute 109 1 165 23" anchor="top right" onclick="grp_right_btn_prt00_onclick"/>
- <Button id="btn_cnfm" taborder="5" text="근무확인" class="btn4" enable="false" position="absolute 669 1 745 23" anchor="top right" tooltiptext="관리부서만 최종 저장 가능 합니다." tooltiptype="default" onclick="grp_right_btn_cnfm_onclick"/>
- <Button id="btn_payview" taborder="6" text="수당조회" class="btn4" enable="true" position="absolute 587 1 667 23" anchor="top right" onclick="grp_right_btn_payview_onclick" visible="false"/>
- <Button id="btn_dupview" taborder="7" text="중복조회" class="btn4" visible="false" position="absolute 505 1 585 23" anchor="top right" onclick="grp_right_btn_dupview_onclick"/>
- <Button id="btn_prt03" taborder="8" text="ICU3" class="btn6" position="absolute 283 1 339 23" anchor="top right" onclick="grp_right_btn_prt03_onclick"/>
- <Button id="btn_prt01" taborder="9" text="ICU1" class="btn6" position="absolute 167 1 223 23" anchor="top right" onclick="grp_right_btn_prt01_onclick"/>
- <Button id="btn_prt02" taborder="10" text="ICU2" class="btn6" position="absolute 225 1 281 23" anchor="top right" onclick="grp_right_btn_prt02_onclick"/>
- <Button id="btn_exceldown" taborder="11" text="다운로드" class="btn7" position="absolute 342 2 416 22" anchor="top right" onclick="grp_right_btn_exceldown_onclick"/>
- <Button id="btn_excelup" taborder="12" text="업로드" class="btn7" position="absolute 420 2 483 22" anchor="top right" onclick="grp_right_btn_excelup_onclick" visible="false"/>
- <Grid id="grd_sampleexcel" taborder="13" useinputpanel="false" visible="false" position="absolute 17 74 519 178" binddataset="ds_sampleexcel" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="150"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일자"/>
- <Cell col="1" text="근무"/>
- <Cell col="2" text="근무자부서"/>
- <Cell col="3" text="근무자명"/>
- <Cell col="4" text="근무자사번"/>
- </Band>
- <Band id="body">
- <Cell text="bind:workdd" mask="####-##-##"/>
- <Cell col="1" text="bind:dutynm"/>
- <Cell col="2" text="bind:deptnm"/>
- <Cell col="3" text="bind:usernm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:userid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_top" anchor="left top right" taborder="3" position="absolute 0 25 1072 59" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 1007 7 1063 29" anchor="top right" onclick="grp_top_btn_search_onclick"/>
- <Static id="caption4" text="기준일자 :" class="search_name" position="absolute 5 9 96 26" anchor="default"/>
- <Static id="caption1" text="당직선택 :" class="search_name" position="absolute 373 9 464 26" anchor="default"/>
- <Combo id="cmb_workcd" taborder="6" innerdataset="@ds_workcdlist" codecolumn="workcd" datacolumn="worknm" position="absolute 448 8 638 27" anchor="default" onitemchanged="grp_top_cmb_workcd_onitemchanged"/>
- <Button id="btn_bfyear" taborder="7" class="icon_pre_year" position="absolute 80 9 96 25" anchor="default" onclick="grp_top_btn_bfyear_onclick"/>
- <Button id="btn_bfmonth" taborder="8" class="icon_pre_month" position="absolute 98 9 114 25" anchor="default" onclick="grp_top_btn_bfmonth_onclick"/>
- <Button id="btn_afmonth" taborder="9" class="icon_next_month" position="absolute 227 9 243 25" anchor="default" onclick="grp_top_btn_afmonth_onclick"/>
- <Button id="btn_afyear" taborder="10" class="icon_next_year" position="absolute 245 9 261 25" anchor="default" onclick="grp_top_btn_afyear_onclick"/>
- <Calendar id="ipt_basedd" taborder="11" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 117 7 224 27" style="align:center middle;" anchor="default" onchanged="grp_top_ipt_basedd_onchanged"/>
- <Button id="btn_uploaddoctor" taborder="12" text="불러오기" class="btn2" visible="false" position="absolute 643 7 708 29" anchor="top right" onclick="grp_top_btn_uploaddoctor_onclick"/>
- <Button id="btn_check" taborder="13" text="당직검증" class="btn2" visible="false" position="absolute 709 7 774 29" anchor="top right" onclick="grp_top_btn_check_onclick"/>
- <Button id="btn_deletereason" taborder="14" text="삭제사유" class="btn2" visible="false" position="absolute 775 7 840 29" anchor="top right" onclick="grp_top_btn_deletereason_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_left" taborder="6" position="absolute 1 61 326 800">
- <Layouts>
- <Layout>
- <Static id="caption00" text="당직 의사 선택" class="tit_2" position="absolute 2 7 233 23" anchor="left top"/>
- <Div id="grp_sa" taborder="5" position="absolute 1 26 320 61" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Static id="caption1" text="진 료 과 :" position="absolute 11 10 78 27" style="font:Dotum,9,bold;" anchor="default"/>
- <Combo id="cmb_orddeptcd" taborder="1" innerdataset="@ds_appdeptlist" codecolumn="appid" datacolumn="appidnm" position="absolute 95 8 300 27" anchor="default" onitemchanged="grp_left_grp_sa_cmb_orddeptcd_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_workdrlist" taborder="4" binddataset="ds_workdrlist" useinputpanel="false" cellsizingtype="col" position="absolute 1 64 320 476" autofittype="col" onlbuttonup="grp_left_grd_workdrlist_onlbuttonup" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="105"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- </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 style="selectbackground:#7fef0fff;" text="bind:drid"/>
- <Cell col="1" style="selectbackground:#7fef0fff;" text="bind:drnm"/>
- <Cell col="2" style="selectbackground:#7fef0fff;" text="bind:nzone"/>
- <Cell col="3" style="selectbackground:#7fef0fff;" text="bind:hpno"/>
- <Cell col="4" text="bind:orddeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption01" text="당직 정보" class="tit_2" position="absolute 1 484 104 500" anchor="left top"/>
- <Static id="caption23" text="관리부서" class="cell_1" position="absolute 1 503 86 523" style="font:돋움,9,bold;" anchor="default"/>
- <Edit id="ipt_authdeptnm" taborder="6" enable="false" position="absolute 89 503 319 522" anchor="default"/>
- <Static id="caption02" text="안내사항" class="cell_1" position="absolute 1 527 86 603" style="font:돋움,9,bold;" anchor="default"/>
- <TextArea id="tar_msg" taborder="7" wordwrap="char" enable="false" position="absolute 88 527 319 603" anchor="default"/>
- <Static id="caption03" text="근무 정보" class="tit_2" position="absolute 1 605 104 621" anchor="left top"/>
- <Grid id="grd_dutylist" taborder="8" binddataset="ds_dutylist" useinputpanel="false" cellsizingtype="col" position="absolute 1 624 318 739" autofittype="none" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="instcd"/>
- <Cell col="1" text="workcd"/>
- <Cell col="2" text="dutyno"/>
- <Cell col="3" text="코드"/>
- <Cell col="4" text="근무명"/>
- <Cell col="5" text="인원"/>
- <Cell col="6" text="시작시간"/>
- <Cell col="7" text="익일"/>
- <Cell col="8" text="종료시간"/>
- <Cell col="9" text="시작일자"/>
- <Cell col="10" text="종료일자"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:workcd"/>
- <Cell col="2" text="bind:dutyno"/>
- <Cell col="3" displaytype="combo" edittype="none" style="align:center middle;" text="bind:dutycd" combodataset="ds_dutycd" combocodecol="value" combodatacol="label"/>
- <Cell col="4" edittype="none" style="align:left middle;" text="bind:dutynm"/>
- <Cell col="5" displaytype="combo" edittype="none" style="align:center;" text="bind:maxcnt" combodataset="ds_maxcnt" combocodecol="value" combodatacol="label"/>
- <Cell col="6" displaytype="date" edittype="none" style="align:center middle;" text="bind:fromtm" mask="HH:mm"/>
- <Cell col="7" displaytype="combo" edittype="none" style="align:center;" text="bind:nextyn" combodataset="ds_nextyn" combocodecol="value" combodatacol="label"/>
- <Cell col="8" displaytype="date" edittype="none" style="align:center middle;" text="bind:totm" mask="HH:mm"/>
- <Cell col="9" displaytype="date" text="bind:fromdd"/>
- <Cell col="10" displaytype="date" text="bind:todd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption7" text="※ 당직 및 진료과 선택 후 당직의사를 클릭하고 당직리스트에서 해당근무를 더블클릭 하여 등록/삭제 합니다." position="absolute 379 4 1072 24" style="color:#0000ffff;font:Dotum,10,bold;"/>
- <PopupMenu id="pmn_menu" position="absolute 1088 58 1172 80" innerdataset="@ds_menu" captioncolumn="label" idcolumn="func" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick"/>
- <PopupMenu id="pmn_menu_icudoc" innerdataset="ds_menu_icudoc" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 1088 82 1172 168"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="superyn" type="STRING" size="256"/>
- <Column id="authyn" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="authdeptcd" type="STRING" size="256"/>
- <Column id="workcd" type="STRING" size="256"/>
- <Column id="worktype" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="appuseryn" type="STRING" size="256"/>
- <Column id="comuseryn" type="STRING" size="256"/>
- <Column id="comuserid" type="STRING" size="256"/>
- <Column id="comusernm" 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="actgubun" type="STRING" size="256"/>
- <Column id="workcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="worktype" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- <Column id="confirmyn" type="STRING" size="256"/>
- <Column id="workallhalf" type="STRING" size="256" sumtext="전일, 반일, 대체"/>
- <Column id="reason" type="STRING" size="256" sumtext="사유"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_workschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
- <Column id="drid_d" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drid_e" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drid_n" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm_d" type="STRING" size="256" sumtext="당직의사이름"/>
- <Column id="drnm_e" type="STRING" size="256" sumtext="당직의사id"/>
- <Column id="drnm_n" type="STRING" size="256" sumtext="당직의사이름"/>
- <Column id="rmk" type="STRING" size="256" sumtext="비고"/>
- <Column id="confirmyn" type="STRING" size="256" sumtext="최종저장여부"/>
- <Column id="bgcolor" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_workdrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drid" type="STRING" size="256" sumtext="의사사번"/>
- <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="휴대전화"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="jobposcd" type="STRING" size="256" sumtext="jobposcd"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_workcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workcd" type="STRING"/>
- <Column id="worknm" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_workcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workcd" type="STRING"/>
- <Column id="worknm" type="STRING"/>
- <Column id="msg" type="STRING"/>
- <Column id="rmk" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="useyn" type="STRING"/>
- <Column id="authdeptcd" type="STRING"/>
- <Column id="authdeptnm" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_appdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="workcd" type="STRING"/>
- <Column id="appno" type="STRING"/>
- <Column id="apptype" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appidnm" type="STRING"/>
- <Column id="comuserid" type="STRING"/>
- <Column id="comusernm" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_appuserlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="workcd" type="STRING"/>
- <Column id="appno" type="STRING"/>
- <Column id="apptype" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appidnm" type="STRING"/>
- <Column id="comuserid" type="STRING"/>
- <Column id="comusernm" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_dutylist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_dutylist_oncolumnchanged">
- <ColumnInfo>
- <Column id="gubun" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="workcd" type="STRING"/>
- <Column id="dutyno" type="STRING"/>
- <Column id="dutycd" type="STRING"/>
- <Column id="dutynm" type="STRING"/>
- <Column id="maxcnt" type="STRING"/>
- <Column id="fromtm" type="STRING"/>
- <Column id="totm" type="STRING"/>
- <Column id="nextyn" type="STRING"/>
- <Column id="holigubun" type="STRING"/>
- <Column id="weekpay" type="STRING"/>
- <Column id="holipay" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_dutycd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">D</Col>
- <Col id="value">D</Col>
- </Row>
- <Row>
- <Col id="label">E</Col>
- <Col id="value">E</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_maxcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">1명</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">2명</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">3명</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">4명</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">5명</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">6명</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">7명</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">8명</Col>
- <Col id="value">8</Col>
- </Row>
- <Row>
- <Col id="label">9명</Col>
- <Col id="value">9</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_nextyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">당일</Col>
- <Col id="value">N</Col>
- </Row>
- <Row>
- <Col id="label">익일</Col>
- <Col id="value">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_confirmyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label"/>
- <Col id="value">N</Col>
- </Row>
- <Row>
- <Col id="label">부서</Col>
- <Col id="value">D</Col>
- </Row>
- <Row>
- <Col id="label">최종</Col>
- <Col id="value">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_print00" 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="workcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="datenm" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="dutynm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="holiyn" type="STRING" size="256"/>
- <Column id="confirmyn" type="STRING" size="256"/>
- <Column id="fromdt" type="STRING" size="256"/>
- <Column id="todt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_print01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_print02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_print03" 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="weekno" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="rank" type="STRING" size="256"/>
- <Column id="workdeptcd" type="STRING" size="256"/>
- <Column id="placenm" type="STRING" size="256"/>
- <Column id="confirmdrid" type="STRING" size="256"/>
- <Column id="confirmdrnm" type="STRING" size="256"/>
- <Column id="confirmdrsign" type="STRING" size="256"/>
- <Column id="confirmdrid2" type="STRING" size="256"/>
- <Column id="confirmdrnm2" type="STRING" size="256"/>
- <Column id="confirmdrsign2" type="STRING" size="256"/>
- <Column id="workdd1" type="STRING" size="256"/>
- <Column id="drid1" type="STRING" size="256"/>
- <Column id="drnm1" type="STRING" size="256"/>
- <Column id="drsign1" type="STRING" size="256"/>
- <Column id="workdd2" type="STRING" size="256"/>
- <Column id="drid2" type="STRING" size="256"/>
- <Column id="drnm2" type="STRING" size="256"/>
- <Column id="drsign2" type="STRING" size="256"/>
- <Column id="workdd3" type="STRING" size="256"/>
- <Column id="drid3" type="STRING" size="256"/>
- <Column id="drnm3" type="STRING" size="256"/>
- <Column id="drsign3" type="STRING" size="256"/>
- <Column id="workdd4" type="STRING" size="256"/>
- <Column id="drid4" type="STRING" size="256"/>
- <Column id="drnm4" type="STRING" size="256"/>
- <Column id="drsign4" type="STRING" size="256"/>
- <Column id="workdd5" type="STRING" size="256"/>
- <Column id="drid5" type="STRING" size="256"/>
- <Column id="drnm5" type="STRING" size="256"/>
- <Column id="drsign5" type="STRING" size="256"/>
- <Column id="workdd6" type="STRING" size="256"/>
- <Column id="drid6" type="STRING" size="256"/>
- <Column id="drnm6" type="STRING" size="256"/>
- <Column id="drsign6" type="STRING" size="256"/>
- <Column id="workdd7" type="STRING" size="256"/>
- <Column id="drid7" type="STRING" size="256"/>
- <Column id="drnm7" type="STRING" size="256"/>
- <Column id="drsign7" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">삭제</Col>
- <Col id="func">fDeleteWork</Col>
- <Col id="level">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_sampleexcel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="dutynm" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="workcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="datenm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_uploadexcel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="dutynm" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="workcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="datenm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_result_icu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_result_icu_uploaddoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actgubun" type="STRING" size="256"/>
- <Column id="workcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="worktype" type="STRING" size="256"/>
- <Column id="dutycd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- <Column id="confirmyn" type="STRING" size="256"/>
- <Column id="workallhalf" type="STRING" size="256" sumtext="전일, 반일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_menu_icudoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">전일</Col>
- <Col id="func">fAllDayICUDoc</Col>
- <Col id="level">0</Col>
- </Row>
- <Row>
- <Col id="label">반일</Col>
- <Col id="level">0</Col>
- <Col id="func">fHalfDayICUDoc</Col>
- </Row>
- <Row>
- <Col id="label">대체</Col>
- <Col id="level">0</Col>
- <Col id="func">fReplDayICUDoc</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_result_icualldoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_result_icuhalfdoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item2" compid="group3.group4.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item3" compid="group3.group1.cpt_worktitle" propid="text" datasetid="ds_main_titleinfo" columnid="worktitle"/>
- <BindItem id="item10" compid="group3.group4.ipt_srchdd" propid="value" datasetid="ds_cond" columnid="srchdd"/>
- <BindItem id="item0" compid="grp_top.ipt_basedd" propid="value" datasetid="ds_cond" columnid="basedd"/>
- <BindItem id="item1" compid="SMMMI00900" propid="text" datasetid="ds_cond" columnid="srchdd"/>
- <BindItem id="item4" compid="grp_top.cmb_workcd" propid="value" datasetid="ds_cond" columnid="workcd"/>
- <BindItem id="item5" compid="grp_left.grp_sa.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item8" compid="grp_left.ipt_authdeptnm" propid="value" datasetid="ds_workcdinfo" columnid="authdeptnm"/>
- <BindItem id="item9" compid="grp_left.tar_msg" propid="value" datasetid="ds_workcdinfo" columnid="msg"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name :
- * Creator : 엄영만
- * Make Date : 2018-05-21
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- include "emr_prcpinfoxp::SMMMI00900.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //이전 셀의 행,열 인덱스를 저장하는 변수
- var col = -1;
- var row = -1;
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMI00900
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMMI00900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMI00900
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMMI00900_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(grp_right.grd_workschelist);
- fInit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cnfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 최종저장버튼 클릭시
- ****************************************************************************************/
- function grp_right_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- fConfirm();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_top_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- // 당직정보 가져오기
- fGetWorkCdInfo();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_workcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function grp_top_cmb_workcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- //20190923 이돈희 : 중환자실 전일, 반일 의사 일괄 업로드 기능 구현할 당직 중 진료행정과만 버튼 활성화
- if(ds_result_icu.findRow("rmk", obj.value) > -1){
- if(sysf_getUserInfo("dutplceinstcd") == "031"){
- if(sysf_getUserInfo("dutplcecd") == "3310000000" || sysf_getUserInfo("dutplcecd") == "3310200000" || sysf_getUserInfo("userid") == "EMR"){ // 진료행정과 진료지원팀
- grp_top.btn_uploaddoctor.visible = true;
- grp_top.btn_check.visible = true;
- grp_top.btn_deletereason.visible = true;
- }
- }
- }
-
- fGetWorkCdInfo();
- }
- function grp_top_ipt_basedd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fGetWorkCdInfo();
- }
- function grp_left_grp_sa_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 당직 의사 가져오기
- fGetWorkDrList();
-
- var sWorkType = ds_cond.getColumn(0, "worktype");
- if(sWorkType == "D") {
- // 당직 근무 가져오기
- fGetWorkScheList();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_bfyear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <<버튼 클릭시
- ****************************************************************************************/
- function grp_top_btn_bfyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_bfmonth
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <버튼 클릭시
- ****************************************************************************************/
- function grp_top_btn_bfmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_afmonth
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >버튼 클릭시
- ****************************************************************************************/
- function grp_top_btn_afmonth_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_afyear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >>버튼 클릭시
- ****************************************************************************************/
- function grp_top_btn_afyear_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkArrowBtn(obj.name);
- }
- function grp_right_grd_workschelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == obj.getBindCellIndex("body", "drnm_d") || e.col == obj.getBindCellIndex("body", "drnm_e") || e.col == obj.getBindCellIndex("body", "drnm_n")) {
- //20190924 이돈희 : 전일, 반일 등록 중환자실 인 경우 입력, 삭제시 메뉴 추가
- if(ds_result_icu.findRow("rmk", ds_cond.getColumn(0, "workcd")) > -1){
- var curUserRow = grp_left.grd_workdrlist.currentrow
- if (curUserRow < 0) {
- sysf_messageBox('선택된 당직의가 없습니다.', 'E999');
- return false;
- }
-
- //전문의는 전일, 반일, 대체자 메뉴를 표시하고, 전공의는 자동 입력
- if(ds_workdrlist.getColumn(curUserRow, "jobposcd") == "1782"){
- pmn_menu_icudoc.trackPopup(e.screenX,e.screenY);
- } else {
- fInsertWorkScheList("");
- }
- } else {
- fInsertWorkScheList("");
- }
- } else if(e.col == obj.getBindCellIndex("body", "rmk")){
- fInsertWorkScheList("");
- } else {
- //do Nothing
- }
- }
- function grp_left_grd_workdrlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row < 0) return;
-
- grdf_setSelectedCell(obj, e);
- }
- function grp_right_btn_payview_onclick(obj:Button, e:ClickEventInfo)
- {
- var mon = sysf_getCurrentMonitorNumber();
- var xpt = this.getOwnerFrame().position.x + 200;
- var ypt = this.getOwnerFrame().position.y + 100;
-
- var objArg = new Object();
- objArg.arg_cond = ds_cond;
-
- frmf_modal("SMMMI00910", "SMMMI00910", objArg, false, mon, xpt, ypt, null, null, null, null, null, "M");
- }
- function grp_right_btn_dupview_onclick(obj:Button, e:ClickEventInfo)
- {
- var mon = sysf_getCurrentMonitorNumber();
- var xpt = this.getOwnerFrame().position.x + 200;
- var ypt = this.getOwnerFrame().position.y + 100;
-
- var objArg = new Object();
- objArg.arg_cond = ds_cond;
-
- frmf_modal("SMMMI00920", "SMMMI00920", objArg, false, mon, xpt, ypt, null, null, null, null, null, "M");
- }
- function grp_right_grd_workschelist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- var sDeptcd = "";
- var sWorkCd = "";
- var sWorkDd = "";
- var sConfirmYn = "";
- var sSuperYn = "";
- var sAuthYn = "";
- var sRmk = "";
-
- var curSchekRow = grp_right.grd_workschelist.currentrow;
- if (curSchekRow < 0) return;
-
- if (obj.currentcol == obj.getBindCellIndex("body", "rmk")) {
- if (sysf_messageBox("해당 일자의 비고사항을 저장하시겠습니까?", "Q") == "6") {
- sWorkCd = ds_cond.getColumn(0, "workcd");
- sDeptcd = ds_cond.getColumn(0, "orddeptcd");
- sSuperYn = ds_cond.getColumn(0, "superyn");
- sAuthYn = ds_cond.getColumn(0, "authyn");
- sWorkDd = ds_workschelist.getColumn(curSchekRow, "workdd");
- sConfirmYn = ds_workschelist.getColumn(curSchekRow, "confirmyn");
- sRmk = ds_workschelist.getColumn(curSchekRow, "rmk");
-
- if(utlf_isNull(sWorkCd) || utlf_isNull(sDeptcd) || utlf_isNull(sWorkDd)) {
- return;
- }
-
- if(sSuperYn != "Y" && sAuthYn != "Y") {
- sysf_messageBox('비고사항은 당직 관리부서에서만 수정 가능 합니다.\r\n당직 관리부서로 연락바랍니다.', 'E999');
- return;
- }
-
- fSetRmkInfo(sWorkCd, sWorkDd, sRmk); // 비고정보 설정
- }
- }
- }
- function fChngGrdCellColor(color){
- if(color == undefined || color == "" || color == "ffffff")
- color = "default";
- else
- color = "#" + color;
-
- return color;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_prt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function grp_right_btn_prt00_onclick(obj:Button, e:ClickEventInfo)
- {
- fExecPrint00();
- }
- function grp_right_btn_prt01_onclick(obj:Button, e:ClickEventInfo)
- {
- fExecPrint01();
- }
- function grp_right_btn_prt02_onclick(obj:Button, e:ClickEventInfo)
- {
- fExecPrint02();
- }
- function grp_right_btn_prt03_onclick(obj:Button, e:ClickEventInfo)
- {
- fExecPrint03();
- }
- function grp_right_grd_workschelist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row < 0) return;
-
- if(e.col == obj.getBindCellIndex("body", "drnm_d") || e.col == obj.getBindCellIndex("body", "drnm_e") || e.col == obj.getBindCellIndex("body", "drnm_n") || e.col == obj.getBindCellIndex("body", "rmk")) {
- grdf_setSelectedCell(obj, e);
- pmn_menu.trackPopup(e.screenX,e.screenY);
- }
- }
- function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id + "()");
- }
- function fDeleteWork() {
- var sUserId = "";
- var sDeptcd = "";
- var sWorkCd = "";
- var sWorkDd = "";
- var sWorkType = "";
- var sWorkDrId = "";
- var sDutyCd = "";
- var sActGubun = "";
- var sConfirmYn = "";
- var sSuperYn = "";
- var sAuthYn = "";
-
- var sCol = grp_right.grd_workschelist.currentcol;
- var sColNm = grp_right.grd_workschelist.getCellProperty("Body", sCol, "text").replace("bind:", "");
- if(sColNm != "drnm_d" && sColNm != "drnm_e" && sColNm != "drnm_n" && sColNm != "rmk" ) {
- return;
- }
-
- var curSchekRow = grp_right.grd_workschelist.currentrow
- if (curSchekRow < 0) {
- sysf_messageBox('선택된 항목이 없습니다.', 'E999');
- return;
- }
-
- sWorkCd = ds_cond.getColumn(0, "workcd");
- sWorkType = ds_cond.getColumn(0, "worktype");
- sDeptcd = ds_cond.getColumn(0, "orddeptcd");
- sSuperYn = ds_cond.getColumn(0, "superyn");
- sAuthYn = ds_cond.getColumn(0, "authyn");
- sWorkDd = ds_workschelist.getColumn(curSchekRow, "workdd");
- sConfirmYn = ds_workschelist.getColumn(curSchekRow, "confirmyn");
-
- if(utlf_isNull(sWorkCd) || utlf_isNull(sDeptcd) || utlf_isNull(sWorkDd)) {
- return;
- }
-
- if(sSuperYn != "Y" && sAuthYn != "Y") {
- if(sDeptcd != sysf_getUserInfo("dutplcecd")) {
- sysf_messageBox("로그인 부서의 당직 정보만 저장 가능 합니다.", "E999");
- return;
- }
-
- if (sConfirmYn != "N") {
- sysf_messageBox('근무확인 된 자료는 수정할 수 없습니다.\r\n당직 관리부서로 연락바랍니다.', 'E999');
- return;
- }
- }
-
-
- //선택된 당직대상자정보(id, nm)
- if (sColNm == "drnm_d" || sColNm == "drnm_e" || sColNm == "drnm_n") {
- sActGubun = "D";
-
- if (sColNm == "drnm_d") {
- sWorkDrNm = ds_workschelist.getColumn(curSchekRow, "drnm_d");
- sWorkDrId = ds_workschelist.getColumn(curSchekRow, "drid_d");
- sDutyCd = "D";
- } else if (sColNm == "drnm_e") {
- sWorkDrNm = ds_workschelist.getColumn(curSchekRow, "drnm_e");
- sWorkDrId = ds_workschelist.getColumn(curSchekRow, "drid_e");
- sDutyCd = "E";
- } else if (sColNm == "drnm_n") {
- sWorkDrNm = ds_workschelist.getColumn(curSchekRow, "drnm_n");
- sWorkDrId = ds_workschelist.getColumn(curSchekRow, "drid_n");
- sDutyCd = "N";
- }
-
- if(utlf_isNull(sWorkDrId)) {
- sysf_messageBox('삭제할 근무자가 없습니다.', 'E999');
- return;
- }
-
- if (sysf_messageBox("해당 일자의 근무자(" + sWorkDrNm +")를 삭제하시겠습니까?", "Q") == "6") {
- var arrUser = sWorkDrId.split(",");
- for(var i = 0; i < arrUser.length; i++){
- sUserId = arrUser[i];
-
- fSetWorkInfo(sActGubun, sWorkCd, sWorkDd, sWorkType, sDutyCd, sDeptcd, sUserId, sConfirmYn); // 근무정보 설정
- }
- }
- } else if (sColNm == "rmk") {
- if(sSuperYn != "Y" && sAuthYn != "Y") {
- sysf_messageBox('비고사항은 당직 관리부서에서만 수정 가능 합니다.\r\n당직 관리부서로 연락바랍니다.', 'E999');
- return;
- }
-
- if (sysf_messageBox("해당 일자의 비고사항을 삭제하시겠습니까?", "Q") == "6") {
- fSetRmkInfo(sWorkCd, sWorkDd, "-"); // 비고정보 설정
- }
- }
-
- fSetWorkInfo(sActGubun, sWorkCd, sWorkDd, sWorkType, sDutyCd, sDeptcd, sUserId, sConfirmYn); // 근무정보 설정
- }
- function grp_right_btn_exceldown_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcelDownlode();
- }
- function grp_right_btn_excelup_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcelUplode();
- }
- //20190923 이돈희 : 중환자실 전일, 반일 의사 일괄 업로드 기능 구현
- function grp_top_btn_uploaddoctor_onclick(obj:Button, e:ClickEventInfo)
- {
- if(sysf_messageBox("중복되어 입력하지 않도록 주의해주십시오.\n\n진행하시겠습니까?", "Q999") == "6"){
- fUploadIICUExclusiveChargeDoctor();
- }
- }
- //29189825 이돈희 : 중환자실 당직 검증용으로 주, 의사별 전일, 반일, 대체 횟수 조회
- function grp_top_btn_check_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_cond = ds_cond;
- frmf_modal("SMMMI00940", "SMMMI00940", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- function grp_top_btn_deletereason_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_cond = ds_cond;
- frmf_modal("SMMMI00950", "SMMMI00950", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|