1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMB00800" position="absolute 0 0 1199 794" titletext="진료일정 상세조회(부분마감)" oninit="SMPMB00800_oninit" onload="SMPMB00800_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="진료일정 상세조회(부분마감)" class="tit_1" position="absolute 0 0 260 24"/>
- <Grid id="grd_timesche" class="datagrid1" taborder="0" binddataset="ds_main_ordsche_timeordsche_timeordschelist" useinputpanel="false" position="absolute 805 96 1193 761" anchor="top right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23" band="left"/>
- <Column size="50"/>
- <Column size="79"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="48"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="시간"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="예약구분"/>
- <Cell col="5" text="최초접수시간"/>
- <Cell col="6" text="일정생성구분"/>
- <Cell col="7" text="초재진구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:ordtm" mask="##:##" maskchar=" "/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" displaytype="combo" style="padding:0 0 0 3;" text="bind:rsrvflag" combodataset="ds_init_P0341list_P0341" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="5" text="bind:fstacptdt" mask="yyyy-mm-dd hh:nn:ss"/>
- <Cell col="6" text="bind:reglscheflag"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:fsexamflag" combodataset="ds_init_P0021list_P0021" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20" enable="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="import1" taborder="1" url="pam_pambaseinfomngtxp::SPPMB01001_병원달력.xfdl" visible="false" position="absolute 808 288 1196 759" anchor="top right" style="background:white;">
- <Layouts>
- <Layout width="388" height="471"/>
- <Layout/>
- </Layouts>
- </Div>
- <Div id="group2" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 24 1195 64">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1114 10 1170 32" onclick="group2_btn_search_onclick" anchor="top right"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1095 10 1101 32" anchor="top right"/>
- <Static id="caption1" text="진료일자 :" class="search_name" position="absolute 402 12 488 29"/>
- <Calendar id="ipt_todd" taborder="2" class="input_search" position="absolute 618 11 718 30"/>
- <Calendar id="ipt_fromdd" taborder="3" class="input_search" position="absolute 497 11 597 30"/>
- <Static id="caption3" text="진료과 :" class="search_name" position="absolute 17 12 90 29"/>
- <Combo id="cmb_orddept" taborder="4" innerdataset="@ds_init_orddeptcd_orddeptcdlist" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 94 11 294 30" onitemchanged="group2_cmb_orddept_onitemchanged"/>
- <Static id="caption10" text="~" position="absolute 600 11 615 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line5" class="line_10" position="absolute 121 215 800 221" anchor="left top right"/>
- <Static id="caption8" text="일별진료일정" class="tit_2" position="absolute 122 199 300 220"/>
- <Static id="caption2" text="일별예약현황" class="tit_2" position="absolute 121 75 242 96"/>
- <Shape id="line3" class="line_10" position="absolute 121 91 800 97" anchor="left top right"/>
- <Shape id="line12" class="line_10" position="absolute 0 91 115 97"/>
- <Static id="caption5" text="진료의사" class="tit_2" position="absolute 0 75 111 96"/>
- <Grid id="grd_orddr" class="datagrid2" taborder="3" binddataset="ds_init_orddrid_orddridlist" useinputpanel="false" position="absolute 0 96 115 761" autoenter="select" autofittype="col" cellsizingtype="col" oncellclick="grd_orddr_oncellclick" anchor="left top bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="81"/>
- <Column size="31"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="38" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="의사명"/>
- <Cell col="1" text="선택진료" wordwrap="word"/>
- <Cell col="2" text="진료과코드"/>
- <Cell col="3" text="진료의ID"/>
- </Band>
- <Band id="body">
- <Cell text="bind:nm"/>
- <Cell col="1" text="bind:sp"/>
- <Cell col="2" text="bind:dp"/>
- <Cell col="3" text="bind:cd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_rsrv" taborder="4" binddataset="ds_main_ordsche_timeordsche_dayrsrvstatlist" useinputpanel="false" position="absolute 121 96 800 190" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left top right">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="43"/>
- <Column size="35"/>
- <Column size="42"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="43"/>
- <Column size="35"/>
- <Column size="42"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="45"/>
- <Column size="35"/>
- <Column size="42"/>
- <Column size="35"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell colspan="6" text="초진" taborder="undefined"/>
- <Cell col="6" colspan="6" text="재진" taborder="undefined"/>
- <Cell col="12" colspan="6" text="총정원" taborder="undefined"/>
- <Cell row="1" colspan="5" text="예약" taborder="undefined"/>
- <Cell row="1" col="5" text="당일"/>
- <Cell row="1" col="6" colspan="5" text="예약" taborder="undefined"/>
- <Cell row="1" col="11" text="당일"/>
- <Cell row="1" col="12" colspan="5" text="예약" taborder="undefined"/>
- <Cell row="1" col="17" text="당일"/>
- <Cell row="2" text="진료"/>
- <Cell row="2" col="1" text="전화"/>
- <Cell row="2" col="2" text="인터넷"/>
- <Cell row="2" col="3" text="협력"/>
- <Cell row="2" col="4" text="총예약"/>
- <Cell row="2" col="5" text="총계"/>
- <Cell row="2" col="6" text="진료"/>
- <Cell row="2" col="7" text="전화"/>
- <Cell row="2" col="8" text="인터넷"/>
- <Cell row="2" col="9" text="협력"/>
- <Cell row="2" col="10" text="총예약"/>
- <Cell row="2" col="11" text="총계"/>
- <Cell row="2" col="12" text="진료"/>
- <Cell row="2" col="13" text="전화"/>
- <Cell row="2" col="14" text="인터넷"/>
- <Cell row="2" col="15" text="협력"/>
- <Cell row="2" col="16" text="총예약"/>
- <Cell row="2" col="17" text="총계"/>
- </Band>
- <Band id="body">
- <Cell text="bind:fstdeptrsrvcnt"/>
- <Cell col="1" text="bind:fsttelrsrvcnt"/>
- <Cell col="2" text="bind:fstinetrsrvcnt"/>
- <Cell col="3" text="bind:fstrqstrsrvcnt"/>
- <Cell col="4" text="bind:fsttotalrsrvcnt"/>
- <Cell col="5" text="bind:fsttdayacptcnt"/>
- <Cell col="6" text="bind:redeptrsrvcnt"/>
- <Cell col="7" text="bind:retelrsrvcnt"/>
- <Cell col="8" text="bind:reinetrsrvcnt"/>
- <Cell col="9" text="bind:rerqstrsrvcnt"/>
- <Cell col="10" text="bind:retotalrsrvcnt"/>
- <Cell col="11" text="bind:retdayacptcnt"/>
- <Cell col="12" text="bind:totaldeptrsrvcnt"/>
- <Cell col="13" text="bind:totaltelrsrvcnt"/>
- <Cell col="14" text="bind:totalinetrsrvcnt"/>
- <Cell col="15" text="bind:totalrqstrsrvcnt"/>
- <Cell col="16" text="bind:totaltotalrsrvcnt"/>
- <Cell col="17" text="bind:totaltdayacptcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" text="외래등록내역" class="tit_2" position="absolute 805 75 922 97" anchor="top right"/>
- <Shape id="line6" class="line_10" position="absolute 805 91 1193 97" anchor="top right"/>
- <Shape id="line11" class="line_10" position="absolute 121 485 800 491" anchor="left top right" onclick="line11_onclick"/>
- <Static id="caption14" text="진료일정 부분마감" class="tit_2" position="absolute 122 469 253 490"/>
- <Grid id="grd_daysche" taborder="5" binddataset="ds_main_ordsche_dayordsche_dayordschelist" useinputpanel="false" position="absolute 121 220 800 461" anchor="left top right" oncellclick="grd_daysche_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23" band="left"/>
- <Column size="70"/>
- <Column size="45"/>
- <Column size="60"/>
- <Column size="90"/>
- <Column size="35"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="35"/>
- <Column size="130"/>
- <Column size="154"/>
- <Column size="140"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="진료일자" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="요일" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="센터" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="하위부서" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="정규" taborder="undefined"/>
- <Cell col="6" colspan="2" text="오전" taborder="undefined"/>
- <Cell col="8" colspan="2" text="오후" taborder="undefined"/>
- <Cell col="10" colspan="2" text="총정원" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="정원 합계" taborder="undefined"/>
- <Cell col="13" colspan="2" text="예약" taborder="undefined"/>
- <Cell col="15" rowspan="2" text="예약합계" wordwrap="word" taborder="undefined"/>
- <Cell col="16" rowspan="2" text="마감 구분" taborder="undefined"/>
- <Cell col="17" rowspan="2" text="마감사유" taborder="undefined"/>
- <Cell col="18" rowspan="2" text="특이사항(요일별클리닉)" taborder="undefined"/>
- <Cell col="19" rowspan="2" text="요일별 비고" taborder="undefined"/>
- <Cell row="1" col="6" text="초진"/>
- <Cell row="1" col="7" text="재진"/>
- <Cell row="1" col="8" text="초진"/>
- <Cell row="1" col="9" text="재진"/>
- <Cell row="1" col="10" text="오전"/>
- <Cell row="1" col="11" text="오후"/>
- <Cell row="1" col="13" text="초진"/>
- <Cell row="1" col="14" text="재진"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:dwcd" combodataset="ds_init_P0033list_P0033" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="3" displaytype="combo" text="bind:centcd" combodataset="ds_init_centcd_centcdlist" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="4" displaytype="combo" text="bind:subdeptcd" combodataset="ds_init_subdeptcd_subdeptcdlist" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:reglscheflag" combodataset="ds_init_P0355list_P0355" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="6" text="bind:fstamcap"/>
- <Cell col="7" text="bind:reamcap"/>
- <Cell col="8" text="bind:fstpmcap"/>
- <Cell col="9" text="bind:repmcap"/>
- <Cell col="10" text="bind:totamcap"/>
- <Cell col="11" text="bind:totpmcap"/>
- <Cell col="12" text="bind:totcap"/>
- <Cell col="13" text="bind:otptfstrsrvcnt"/>
- <Cell col="14" text="bind:otptrersrvcnt"/>
- <Cell col="15" text="bind:totrsrvcnt"/>
- <Cell col="16" displaytype="combo" text="bind:holiflag" combodataset="ds_cmb_holiflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="17" displaytype="combo" text="bind:ordendresn" combodataset="ds_init_P0037list_P0037" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="18" text="bind:clincnm"/>
- <Cell col="19" text="bind:remfact"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_saveTimeScheEnd" taborder="6" text="일정마감저장" class="btn5" position="absolute 714 466 800 485" anchor="top right" onclick="btn_saveTimeScheEnd_onclick"/>
- <Button id="button1" taborder="7" text="일정달력" class="btn2" position="absolute 580 466 644 485" anchor="top right" onclick="button1_onclick"/>
- <Grid id="grd_ordscheend" taborder="8" binddataset="ds_main_ordsche_endsche_endschelist" useinputpanel="false" position="absolute 121 490 800 761" anchor="all" cellclickbound="cell" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="19"/>
- <Column size="35"/>
- <Column size="88"/>
- <Column size="80"/>
- <Column size="85"/>
- <Column size="80"/>
- <Column size="130"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined">
- <Cell/>
- <Cell row="1"/>
- </Cell>
- <Cell col="1" rowspan="2" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="선택" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="마감시작일" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="마감시작시간" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="마감종료일" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="마감종료시간" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="마감사유" taborder="undefined"/>
- <Cell col="8" colspan="3" text="단위시간별마감" taborder="undefined"/>
- <Cell col="11" text="진료과"/>
- <Cell col="12" text="진료의사"/>
- <Cell row="1" col="8" text="오전"/>
- <Cell row="1" col="9" text="오후"/>
- <Cell row="1" col="10" text="야간"/>
- <Cell row="1" col="11" text="진료과"/>
- <Cell row="1" col="12" text="진료의사"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="image"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'Y' ? 1 : 0"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:endfromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:endfromtm" mask="##:##" maskchar=" "/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:endtodd" calendardisplaynulltype="nulltext"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:endtotm" mask="##:##" maskchar=" "/>
- <Cell col="7" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:ordendresn" combodataset="ds_filter_P0037list_P0037" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:am" expr="expr:am == '1' ? 1 : 0"/>
- <Cell col="9" displaytype="checkbox" edittype="checkbox" text="bind:pm" expr="expr:pm == '1' ? 1 : 0"/>
- <Cell col="10" displaytype="checkbox" edittype="checkbox" text="bind:nigt" expr="expr:nigt == '1' ? 1 : 0"/>
- <Cell col="11" text="bind:orddeptcd"/>
- <Cell col="12" text="bind:orddrid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_endsearch" taborder="9" text="조회" class="btn2" position="absolute 479 466 521 485" anchor="top right" onclick="btn_endsearch_onclick"/>
- <Static id="caption21" text="마감일자 :" visible="false" position="absolute 227 465 286 484"/>
- <Static id="caption24" text="~" position="absolute 377 466 392 485" anchor="top right"/>
- <Calendar id="input1" taborder="11" class="input_default" position="absolute 391 466 476 485" anchor="top right" autoselect="true"/>
- <Calendar id="input2" taborder="10" class="input_default" position="absolute 289 466 374 485" anchor="top right" autoselect="true" autoskip="true"/>
- <Button id="btn_endCancel" taborder="12" text="마감취소" class="btn5" enable="false" position="absolute 647 466 711 485" anchor="top right" onclick="btn_endCancel_onclick"/>
- <Button id="button3" taborder="13" text="행삭제" class="btn2" position="absolute 524 466 577 485" anchor="top right" onclick="button3_onclick"/>
- <Button id="btn_close" taborder="14" text="닫기" class="btn4" visible="false" position="absolute 1125 297 1181 319" anchor="top right" onclick="btn_close_onclick"/>
- <Shape id="line32" class="line_6" position="absolute 0 762 1195 768" anchor="left right bottom"/>
- <Button id="btn_copyrow5" taborder="15" text="초기화" class="btn4" position="absolute 1127 767 1195 789" anchor="right bottom" onclick="btn_copyrow5_onclick"/>
- <Button id="btn_saveTimeScheEnd0" taborder="16" text="진료일정등록" class="btn3" position="absolute 106 767 218 789" anchor="left bottom" onclick="btn_saveTimeScheEnd0_onclick"/>
- <Button id="btn_saveTimeScheEnd7" taborder="17" text="휴진일정등록" class="btn3" position="absolute 0 767 104 789" anchor="left bottom" onclick="btn_saveTimeScheEnd7_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="caloption" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddeptcd_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ordsche_timeordsche_dayrsrvstatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fstdeptrsrvcnt" type="INT" size="256" sumtext="초진진료예약인원"/>
- <Column id="fsttelrsrvcnt" type="INT" size="256" sumtext="초진콜센터예약인원"/>
- <Column id="fstinetrsrvcnt" type="INT" size="256" sumtext="초진인터넷예약인원"/>
- <Column id="fstrqstrsrvcnt" type="INT" size="256" sumtext="초진의료협력예약인원"/>
- <Column id="fsttotalrsrvcnt" type="INT" size="256" sumtext="초진예약총인원"/>
- <Column id="fsttdayacptcnt" type="INT" size="256" sumtext="초진당일예약총인원"/>
- <Column id="redeptrsrvcnt" type="INT" size="256" sumtext="재진진료예약인원"/>
- <Column id="retelrsrvcnt" type="INT" size="256" sumtext="재진콜센터예약인원"/>
- <Column id="reinetrsrvcnt" type="INT" size="256" sumtext="재진인터넷예약인원"/>
- <Column id="rerqstrsrvcnt" type="INT" size="256" sumtext="재진의료협력예약인원"/>
- <Column id="retotalrsrvcnt" type="INT" size="256" sumtext="재진예약총인원"/>
- <Column id="retdayacptcnt" type="INT" size="256" sumtext="재진당일예약총인원"/>
- <Column id="totaldeptrsrvcnt" type="INT" size="256" sumtext="총진료예약인원"/>
- <Column id="totaltelrsrvcnt" type="INT" size="256" sumtext="총콜센터예약인원"/>
- <Column id="totalinetrsrvcnt" type="INT" size="256" sumtext="총인터넷예약인원"/>
- <Column id="totalrqstrsrvcnt" type="INT" size="256" sumtext="총의료협력예약인원"/>
- <Column id="totaltotalrsrvcnt" type="INT" size="256" sumtext="총예약총인원"/>
- <Column id="totaltdayacptcnt" type="INT" size="256" sumtext="총당일예약총인원"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_ordsche_dayordsche_dayordschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <!-- <column id="orddeptcd" type="string" desc="진료과코드" ref="dayordschelist.orddeptcd"/>
- <column id="orddrid" type="string" desc="진료의사코드" ref="dayordschelist.orddrid"/>
- <column id="orddd" type="string" desc="진료일자" ref="dayordschelist.orddd"/>
- <column id="dwcd" type="string" desc="요일코드" ref="dayordschelist.dwcd"/>
- <column id="reglscheflag" type="string" desc="정규일정여부" ref="dayordschelist.reglscheflag"/>
- <column id="clincnm" type="string" desc="정규일정여부" ref="dayordschelist.clincnm"/>
- <column id="remfact" type="string" desc="정규일정여부" ref="dayordschelist.remfact"/>
- <column id="fstexamcap" type="int" desc="초진정원" ref="dayordschelist.fstexamcap"/>
- <column id="fstexamrsrvcnt" type="int" desc="초진예약인원" ref="dayordschelist.fstexamrsrvcnt"/>
- <column id="reexamcap" type="int" desc="재진정원" ref="dayordschelist.reexamcap"/>
- <column id="reexamrsrvcnt" type="int" desc="재진예약인원" ref="dayordschelist.reexamrsrvcnt"/>
- <column id="totalexamcap" type="int" desc="총정원" ref="dayordschelist.totalexamcap"/>
- <column id="totalexamrsrvcnt" type="int" desc="총예약" ref="dayordschelist.totalexamrsrvcnt"/>
- <column id="examcapsum" type="int" desc="총정원" ref="dayordschelist.examcapsum"/>
- <column id="examrsrvcntsum" type="int" desc="총예약" ref="dayordschelist.examrsrvcntsum"/>
- <column id="ordendresn" type="string" desc="시간대별 진료마감" ref="dayordschelist.ordendresn"/> -->
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사코드"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="dwcd" type="STRING" size="256" sumtext="요일코드"/>
- <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
- <Column id="subdeptcd" type="STRING" size="256" sumtext="하위부서코드"/>
- <Column id="reglscheflag" type="STRING" size="256" sumtext="정규일정여부"/>
- <Column id="fstamcap" type="STRING" size="256" sumtext="오전초진"/>
- <Column id="reamcap" type="INT" size="256" sumtext="오전재진"/>
- <Column id="fstpmcap" type="INT" size="256" sumtext="오후초진"/>
- <Column id="repmcap" type="INT" size="256" sumtext="오후재진"/>
- <Column id="totamcap" type="INT" size="256" sumtext="오전총정원"/>
- <Column id="totpmcap" type="INT" size="256" sumtext="오후총정원"/>
- <Column id="totcap" type="INT" size="256" sumtext="총인원"/>
- <Column id="otptfstrsrvcnt" type="INT" size="256" sumtext="외래초진예약"/>
- <Column id="otptrersrvcnt" type="INT" size="256" sumtext="외래재진예약"/>
- <Column id="totrsrvcnt" type="INT" size="256" sumtext="예약총합계"/>
- <Column id="ordendresn" type="STRING" size="256" sumtext="마감사유"/>
- <Column id="holiflag" type="STRING" size="256" sumtext="마감구분"/>
- <Column id="clincnm" type="STRING" size="256" sumtext="특이사항"/>
- <Column id="remfact" type="STRING" size="256" sumtext="특이사항"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_ordsche_endsche_endschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_ordsche_endsche_endschelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="endfromdd" type="STRING" size="256" sumtext="마감시작일자"/>
- <Column id="endfromtm" type="STRING" size="256" sumtext="마감시작시간"/>
- <Column id="endtodd" type="STRING" size="256" sumtext="마감종료일자"/>
- <Column id="endtotm" type="STRING" size="256" sumtext="마감종료시간"/>
- <Column id="ordendresn" type="STRING" size="256" sumtext="마감사유"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사ID"/>
- <Column id="am" type="STRING" size="256"/>
- <Column id="pm" type="STRING" size="256"/>
- <Column id="nigt" type="STRING" size="256"/>
- <Column id="check" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_ordsche_timeordsche_timeordschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="ordtm" type="STRING" size="256" sumtext="진료시간"/>
- <Column id="examcap" type="INT" size="256" sumtext="등록정원"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="cretno" type="INT" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
- <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
- <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
- <Column id="fstacptdt" type="STRING" size="256" sumtext="최초접수시간"/>
- <Column id="reglscheflag" type="STRING" size="256" sumtext="일정생성구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0033list_P0033" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0037list_P0037" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_holiflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <item>
- <label>부분</label>
- <value>T</value>
- </item>
- <item>
- <label>휴진</label>
- <value>H</value>
- </item>
- <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">T</Col>
- </Row>
- <Row>
- <Col id="label">휴진</Col>
- <Col id="value">H</Col>
- </Row>
- </Rows>
- <item>
- <label>부분</label>
- <value>T</value>
- </item>
- <item>
- <label>휴진</label>
- <value>H</value>
- </item>
- </Dataset>
- <Dataset id="ds_init_P0355list_P0355" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_subdeptcd_subdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_centcd_centcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_filter_P0037list_P0037" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0341list_P0341" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="checksearch" type="STRING" size="256"/>
- <Column id="togglecalendar" 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="centcd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="subdeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="ordtm" type="STRING" size="256"/>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="endfromdd" type="STRING" size="256"/>
- <Column id="endtodd" type="STRING" size="256"/>
- <Column id="unittimeend" type="STRING" size="256"/>
- <Column id="rsrvflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="centcd"/>
- <Col id="orddeptcd"/>
- <Col id="subdeptcd"/>
- <Col id="orddrid"/>
- <Col id="orddd"/>
- <Col id="ordtm"/>
- <Col id="seqno"/>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="endfromdd"/>
- <Col id="endtodd"/>
- <Col id="unittimeend"/>
- <Col id="rsrvflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid_orddridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0021list_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_updatedata_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_orddept" propid="value" datasetid="ds_main" columnid="orddeptcd"/>
- <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
- <BindItem id="item3" compid="input2" propid="value" datasetid="ds_send" columnid="endfromdd"/>
- <BindItem id="item4" compid="input1" propid="value" datasetid="ds_send" columnid="endtodd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- var arErrorCode = new HashArray();
- function SMPMB00800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPMB00800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_orddr);
- grdf_initGrid(grd_rsrv);
- grdf_initGrid(grd_daysche);
- grdf_initGrid(grd_ordscheend);
- grdf_setRowTypeIcon(grd_ordscheend, 1);
- grdf_initGrid(grd_timesche);
-
- var arrParam = [{dsNm: "ds_init_P0033list_P0033", cdGrpId: "P0033"}
- ,{dsNm: "ds_init_P0037list_P0037", cdGrpId: "P0037"}
- ,{dsNm: "ds_init_P0316list_P0316", cdGrpId: "P0316"}
- ,{dsNm: "ds_init_P0355list_P0355", cdGrpId: "P0355"}
- ,{dsNm: "ds_init_P0341list_P0341", cdGrpId: "P0341"}
- ,{dsNm: "ds_init_P0021list_P0021", cdGrpId: "P0021"}]
- appf_getCodeList(arrParam, false);
-
- pamGetDeptCDDrIDList();
-
- ds_init_P0037list_P0037.filterstr = "detldesc == 'T'";
- ds_filter_P0037list_P0037.copyData(ds_init_P0037list_P0037, true);
- ds_init_P0037list_P0037.filterstr = "";
-
- ds_init_orddeptcd_orddeptcdlist.copyData(ds_init_orddeptcdlist);
- ds_init_centcd_centcdlist.copyData(ds_init_centcdlist);
-
- fInitialize();
-
- //일정달력을 보이지 않게 한다.
- import1.visible = false;
- ds_hidden.setColumn(0, "togglecalendar", 'F');
-
- var menu = frmf_getMenuParam();
- if( menu != 'S')
- {
- btn_saveTimeScheEnd7.enable = false;
- }
-
- //2007-10-03 이동식 추가
- if (frmf_checkOpener())
- {
- var orddeptcd = opener.frmf_getParameter("SMPMB00800_ORDDEPTCD");
- var orddrid = opener.frmf_getParameter("SMPMB00800_ORDDRID");
-
- if( !utlf_isNull(orddeptcd) && !utlf_isNull(orddrid))
- {
- //진료과 세팅
- ds_main.setColumn(0, "orddeptcd", orddeptcd);
- frmf_inputEnterKey("group2.cmb_orddept", "onitemchanged", new ItemChangeEventInfo );
-
- //진료의 세팅
- var cnt = this.objects[grd_orddr.binddataset].rowcount;
- for( var i = 0; i < cnt; i++)
- {
- if( orddrid == this.objects[grd_orddr.binddataset].getColumn(i, 3))
- {
- this.objects[grd_orddr.binddataset].rowposition = i;
- //일별진료일정 조회
- fGetDayOrdShce();
-
- break;
- }
- }
- }
- }
- }
- function fInitialize()
- {
- ds_main_ordsche_timeordsche_timeordschelist.clearData();
- ds_main_ordsche_dayordsche_dayordschelist.clearData();
- ds_main_ordsche_endsche_endschelist.clearData();
-
- //일정달력을 보이지 않게 한다.
- import1.visible = false;
- ds_hidden.setColumn(0, "togglecalendar", 'F');
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = utlf_getCurrentDate();
- ds_send.setColumn(0, "srchfromdd", curDate);
- ds_send.setColumn(0, "endfromdd", curDate);
- //현재일자 + 1달
- curDate = curDate.toDate().getAddDate(1,"M");
- var endOfMonth = curDate.getMonthDay();
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + endOfMonth;
-
- ds_send.setColumn(0, "srchtodd", nextDate);
- ds_send.setColumn(0, "endtodd", nextDate);
- }
- function fGetDayOrdShce()
- {
- var cur_row = this.objects[grd_orddr.binddataset].rowposition;
- if( cur_row >= 0)
- {
- ds_send.setColumn(0, "orddrid", this.objects[grd_orddr.binddataset].getColumn(cur_row, "cd"));
- ds_send.setColumn(0, "orddeptcd", this.objects[grd_orddr.binddataset].getColumn(cur_row, "dp"));
-
- var oParam = {};
- oParam.id = "TRPMB00801";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqGetDayOrdSche";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ordsche_dayordsche_dayordschelist=dayordschelist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMB00801";
- tranf_submit(oParam);
-
- ds_main_ordsche_dayordsche_dayordschelist.clearSelect();
- }
- else return;
- }
- function group2_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_init_orddridlist.filterstr = "dp == '"+obj.value+"'";
- ds_init_orddrid_orddridlist.copyData(ds_init_orddridlist, true);
- grd_orddr.binddataset = "ds_init_orddrid_orddridlist";
-
- ds_init_orddrid_orddridlist.rowposition = -1;
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- //일별진료일정 조회
- fGetDayOrdShce();
- }
- function grd_orddr_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //일별진료일정 조회
- fGetDayOrdShce();
- //일정달력을 보이게 한다.
- import1.visible = true;
- btn_close.visible = true;
- //기존 조회한 마감정보를 삭제한다. - 이미 마감된 정보와 새로 추가할 마감정보가 섞이지 않게 하기 위해
- ds_main_ordsche_endsche_endschelist.clearData();
- //달력 visible 상태값을 저장한다.
- ds_hidden.setColumn(0, "togglecalendar", 'T');
- //일정마감 정보를 조회한 것이 아니란 상택값 저장
- ds_hidden.setColumn(0, "checksearch", 'F');
- //달력정보를 조회한다.
- fGetCalendarData();
- }
- function fGetCalendarData()
- {
- var cur_row = ds_init_orddrid_orddridlist.rowposition;
- if( cur_row >= 0)
- {
- ds_send.setColumn(0, "orddrid", ds_init_orddrid_orddridlist.getColumn(cur_row, "cd"));
- ds_send.setColumn(0, "orddeptcd", ds_init_orddrid_orddridlist.getColumn(cur_row, "dp"));
- ds_send.setColumn(0, "subdeptcd", "X");
-
- dsf_makeValue(ds_send, "date", "string", import1.ds_hidden_calendar.getColumn(0, "year") + import1.ds_hidden_calendar.getColumn(0, "month"));
-
- dsf_createDs("ds_main_result_orddrfild_orddrfildlist");
- dsf_createDs("ds_main_result_calendarinfo_calendarinfolist");
- // model.makeNode("/root/main/result/orddrfild");
- // model.makeNode("/root/main/result/calendarinfo");
-
- var isMonth = import1.ds_hidden_calendar.getColumn(0, "month");
- var isYear = import1.ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
-
- //진료의사 정보가 없을 경우
- if( utlf_isNull(ds_send.getColumn(0, "orddrid")))
- {
- import1.setCalendar(isDate);
- }
- else
- {
- var oParam = {};
- oParam.id = "TRPMO00203";
- oParam.service = "opatmngtapp.OutRgst";
- oParam.method = "reqGetDrFildAndCalInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_result_orddrfild_orddrfildlist=orddrfildlist "
- +"ds_=centcdckinfoyn ds_=centcdlist "
- +"ds_main_result_calendarinfo_calendarinfolist=calendarinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMO00203";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRPMO00203") > -1)
- {
- if( ds_main_result_calendarinfo_calendarinfolist.rowcount > 0 )
- {
- import1.ds_hidden_calendarinfo_calendarinfolist.copyData(ds_main_result_calendarinfo_calendarinfolist);
- import1.setCalendar2(isDate);
- }
- else
- {
- import1.setCalendar(isDate);
- }
- }
- }
-
- //model.removenode("/root/send/reglscheyn");
- }
- }
- function cf_TRPMO00203(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- //달력을 클릭(선택) 했을 때
- function fClickOnCalendar()
- {
- if( import1.ds_hidden_calendar_weeklist_list.rowposition < 0)
- {
- return false;
- }
- var cur_row = ds_init_orddrid_orddridlist.rowposition;
- if( cur_row >= 0)
- {
- var calRow = import1.ds_hidden_calendar_weeklist_list.rowposition;
- var calCol = import1.grd_calendar.currentcol;
-
- //선택된 셀 표시
- import1.setCellColor(calRow, calCol);
- calCol = calCol % 7;
-
- var isDay = import1.ds_hidden_calendar_weeklist_list.getColumn(calRow, calCol);
- var memo = import1.ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(isDay-1), "ampmflag");
- var ordendresn = import1.ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(isDay-1), "ordendresn");
-
- if( !utlf_isNull(isDay) && !utlf_isNull(memo))
- {
- if( isDay.length == 1 ) isDay = "0" + isDay;
- var dd = ( (import1.ds_hidden_calendar.getColumn(0, "year")).concat(import1.ds_hidden_calendar.getColumn(0, "month"))).concat(isDay);
-
- //마감일자 중복체크
- for( var i = 0; i < ds_main_ordsche_endsche_endschelist.rowcount; i++)
- {
- //마감시작일과 마감종료일 안의 일자가 선택되면 메세지를 보여주고 새로운 일정마감정보를 추가하지 않는다.
- if( dd >= ds_main_ordsche_endsche_endschelist.getColumn(i, "endfromdd") && dd <= ds_main_ordsche_endsche_endschelist.getColumn(i, "endtodd"))
- {
- sysf_messageBox(utlf_transNullToEmpty(dd)+ "은 미리 입력하신 " + parseInt(i+1) + " 번째 진료일정마감 기간에 중복됩니다.", "E999");
- return false;
- }
- }
-
- var addRow = ds_main_ordsche_endsche_endschelist.addRow();
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "endfromdd", dd); //마감시작일
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "endtodd", dd); //마감종료일
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "ordendresn", ordendresn);//마감사유
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "am", "0") //오전
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "pm", "0"); //오후
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "nigt", "0"); //야간
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "orddeptcd", ds_init_orddrid_orddridlist.getColumn(cur_row, "dp")); //진료과CD
- ds_main_ordsche_endsche_endschelist.setColumn(addRow, "orddrid", ds_init_orddrid_orddridlist.getColumn(cur_row, "cd")); //진료의사ID
- // ds_main_ordsche_endsche_endschelist.updatecontrol = false;
- // ds_main_ordsche_endsche_endschelist.setRowType(addRow, "");
- // ds_main_ordsche_endsche_endschelist.updatecontrol = true;
-
- ds_main_ordsche_endsche_endschelist.rowposition = addRow;
- grd_ordscheend.setFocus();
- }
- }
- else
- {
- sysf_messageBox("진료과코드와 진료의사 ID를 얻어 올 수", "I004");
- }
- }
- function grd_daysche_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //2008-05-21 이동식 추가
- //일정달력을 보이지 않게한다.
- import1.visible = false;
- btn_close.visible = false;
- //달력 visible 상태값을 저장한다.
- ds_hidden.setColumn(0, "togglecalendar", 'F');
- //END..
-
- //function call
- fGetTimeOrdSche();
- }
- function fGetTimeOrdSche()
- {
- var cur_row1 = ds_main_ordsche_dayordsche_dayordschelist.rowposition;
- ds_send.setColumn(0, "rsrvflag", 'K');
- if( cur_row1 >= 0 )
- {
- ds_send.setColumn(0, "orddd", ds_main_ordsche_dayordsche_dayordschelist.getColumn(cur_row1, "orddd"));
- ds_send.setColumn(0, "orddrid", ds_main_ordsche_dayordsche_dayordschelist.getColumn(cur_row1, "orddrid"));
- ds_send.setColumn(0, "centcd", ds_main_ordsche_dayordsche_dayordschelist.getColumn(cur_row1, "centcd"));
- ds_send.setColumn(0, "orddeptcd", ds_main_ordsche_dayordsche_dayordschelist.getColumn(cur_row1, "orddeptcd"));
- ds_send.setColumn(0, "subdeptcd", ds_main_ordsche_dayordsche_dayordschelist.getColumn(cur_row1, "subdeptcd"));
-
- var oParam = {};
- oParam.id = "TRPMB00802";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqGetTimeOrdSche";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ordsche_timeordsche_timeordschelist=timeordschelist ds_main_ordsche_timeordsche_dayrsrvstatlist=dayrsrvstatlist";
- oParam.async = false;
- oParam.callback = "cf_TRPMB00802";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRPMB00802") > -1)
- {
- grdf_setRowStyle(grd_timesche, "1^1^1", "S", "reglscheflag");
- }
- }
- else return;
- }
- function cf_TRPMB00802(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_endsearch_onclick(obj:Button, e:ClickEventInfo)
- {
- //기존 조회한 마감정보를 삭제한다. - 이미 마감된 정보와 새로 추가할 마감정보가 섞이지 않게 하기 위해
- ds_main_ordsche_endsche_endschelist.clearData();
-
- var cur_row = this.objects[grd_orddr.binddataset].rowposition;
-
- if( cur_row >= 0)
- {
- ds_send_updatedata_datalist.clearData();
- ds_send.setColumn(0, "orddrid", ds_init_orddrid_orddridlist.getColumn(cur_row, "cd"));
- ds_send.setColumn(0, "orddeptcd", ds_init_orddrid_orddridlist.getColumn(cur_row, "dp"));
-
- var oParam = {};
- oParam.id = "TXPMB00806";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqGetOrdScheEnd";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ordsche_endsche_endschelist=endschelist";
- oParam.async = false;
- oParam.callback = "cf_TXPMB00806";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXPMB00806") > -1)
- {
- if(utlf_isNull(ds_main_ordsche_endsche_endschelist.getColumnInfo("check")))
- {
- ds_main_ordsche_endsche_endschelist.addColumn("check", "string");
- }
- if(utlf_isNull(ds_main_ordsche_endsche_endschelist.getColumnInfo("am")))
- {
- ds_main_ordsche_endsche_endschelist.addColumn("am", "string");
- }
- if(utlf_isNull(ds_main_ordsche_endsche_endschelist.getColumnInfo("pm")))
- {
- ds_main_ordsche_endsche_endschelist.addColumn("pm", "string");
- }
- if(utlf_isNull(ds_main_ordsche_endsche_endschelist.getColumnInfo("nigt")))
- {
- ds_main_ordsche_endsche_endschelist.addColumn("nigt", "string");
- }
-
- ds_hidden.setColumn(0, "checksearch", 'T');
- //마감취소 버튼을 활성화 시킨다.
- btn_endCancel.enable = true;
- }
- }
- else
- {
- sysf_messageBox("진료과코드와 진료의사 ID를 얻어 올 수", "I004");
- }
- }
- function cf_TXPMB00806(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = ds_main_ordsche_endsche_endschelist.rowposition;
-
- if( cur_row >= 0 )
- {
- ds_main_ordsche_endsche_endschelist.deleteRow(cur_row);
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- //마감취소 버튼을 비활성화 시킨다.
- btn_endCancel.enable = false;
-
- if( String(ds_hidden.getColumn(0, "togglecalendar")).toUpperCase() == 'F' )
- {
- //일정달력을 보이게 한다.
- import1.visible = true;
- btn_close.visible = true;
-
- //기존 조회한 마감정보를 삭제한다. - 이미 마감된 정보와 새로 추가할 마감정보가 섞이지 않게 하기 위해
- ds_main_ordsche_endsche_endschelist.clearData();
-
- //달력 visible 상태값을 저장한다.
- ds_hidden.setColumn(0, "togglecalendar", 'T');
-
- //일정마감 정보를 조회한 것이 아니란 상택값 저장
- ds_hidden.setColumn(0, "checksearch", 'F');
-
- //달력정보를 조회한다.
- fGetCalendarData();
- }
- else
- {
- //일정달력을 보이지 않게한다.
- import1.visible = false;
- btn_close.visible = false;
- //기존 조회한 마감정보를 삭제한다. - 이미 마감된 정보와 새로 추가할 마감정보가 섞이지 않게 하기 위해
- ds_main_ordsche_endsche_endschelist.clearData();
-
- //달력 visible 상태값을 저장한다.
- ds_hidden.setColumn(0, "togglecalendar", 'F');
- }
- }
- function btn_endCancel_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_ordsche_endsche_endschelist.rowcount;
- var cur_row = ds_main_ordsche_endsche_endschelist.rowposition;
- var cnt = "0";
-
- for( var i = 0; i < rows; i++)
- {
- if(ds_main_ordsche_endsche_endschelist.getColumn(i, "check") == 'Y' )
- {
- ds_main_ordsche_endsche_endschelist.updatecontrol = false;
- ds_main_ordsche_endsche_endschelist.setRowType(i, "d");
- ds_main_ordsche_endsche_endschelist.updatecontrol = true;
- cnt = parseInt(cnt) + parseInt("1");
- }
- }
-
- if(cnt <= "0")
- {
- sysf_messageBox("마감취소할 항목이 선택되지 않았습니다. 확인 후 다시 시도해 주세요", "E999", "");
- return;
- }
-
- if(sysf_messageBox("일정마감정보를 삭제 하시겠습니까?", "Q999") != 6) return;
- var updategrid = grdf_getGridUpdateData(grd_ordscheend);
- grdf_setStatusColumn(updategrid, "status");
- ds_send_updatedata_datalist.copyData(updategrid, true);
- var oParam = {};
- oParam.id = "TXPMB00805";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqSetOrdScheEnd";
- oParam.inds = "req=ds_send_updatedata_datalist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPMB00805";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXPMB00805") > -1)
- {
- //일별진료일정 재조회
- fGetDayOrdShce();
-
- //달력 재조회
- fGetCalendarData();
-
- //시간별진료일정 삭제
- ds_main_ordsche_timeordsche_timeordschelist.clearData();
- //일정마감정보 삭제
- ds_main_ordsche_endsche_endschelist.clearData();
- btn_endCancel.enable = false;
- }
- }
- function cf_TXPMB00805(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function ds_main_ordsche_endsche_endschelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check")
- {
- obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "am")
- {
- obj.setColumn(e.row, "am", (e.newvalue == "1" || e.newvalue == 1) ? "1" : "0");
- }
- if(e.columnid == "pm")
- {
- obj.setColumn(e.row, "pm", (e.newvalue == "1" || e.newvalue == 1) ? "1" : "0");
- }
- if(e.columnid == "nigt")
- {
- obj.setColumn(e.row, "nigt", (e.newvalue == "1" || e.newvalue == 1) ? "1" : "0");
- }
- }
- function btn_saveTimeScheEnd_onclick(obj:Button, e:ClickEventInfo)
- {
- var rowCount = ds_main_ordsche_endsche_endschelist.rowcount;
- if( rowCount > 0 )
- {
- var rows = ds_main_ordsche_endsche_endschelist.rowcount;
- var cnt = "0";
-
- for( var i = 0; i < rows; i++)
- {
- if(ds_main_ordsche_endsche_endschelist.getColumn(i, "check") == 'Y' )
- {
- cnt = parseInt(cnt) + parseInt("1");
- }
- }
-
- if(cnt <= "0")
- {
- sysf_messageBox(" 저장할 항목이 선택되지 않았습니다. 확인 후 다시 시도해 주세요", "E999", "");
- return;
- }
-
- if( fcheckOrdScheEnd(rowCount) )
- {
- if(sysf_messageBox("일정마감정보를 저장/수정 하시겠습니까?", "Q999") != 6) return;
-
- var updategrid = grdf_getGridUpdateData(grd_ordscheend);
- grdf_setStatusColumn(updategrid, "status");
- ds_send_updatedata_datalist.copyData(updategrid, true);
-
- var oParam = {};
- oParam.id = "TXPMB00805";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqSetOrdScheEnd";
- oParam.inds = "req=ds_send_updatedata_datalist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPMB00805";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXPMB00805") > -1)
- {
- //진료일정부분마감 초기화
- ds_main_ordsche_endsche_endschelist.clearData();
- //일별진료일정 재조회
- fGetDayOrdShce();
-
- //시간별진료일정 삭제
- ds_main_ordsche_timeordsche_timeordschelist.clearData();
-
- //달력정보를 조회한다.
- fGetCalendarData();
- }
- }
- }
- else
- {
- sysf_messageBox("일정마감/수정할 내역이 없습니다.", "E999", "");
- }
- }
- function fcheckOrdScheEnd( rowCount )
- {
- var ordendresn = '';
- var endfromdd = '';
- var endtodd = '';
- var endfromtm = '';
- var endtotm = '';
- var am = '';
- var pm = '';
- var nigt = '';
-
- for( var i = 0; i < rowCount; i++)
- {
- if(ds_main_ordsche_endsche_endschelist.getColumn(i, "check") == 'Y' )
- {
- ordendresn = ds_main_ordsche_endsche_endschelist.getColumn(i, "ordendresn");
- endfromdd = ds_main_ordsche_endsche_endschelist.getColumn(i, "endfromdd");
- endtodd = ds_main_ordsche_endsche_endschelist.getColumn(i, "endtodd");
- endfromtm = ds_main_ordsche_endsche_endschelist.getColumn(i, "endfromtm");
- endtotm = ds_main_ordsche_endsche_endschelist.getColumn(i, "endtotm");
- am = ds_main_ordsche_endsche_endschelist.getColumn(i, "am");
- pm = ds_main_ordsche_endsche_endschelist.getColumn(i, "pm");
- nigt = ds_main_ordsche_endsche_endschelist.getColumn(i, "nigt");
-
- if( utlf_isNull(ordendresn) || ordendresn == '-' || ordendresn == '00' || ordendresn == '0')
- {
- sysf_messageBox( parseInt(i+1) + " 번째 줄에 마감사유를 입력하지 않았습니다.", "E999", "");
- return false;
- }
- else if( ! utlf_isValidDateTime(endfromdd, "YYYYMMDD") )
- {
-
- sysf_messageBox( parseInt(i+1) + " 번째 줄의 마감시작일을 입력하지 않았거나 올바른 날짜 형식이 아닙니다.", "E999", "");
- return false;
- }
- else if( ! utlf_isValidDateTime(endtodd, "YYYYMMDD") )
- {
-
- sysf_messageBox( parseInt(i+1) + " 번째 줄의 마감종료일을 입력하지 않았거나 올바른 날짜 형식이 아닙니다.", "E999", "");
- return false;
- }
- else if( utlf_isNull(endfromtm) && utlf_isNull(endtotm) && am == '0' && pm == '0' && nigt =='0' )
- {
-
- sysf_messageBox(parseInt(i+1) + " 번째 줄의 마감시간이 입력되지 않았습니다.", "E999", "");
- return false;
- }
- else if( ! utlf_isValidDateTime(endfromtm, "hhmm") && am == '0' && pm == '0' && nigt =='0')
- {
-
- sysf_messageBox( parseInt(i+1) + " 번째 줄의 마감시작시간을 입력하지 않았거나 올바른 시간 형식이 아닙니다.", "E999", "");
- return false;
- }
- else if( ! utlf_isValidDateTime(endtotm, "hhmm") && am == '0' && pm == '0' && nigt =='0')
- {
-
- sysf_messageBox( parseInt(i+1) + " 번째 줄의 마감종료시간을 입력하지 않았거나 올바른 시간 형식이 아닙니다.", "E999", "");
- return false;
- }
- else if( am == '1' || pm == '1' || nigt =='1')
- {
- ds_main_ordsche_endsche_endschelist.setColumn(i, "endfromtm", '');
- ds_main_ordsche_endsche_endschelist.setColumn(i, "endtotm", '');
- }
- }
- }
- return true;
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- //일정달력을 보이지 않게한다.
- import1.visible = false;
- btn_close.visible = false;
-
- //기존 조회한 마감정보를 삭제한다. - 이미 마감된 정보와 새로 추가할 마감정보가 섞이지 않게 하기 위해
- ds_main_ordsche_endsche_endschelist.clearData();
-
- //달력 visible 상태값을 저장한다.
- ds_hidden.setColumn(0, "togglecalendar", 'F');
- }
- function btn_copyrow5_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function btn_saveTimeScheEnd7_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMPMB02500", "SMPMB02500", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_saveTimeScheEnd0_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMPMB00700", "SMPMB00700", "", "", "", "", "", "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|