1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMND03200" position="absolute 0 0 1042 781" titletext="인공신장실 의사지정" onload="SMMND03200_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 1037 25" style="" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 153 23" style="" text="인공신장실 의사지정" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_pdhist" scrollbars="autoboth" position="absolute 0 403 1042 759" style="" anchor="all">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 21 620 25" anchor="left top right"/>
- <Grid id="grd_pddrapnthistinfo" binddataset="ds_main_pddrapnthistlist_pddrapnthistinfo" position="absolute 0 25 620 352" style="" oncelldblclick="grp_pdhist_grd_pddrapnthistinfo_oncelldblclick" anchor="all" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="90"/>
- <Column size="89"/>
- <Column size="89"/>
- <Column size="89"/>
- <Column size="101"/>
- <Column size="48"/>
- <Column size="71"/>
- <Column size="0"/>
- <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 text="적용일"/>
- <Cell col="1" text="적용일"/>
- <Cell col="2" text="지정의사"/>
- <Cell col="3" text="지정의사"/>
- <Cell col="4" rowspan="2" colspan="2" text="저장일시" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="저장자" taborder="undefined"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9" text="|From"/>
- <Cell col="10" text="To"/>
- <Cell col="11" text="오전"/>
- <Cell col="12" text="오후"/>
- <Cell col="13" text="저장일시"/>
- <Cell col="14" text="저장일시"/>
- <Cell col="15" text="저장자"/>
- <Cell row="1" text="From"/>
- <Cell row="1" col="1" text="To"/>
- <Cell row="1" col="2" text="오전"/>
- <Cell row="1" col="3" text="오후"/>
- <Cell row="1" col="7"/>
- <Cell row="1" col="8"/>
- <Cell row="1" col="9"/>
- <Cell row="1" col="10"/>
- <Cell row="1" col="11"/>
- <Cell row="1" col="12"/>
- <Cell row="1" col="13"/>
- <Cell row="1" col="14"/>
- <Cell row="1" col="15"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:appdd" calendardisplaynulltype="nulltext"/>
- <Cell col="1" displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:apptodd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:fstdrapntnm"/>
- <Cell col="3" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:scnddrapntnm"/>
- <Cell col="4" displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:cretdd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" displaytype="text" style="align:center middle;background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:crettm" mask="##:##" maskchar=" " calendardisplaynulltype="nulltext"/>
- <Cell col="6" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:usernm"/>
- <Cell col="7" text="bind:fstdrapntid"/>
- <Cell col="8" text="bind:scnddrapntid"/>
- <Cell col="9" text="bind:lastdrapntid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" class="tit_2" position="absolute 0 4 150 20" style="align: middle;" text="PD 의사지정 History" anchor="default"/>
- <Static id="caption1" class="tit_2" position="absolute 625 4 758 20" style="align: middle;" text="PD 예약의사 지정" anchor="top right"/>
- <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 625 21 1042 25" anchor="top right"/>
- <Static id="caption15" class="cell_1" position="absolute 625 25 729 48" style="align:center middle;" text="생성일시" anchor="top right"/>
- <Button id="btn_pdclock" class="icon_clock" position="absolute 869 26 888 45" style="" text="" onclick="grp_pdhist_btn_pdclock_onclick" anchor="top right"/>
- <Calendar id="ipt_pdappfromdd" class="input_default" position="absolute 731 52 821 71" style="align:center ;" anchor="top right" dateformat="yyyy-MM-dd" value="null" onchanged="grp_pdhist_ipt_pdappfromdd_onchanged" autoselect="true"/>
- <Static id="caption3" class="cell_1" position="absolute 625 51 729 74" style="align:center middle;" text="적용기간" anchor="top right"/>
- <Shape id="line3" class="line_2" linetype="horizontal" position="absolute 625 49 1041 52" style="" anchor="top right"/>
- <Calendar id="ipt_pdapptodd" class="input_default" position="absolute 845 52 935 71" style="align:center ;" anchor="top right" dateformat="yyyy-MM-dd" value="null" onchanged="grp_pdhist_ipt_pdapptodd_onchanged" autoselect="true"/>
- <Static id="caption4" position="absolute 827 53 847 73" style="font:,,bold;" text="~" anchor="top right"/>
- <Static id="caption5" class="cell_1" position="absolute 625 77 729 148" style="align:center middle;" text="지정의사" anchor="top right"/>
- <Shape id="line4" class="line_2" linetype="horizontal" position="absolute 625 75 1042 78" style="" anchor="top right"/>
- <Shape id="line6" class="line_3" linetype="horizontal" position="absolute 625 149 1039 152" style="" anchor="top right"/>
- <MaskEdit id="ipt_pdalldrapntid" class="input_default" mask="9999999999" position="absolute 836 80 921 99" style="" anchor="top right" onkeyup="grp_pdhist_ipt_pdalldrapntid_onkeyup" onkillfocus="grp_pdhist_ipt_pdalldrapntid_onkillfocus" autoselect="true"/>
- <Edit id="opt_pdalldrapntnm" class="output" position="absolute 946 80 1030 99" style="" anchor="top right" readonly="true" autoselect="true"/>
- <Button id="btn_pdsrchalldrapnt" class="icon_search" position="absolute 925 80 941 96" style="" text="" onclick="grp_pdhist_btn_pdsrchalldrapnt_onclick" anchor="top right"/>
- <Button id="btn_pdsave" class="btn5" position="absolute 1000 0 1042 20" style="" text="저장" onclick="grp_pdhist_btn_pdsave_onclick" anchor="top right"/>
- <Button id="btn_pdinit" class="btn2" position="absolute 945 0 998 20" style="" text="초기화" onclick="grp_pdhist_btn_pdinit_onclick" anchor="top right"/>
- <MaskEdit id="ipt_pdcrettm" class="input_default" mask="##:##" position="absolute 824 26 866 45" style="" anchor="top right" onkeyup="grp_pdhist_ipt_pdcrettm_onkeyup" onkillfocus="grp_pdhist_ipt_pdcrettm_onkillfocus" type="string" autoselect="true"/>
- <Calendar id="ipt_pdcretdd" class="input_default" position="absolute 731 26 821 45" style="align:center ;" anchor="top right" dateformat="yyyy-MM-dd" value="null" onchanged="grp_pdhist_ipt_pdcretdd_onchanged" autoselect="true"/>
- <Shape id="roundrect4" anchor="top right" class="roundrect_example" type="roundrectangle" position="absolute 625 151 1038 201" style=""/>
- <Static id="caption26" class="hand" position="absolute 626 154 1035 199" style="align: middle;" text="기존의 예약의사정보를 강제로 종료한 후 새로 생성해야 할 경우, 적용종료일자를 기존 적용종료일자와 일치시켜 주시기 바랍니다." anchor="top right"/>
- <Button id="btn_pdsrchfstdrapnt" class="icon_search" position="absolute 925 104 941 120" style="" text="" onclick="grp_pdhist_btn_pdsrchfstdrapnt_onclick" anchor="top right"/>
- <MaskEdit id="ipt_pdfstdrapntid" class="input_default" mask="9999999999" position="absolute 836 104 921 123" style="" anchor="top right" onkeyup="grp_pdhist_ipt_pdfstdrapntid_onkeyup" onkillfocus="grp_pdhist_ipt_pdfstdrapntid_onkillfocus" autoselect="true"/>
- <Edit id="opt_pdfstdrapntnm" class="output_fix" position="absolute 946 104 1030 123" style="" anchor="top right" readonly="true" autoselect="true"/>
- <Button id="btn_pdsrchscnddrapnt" class="icon_search" position="absolute 925 128 941 144" style="" text="" onclick="grp_pdhist_btn_pdsrchscnddrapnt_onclick" anchor="top right"/>
- <MaskEdit id="ipt_pdscnddrapntid" class="input_default" mask="9999999999" position="absolute 836 128 921 147" style="" anchor="top right" onkeyup="grp_pdhist_ipt_pdscnddrapntid_onkeyup" onkillfocus="grp_pdhist_ipt_pdscnddrapntid_onkillfocus" autoselect="true"/>
- <Edit id="opt_pdscnddrapntnm" class="output_fix" position="absolute 946 128 1030 147" style="" anchor="top right" readonly="true" autoselect="true"/>
- <Shape id="line7" class="line_2" linetype="horizontal" position="absolute 795 125 1038 128" style="" anchor="top right"/>
- <Shape id="line8" class="line_2" linetype="horizontal" position="absolute 730 101 1038 104" style="" anchor="top right"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_pdcretopt" position="absolute 730 77 787 130" style="" onitemchanged="grp_pdhist_rdo_pdcretopt_onitemchanged" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">시간별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption28" position="absolute 799 105 836 125" style="" text="오전 :" anchor="top right"/>
- <Static id="caption29" position="absolute 799 129 836 149" style="" text="오후 :" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_hdhist" scrollbars="autoboth" position="absolute 0 54 1042 399" style="" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line9" class="line_10" linetype="horizontal" position="absolute 0 26 620 30" anchor="left top right"/>
- <Grid id="grd_hddrapnthistinfo" binddataset="ds_main_hddrapnthistlist_hddrapnthistinfo" position="absolute 0 30 620 345" style="" oncelldblclick="grp_hdhist_grd_hddrapnthistinfo_oncelldblclick" anchor="left top right" cellsizingtype="col" taborder="24">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="81"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="0"/>
- <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 col="1" colspan="2" text="적용일" taborder="undefined"/>
- <Cell col="3" colspan="5" taborder="undefined">
- <Cell colspan="4" text="지정의사" taborder="undefined"/>
- <Cell col="4"/>
- </Cell>
- <Cell col="8" rowspan="2" colspan="2" text="저장일시" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="저장자" taborder="undefined"/>
- <Cell col="11" text="지정의사ID"/>
- <Cell col="12" text="지정의사ID"/>
- <Cell col="13" text="지정의사ID|From"/>
- <Cell col="14" text="To"/>
- <Cell col="15" text="1Shift"/>
- <Cell col="16" text="2Shift"/>
- <Cell col="17" text="3Shift"/>
- <Cell col="18" text="응급Shift"/>
- <Cell col="19" text="저장일시"/>
- <Cell col="20" text="저장일시"/>
- <Cell col="21" text="저장자"/>
- <Cell col="22" text="1Shift"/>
- <Cell col="23" text="2Shift"/>
- <Cell col="24" text="3Shift"/>
- <Cell row="1" col="1" text="From"/>
- <Cell row="1" col="2" text="To"/>
- <Cell row="1" col="3" text="1Shift"/>
- <Cell row="1" col="4" text="2Shift"/>
- <Cell row="1" col="5" text="3Shift"/>
- <Cell row="1" col="6" text="응급Shift"/>
- <Cell row="1" col="7" text="소아Shift"/>
- <Cell row="1" col="11"/>
- <Cell row="1" col="12"/>
- <Cell row="1" col="13"/>
- <Cell row="1" col="14"/>
- <Cell row="1" col="15"/>
- <Cell row="1" col="16"/>
- <Cell row="1" col="17"/>
- <Cell row="1" col="18"/>
- <Cell row="1" col="19"/>
- <Cell row="1" col="20"/>
- <Cell row="1" col="21"/>
- <Cell row="1" col="22"/>
- <Cell row="1" col="23"/>
- <Cell row="1" col="24"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:appdd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:apptodd" calendardisplaynulltype="nulltext"/>
- <Cell col="3" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:fstdrapntnm"/>
- <Cell col="4" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:scnddrapntnm"/>
- <Cell col="5" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:lastdrapntnm"/>
- <Cell col="6" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:erdrapntnm"/>
- <Cell col="7" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:peddrapntnm"/>
- <Cell col="8" displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:cretdd" calendardisplaynulltype="nulltext"/>
- <Cell col="9" displaytype="date" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:crettm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
- <Cell col="10" style="background:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));background2:EXPR(utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff'));" text="bind:usernm"/>
- <Cell col="11" text="bind:fstdrapntid"/>
- <Cell col="12" text="bind:scnddrapntid"/>
- <Cell col="13" text="bind:lastdrapntid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption12" class="tit_2" position="absolute 0 8 152 24" style="align: middle;" text="HD 의사지정 History" anchor="default"/>
- <Static id="caption13" class="tit_2" position="absolute 625 8 756 24" style="align: middle;" text="HD 예약의사 지정" anchor="top right"/>
- <Shape id="line10" class="line_10" linetype="horizontal" position="absolute 625 26 1042 30" anchor="top right"/>
- <Button id="btn_clock" class="icon_clock" position="absolute 868 31 887 50" style="" text="" onclick="grp_hdhist_btn_clock_onclick" anchor="top right" taborder="23"/>
- <Calendar id="ipt_appfromdd" class="input_default" position="absolute 731 55 821 74" style="align:center ;" anchor="top right" dateformat="yyyy-MM-dd" value="null" onchanged="grp_hdhist_ipt_appfromdd_onchanged" autoselect="true" taborder="22"/>
- <Shape id="line11" class="line_2" linetype="horizontal" position="absolute 625 52 1042 55" style="" anchor="top right"/>
- <Calendar id="ipt_apptodd" class="input_default" position="absolute 841 55 931 74" style="align:center ;" anchor="top right" dateformat="yyyy-MM-dd" value="null" onchanged="grp_hdhist_ipt_apptodd_onchanged" autoselect="true" taborder="21"/>
- <Static id="caption17" position="absolute 827 55 847 74" style="font:,,bold;" text="~" anchor="top right"/>
- <Static id="caption18" class="cell_1" position="absolute 625 79 729 210" style="align:center middle;" text="지정의사" anchor="top right"/>
- <Shape id="line12" class="line_2" linetype="horizontal" position="absolute 625 76 1041 79" style="" anchor="top right"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_cretopt" position="absolute 730 74 794 123" style="" onitemchanged="grp_hdhist_rdo_cretopt_onitemchanged" anchor="top right" taborder="20">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">Shift별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <MaskEdit id="ipt_fstdrapntid" class="input_default" mask="9999999999" position="absolute 842 101 922 120" style="" anchor="top right" onkeyup="grp_hdhist_ipt_fstdrapntid_onkeyup" onkillfocus="grp_hdhist_ipt_fstdrapntid_onkillfocus" autoselect="true" taborder="19"/>
- <Edit id="opt_fstdrapntnm" class="output_fix" position="absolute 947 101 1027 120" style="" anchor="top right" readonly="true" autoselect="true" taborder="18"/>
- <Button id="btn_srchfstdrapnt" class="icon_search" position="absolute 926 101 945 120" style="" text="" onclick="grp_hdhist_btn_srchfstdrapnt_onclick" anchor="top right" taborder="17"/>
- <Static id="caption19" position="absolute 799 101 841 120" style="" text="1Shift :" anchor="top right"/>
- <Shape id="line13" class="line_2" linetype="horizontal" position="absolute 730 99 1041 102" style="" anchor="top right"/>
- <MaskEdit id="ipt_scnddrapntid" class="input_default" mask="9999999999" position="absolute 842 123 922 142" style="" anchor="top right" onkeyup="grp_hdhist_ipt_scnddrapntid_onkeyup" onkillfocus="grp_hdhist_ipt_scnddrapntid_onkillfocus" autoselect="true" taborder="16"/>
- <Static id="caption20" position="absolute 799 123 841 142" style="" text="2Shift :" anchor="top right"/>
- <Button id="btn_srchscnddrapnt" class="icon_search" position="absolute 926 123 945 142" style="" text="" onclick="grp_hdhist_btn_srchscnddrapnt_onclick" anchor="top right" taborder="15"/>
- <Edit id="opt_scnddrapntnm" class="output_fix" position="absolute 947 123 1027 142" style="" anchor="top right" readonly="true" autoselect="true" taborder="14"/>
- <Button id="btn_srchlastdrapnt" class="icon_search" position="absolute 926 145 945 164" style="" text="" onclick="grp_hdhist_btn_srchlastdrapnt_onclick" anchor="top right" taborder="13"/>
- <Static id="caption21" position="absolute 799 145 841 164" style="" text="3Shift :" anchor="top right"/>
- <MaskEdit id="ipt_lastdrapntid" class="input_default" mask="9999999999" position="absolute 842 145 922 164" style="" anchor="top right" onkeyup="grp_hdhist_ipt_lastdrapntid_onkeyup" onkillfocus="grp_hdhist_ipt_lastdrapntid_onkillfocus" autoselect="true" taborder="12"/>
- <Edit id="opt_lastdrapntnm" class="output_fix" position="absolute 947 145 1027 164" style="" anchor="top right" readonly="true" autoselect="true" taborder="11"/>
- <Shape id="line14" class="line_3" linetype="horizontal" position="absolute 625 211 1041 214" style="" anchor="top right"/>
- <MaskEdit id="ipt_alldrapntid" class="input_default" mask="9999999999" position="absolute 842 79 922 98" style="" anchor="top right" onkeyup="grp_hdhist_ipt_alldrapntid_onkeyup" onkillfocus="grp_hdhist_ipt_alldrapntid_onkillfocus" autoselect="true" taborder="10"/>
- <Edit id="opt_alldrapntnm" class="output_fix" position="absolute 947 79 1027 98" style="" anchor="top right" readonly="true" autoselect="true" taborder="9"/>
- <Button id="btn_srchalldrapnt" class="icon_search" position="absolute 926 79 945 98" style="" text="" onclick="grp_hdhist_btn_srchalldrapnt_onclick" anchor="top right" taborder="8"/>
- <Shape id="line15" class="line_2" linetype="horizontal" position="absolute 795 121 1042 124" style="" anchor="top right"/>
- <Shape id="line16" class="line_2" linetype="horizontal" position="absolute 795 143 1042 146" style="" anchor="top right"/>
- <Button id="btn_hdsave" class="btn5" position="absolute 1000 5 1042 25" style="" text="저장" onclick="grp_hdhist_btn_hdsave_onclick" anchor="top right" taborder="7"/>
- <Button id="btn_hdinit" class="btn2" position="absolute 945 5 998 25" style="" text="초기화" onclick="grp_hdhist_btn_hdinit_onclick" anchor="top right" taborder="6"/>
- <MaskEdit id="ipt_crettm" class="input_default" mask="##:##" position="absolute 823 31 865 50" style="" anchor="top right" onkeyup="grp_hdhist_ipt_crettm_onkeyup" onkillfocus="grp_hdhist_ipt_crettm_onkillfocus" type="string" autoselect="true" taborder="5"/>
- <Calendar id="ipt_cretdd" class="input_default" position="absolute 731 31 821 50" style="align:center ;" anchor="top right" dateformat="yyyy-MM-dd" value="null" onchanged="grp_hdhist_ipt_cretdd_onchanged" autoselect="true" taborder="4"/>
- <Shape id="roundrect1" anchor="top right" class="roundrect_example" type="roundrectangle" position="absolute 625 237 1042 335" style=""/>
- <Static id="caption22" class="hand" position="absolute 628 241 1037 286" style="padding:0 0 0 25;align:middle;" text="기존의 예약의사정보를 강제로 종료한 후 새로 생성해야 할 경우, 적용종료일자를 기존 적용종료일자와 일치시켜 주시기 바랍니다." anchor="top right"/>
- <Static id="caption23" class="hand" position="absolute 628 288 1021 305" style="align:left middle;" text="예약의사 적용기준" anchor="top right"/>
- <Static id="caption24" position="absolute 643 304 1030 326" style="align:left middle;" text=" - HD : Shift별 지정의사" anchor="top right"/>
- <Shape id="line5" class="line_2" linetype="horizontal" position="absolute 795 165 1042 168" style="" anchor="top right"/>
- <Static id="caption11" position="absolute 780 167 841 186" style="" text="응급Shift :" anchor="top right"/>
- <MaskEdit id="ipt_erdrapntid" class="input_default" mask="9999999999" position="absolute 842 167 922 186" style="" anchor="top right" onkeyup="grp_hdhist_ipt_erdrapntid_onkeyup" onkillfocus="grp_hdhist_ipt_erdrapntid_onkillfocus" autoselect="true" taborder="3"/>
- <Edit id="opt_erdrapntnm" class="output_fix" position="absolute 947 167 1027 186" style="" anchor="top right" readonly="true" autoselect="true" taborder="2"/>
- <Button id="btn_srcherdrapnt" class="icon_search" position="absolute 926 167 945 186" style="" text="" onclick="grp_hdhist_btn_srcherdrapnt_onclick" anchor="top right" taborder="1"/>
- <Static id="caption14" text="생성일시" class="cell_1" position="absolute 625 30 729 53" style="align:center middle;" anchor="top right"/>
- <Static id="caption16" text="적용기간" class="cell_1" position="absolute 625 54 729 77" style="align:center middle;" anchor="top right"/>
- <Static id="caption00" text="소아Shift :" position="absolute 780 191 841 210" anchor="top right"/>
- <MaskEdit id="ipt_peddrapntid" taborder="0" mask="9999999999" autoselect="true" onkillfocus="grp_hdhist_ipt_erdrapntid_onkillfocus" onkeyup="grp_hdhist_ipt_erdrapntid_onkeyup" class="input_default" position="absolute 842 191 922 210" anchor="top right"/>
- <Button id="btn_srchpeddrapnt" taborder="25" class="icon_search" position="absolute 926 191 945 210" anchor="top right" onclick="grp_hdhist_btn_srchpeddrapnt_onclick"/>
- <Edit id="opt_peddrapntnm" taborder="26" readonly="true" autoselect="true" class="output_fix" position="absolute 947 191 1027 210" anchor="top right"/>
- <Shape id="line00" class="line_2" position="absolute 787 186 1042 192" anchor="top right"/>
- <Edit id="opt_allposdeptcd" taborder="27" class="output_fix" position="absolute 643 212 711 229" anchor="default" visible="false"/>
- <Edit id="opt_fstposdeptcd" taborder="28" class="output_fix" position="absolute 709 213 772 229" anchor="default" visible="false"/>
- <Edit id="opt_scndposdeptcd" taborder="29" class="output_fix" position="absolute 773 213 836 229" anchor="default" visible="false"/>
- <Edit id="opt_lastposdeptcd" taborder="30" class="output_fix" position="absolute 836 212 899 228" anchor="default" visible="false"/>
- <Edit id="opt_erposdeptcd" taborder="31" class="output_fix" position="absolute 896 213 959 229" anchor="default" visible="false"/>
- <Edit id="opt_pedposdeptcd" taborder="32" class="output_fix" position="absolute 958 213 1021 229" anchor="default" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group4" scrollbars="autoboth" position="absolute 0 754 1037 781" style="" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Shape id="roundrect5" anchor="left bottom" type="roundrectangle" position="absolute 0 3 620 27" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Static id="caption7" position="absolute 20 8 35 23" style="background:#ffd98d ;" anchor="left bottom"/>
- <Static id="caption8" position="absolute 165 8 180 23" style="background:#ccff99 ;" anchor="left bottom"/>
- <Static id="caption9" position="absolute 187 9 297 24" style="" text="당일 의사지정 구간" anchor="left bottom"/>
- <Static id="caption10" position="absolute 42 9 170 24" style="" text="의사지정 누락 구간" anchor="left bottom"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_srch" position="absolute 0 23 1042 56" style="align: top;" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption49" class="search_name" position="absolute 16 7 102 27" style="" text="조회구분" anchor="default"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="2" rowcount="-1" id="rdo_srchflag" position="absolute 93 7 193 27" style="font:,,bold;" onitemchanged="grp_srch_rdo_srchflag_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">H</Col>
- <Col id="datacolumn">HD</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">PD</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption25" class="search_name" position="absolute 320 7 406 27" style="" text="조회구간" anchor="default"/>
- <Calendar id="ipt_srchfromdd" position="absolute 417 7 517 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" onchanged="grp_srch_ipt_srchfromdd_onchanged" autoselect="true"/>
- <Static id="caption27" position="absolute 522 7 535 27" style="align:center ;" text="~" anchor="default"/>
- <Calendar id="ipt_srchtodd" position="absolute 540 7 639 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" onchanged="grp_srch_ipt_srchtodd_onchanged" autoselect="true"/>
- <Static id="caption00" text="진료과" class="search_name" position="absolute 704 7 769 27"/>
- <Combo id="cmb_deptcd" taborder="1" position="absolute 774 8 878 28" index="-1" innerdataset="@ds_codelist" datacolumn="cdnm" codecolumn="cdid" class="combo_search"/>
- </Layout>
- </Layouts>
- </Div>
- <Edit id="opt_pdallposdeptcd" taborder="7" position="absolute 641 615 719 633" class="output" visible="false"/>
- <Edit id="opt_pdfstposdeptcd" taborder="8" class="output" position="absolute 730 616 808 634" visible="false"/>
- <Edit id="opt_pdscndposdeptcd" taborder="9" class="output" position="absolute 818 616 896 634" visible="false"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_pddrapntcretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_hddrapnthistlist_hddrapnthistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="apptodd" type="STRING" size="256"/>
- <Column id="fstdrapntnm" type="STRING" size="256"/>
- <Column id="scnddrapntnm" type="STRING" size="256"/>
- <Column id="lastdrapntnm" type="STRING" size="256"/>
- <Column id="cretdd" type="STRING" size="256"/>
- <Column id="crettm" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="fstdrapntid" type="STRING" size="256"/>
- <Column id="scnddrapntid" type="STRING" size="256"/>
- <Column id="lastdrapntid" type="STRING" size="256"/>
- <Column id="erdrapntnm" type="STRING" size="256"/>
- <Column id="erdrapntid" type="STRING" size="256"/>
- <Column id="peddrapntid" type="STRING" size="256"/>
- <Column id="peddrapntnm" type="STRING" size="256"/>
- <Column id="fstposdeptcd" type="STRING" size="256"/>
- <Column id="scndposdeptcd" type="STRING" size="256"/>
- <Column id="lastposdeptcd" type="STRING" size="256"/>
- <Column id="erposdeptcd" type="STRING" size="256"/>
- <Column id="pedposdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="apptodd"/>
- <Col id="fstdrapntnm"/>
- <Col id="scnddrapntnm"/>
- <Col id="lastdrapntnm"/>
- <Col id="cretdd"/>
- <Col id="crettm"/>
- <Col id="usernm"/>
- <Col id="fstdrapntid"/>
- <Col id="scnddrapntid"/>
- <Col id="lastdrapntid"/>
- <Col id="erdrapntnm"/>
- <Col id="erdrapntid"/>
- <Col id="fstposdeptcd"/>
- <Col id="scndposdeptcd"/>
- <Col id="lastposdeptcd"/>
- <Col id="erposdeptcd"/>
- <Col id="pedposdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hddrapnthistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_pddrapntcretlist_pddrapntcretinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cretdd" type="STRING" size="256"/>
- <Column id="crettm" type="STRING" size="256"/>
- <Column id="appfromdd" type="STRING" size="256"/>
- <Column id="apptodd" type="STRING" size="256"/>
- <Column id="cretopt" type="STRING" size="256"/>
- <Column id="alldrapntid" type="STRING" size="256"/>
- <Column id="alldrapntnm" type="STRING" size="256"/>
- <Column id="fstdrapntid" type="STRING" size="256"/>
- <Column id="fstdrapntnm" type="STRING" size="256"/>
- <Column id="scnddrapntid" type="STRING" size="256"/>
- <Column id="scnddrapntnm" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="rsrvyn" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="fstposdeptcd" type="STRING" size="256"/>
- <Column id="scndposdeptcd" type="STRING" size="256"/>
- <Column id="allposdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cretdd"/>
- <Col id="crettm"/>
- <Col id="appfromdd"/>
- <Col id="apptodd"/>
- <Col id="cretopt">1</Col>
- <Col id="alldrapntid"/>
- <Col id="alldrapntnm"/>
- <Col id="fstdrapntid"/>
- <Col id="fstdrapntnm"/>
- <Col id="scnddrapntid"/>
- <Col id="scnddrapntnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hddrapntcretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_updyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="updyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="updyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pddrapntcretlist_pddrapntcretinfo_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="param" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchitem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="param"/>
- <Col id="flag"/>
- <Col id="searchitem"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pddrapnthistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="temp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reqdata" type="STRING" size="256"/>
- <Column id="savedata" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqdata"/>
- <Col id="savedata"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hddrapntcretlist_hddrapntcretinfo_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="param" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchitem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="param"/>
- <Col id="flag"/>
- <Col id="searchitem"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchflag"/>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hddrapntcretlist_hddrapntcretinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cretdd" type="STRING" size="256"/>
- <Column id="crettm" type="STRING" size="256"/>
- <Column id="appfromdd" type="STRING" size="256"/>
- <Column id="apptodd" type="STRING" size="256"/>
- <Column id="cretopt" type="STRING" size="256"/>
- <Column id="alldrapntid" type="STRING" size="256"/>
- <Column id="alldrapntnm" type="STRING" size="256"/>
- <Column id="fstdrapntid" type="STRING" size="256"/>
- <Column id="fstdrapntnm" type="STRING" size="256"/>
- <Column id="scnddrapntid" type="STRING" size="256"/>
- <Column id="scnddrapntnm" type="STRING" size="256"/>
- <Column id="lastdrapntid" type="STRING" size="256"/>
- <Column id="lastdrapntnm" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="rsrvyn" type="STRING" size="256"/>
- <Column id="erdrapntid" type="STRING" size="256"/>
- <Column id="erdrapntnm" type="STRING" size="256"/>
- <Column id="peddrapntid" type="STRING" size="256"/>
- <Column id="peddrapntnm" type="STRING" size="256"/>
- <Column id="fstposdeptcd" type="STRING" size="256"/>
- <Column id="scndposdeptcd" type="STRING" size="256"/>
- <Column id="lastposdeptcd" type="STRING" size="256"/>
- <Column id="erposdeptcd" type="STRING" size="256"/>
- <Column id="pedposdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cretdd"/>
- <Col id="crettm"/>
- <Col id="appfromdd"/>
- <Col id="apptodd"/>
- <Col id="cretopt"/>
- <Col id="alldrapntid"/>
- <Col id="alldrapntnm"/>
- <Col id="fstdrapntid"/>
- <Col id="fstdrapntnm"/>
- <Col id="scnddrapntid"/>
- <Col id="scnddrapntnm"/>
- <Col id="lastdrapntid"/>
- <Col id="lastdrapntnm"/>
- <Col id="fstposdeptcd"/>
- <Col id="scndposdeptcd"/>
- <Col id="lastposdeptcd"/>
- <Col id="erposdeptcd"/>
- <Col id="pedposdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pddrapnthistlist_pddrapnthistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="apptodd" type="STRING" size="256"/>
- <Column id="fstdrapntnm" type="STRING" size="256"/>
- <Column id="scnddrapntnm" type="STRING" size="256"/>
- <Column id="cretdd" type="STRING" size="256"/>
- <Column id="crettm" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="fstdrapntid" type="STRING" size="256"/>
- <Column id="scnddrapntid" type="STRING" size="256"/>
- <Column id="fstposdeptcd" type="STRING" size="256"/>
- <Column id="scndposdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="apptodd"/>
- <Col id="fstdrapntnm"/>
- <Col id="scnddrapntnm"/>
- <Col id="cretdd"/>
- <Col id="crettm"/>
- <Col id="usernm"/>
- <Col id="fstdrapntid"/>
- <Col id="scnddrapntid"/>
- <Col id="fstposdeptcd"/>
- <Col id="scndposdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hddrapntcretlist_hddrapntcretinfo_getdrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_pdhist.ipt_pdappfromdd" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="appfromdd"/>
- <BindItem id="item1" compid="grp_pdhist.ipt_pdapptodd" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="apptodd"/>
- <BindItem id="item2" compid="grp_pdhist.ipt_pdalldrapntid" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="alldrapntid"/>
- <BindItem id="item3" compid="grp_pdhist.opt_pdalldrapntnm" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="alldrapntnm"/>
- <BindItem id="item4" compid="grp_pdhist.ipt_pdcrettm" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="crettm"/>
- <BindItem id="item5" compid="grp_pdhist.ipt_pdcretdd" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="cretdd"/>
- <BindItem id="item6" compid="grp_pdhist.ipt_pdfstdrapntid" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="fstdrapntid"/>
- <BindItem id="item7" compid="grp_pdhist.opt_pdfstdrapntnm" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="fstdrapntnm"/>
- <BindItem id="item8" compid="grp_pdhist.ipt_pdscnddrapntid" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="scnddrapntid"/>
- <BindItem id="item9" compid="grp_pdhist.opt_pdscnddrapntnm" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="scnddrapntnm"/>
- <BindItem id="item10" compid="grp_pdhist.rdo_pdcretopt" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="cretopt"/>
- <BindItem id="item11" compid="grp_hdhist.ipt_appfromdd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="appfromdd"/>
- <BindItem id="item12" compid="grp_hdhist.ipt_apptodd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="apptodd"/>
- <BindItem id="item13" compid="grp_hdhist.rdo_cretopt" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="cretopt"/>
- <BindItem id="item14" compid="grp_hdhist.ipt_fstdrapntid" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="fstdrapntid"/>
- <BindItem id="item15" compid="grp_hdhist.opt_fstdrapntnm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="fstdrapntnm"/>
- <BindItem id="item16" compid="grp_hdhist.ipt_scnddrapntid" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="scnddrapntid"/>
- <BindItem id="item17" compid="grp_hdhist.opt_scnddrapntnm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="scnddrapntnm"/>
- <BindItem id="item18" compid="grp_hdhist.ipt_lastdrapntid" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="lastdrapntid"/>
- <BindItem id="item19" compid="grp_hdhist.opt_lastdrapntnm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="lastdrapntnm"/>
- <BindItem id="item20" compid="grp_hdhist.ipt_alldrapntid" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="alldrapntid"/>
- <BindItem id="item21" compid="grp_hdhist.opt_alldrapntnm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="alldrapntnm"/>
- <BindItem id="item22" compid="grp_hdhist.ipt_crettm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="crettm"/>
- <BindItem id="item23" compid="grp_hdhist.ipt_cretdd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="cretdd"/>
- <BindItem id="item24" compid="grp_hdhist.ipt_erdrapntid" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="erdrapntid"/>
- <BindItem id="item25" compid="grp_hdhist.opt_erdrapntnm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="erdrapntnm"/>
- <BindItem id="item26" compid="grp_srch.rdo_srchflag" propid="value" datasetid="ds_main_cond" columnid="srchflag"/>
- <BindItem id="item27" compid="grp_srch.ipt_srchfromdd" propid="value" datasetid="ds_main_cond" columnid="srchfromdd"/>
- <BindItem id="item28" compid="grp_srch.ipt_srchtodd" propid="value" datasetid="ds_main_cond" columnid="srchtodd"/>
- <BindItem id="item29" compid="grp_srch.cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item30" compid="grp_hdhist.ipt_peddrapntid" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="peddrapntid"/>
- <BindItem id="item31" compid="grp_hdhist.opt_peddrapntnm" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="peddrapntnm"/>
- <BindItem id="item38" compid="opt_pdallposdeptcd" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="allposdeptcd"/>
- <BindItem id="item39" compid="opt_pdfstposdeptcd" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="fstposdeptcd"/>
- <BindItem id="item40" compid="opt_pdscndposdeptcd" propid="value" datasetid="ds_main_pddrapntcretlist_pddrapntcretinfo" columnid="scndposdeptcd"/>
- <BindItem id="item32" compid="grp_hdhist.opt_allposdeptcd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="allposdeptcd"/>
- <BindItem id="item33" compid="grp_hdhist.opt_fstposdeptcd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="fstposdeptcd"/>
- <BindItem id="item34" compid="grp_hdhist.opt_scndposdeptcd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="scndposdeptcd"/>
- <BindItem id="item35" compid="grp_hdhist.opt_lastposdeptcd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="lastposdeptcd"/>
- <BindItem id="item36" compid="grp_hdhist.opt_erposdeptcd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="erposdeptcd"/>
- <BindItem id="item37" compid="grp_hdhist.opt_pedposdeptcd" propid="value" datasetid="ds_main_hddrapntcretlist_hddrapntcretinfo" columnid="pedposdeptcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- //include 'emr_dialroomxp::SMMND03200.xjs';
- include 'emr_carecomxp::CareCom.xjs';
- var arErrorCode = new HashArray();
- var idx;
- function SMMND03200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(this.grp_hdhist.grd_hddrapnthistinfo);
- grdf_initGrid(this.grp_pdhist.grd_pddrapnthistinfo);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- //setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
- fDone();
-
- fInit(grp_srch.rdo_srchflag.value); // 생성일시, 적용기간 초기화
- fSrchDrApntHist(grp_srch.rdo_srchflag.value); // 의사지정 History조회
- // 간호하드코딩 테이블 조회_20090416kys
- var pCode = "'005'"; // 조회할 CdGrupID 코드정보(신장내과)
- var pDate = utlf_getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
- }
- // header파일 중 SMMND03200.js 파일 시작
- /*
- HD의사지정 (SMMND03200.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * _group :
- * _ver : 2007.08.20
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 화면 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fDone(){
- //** 그리드 초기화 **//
- //ds_main_hddrapnthistlist.clearData();
- var sFromYear = utlf_getCurrentDate().substr(0, 4)+ "0201";
- var sToYear = getDateCalc(getDateCalc(utlf_getCurrentDate(), 365 , "+").substr(0, 4)+"0301", 1, "-");
- ds_main_cond.setColumn( 0, "srchflag" , "H");
- ds_main_cond.setColumn( 0, "srchfromdd", sFromYear);
- ds_main_cond.setColumn( 0, "srchtodd" , sToYear);
- grp_pdhist.enable = false;
-
- }
- /**
- * _group :
- * _ver : 2007.08.20
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 사용자팝업
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSrchDr(userid, sIDPath, sNMPath){
- //** 사용자팝업 **//
- ds_main_hddrapntcretlist_hddrapntcretinfo_userpopupinfo.clearData();
- dsf_makeValue( ds_main_hddrapntcretlist_hddrapntcretinfo_userpopupinfo, "param", "string", "_OneS" ); // 한 사용자 선택 팝업을 띄울시 "팝업에 전달할 노드"_param 의 값 설정
- dsf_makeValue( ds_main_hddrapntcretlist_hddrapntcretinfo_userpopupinfo, "flag", "string", "userid"); // 한 사용자 선택 팝업을 띄울시 "팝업에 전달할 노드"_flag 의 값 설정
- dsf_makeValue( ds_main_hddrapntcretlist_hddrapntcretinfo_userpopupinfo, "searchitem", "string", userid ); // 한 사용자 선택 팝업을 띄울시 "팝업에 전달할 노드"_searchitem 의 값 설정
- var objArg = new Objects();
- objArg.arg_ds_main_temp = ds_main_hddrapntcretlist_hddrapntcretinfo_userpopupinfo;
- frmf_modal("SPZSU10103", "SPZSU10103", objArg, "", "1", "200", "200", "", "", "", "", "", "M");
- var iParam = frmf_getParameter("SPZSU10103_");
- //model.removeNodeset("ds_main_hddrapntcretlist_hddrapntcretinfo_getdrinfo" );
- ds_main_hddrapntcretlist_hddrapntcretinfo_getdrinfo.clearData();
- //dsf_makeValue( ds_main_hddrapntcretlist_hddrapntcretinfo, "getdrinfo", "string", "" );
- dsf_setCSVToDs ("ds_main_hddrapntcretlist_hddrapntcretinfo_getdrinfo", iParam);
- frmf_clearParameter("SPZSU10103_");
- // ** 정보 보여주기 구현 **//
- var xPath = ds_main_hddrapntcretlist_hddrapntcretinfo;
- var sUserNm = ds_main_hddrapntcretlist_hddrapntcretinfo_getdrinfo_list.getColumn(0, "usernm"); // 의사이름
- var sUserId = ds_main_hddrapntcretlist_hddrapntcretinfo_getdrinfo_list.getColumn(0, "userid"); // 의사아이디
- xPath.setColumn(0, sNMPath, sUserNm); // 의사이름
- xPath.setColumn(0, sIDPath, sUserId); // 의사아이디
- //model.refresh();
- }
- /**
- * _group :
- * _ver : 2007.08.20
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 지정의사 컨트롤 활성여부 설정
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSetDisabled(pFlag){
- switch(pFlag){
- case "H":
- var sFlag = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "cretopt"); // 지정의사 선택 값 (1:전체, 2:Shift별)
- if(sFlag == "1") { // 전체
- grp_hdhist.ipt_alldrapntid.enable = true;
- grp_hdhist.btn_srchalldrapnt.enable = true;
- grp_hdhist.ipt_fstdrapntid.enable = false;
- grp_hdhist.btn_srchfstdrapnt.enable = false;
- grp_hdhist.ipt_scnddrapntid.enable = false;
- grp_hdhist.btn_srchscnddrapnt.enable = false;
- grp_hdhist.ipt_lastdrapntid.enable = false;
- grp_hdhist.btn_srchlastdrapnt.enable = false;
- grp_hdhist.ipt_erdrapntid.enable = false; //응급Shift추가-kys-20091217
- grp_hdhist.btn_srcherdrapnt.enable = false; //응급Shift추가-kys-20091217
- grp_hdhist.ipt_peddrapntid.enable = false; //소아Shift추가-kya-20180727
- grp_hdhist.btn_srchpeddrapnt.enable = false; //소아Shift추가-kya-20180727
- }else if(sFlag == "2") { // Shift별
- grp_hdhist.ipt_alldrapntid.enable = false;
- grp_hdhist.btn_srchalldrapnt.enable = false;
- grp_hdhist.ipt_fstdrapntid.enable = true;
- grp_hdhist.btn_srchfstdrapnt.enable = true;
- grp_hdhist.ipt_scnddrapntid.enable = true;
- grp_hdhist.btn_srchscnddrapnt.enable = true;
- grp_hdhist.ipt_lastdrapntid.enable = true;
- grp_hdhist.btn_srchlastdrapnt.enable = true;
- grp_hdhist.ipt_erdrapntid.enable = true; //응급Shift추가-kys-20091217
- grp_hdhist.btn_srcherdrapnt.enable = true; //응급Shift추가-kys-20091217
- grp_hdhist.ipt_peddrapntid.enable = true; //소아Shift추가-kya-20180727
- grp_hdhist.btn_srchpeddrapnt.enable = true; //소아Shift추가-kya-20180727
- }
- break;
- case "P": // PD예약의사지정 오전오후 생성으로 추가_20100125
- var sFlag = ds_main_pddrapntcretlist_pddrapntcretinfo.getColumn(0, "cretopt"); // 지정의사 선택 값 (1:전체, 2:시간별)
- if(sFlag == "1") { // 전체
- grp_pdhist.ipt_pdalldrapntid.enable = true;
- grp_pdhist.btn_pdsrchalldrapnt.enable = true;
- grp_pdhist.ipt_pdfstdrapntid.enable = false;
- grp_pdhist.btn_pdsrchfstdrapnt.enable = false;
- grp_pdhist.ipt_pdscnddrapntid.enable = false;
- grp_pdhist.btn_pdsrchscnddrapnt.enable = false;
- }else if(sFlag == "2") { // 시간별
- grp_pdhist.ipt_pdalldrapntid.enable = false;
- grp_pdhist.btn_pdsrchalldrapnt.enable = false;
- grp_pdhist.ipt_pdfstdrapntid.enable = true;
- grp_pdhist.btn_pdsrchfstdrapnt.enable = true;
- grp_pdhist.ipt_pdscnddrapntid.enable = true;
- grp_pdhist.btn_pdsrchscnddrapnt.enable = true;
- }
- break;
- }
- //model.refresh();
- }
- /**
- * _group :
- * _ver : 2007.08.20
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : HD의사지정 History조회
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSrchDrApntHist(pFlag){
- var currentdate = utlf_getCurrentDate();
- grp_hdhist.ipt_appfromdd.enable = true;
- grp_hdhist.ipt_apptodd.enable = true;
- ds_main_hddrapnthistlist.clearData();
- ds_main_pddrapnthistlist.clearData();
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "srchfromdd", "string", ds_main_cond.getColumn(0, "srchfromdd"));
- dsf_makeValue( ds_send_reqdata, "srchtodd", "string", ds_main_cond.getColumn(0, "srchtodd"));
- if(pFlag == "H"){
- //grp_hdhist.grd_hddrapnthistinfo.rebuildStyle();
- //submit("TRMND03201");
- var oParam = {};
- oParam.id = "TRMND03201";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetHDDrApntHist";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_hddrapnthistlist_hddrapnthistinfo=hddrapnthistinfo";
- oParam.async = false;
- tranf_submit(oParam);
- // Expr로 background, background2 에 적용함.
- //utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff')
- // for(var i = 0 ; i < ds_main_hddrapnthistlist_hddrapnthistinfo.rowcount ; i++){
- // if( utlf_isNull(ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn( i, "usernm"))){
- // grp_hdhist.grd_hddrapnthistinfo.rowStyle(i, "all", "background-color") = "#ffd98d";
- // }
- // if( grp_hdhist.grd_hddrapnthistinfo.valueMatrix(i, grp_hdhist.grd_hddrapnthistinfo.colRef("appdd")) <= currentdate &&
- // grp_hdhist.grd_hddrapnthistinfo.valueMatrix(i, grp_hdhist.grd_hddrapnthistinfo.colRef("apptodd")) >= currentdate ){
- // grp_hdhist.grd_hddrapnthistinfo.rowStyle(i, "all", "background-color") = "#ccff99";
- // }
- // }
- }else{
- //grp_pdhist.grd_pddrapnthistinfo.rebuildStyle();
- //submit("TRMND03203");
- var oParam = {};
- oParam.id = "TRMND03201";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetPDDrApntHist";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_pddrapnthistlist_pddrapnthistinfo=pddrapnthistinfo";
- oParam.async = false;
- tranf_submit(oParam);
- // Expr로 background, background2 에 적용함.
- //utlf_isNull(usernm) ? '#ffd98dff' : ((appdd <= utlf_getCurrentDate() && apptodd >= utlf_getCurrentDate()) ? '#ccff99ff' : '#ffffffff')
- // for(var i = 0 ; i < ds_main_pddrapnthistlist_pddrapnthistinfo.rowcount; i++){
- // if( ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(i, "usernm") == "" ){
- // grp_pdhist.grd_pddrapnthistinfo.rowStyle(i, "all", "background-color") = "#ffd98d";
- // }
- // if( ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(i, "appdd") <= currentdate &&
- // ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(i, "apptodd") >= currentdate ){
- // grp_pdhist.grd_pddrapnthistinfo.rowStyle(i, "all", "background-color") = "#ccff99";
- // }
- // }
- }
- }
- /**
- * _group :
- * _ver : 2007.08.21
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 적용일자 체크
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fChkAppdd(sPath, pFlag){
- //** 오늘 이전 적용일자 설정 금지 **//
- var xPath ="";
- if(pFlag == "H"){
- xPath = ds_main_hddrapntcretlist_hddrapntcretinfo;
- }else{
- xPath = ds_main_pddrapntcretlist_pddrapntcretinfo;
- }
- var sSelDate = xPath.getColumn(0, "cretdd");
- var lstMonthDay = new Date().getMonthDay(); // 해달 월의 마직막 일
- //if(sSelDate <= utlf_getCurrentDate()) {
- //alert("kkkk=====" + sSelDate );
- if(sSelDate < utlf_getCurrentDate()) { //20131231 kya 당일을 포함하도록 수정
- sysf_messageBox("적용일자를 오늘 이전으로 설정", "E001", "적용일자를 다시 입력하세요.");
- xPath.setColumn(0, sPath, getDateAddc(utlf_getCurrentDate(),1));
- //model.refresh();
- return;
- }
- //** 적용기간 범위 확인 **//
- var sAppFromDD = xPath.getColumn(0, "appfromdd");
- var sAppToDD = xPath.getColumn(0, "apptodd" );
- if( sAppFromDD != "" && sAppFromDD > sAppToDD) {
- sysf_messageBox("잘못된 범위 입니다.", "E");
- fInit(pFlag); // 예약의사지정 초기화
- return;
- }
- }
- /**
- * _group :
- * _ver : 2007.08.22
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 생성일시, 적용기간 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInit(pFlag){
-
- var currentDate = utlf_getCurrentDate(); // 현재일자
- ds_send.setColumn(0,"deptcd","2010700000"); //20180718 지정의사의 진료과 추가
-
- switch(pFlag){
- case "H":
- var lstAppToDD = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(0, "apptodd");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "cretopt", "1"); // 지정의사 Defalt설정 (1: 전체)
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "cretdd" , currentDate ); // 생성일자
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "crettm" , utlf_getCurrentTime().substr(0,4)); // 생성시간
- if(!utlf_isNull(lstAppToDD)) {
- lstAppToDD = lstAppToDD.toDate("YYYYMMDD").getAddDate(1);
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "appfromdd", lstAppToDD.getDateFormat() ); // 적용일자
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "apptodd" , (lstAppToDD.getAddDate(1, "M")).getDateFormat()); // 1개월 후 일자
- } else {
- currentDate = currentDate.toDate("YYYYMMDD").getAddDate(1);
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "appfromdd", currentDate.getDateFormat()); // 적용일자
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "apptodd" , (currentDate.getAddDate(1, "M")).getDateFormat()); // 1개월 후 일자
- }
- grp_hdhist.ipt_alldrapntid.setFocus(); //** 초기 포커스 설정(전체적용의사) **//
- fInitDrApnt(pFlag); // 의사지정 초기화
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- grp_hdhist.ipt_appfromdd.enable = true;
- grp_hdhist.ipt_apptodd.enable = true;
- //model.refresh();
- break;
- case "P":
- var lstAppToDD = ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(0, "apptodd");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "cretdd" , currentDate ); // 생성일자
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "crettm" , utlf_getCurrentTime().substr(0,4)); // 생성시간
- if(!utlf_isNull(lstAppToDD)) {
- lstAppToDD = lstAppToDD.toDate("YYYYMMDD").getAddDate(1);
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "appfromdd", lstAppToDD.getDateFormat() ); // 적용일자
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "apptodd" , (lstAppToDD.getAddDate(1, "M")).getDateFormat()); // 1개월 후 일자
- } else {
- currentDate = currentDate.toDate("YYYYMMDD").getAddDate(1);
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "appfromdd", currentDate.getDateFormat()); // 적용일자
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "apptodd" , (currentDate.getAddDate(1, "M")).getDateFormat()); // 1개월 후 일자
- }
- grp_pdhist.ipt_pdalldrapntid.setFocus(); //** 초기 포커스 설정(전체적용의사) **//
- fInitDrApnt(pFlag); // 의사지정 초기화
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- grp_pdhist.ipt_pdappfromdd.enable = true;
- grp_pdhist.ipt_pdapptodd.enable = true;
- //model.refresh();
- break;
- }
- }
- /**
- * _group :
- * _ver : 2007.08.22
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 의사지정 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInitDrApnt(pFlag){
- switch(pFlag){
- case "H":
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "alldrapntid" , "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "alldrapntnm" , "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "fstdrapntid" , "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "fstdrapntnm" , "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "scnddrapntid", "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "scnddrapntnm", "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "lastdrapntid", "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "lastdrapntnm", "");
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "erdrapntid", ""); //응급Shift추가-kys-20091217
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "erdrapntnm", ""); //응급Shift추가-kys-20091217
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "peddrapntid", ""); //소아Shift추가-kys-20180724
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "peddrapntnm", ""); //소아Shift추가-kys-20180724
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "allposdeptcd", "");//전체Shift근무부서추가 20190405
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "fstposdeptcd", ""); //1Shift근무부서추가 20190405
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "scndposdeptcd", ""); //2Shift근무부서추가 20190405
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "lastposdeptcd", ""); //3Shift근무부서추가 20190405
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "erposdeptcd", ""); //응급Shift근무부서추가 20190405
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "pedposdeptcd", ""); //소아Shift근무부서추가 20190405
- break;
- case "P":
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "alldrapntid" , "");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "alldrapntnm" , "");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "fstdrapntid" , "");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "fstdrapntnm" , "");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "scnddrapntid", "");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "scnddrapntnm", "");
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "allposdeptcd", "");//전체Shift근무부서추가 20190405
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "fstposdeptcd", ""); //1Shift근무부서추가 20190405
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "scndposdeptcd", ""); //2Shift근무부서추가 20190405
-
- break;
- }
- }
- /**
- * _group :
- * _ver : 2007.08.22
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 예약의사 지정 기존정보 수정 설정
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSetDrApntHist(pFlag)
- {
- var currentdate = utlf_getCurrentDate();
- if(pFlag == "H")
- {
- var sRow = ds_main_hddrapnthistlist_hddrapnthistinfo.rowposition; //grp_hdhist.grd_hddrapnthistinfo.row;
- if(sRow < 0)
- {
- return;
- }
- if(ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(sRow, "apptodd") < currentdate)
- {
- sysf_messageBox("과거의 의사지정 내역은 수정할 수 없습니다.", "I");
- return;
- }
- var sMsg = "";
- if(!utlf_isNull(ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(sRow, "usernm")))
- {
- sMsg = sysf_messageBox("기존 예약의사 정보를 수정하시겠습니까?", "S");
- }
- if(sMsg == 6 || utlf_isNull(sMsg))
- {
- var iRow = sRow;
- dsf_makeValue( ds_main_hddrapntcretlist_hddrapntcretinfo, "status", "string", "i");
- if(utlf_isNull(ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "usernm")))
- {
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "cretdd" , currentdate );
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "crettm" , utlf_getCurrentTime().substr(0,4) );
- }
- else
- {
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "cretdd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn( iRow, "cretdd" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "crettm" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn( iRow, "crettm" ));
- }
-
- if(ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "appdd") <= currentdate && ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "apptodd") > currentdate )
- {
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "appfromdd" , getDateCalc(currentdate, 1 , "+") );
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "apptodd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "apptodd"));
- }
- else
- {
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "appfromdd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "appdd" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "apptodd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "apptodd" ));
- }
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "fstdrapntid" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "fstdrapntid" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "fstdrapntnm" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "fstdrapntnm" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "scnddrapntid", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "scnddrapntid"));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "scnddrapntnm", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "scnddrapntnm"));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "lastdrapntid", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "lastdrapntid"));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "lastdrapntnm", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "lastdrapntnm"));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "erdrapntid", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "erdrapntid")); //응급Shift추가-kys-20091217
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "erdrapntnm", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "erdrapntnm")); //응급Shift추가-kys-20091217
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "peddrapntid", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "peddrapntid")); //소아Shift추가-kya-20180724
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "peddrapntnm", ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "peddrapntnm")); //소아Shift추가-kya-20180724
- //20190405 근무부서가져오기
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "fstposdeptcd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "fstposdeptcd" )); //1Shift 예정의하근무부서추가
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "scndposdeptcd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "scndposdeptcd" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "lastposdeptcd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "lastposdeptcd" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "erposdeptcd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "erposdeptcd" ));
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "pedposdeptcd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(iRow, "pedposdeptcd" ));
-
-
-
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "cretopt" , "2");
- fSetDisabled(grp_srch.rdo_srchflag.value);
- }
- else
- {
- return;
- }
- }
- else
- {
- var sRow = ds_main_pddrapnthistlist_pddrapnthistinfo.rowposition;
- if(sRow < 0 )
- {
- return;
- }
-
- if(ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( sRow, "apptodd") < currentdate )
- {
- sysf_messageBox("과거의 의사지정 내역은 수정할 수 없습니다.", "I");
- return;
- }
- var sMsg = "";
- if(!utlf_isNull(ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( sRow, "usernm")))
- {
- sMsg = sysf_messageBox("기존 예약의사 정보를 수정하시겠습니까?", "S");
- }
- if(sMsg == 6 || utlf_isNull(sMsg))
- {
- var iRow = sRow;
- dsf_makeValue( ds_main_pddrapntcretlist_pddrapntcretinfo, "status", "string", "i");
- if(utlf_isNull(ds_main_pddrapntcretlist_pddrapntcretinfo.getColumn(iRow, "usernm")))
- {
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "cretdd" , currentdate );
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "crettm" , utlf_getCurrentTime().toString().substr(0,4) );
- }
- else
- {
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "cretdd" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn( iRow, "cretdd" ));
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "crettm" , ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn( iRow, "crettm" ));
- }
- if(ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(iRow, "appdd") <= currentdate && ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(iRow, "apptodd") > currentdate )
- {
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "appfromdd" , getDateCalc(currentdate, 1 , "+") );
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "apptodd" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "apptodd" ));
- }
- else
- {
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "appfromdd" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "appdd" ));
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "apptodd" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "apptodd" ));
- }
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "fstdrapntid" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "fstdrapntid" ));
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "fstdrapntnm" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "fstdrapntnm" ));
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "scnddrapntid" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "scnddrapntid" ));
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "scnddrapntnm" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( iRow, "scnddrapntnm" ));
- //20190405 근무부서가져오기
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "fstposdeptcd" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(iRow, "fstposdeptcd" )); //1Shift 예정의하근무부서추가
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "scndposdeptcd" , ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(iRow, "scndposdeptcd" ));
-
-
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "cretopt" , "2");
- fSetDisabled(grp_srch.rdo_srchflag.value);
- }
- else {
- return;
- }
- }
- }
- /**
- * _group :
- * _ver : 2007.07.25 // 수정일자 : 2007.09.21
- * _by : 최경용 // 수정자 : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 참여자 정보 팝업 조회
- * _param : originalNode
- * _param : copyNode
- * _return : "true"/"false"
- * _---------------------------------------------------
- */
- function fClickUserBtn(userflag, sIDPath, sNMPath, sCDPath, e){
- var jobkindcd = "03";
- //var deptcd = "2010700000"; // 신장내과 부서코드:"2010700000"
- //하드코드수정-20090416
- //20180718 수정 콤보박스로 변경
- //var deptcd = ds_codelist.getColumn(0, "cdid");
- var deptcd = grp_srch.cmb_deptcd.value;
- if ( utlf_isNull(deptcd)){
- sysf_messageBox("진료과는 필수입력입니다.", "I", "진료과를 입력하십시오.");
- grp_srch.cmb_deptcd.setFocus();
- return;
-
- }
- //alert("deptcd = " + deptcd);
- var titlenm = "인공신장실 예약 지정의 리스트";
- frmf_setParameter("SPMNN02100_deptcd", deptcd);
- frmf_setParameter("SPMNN02100_jobkindcd", jobkindcd);
- frmf_setParameter("SPMNN02100_titlenm" , titlenm);
- frmf_setParameter("SPMNN02100_userflag" , "doctor");
- frmf_modal("SPMNN02100", "SPMNN02100", "", "", "", e.screenX, e.screenY, "", "", "", "", "", "M");
- var userid = frmf_getParameter("SPMNN02100_userid");
- var usernm = frmf_getParameter("SPMNN02100_usernm");
-
- //20190405 근무부서추가
- var posdeptcd = frmf_getParameter("SPMNN02100_posdeptcd");
-
- var xHDPath = "ds_main_hddrapntcretlist_hddrapntcretinfo/";
- var xPDPath = "ds_main_pddrapntcretlist_pddrapntcretinfo/";
- trace( "posdeptcd = " + posdeptcd);
-
- switch(userflag){
- case "H":
- if(userid != ""){
- //model.makeValue(xHDPath + sIDPath, userid);
- dsf_makeValue(ds_main_hddrapntcretlist_hddrapntcretinfo, sIDPath, "string", userid);
- //model.makeValue(xHDPath + sNMPath, usernm);
- dsf_makeValue(ds_main_hddrapntcretlist_hddrapntcretinfo, sNMPath, "string", usernm);
- //20190405 근무부서저장
- dsf_makeValue(ds_main_hddrapntcretlist_hddrapntcretinfo, sCDPath, "string", posdeptcd);
- }
- break;
- case "P":
- if(userid != ""){
- //model.makeValue(xPDPath + sIDPath, userid);
- dsf_makeValue(ds_main_pddrapntcretlist_pddrapntcretinfo, sIDPath, "string", userid);
- //model.makeValue(xPDPath + sNMPath, usernm);
- dsf_makeValue(ds_main_pddrapntcretlist_pddrapntcretinfo, sNMPath, "string", usernm);
- //20190405 근무부서저장
- dsf_makeValue(ds_main_pddrapntcretlist_pddrapntcretinfo, sCDPath, "string", posdeptcd);
- }
- break;
- }
- frmf_setParameter("SPMNN02100_userid", "");
- frmf_setParameter("SPMNN02100_usernm", "");
- frmf_setParameter("SPMNN02100_posdeptcd","");
- //model.refresh();
- }
- function fSaveDrApntCret(pFlag)
- {
- switch(pFlag)
- {
- case "H":
- var xPath = ds_main_hddrapntcretlist_hddrapntcretinfo;
- var sAppDD = xPath.getColumn(0, "appfromdd" ); // 적용일자
- var sAppToDD = xPath.getColumn(0, "apptodd" ); // 적용종료일자
- var sCretDD = xPath.getColumn(0, "cretdd" ); // 생성일자
- var sCretTM = xPath.getColumn(0, "crettm" ); // 생성시간
- var sCretOpt = xPath.getColumn(0, "cretopt" ); // 지정의사 옵션 값
- var sAllDrApntID = xPath.getColumn(0, "alldrapntid" ); // 전체 예약의사ID
- var sAllDrApntNM = xPath.getColumn(0, "alldrapntnm" ); // 전체 예약의사명
- var sFstDrApntID = xPath.getColumn(0, "fstdrapntid" ); // 1shift 예약의사ID
- var sFstDrApntNM = xPath.getColumn(0, "fstdrapntnm" ); // 1shift 예약의사명
- var sScndDrApntID = xPath.getColumn(0, "scnddrapntid"); // 2shift 예약의사ID
- var sScndDrApntNM = xPath.getColumn(0, "scnddrapntnm"); // 2shift 예약의사명
- var sLastDrApntID = xPath.getColumn(0, "lastdrapntid"); // 3shift 예약의사ID
- var sLastDrApntNM = xPath.getColumn(0, "lastdrapntnm"); // 3shift 예약의사명
- var sErDrApntID = xPath.getColumn(0, "erdrapntid"); // 응급shift 예약의사ID-kys-20091217
- var sErDrApntNM = xPath.getColumn(0, "erdrapntnm"); // 응급shift 예약의사명-kys-20091217
-
- var sPedDrApntID = xPath.getColumn(0, "peddrapntid"); // 소아shift 예약의사ID-kya-20180724
- var sPedDrApntNM = xPath.getColumn(0, "peddrapntnm"); // 소아shift 예약의사명-kya-20180724
-
- //20190405 예약의사 근무부서코드 등록, otpt정보 생성시 참조함
- var sAllPosDeptCD = xPath.getColumn(0, "allposdeptcd"); // 전체 예약의사 근무부서코드
- var sFstPosDeptCD = xPath.getColumn(0, "fstposdeptcd"); // 전체 예약의사 근무부서코드
- var sScndPosDeptCD = xPath.getColumn(0, "scndposdeptcd"); // 전체 예약의사 근무부서코드
- var sLastPosDeptCD = xPath.getColumn(0, "lastposdeptcd"); // 전체 예약의사 근무부서코드
- var sErPosDeptCD = xPath.getColumn(0, "erposdeptcd"); // 전체 예약의사 근무부서코드
- var sPedPosDeptCD = xPath.getColumn(0, "pedposdeptcd"); // 전체 예약의사 근무부서코드
-
- if(utlf_isNull(sAppDD))
- {
- sysf_messageBox("적용일자는 필수입력입니다.", "I", "적용일자를 입력하십시오.");
- grp_hdhist.ipt_appfromdd.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sAppToDD))
- {
- sysf_messageBox("적용종료일자는 필수입력입니다.", "I", "적용종료일자를 입력하십시오.");
- grp_hdhist.ipt_apptodd.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sCretDD))
- {
- sysf_messageBox("생성일자는 필수입력입니다.", "I", "생성일자를 입력하십시오.");
- grp_hdhist.ipt_cretdd.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sCretTM))
- {
- sysf_messageBox("생성시간은 필수입력입니다.", "I", "생성시간를 입력하십시오.");
- grp_hdhist.ipt_crettm.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sCretOpt))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "지정의사 옵션 값을 선택하십시오.");
- grp_hdhist.rdo_cretopt.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- else if(sCretOpt == "1")
- { // 전체
- if(utlf_isNull(sAllDrApntID) || utlf_isNull(sAllDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_hdhist.ipt_alldrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- }
- else if(sCretOpt == "2")
- {
- if(utlf_isNull(sFstDrApntID) || utlf_isNull(sFstDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "1Shift 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_hdhist.ipt_fstdrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- // 2Shift
- if(utlf_isNull(sScndDrApntID) || utlf_isNull(sScndDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "2Shift 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_hdhist.ipt_scnddrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- // 3Shift
- if(utlf_isNull(sLastDrApntID) ||utlf_isNull(sLastDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "3Shift 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_hdhist.ipt_lastdrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- // 응급Shift추가-kys-20091217
- if(utlf_isNull(sErDrApntID) || utlf_isNull(sErDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "응급Shift 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_hdhist.ipt_erdrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- // 소아Shift추가-kya-20180724
- if(utlf_isNull(sPedDrApntID) || utlf_isNull(sPedDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "소아Shift 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_hdhist.ipt_peddrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- }
- var sChkYN = "N";
- //** 동일일자 데이터 존재 유무 확인 **//
- for(var i = 0; i < ds_main_hddrapnthistlist_hddrapnthistinfo.rowcount; i++) {
- var sHistAppFromDD = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(i, "appdd"); // 기존적용일자
- var sHistAppToDD = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(i, "apptodd"); // 기존적용종료일자
- var sAftHistAppFromDD = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(i + 1, "appdd" ); // 다음기존적용일자
- var sPreHistAppToDD = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(i - 1, "apptodd"); // 이전기존적용종료일자
- var sHistUser = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(i, "usernm"); // 기존사용자
- if(utlf_isNull(sAftHistAppFromDD)){
- sAftHistAppFromDD = "99991231";
- }
- if(utlf_isNull(sPreHistAppToDD))
- {
- sPreHistAppToDD = "00010101";
- }
- if( ((sHistAppFromDD==sAppDD)||(sHistAppToDD==sAppDD)||(sHistAppFromDD==sAppToDD)||(sHistAppToDD==sAppToDD)
- ||((sHistAppFromDD<sAppToDD)&&(sAppToDD<sHistAppToDD))
- ||((sHistAppFromDD>sAppDD) &&(sAppToDD>sHistAppToDD))) && !utlf_isNull(sHistUser))
- {
- sChkYN ="Y";
- }
- }// end of for
- if(sChkYN == "Y"){
- var sMsg = sysf_messageBox("등록할 일자 구간에 기입력된 스케줄이 존재합니다.", "Q003");
- if(sMsg == "7"){
- fInit(pFlag); // 생성일자, 적용일자 초기화
- return;
- }
- }
- ds_send_savedata.clearData();
- if(utlf_isNull(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status")))
- {
- dsf_makeValue( ds_main_hddrapntcretlist_hddrapntcretinfo, "status", "string", "i");
- }
- dsf_makeValue( ds_send_savedata, "saveflag", "string", "H"); // 저장구분
- dsf_makeValue( ds_send_savedata, "status", "string", xPath.getColumn(0, "status")); // 상태값
- dsf_makeValue( ds_send_savedata, "cretdd", "string", sCretDD); // 생성일자
- dsf_makeValue( ds_send_savedata, "crettm", "string", sCretTM); // 생성시간
- dsf_makeValue( ds_send_savedata, "apptodd", "string", sAppToDD); // 적용종료일자
- dsf_makeValue( ds_send_savedata, "appdd", "string", sAppDD ); // 적용일자
- if(sCretOpt == "1") {
- dsf_makeValue( ds_send_savedata, "fstdrapntid", "string", sAllDrApntID ); // 1shift 예약의사ID
- dsf_makeValue( ds_send_savedata, "fstdrapntnm", "string", sAllDrApntNM ); // 1shift 예약의사명
- dsf_makeValue( ds_send_savedata, "fstposdeptcd", "string", sAllPosDeptCD ); // 1shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "scnddrapntid", "string", sAllDrApntID ); // 2shift 예약의사ID
- dsf_makeValue( ds_send_savedata, "scnddrapntnm", "string", sAllDrApntNM ); // 2shift 예약의사명
- dsf_makeValue( ds_send_savedata, "scndposdeptcd","string", sAllPosDeptCD ); // 2shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "lastdrapntid", "string", sAllDrApntID ); // 3shift 예약의사ID
- dsf_makeValue( ds_send_savedata, "lastdrapntnm", "string", sAllDrApntNM ); // 3shift 예약의사명
- dsf_makeValue( ds_send_savedata, "lastposdeptcd","string", sAllPosDeptCD ); // 3shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "erdrapntid", "string", sAllDrApntID ); // 응급shift 예약의사ID-추가-kys-20091217
- dsf_makeValue( ds_send_savedata, "erdrapntnm", "string", sAllDrApntNM ); // 응급shift 예약의사명-추가-kys-20091217
- dsf_makeValue( ds_send_savedata, "erposdeptcd", "string", sAllPosDeptCD ); // 응급shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "peddrapntid", "string", sAllDrApntID ); // 소아shift 예약의사ID-추가-kya-20180724
- dsf_makeValue( ds_send_savedata, "peddrapntnm", "string", sAllDrApntNM ); // 소아shift 예약의사명-추가-kya-20180724
- dsf_makeValue( ds_send_savedata, "pedposdeptcd", "string", sAllPosDeptCD ); // 소아shift 예약의사근무부서 20190405 추가
-
- } else {
- dsf_makeValue( ds_send_savedata, "fstdrapntid", "string", sFstDrApntID ); // 1shift 예약의사ID
- dsf_makeValue( ds_send_savedata, "fstdrapntnm", "string", sFstDrApntNM ); // 1shift 예약의사명
- dsf_makeValue( ds_send_savedata, "fstposdeptcd", "string", sFstPosDeptCD ); // 1shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "scnddrapntid", "string", sScndDrApntID); // 2shift 예약의사ID
- dsf_makeValue( ds_send_savedata, "scnddrapntnm", "string", sScndDrApntNM); // 2shift 예약의사명
- dsf_makeValue( ds_send_savedata, "scndposdeptcd","string", sScndPosDeptCD ); // 2shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "lastdrapntid", "string", sLastDrApntID); // 3shift 예약의사ID
- dsf_makeValue( ds_send_savedata, "lastdrapntnm", "string", sLastDrApntNM); // 3shift 예약의사명
- dsf_makeValue( ds_send_savedata, "lastposdeptcd","string", sLastPosDeptCD ); // 2shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "erdrapntid", "string", sErDrApntID); // 응급shift 예약의사ID-추가-kys-20091217
- dsf_makeValue( ds_send_savedata, "erdrapntnm", "string", sErDrApntNM); // 응급shift 예약의사명-추가-kys-20091217
- dsf_makeValue( ds_send_savedata, "erposdeptcd", "string", sErPosDeptCD ); // 2shift 예약의사근무부서 20190405 추가
- dsf_makeValue( ds_send_savedata, "peddrapntid", "string", sPedDrApntID ); // 소아shift 예약의사ID-추가-kya-20180724
- dsf_makeValue( ds_send_savedata, "peddrapntnm", "string", sPedDrApntNM ); // 소아shift 예약의사명-추가-kya-20180724
- dsf_makeValue( ds_send_savedata, "pedposdeptcd", "string", sPedPosDeptCD ); // 소아shift 예약의사근무부서 20190405 추가
- }
- var oParam = {};
- oParam.id = "TXMND03201";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqExeSaveHDDrApntCret";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "";
- oParam.async = false;
- oParam.error = false;
- oParam.callback = "cf_TXMND03201";
- tranf_submit(oParam);
- fSrchDrApntHist(pFlag); // HD의사지정 History조회
- fInit(pFlag); // 예약의사지정 초기화
-
- break;
- case "P":
- var xPath = ds_main_pddrapntcretlist_pddrapntcretinfo;
- var sAppDD = xPath.getColumn(0, "appfromdd" ); // 적용일자
- var sAppToDD = xPath.getColumn(0, "apptodd" ); // 적용종료일자
- var sCretDD = xPath.getColumn(0, "cretdd" ); // 생성일자
- var sCretTM = xPath.getColumn(0, "crettm" ); // 생성시간
- var sCretOpt = xPath.getColumn(0, "cretopt" ); // 지정의사 옵션 값
- var sAllDrApntID = xPath.getColumn(0, "alldrapntid" ); // 전체 예약의사ID
- var sAllDrApntNM = xPath.getColumn(0, "alldrapntnm" ); // 전체 예약의사명
- var sAllPosDeptcd = xPath.getColumn(0, "allposdeptcd" ); // 전체 예약의사근무부서 20190405
-
- var sFstDrApntID = xPath.getColumn(0, "fstdrapntid" ); // 오전 예약의사ID
- var sFstDrApntNM = xPath.getColumn(0, "fstdrapntnm" ); // 오전 예약의사명
- var sFstPosDeptcd = xPath.getColumn(0, "fstposdeptcd" ); // 전체 예약의사근무부서 20190405
-
- var sScndDrApntID = xPath.getColumn(0, "scnddrapntid"); // 오후 예약의사ID
- var sScndDrApntNM = xPath.getColumn(0, "scnddrapntnm"); // 오후 예약의사명
- var sScndPosDeptcd = xPath.getColumn(0, "scndposdeptcd" ); // 전체 예약의사근무부서 20190405
-
-
-
- //** 저장 전 빈값 확인 **//
- if(utlf_isNull(sAppDD))
- {
- sysf_messageBox("적용일자는 필수입력입니다.", "I", "적용일자를 입력하십시오.");
- grp_hdhist.ipt_appfromdd.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sAppToDD))
- {
- sysf_messageBox("적용종료일자는 필수입력입니다.", "I", "적용종료일자를 입력하십시오.");
- grp_hdhist.ipt_apptodd.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sCretDD))
- {
- sysf_messageBox("생성일자는 필수입력입니다.", "I", "생성일자를 입력하십시오.");
- grp_hdhist.ipt_cretdd.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sCretTM))
- {
- sysf_messageBox("생성시간은 필수입력입니다.", "I", "생성시간를 입력하십시오.");
- grp_hdhist.ipt_crettm.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- if(utlf_isNull(sCretOpt))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "지정의사 옵션 값을 선택하십시오.");
- grp_pdhist.rdo_pdcretopt.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- } else if(sCretOpt == "1"){ // 전체
- if(utlf_isNull(sAllDrApntID) || utlf_isNull(sAllDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_pdhist.ipt_pdalldrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- }else if(sCretOpt == "2"){ // 시간별
- // 오전
- if(utlf_isNull(sFstDrApntID) || utlf_isNull(sFstDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "오전 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_pdhist.ipt_pdfstdrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- // 오후
- if(utlf_isNull(sScndDrApntID) || utlf_isNull(sScndDrApntNM))
- {
- sysf_messageBox("지정의사 정보는 필수입력입니다.", "I", "오후 지정의사ID를 입력한 후 엔터키를 누르십시오.");
- grp_pdhist.ipt_pdscnddrapntid.setFocus();
- fSetDisabled(grp_srch.rdo_srchflag.value); return;
- }
- }
- var sChkYN = "N";
- //** 동일일자 데이터 존재 유무 확인 **//
- for(var i = 0; i < ds_main_pddrapnthistlist_pddrapnthistinfo.rowcount ; i++) {
- var sHistAppFromDD = ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( i, "appdd" ); // 기존적용일자
- var sHistAppToDD = ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(i, "apptodd"); // 기존적용종료일자
- var sAftHistAppFromDD = ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( i + 1, "appdd" ); // 다음기존적용일자
- var sPreHistAppToDD = ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn( i - 1, "apptodd"); // 이전기존적용종료일자
- if(utlf_isNull(sAftHistAppFromDD))
- {
- sAftHistAppFromDD = "99991231";
- }
- if(utlf_isNull(sPreHistAppToDD))
- {
- sPreHistAppToDD = "00010101";
- }
- if( ((sHistAppFromDD==sAppDD)||(sHistAppToDD==sAppDD)||(sHistAppFromDD==sAppToDD)||(sHistAppToDD==sAppToDD)
- ||((sHistAppFromDD<sAppToDD)&&(sAppToDD<sHistAppToDD))
- ||((sHistAppFromDD>sAppDD) &&(sAppToDD>sHistAppToDD))) && !utlf_isNull(sHistUser))
- {
- sChkYN ="Y";
-
- }
- }// end of for
- if(sChkYN == "Y"){
- var sMsg = sysf_messageBox("등록할 일자 구간에 기입력된 스케줄이 존재합니다.", "Q003");
- if(sMsg == "7"){
- fInit(pFlag); // 생성일자, 적용일자 초기화
- return;
- }
- }
- ds_send_savedata.clearData();
- if(utlf_isNull(ds_main_pddrapntcretlist_pddrapntcretinfo.getColumn(0, "status"))) {
- dsf_makeValue( ds_main_pddrapntcretlist_pddrapntcretinfo, "status", "string", "i");
- }
- dsf_makeValue( ds_send_savedata, "saveflag", "string", "P"); // 저장구분
- dsf_makeValue( ds_send_savedata, "status", "string", xPath.getColumn( 0, "status")); // 상태값
- dsf_makeValue( ds_send_savedata, "cretdd", "string", sCretDD); // 생성일자
- dsf_makeValue( ds_send_savedata, "crettm", "string", sCretTM); // 생성시간
- dsf_makeValue( ds_send_savedata, "apptodd", "string", sAppToDD); // 적용종료일자
- dsf_makeValue( ds_send_savedata, "appdd", "string", sAppDD ); // 적용일자
- if(sCretOpt == "1") { // 전체
- dsf_makeValue( ds_send_savedata, "fstdrapntid", "string", sAllDrApntID ); // 오전 예약의사ID
- dsf_makeValue( ds_send_savedata, "fstdrapntnm", "string", sAllDrApntNM ); // 오전 예약의사명
- dsf_makeValue( ds_send_savedata, "scnddrapntid", "string", sAllDrApntID ); // 오후 예약의사ID
- dsf_makeValue( ds_send_savedata, "scnddrapntnm", "string", sAllDrApntNM ); // 오후 예약의사명
- dsf_makeValue( ds_send_savedata, "fstposdeptcd", "string", sAllPosDeptcd ); // 오전 예약의사근무부서
- dsf_makeValue( ds_send_savedata, "scndposdeptcd", "string", sAllPosDeptcd ); // 오후 예약의사근무부서
-
- } else { // 시간별
- dsf_makeValue( ds_send_savedata, "fstdrapntid", "string", sFstDrApntID ); // 오전 예약의사ID
- dsf_makeValue( ds_send_savedata, "fstdrapntnm", "string", sFstDrApntNM ); // 오전 예약의사명
- dsf_makeValue( ds_send_savedata, "scnddrapntid", "string", sScndDrApntID); // 오후 예약의사ID
- dsf_makeValue( ds_send_savedata, "scnddrapntnm", "string", sScndDrApntNM); // 오후 예약의사명
- dsf_makeValue( ds_send_savedata, "fstposdeptcd", "string", sFstPosDeptcd ); // 오전 예약의사근무부서
- dsf_makeValue( ds_send_savedata, "scndposdeptcd", "string", sScndPosDeptcd ); // 오후 예약의사근무부서
- }
-
- var oParam = {};
- oParam.id = "TXMND03201";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqExeSaveHDDrApntCret";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMND03201_1";
- tranf_submit(oParam);
-
- fSrchDrApntHist(pFlag); // HD의사지정 History조회
- fInit(pFlag); // 예약의사지정 초기화
- break;
- }
- }
- function cf_TXMND03201(sSvcId, nErrorCode, sErrorMsg)
- {
- var sUpdChkyn = "N";
- var sAppDD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "appfromdd" );
- var sCretOpt = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "cretopt" );
- var sAppDD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "appfromdd" ); // 적용일자
- var sAppToDD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "apptodd" ); // 적용종료일자
- var sCretDD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "cretdd" ); // 생성일자
- var sCretTM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "crettm" ); // 생성시간
- var sCretOpt = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "cretopt" ); // 지정의사 옵션 값
- var sAllDrApntID = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "alldrapntid" ); // 전체 예약의사ID
- var sAllDrApntNM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "alldrapntnm" ); // 전체 예약의사명
- var sFstDrApntID = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "fstdrapntid" ); // 1shift 예약의사ID
- var sFstDrApntNM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "fstdrapntnm" ); // 1shift 예약의사명
- var sScndDrApntID = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "scnddrapntid"); // 2shift 예약의사ID
- var sScndDrApntNM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "scnddrapntnm"); // 2shift 예약의사명
- var sLastDrApntID = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "lastdrapntid"); // 3shift 예약의사ID
- var sLastDrApntNM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "lastdrapntnm"); // 3shift 예약의사명
- var sErDrApntID = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "erdrapntid"); // 응급shift 예약의사ID-kys-20091217
- var sErDrApntNM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "erdrapntnm"); // 응급shift 예약의사명-kys-20091217
- var sPedDrApntID = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "peddrapntid"); // 소아shift 예약의사ID-kys-20091217
- var sPedDrApntNM = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "peddrapntnm"); // 소아shift 예약의사명-kys-20091217
-
- var sAllPosDeptCD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "allposdeptcd" ); // 전체 예약의사근무부서 20190405
- var sFstPosDeptCD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "fstposdeptcd" ); // 전체 예약의사근무부서
- var sScndPosDeptCD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "scndposdeptcd" ); // 전체 예약의사근무부서
- var sLastPosDeptCD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "lastposdeptcd" ); // 전체 예약의사근무부서
- var sErPosDeptCD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "erposdeptcd" ); // 전체 예약의사근무부서
- var sPedPosDeptCD = ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "pedposdeptcd" ); // 전체 예약의사근무부서
-
- for(var i = 0; i < ds_main_hddrapnthistlist_hddrapnthistinfo.rowcount; i++)
- {
- var sHistAppToDD = "";
- sHistAppToDD = ds_main_hddrapnthistlist_hddrapnthistinfo.getColumn(i, "apptodd"); // 기존적용종료일자
- if(sHistAppToDD >= sAppDD)
- {
- sUpdChkyn = "Y";
- break;
- }
- }
- //입력(수정)한 적용시작일이 기존 종료일안에 포함될경우 외래예약변경 팝업 호출
- if(sUpdChkyn == 'Y'){
- sysf_messageBox("미래예약존재시 진료의변경을 하셔야 합니다.", "I");ds_main_hddrapntcretlist_hddrapntcretinfo
- var sPhFlag = "H";
-
- if(sCretOpt == "1"){
- var param = sPhFlag + "▦" + sAppDD + "▦" + sAppToDD + "▦" + sAllDrApntID + "▦" + sAllDrApntID + "▦" + sAllDrApntID;
- }else{
- var param = sPhFlag + "▦" + sAppDD + "▦" + sAppToDD + "▦" + sFstDrApntID + "▦" + sScndDrApntID + "▦" + sLastDrApntID;
- }
- //alert("param = " + param);
- frmf_setParameter("SMMND03600_param_pinfo", param);
-
- frmf_modal("SMMND03600", "SMMND03600", "", "", "1", "", "", "", "", "", "", "", "M");
- }
- }
- function cf_TXMND03201_1(sSvcId, nErrorCode, sErrorMsg)
- {
- var xPath = ds_main_pddrapntcretlist_pddrapntcretinfo;
- var sAppDD = xPath.getColumn(0, "appfromdd" ); // 적용일자
- var sAppToDD = xPath.getColumn(0, "apptodd" ); // 적용종료일자
- var sCretDD = xPath.getColumn(0, "cretdd" ); // 생성일자
- var sCretTM = xPath.getColumn(0, "crettm" ); // 생성시간
- var sCretOpt = xPath.getColumn(0, "cretopt" ); // 지정의사 옵션 값
- var sAllDrApntID = xPath.getColumn(0, "alldrapntid" ); // 전체 예약의사ID
- var sAllDrApntNM = xPath.getColumn(0, "alldrapntnm" ); // 전체 예약의사명
- var sFstDrApntID = xPath.getColumn(0, "fstdrapntid" ); // 오전 예약의사ID
- var sFstDrApntNM = xPath.getColumn(0, "fstdrapntnm" ); // 오전 예약의사명
- var sScndDrApntID = xPath.getColumn(0, "scnddrapntid"); // 오후 예약의사ID
- var sScndDrApntNM = xPath.getColumn(0, "scnddrapntnm"); // 오후 예약의사명
- var sAllPosDeptCD = xPath.getColumn(0, "allposdeptcd"); // 전체 예약의사 근무부서
- var sFstPosDeptCD = xPath.getColumn(0, "fstposdeptcd"); // 오전 예약의사 근무부서
- var sScndPosDeptCD = xPath.getColumn(0, "scndposdeptcd"); // 오후 예약의사 근무부서
-
- var sUpdChkyn = "N";
- //입력(수정)한 시작일이 기존종료일안에 포함되는지를 판단.
- for(var i=1; i<grp_pdhist.grd_pddrapnthistinfo.rows; i++) {
- var sHistAppToDD = "";
- sHistAppToDD = ds_main_pddrapnthistlist_pddrapnthistinfo.getColumn(i, "apptodd"); // 기존적용종료일자
- //alert("sHistAppToDD = " + sHistAppToDD);
- //alert("sAppDD = " + sAppDD);
- if(sHistAppToDD >= sAppDD){
- sUpdChkyn = "Y";
- break;
- }
- }
- //입력(수정)한 적용시작일이 기존 종료일안에 포함될경우 외래예약변경 팝업 호출
- if(sUpdChkyn == 'Y'){
- sysf_messageBox("미래예약존재시 진료의변경을 하셔야 합니다.", "I");
- var sPhFlag = "P";
- //var param = sPhFlag + "▦" + sAppDD + "▦" + sAppToDD + "▦" + sAllDrApntID + "▦" + "" + "▦" + ""; // 원본_20100125
- if(sCretOpt == "1"){ // 전체
- var param = sPhFlag + "▦" + sAppDD + "▦" + sAppToDD + "▦" + sAllDrApntID + "▦" + sAllDrApntID;
- }else{ // 시간별
- var param = sPhFlag + "▦" + sAppDD + "▦" + sAppToDD + "▦" + sFstDrApntID + "▦" + sScndDrApntID;
- }
- frmf_setParameter("SMMND03600_param_pinfo", param);
- frmf_modal("SMMND03600", "SMMND03600", "", "", "1", "", "", "", "", "", "", "", "M");
- }
- }
- // header파일 중 SMMND03200.js 파일 끝
- function grp_pdhist_grd_pddrapnthistinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fSetDrApntHist(grp_srch.rdo_srchflag.value); // 예약의사 지정 기존정보 수정 설정
- }
- function grp_pdhist_btn_pdclock_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "cretdd" , utlf_getCurrentDate()); // 생성일자
- ds_main_pddrapntcretlist_pddrapntcretinfo.setColumn( 0, "crettm" , utlf_getCurrentTime().substr(0,4)); // 생성시간
- //grp_pdhist.ipt_pdcretdd.refresh();
- //grp_pdhist.ipt_pdcrettm.refresh();
- }
- function grp_pdhist_ipt_pdalldrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- frmf_inputEnterKey("grp_pdhist.btn_pdsrchalldrapnt", "onclick", new ClickEventInfo);
- }
- function grp_pdhist_ipt_pdalldrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_pdhist_btn_pdsrchalldrapnt_onclick(obj:Button, e:ClickEventInfo) {
- // var sUserId=grp_hdhist.ipt_alldrapntid.text;
- // fSrchDr(sUserId, "alldrapntid", "alldrapntnm"); // 사용자 팝업
- fClickUserBtn("P", "alldrapntid", "alldrapntnm", "allposdeptcd", e); // 사용자 팝업
- //fSetDisabled(); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_pddrapntcretlist_pddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_pdhist.ipt_pdappfromdd.enable = false;
- grp_pdhist.ipt_pdapptodd.enable = false;
- }
- }
- function grp_pdhist_btn_pdsave_onclick(obj:Button, e:ClickEventInfo) {
- fSaveDrApntCret(grp_srch.rdo_srchflag.value); // 예약의사지정 생성 저장
-
- fInit(grp_srch.rdo_srchflag.value);
- fSrchDrApntHist(grp_srch.rdo_srchflag.value);
- }
- function grp_pdhist_btn_pdinit_onclick(obj:Button, e:ClickEventInfo) {
- fInit(grp_srch.rdo_srchflag.value); // 생성일시, 적용기간 초기화
- }
- function grp_pdhist_ipt_pdcrettm_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_hdhist.btn_srchalldrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_pdhist_ipt_pdcrettm_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_pdhist_btn_pdsrchfstdrapnt_onclick(obj:Button, e:ClickEventInfo) {
- fClickUserBtn("P", "fstdrapntid", "fstdrapntnm", "fstposdeptcd", e); // 사용자 팝업
- if(ds_main_pddrapntcretlist_pddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_pdhist.ipt_pdappfromdd.enable = false;
- grp_pdhist.ipt_pdapptodd.enable = false;
- }
- }
- function grp_pdhist_ipt_pdfstdrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- frmf_inputEnterKey("grp_pdhist.btn_pdsrchalldrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_pdhist_ipt_pdfstdrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_pdhist_btn_pdsrchscnddrapnt_onclick(obj:Button, e:ClickEventInfo) {
- fClickUserBtn("P", "scnddrapntid", "scnddrapntnm", "scndposdeptcd", e); // 사용자 팝업
- if(ds_main_pddrapntcretlist_pddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_pdhist.ipt_pdappfromdd.enable = false;
- grp_pdhist.ipt_pdapptodd.enable = false;
- }
- }
- function grp_pdhist_ipt_pdscnddrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_pdhist.btn_pdsrchalldrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_pdhist_ipt_pdscnddrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_pdhist_rdo_pdcretopt_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- fInitDrApnt(grp_srch.rdo_srchflag.value); // 지정의사정보 초기화
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- }
- function grp_hdhist_grd_hddrapnthistinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
-
- idx = obj.vscrollbar.pos ;
-
- ds_updyn.setColumn( 0, "updyn", "Y");
- fSetDrApntHist(grp_srch.rdo_srchflag.value); // 예약의사 지정 기존정보 수정 설정
- }
- function grp_hdhist_btn_clock_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_hddrapntcretlist_hddrapntcretinfo.setColumn( 0, "crettm" , utlf_getCurrentTime().substr(0,4)); // 생성시간
- //grp_hdhist.ipt_crettm.refresh();
- }
- function grp_hdhist_rdo_cretopt_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- fInitDrApnt(grp_srch.rdo_srchflag.value); // 지정의사정보 초기화
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- }
- function grp_hdhist_ipt_fstdrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_hdhist.btn_srchfstdrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_hdhist_ipt_fstdrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_hdhist_btn_srchfstdrapnt_onclick(obj:Button, e:ClickEventInfo) {
- // var sUserId=grp_hdhist.ipt_fstdrapntid.text;
- // fSrchDr(sUserId, "fstdrapntid", "fstdrapntnm"); // 사용자 팝업
- //fClickUserBtn("H", "fstdrapntid", "fstdrapntnm", e); // 사용자 팝업
-
- fClickUserBtn("H", "fstdrapntid", "fstdrapntnm", "fstposdeptcd", e); // 사용자 팝업
-
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_hdhist.ipt_appfromdd.enable = false;
- grp_hdhist.ipt_apptodd.enable = false;
- }
- }
- function grp_hdhist_ipt_scnddrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_hdhist.btn_srchscnddrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_hdhist_ipt_scnddrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_hdhist_btn_srchscnddrapnt_onclick(obj:Button, e:ClickEventInfo) {
- // var sUserId=grp_hdhist.ipt_scnddrapntid.text;
- // fSrchDr(sUserId, "scnddrapntid", "scnddrapntnm"); // 사용자 팝업
- fClickUserBtn("H", "scnddrapntid", "scnddrapntnm", "scndposdeptcd",e); // 사용자 팝업
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_hdhist.ipt_appfromdd.enable = false;
- grp_hdhist.ipt_apptodd.enable = false;
- }
- }
- function grp_hdhist_btn_srchlastdrapnt_onclick(obj:Button, e:ClickEventInfo) {
- // var sUserId=grp_hdhist.ipt_lastdrapntid.text;
- // fSrchDr(sUserId, "lastdrapntid", "lastdrapntnm"); // 사용자 팝업
- fClickUserBtn("H", "lastdrapntid", "lastdrapntnm", "lastposdeptcd", e); // 사용자 팝업
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_hdhist.ipt_appfromdd.enable = false;
- grp_hdhist.ipt_apptodd.enable = false;
- }
- }
- function grp_hdhist_ipt_lastdrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- frmf_inputEnterKey("grp_hdhist.btn_srchlastdrapnt", "onclick", new ClickEventInfo);
- }
- function grp_hdhist_ipt_lastdrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_hdhist_ipt_alldrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_hdhist.btn_srchalldrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_hdhist_ipt_alldrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_hdhist_btn_srchalldrapnt_onclick(obj:Button, e:ClickEventInfo) {
- // var sUserId=grp_hdhist.ipt_alldrapntid.text;
- // fSrchDr(sUserId, "alldrapntid", "alldrapntnm"); // 사용자 팝업
- fClickUserBtn("H", "alldrapntid", "alldrapntnm", "allposdeptcd",e); // 사용자 팝업
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_hdhist.ipt_appfromdd.enable = false;
- grp_hdhist.ipt_apptodd.enable = false;
- }
- }
- function grp_hdhist_btn_hdsave_onclick(obj:Button, e:ClickEventInfo) {
- fSaveDrApntCret(grp_srch.rdo_srchflag.value); // 예약의사지정 생성 저장
-
- fInit(grp_srch.rdo_srchflag.value);
- fSrchDrApntHist(grp_srch.rdo_srchflag.value);
-
- //위치정보 20180905
- grp_hdhist.grd_hddrapnthistinfo.vscrollbar.pos = idx;
- }
- function grp_hdhist_btn_hdinit_onclick(obj:Button, e:ClickEventInfo) {
- fInit(grp_srch.rdo_srchflag.value); // 생성일시, 적용기간 초기화
- }
- function grp_hdhist_ipt_crettm_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_hdhist.btn_srchalldrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_hdhist_ipt_crettm_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_hdhist_ipt_erdrapntid_onkeyup(obj:MaskEdit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- frmf_inputEnterKey("grp_hdhist.btn_srchlastdrapnt", "onclick", new ClickEventInfo);
- }
- }
- function grp_hdhist_ipt_erdrapntid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
- }
- function grp_hdhist_btn_srcherdrapnt_onclick(obj:Button, e:ClickEventInfo) {
- // var sUserId=grp_hdhist.ipt_lastdrapntid.text;
- // fSrchDr(sUserId, "lastdrapntid", "lastdrapntnm"); // 사용자 팝업
- fClickUserBtn("H", "erdrapntid", "erdrapntnm", "erposdeptcd",e); // 사용자 팝업
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_hdhist.ipt_appfromdd.enable = false;
- grp_hdhist.ipt_apptodd.enable = false;
- }
- }
- function grp_srch_rdo_srchflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- if(obj.value == "H"){
- ds_main_pddrapnthistlist_pddrapnthistinfo.clearData();
- grp_hdhist.enable = true;
- grp_pdhist.enable = false;
- }else{
- ds_main_hddrapnthistlist_hddrapnthistinfo.clearData();
-
- grp_hdhist.enable = false;
- grp_pdhist.enable = true;
- }
- fInit(obj.value);
- fSrchDrApntHist(obj.value);
- }
- function grp_srch_ipt_srchfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fInit(grp_srch.rdo_srchflag.value);
- fSrchDrApntHist(grp_srch.rdo_srchflag.value);
- }
- function grp_srch_ipt_srchtodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fInit(grp_srch.rdo_srchflag.value);
- fSrchDrApntHist(grp_srch.rdo_srchflag.value);
- }
- function grp_hdhist_ipt_cretdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fChkAppdd("appfromdd"); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_hdhist_ipt_appfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fChkAppdd("appfromdd", grp_srch.rdo_srchflag.value); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_hdhist_ipt_apptodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fChkAppdd("apptodd", grp_srch.rdo_srchflag.value); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_pdhist_ipt_pdcretdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fChkAppdd("appfromdd"); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_pdhist_ipt_pdappfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fChkAppdd("appfromdd", grp_srch.rdo_srchflag.value); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_pdhist_ipt_pdapptodd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fChkAppdd("apptodd", grp_srch.rdo_srchflag.value); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_hdhist_btn_srchpeddrapnt_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickUserBtn("H", "peddrapntid", "peddrapntnm", "pedposdeptcd", e); // 사용자 팝업
- fSetDisabled(grp_srch.rdo_srchflag.value); // 지정의사 컨트롤 활성여부 설정
- if(ds_main_hddrapntcretlist_hddrapntcretinfo.getColumn(0, "status") == "u") {
- grp_hdhist.ipt_appfromdd.enable = false;
- grp_hdhist.ipt_apptodd.enable = false;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|