12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEA05300" position="absolute 0 0 1196 760" titletext="검사실별 예약현황조회" oninit="SMAEA05300_oninit" onload="SMAEA05300_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1194 23" id="group1">
- <Layouts>
- <Layout>
- <Static text="검사실별 예약현황조회" position="absolute 0 0 170 23" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 757" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1195 50" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Shape position="absolute 1127 8 1133 32" linetype="vertical" id="line1"/>
- <Static text="지원부서 :" position="absolute 5 11 81 28" align="align:left middle;" id="caption1" class="search_name"/>
- <Static text="검사/치료실 :" position="absolute 215 11 311 28" id="caption5" class="search_name"/>
- <Static text="검사자/치료사 :" position="absolute 444 11 553 28" id="caption7" class="search_name"/>
- <Combo position="absolute 555 10 625 29" id="combo6" class="combo_search" innerdataset="@ds_init_cmb_info_execridlist_execr" datacolumn="basecdflagdesc" codecolumn="basecd"/>
- <Button position="absolute 1135 9 1191 31" id="btn_sea" class="btn1" text="조회" onclick="group3_group2_btn_sea_onclick"/>
- <Combo position="absolute 312 10 427 29" id="cmb_excuroom" class="combo_search" innerdataset="@ds_init_cmb_info_excuroomcdlist_excuroom" datacolumn="basecdflagdesc" codecolumn="basecd" onitemchanged="group3_group2_cmb_excuroom_onitemchanged"/>
- <Static text="실시여부 :" position="absolute 895 11 973 28" id="caption10" class="search_name"/>
- <Radio position="absolute 972 11 1122 30" id="rbo_gb" taborder="1" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" style="textpadding:0 3 0 3;" onitemchanged="group3_group2_rbo_gb_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <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>
- <Combo position="absolute 82 10 197 29" id="combo1" innerdataset="@ds_init_cmb_info_suppdeptlist_suppdept" datacolumn="suppdeptnm" codecolumn="suppdeptcd" onitemchanged="group3_group2_combo1_onitemchanged"/>
- <Static text="구분 :" position="absolute 645 11 695 28" id="caption2" class="search_name"/>
- <Radio position="absolute 700 11 875 28" id="rdo_ioflag" taborder="1" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_ioflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">건진</Col>
- </Row>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 1071 80 1195 102" id="button1" class="btn2" text="일일예약리스트출력" onclick="group3_button1_onclick" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 729 1195 756" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 1067 3 1135 25" id="btn_reset" class="btn4" text="초기화" onclick="grp_btn_btn_reset_onclick" anchor="default"/>
- <Button position="absolute 1137 3 1193 25" id="btn_cls" class="btn4" text="닫기" onclick="grp_btn_btn_cls_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 65 1195 732" id="switch1" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage text="월별 예약현황(정원)" id="case1" style="anchor:default;">
- <Layouts>
- <Layout>
- <Grid position="absolute 394 29 538 635" id="grd_rsrvposstm" binddataset="ds_main_rsrvprescondlist_rsrvposstm">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="41"/>
- <Column size="33"/>
- <Column size="32"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="시간"/>
- <Cell col="2" text="현황"/>
- <Cell col="3" text="가용"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="background:EXPR(over == 'Y' ? 'yellow' : '');background2:EXPR(over == 'Y' ? 'yellow' : '');" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '##:##'"/>
- <Cell col="2" style="background:EXPR(over == 'Y' ? 'yellow' : '');background2:EXPR(over == 'Y' ? 'yellow' : '');" text="bind:count"/>
- <Cell col="3" style="background:EXPR(over == 'Y' ? 'yellow' : '');background2:EXPR(over == 'Y' ? 'yellow' : '');" text="bind:max"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="예약내역" position="absolute 540 8 625 24" id="caption3" class="tit_2"/>
- <Grid position="absolute 0 82 390 379" id="grd_calendar" class="gridcalendar" binddataset="ds_hidden_calendar_weeklist_list" oncellclick="switch1_case1_grd_calendar_oncellclick" selecttype="cell" autofittype="col,allrow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell text="일"/>
- <Cell col="1" text="월"/>
- <Cell col="2" text="화"/>
- <Cell col="3" text="수"/>
- <Cell col="4" text="목"/>
- <Cell col="5" text="금"/>
- <Cell col="6" text="토"/>
- </Band>
- <Band id="body">
- <Cell style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);color:BIND(colColor0);color2:BIND(colColor0);selectbackground:#daa7d9ff;" text="bind:sun"/>
- <Cell col="1" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);color:BIND(colColor1);color2:BIND(colColor1);selectbackground:#daa7d9ff;" text="bind:mon"/>
- <Cell col="2" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);color:BIND(colColor2);color2:BIND(colColor2);selectbackground:#daa7d9ff;" text="bind:tue"/>
- <Cell col="3" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);color:BIND(colColor3);color2:BIND(colColor3);selectbackground:#daa7d9ff;" text="bind:wed"/>
- <Cell col="4" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);color:BIND(colColor4);color2:BIND(colColor4);selectbackground:#daa7d9ff;" text="bind:thu"/>
- <Cell col="5" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);color:BIND(colColor5);color2:BIND(colColor5);selectbackground:#daa7d9ff;" text="bind:fri"/>
- <Cell col="6" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);color:BIND(colColor6);color2:BIND(colColor6);selectbackground:#daa7d9ff;" text="bind:sat"/>
- <Cell row="1" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);selectbackground:#daa7d9ff;" text="bind:sun_memo"/>
- <Cell row="1" col="1" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);selectbackground:#daa7d9ff;" text="bind:mon_memo"/>
- <Cell row="1" col="2" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);selectbackground:#daa7d9ff;" text="bind:tue_memo"/>
- <Cell row="1" col="3" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);selectbackground:#daa7d9ff;" text="bind:wed_memo"/>
- <Cell row="1" col="4" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);selectbackground:#daa7d9ff;" text="bind:thu_memo"/>
- <Cell row="1" col="5" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);selectbackground:#daa7d9ff;" text="bind:fri_memo"/>
- <Cell row="1" col="6" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);selectbackground:#daa7d9ff;" text="bind:sat_memo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 28 394 83" id="group4" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape id="rectangle1" type="rectangle" class="calendar_header" position="absolute 0 2 390 54" style="strokepen:1 solid transparent;fillbrush:solid darkslateblue true;fillgradation:linear 0,0 white 100,100 darkmagenta;border:1 solid black ;color:#262626ff;gradation:linear 0,0 white 100,100 black;"/>
- <Button position="absolute 20 25 47 52" id="button7" class="icon_month" text="1" onclick="switch1_case1_group4_button7_onclick"/>
- <Button position="absolute 50 25 77 52" id="button8" class="icon_month" text="2" onclick="switch1_case1_group4_button8_onclick"/>
- <Button position="absolute 80 25 107 52" id="button9" class="icon_month" text="3" onclick="switch1_case1_group4_button9_onclick"/>
- <Button position="absolute 110 25 137 52" id="button10" class="icon_month" text="4" onclick="switch1_case1_group4_button10_onclick"/>
- <Button position="absolute 140 25 167 52" id="button11" class="icon_month" text="5" onclick="switch1_case1_group4_button11_onclick"/>
- <Button position="absolute 170 25 197 52" id="button12" class="icon_month" text="6" onclick="switch1_case1_group4_button12_onclick"/>
- <Button position="absolute 200 25 227 52" id="button13" class="icon_month" text="7" onclick="switch1_case1_group4_button13_onclick"/>
- <Button position="absolute 230 25 257 52" id="button14" class="icon_month" text="8" onclick="switch1_case1_group4_button14_onclick"/>
- <Button position="absolute 260 25 287 52" id="button18" class="icon_month" text="9" onclick="switch1_case1_group4_button18_onclick"/>
- <Button position="absolute 290 25 317 52" id="button19" class="icon_month" text="10" onclick="switch1_case1_group4_button19_onclick"/>
- <Button position="absolute 320 25 347 52" id="button20" class="icon_month" text="11" onclick="switch1_case1_group4_button20_onclick"/>
- <Button position="absolute 350 25 377 52" id="button21" class="icon_month" text="12" onclick="switch1_case1_group4_button21_onclick"/>
- <Edit readonly="true" position="absolute 199 5 221 24" id="opt_month" class="calendar_output" style="padding:0 0 0 3;"/>
- <Static text="년" position="absolute 178 7 198 21" id="caption24" style="color:white;" class="calendar_output"/>
- <Static text="월" position="absolute 220 7 240 21" id="caption25" class="calendar_output" style="color:white;"/>
- <Button position="absolute 270 8 286 24" id="button31" class="icon_next_year" text="" onclick="switch1_case1_group4_button31_onclick"/>
- <Button position="absolute 121 8 137 24" id="button33" class="icon_pre_month" visible="true" text="" onclick="switch1_case1_group4_button33_onclick"/>
- <Edit readonly="true" position="absolute 147 5 179 24" id="opt_year" class="calendar_output" style="padding:0 0 0 3;"/>
- <Button position="absolute 246 8 262 24" id="button35" class="icon_next_month" visible="true" text="" onclick="switch1_case1_group4_button35_onclick"/>
- <Button position="absolute 98 8 114 24" id="button36" class="icon_pre_year" text="" onclick="switch1_case1_group4_button36_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="예약시간" position="absolute 394 8 479 24" id="caption15" class="tit_2"/>
- <Shape position="absolute 540 24 1195 30" linetype="horizontal" id="line3" class="line_10"/>
- <Shape position="absolute 394 24 538 30" linetype="horizontal" id="line6" class="line_10"/>
- <Grid position="absolute 540 29 1195 635" id="datagrid1" binddataset="ds_main_rsrvprescondlist_rsrvprescond" oncelldblclick="switch1_case1_datagrid1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="106"/>
- <Column size="65"/>
- <Column size="58"/>
- <Column size="62"/>
- <Column size="77"/>
- <Column size="63"/>
- <Column size="280"/>
- <Column size="124"/>
- <Column size="105"/>
- <Column size="54"/>
- <Column size="62"/>
- <Column size="71"/>
- <Column size="129"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="82"/>
- <Column size="85"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="120"/>
- <Column size="110"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="예약일시"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="성별/나이"/>
- <Cell col="5" text="처방코드"/>
- <Cell col="6" text="급비"/>
- <Cell col="7" text="처방명"/>
- <Cell col="8" text="진료과(진료의)"/>
- <Cell col="9" text="처방일시"/>
- <Cell col="10" text="지정의"/>
- <Cell col="11" text="병동"/>
- <Cell col="12" text="병실"/>
- <Cell col="13" text="예약사항"/>
- <Cell col="14" text="처방전달사항"/>
- <Cell col="15" text="임상소견"/>
- <Cell col="16" text="입원외래구분"/>
- <Cell col="17" text="처방상태"/>
- <Cell col="18" text="caption1"/>
- <Cell col="19" text="caption2"/>
- <Cell col="20" text="caption3"/>
- <Cell col="21" text="예약자"/>
- <Cell col="22" text="입력일시"/>
- <Cell col="23" text="외래진료예약일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) || utlf_isNull(hngnm) ? '' : '####-##-## ##:##'"/>
- <Cell col="2" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:pid"/>
- <Cell col="3" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:hngnm"/>
- <Cell col="4" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:age"/>
- <Cell col="5" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpcd"/>
- <Cell col="6" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:payflagnm"/>
- <Cell col="7" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpnm" wordwrap="word"/>
- <Cell col="8" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:usernm"/>
- <Cell col="9" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) ? '' : '####-##-## ##:##'"/>
- <Cell col="10" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:specdrnm"/>
- <Cell col="11" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:wardcd"/>
- <Cell col="12" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:roomcd"/>
- <Cell col="13" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:rsrvrem" wordwrap="word"/>
- <Cell col="14" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpdelivefact"/>
- <Cell col="15" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:clinccmtcnts"/>
- <Cell col="16" displaytype="combo" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpgenrflag" combodataset="ds_init2_cmb_info_prcpgenrflag_M0010" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="17" displaytype="combo" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:execprcpstatcd" combodataset="ds_init2_cmb_info_initexecprcpstatcd_M0011" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="18" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:roomcd"/>
- <Cell col="19" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:fromdd"/>
- <Cell col="20" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:todd"/>
- <Cell col="21" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:updnm"/>
- <Cell col="22" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:upddate"/>
- <Cell col="23" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:orddd" mask="expr:utlf_isNull(orddd) ? '' : '####-##-## ##:##'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 400 420 620 570" id="datagrid3" visible="false" binddataset="ds_init_calenlist_calendinfo">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell text="bind:basedd"/>
- <Cell col="1" text="bind:dutflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 630 415 805 585" id="grd_temp" visible="false" binddataset="ds_init_curerprescondlist_rsrvcalendar">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="76"/>
- <Column size="62"/>
- <Column size="32"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일자(dd)"/>
- <Cell col="1" text="가용현황"/>
- <Cell col="2" text="max"/>
- </Band>
- <Band id="body">
- <Cell text="bind:rsrvdd"/>
- <Cell col="1" text="bind:count"/>
- <Cell col="2" text="bind:max"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="예약현황" position="absolute 0 9 85 25" id="caption8" class="tit_2"/>
- <Shape position="absolute 0 25 390 31" linetype="horizontal" id="line5" class="line_10"/>
- <Static text="검사실별 휴검관리 조회" position="absolute 0 399 172 415" id="caption11" class="tit_2"/>
- <Shape position="absolute 0 415 390 421" linetype="horizontal" id="line2" class="line_10"/>
- <Grid position="absolute 0 420 390 635" id="datagrid4" taborder="8" binddataset="ds_main_rsrvupdtinfo_rsrvupdt" onsetfocus="switch1_case1_datagrid4_onsetfocus">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="155"/>
- <Column size="80"/>
- <Column size="116"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell colspan="2" text="시작일시" taborder="undefined"/>
- <Cell col="2" colspan="2" text="종료일시" taborder="undefined"/>
- <Cell col="4" text="사유"/>
- <Cell col="5" text="최종변경자"/>
- <Cell col="6" text="최종변경일시"/>
- <Cell col="7" text="검사실코드"/>
- <Cell col="8" text="지원부서코드"/>
- <Cell col="9" text="입원외래구분"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" text="bind:rsrvupdtfromdd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="1" text="bind:rsrvupdtfromtm" mask="expr:utlf_isNull(rsrvupdtfromtm) ? '' : '##:##'" enable="false"/>
- <Cell col="2" displaytype="date" text="bind:rsrvupdttodd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="3" text="bind:rsrvupdttotm" mask="expr:utlf_isNull(rsrvupdttotm) ? '' : '##:##'" enable="false"/>
- <Cell col="4" text="bind:updtresndesc"/>
- <Cell col="5" text="bind:lastupdtrid"/>
- <Cell col="6" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
- <Cell col="7" text="bind:excuroomcd"/>
- <Cell col="8" text="bind:suppdeptcd"/>
- <Cell col="9" text="bind:ioflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="9" text="엑셀저장" class="btn7" position="absolute 1115 2 1195 24" onclick="switch1_case1_btn_excel_onclick"/>
- <CheckBox id="chk_cntflag" taborder="10" position="absolute 620 2 770 22" text="시간별 예약 건수 표시" truevalue="Y" onclick="switch1_case1_chk_cntflag_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="검사실별예약현황" id="case2" style="anchor:default;">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 28 1195 636" id="datagrid2" binddataset="ds_main_rsrvprescondlist2_rsrvprescond" oncelldblclick="switch1_case2_datagrid2_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="106"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="106"/>
- <Column size="100"/>
- <Column size="59"/>
- <Column size="268"/>
- <Column size="124"/>
- <Column size="51"/>
- <Column size="105"/>
- <Column size="129"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="82"/>
- <Column size="85"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="예약일시"/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="환자명"/>
- <Cell col="3" text="성별/나이"/>
- <Cell col="4" text="핸드폰"/>
- <Cell col="5" text="처방코드"/>
- <Cell col="6" text="급/비급"/>
- <Cell col="7" text="처방명"/>
- <Cell col="8" text="진료과(진료의)"/>
- <Cell col="9" text="지정의"/>
- <Cell col="10" text="처방일시"/>
- <Cell col="11" text="예약사항"/>
- <Cell col="12" text="처방전달사항"/>
- <Cell col="13" text="임상소견"/>
- <Cell col="14" text="입원외래구분"/>
- <Cell col="15" text="처방상태"/>
- <Cell col="16" text="caption1"/>
- <Cell col="17" text="caption2"/>
- <Cell col="18" text="caption3"/>
- <Cell col="19" text="예약자"/>
- <Cell col="20" text="입력일시"/>
- </Band>
- <Band id="body">
- <Cell text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '####-##-## ##:##'"/>
- <Cell col="1" style="align:left;" text="bind:pid"/>
- <Cell col="2" style="align:left;" text="bind:hngnm"/>
- <Cell col="3" text="bind:age"/>
- <Cell col="4" text="bind:mpphontel"/>
- <Cell col="5" style="align:left;" text="bind:prcpcd"/>
- <Cell col="6" style="align:left;" text="bind:payflagnm"/>
- <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:prcpnm" wordwrap="word"/>
- <Cell col="8" style="align:left;" text="bind:usernm"/>
- <Cell col="9" style="align:left;" text="bind:specdrnm"/>
- <Cell col="10" text="bind:prcpdd" mask="expr:utlf_isNull(rsrvtm) ? '' : '####-##-## ##:##'"/>
- <Cell col="11" style="align:left;" text="bind:rsrvrem"/>
- <Cell col="12" text="bind:prcpdelivefact"/>
- <Cell col="13" style="align:left;" text="bind:clinccmtcnts"/>
- <Cell col="14" displaytype="combo" text="bind:prcpgenrflag" combodataset="ds_init2_cmb_info_prcpgenrflag_M0010" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="15" displaytype="combo" text="bind:execprcpstatcd" combodataset="ds_init2_cmb_info_initexecprcpstatcd_M0011" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="16" text="bind:roomcd"/>
- <Cell col="17" text="bind:fromdd"/>
- <Cell col="18" text="bind:todd"/>
- <Cell col="19" style="align:left;" text="bind:updnm"/>
- <Cell col="20" style="align:left top;padding:4 2 2 2;" text="bind:upddate" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 23 1195 29" linetype="horizontal" id="line4" class="line_10"/>
- <Calendar position="absolute 85 4 173 23" id="ipt_fromdd" class="input_default" visible="true" autoselect="true"/>
- <Calendar position="absolute 195 4 283 23" id="ipt_todd" class="input_default" visible="true" autoselect="true"/>
- <Static text="~" position="absolute 180 4 195 23" align="align:center middle;" id="caption4"/>
- <Static text="검사코드 :" position="absolute 325 6 401 23" align="align:left middle;" id="caption13" class="search_name"/>
- <Static text="예약자 :" position="absolute 545 6 611 23" align="align:left middle;" id="caption14" class="search_name"/>
- <Edit position="absolute 405 4 525 23" id="ipt_prcpcd" autoselect="true"/>
- <Combo position="absolute 610 4 700 23" id="cmb_rsrvid" innerdataset="@ds_init_cmb_info_rsrvidinfo_T0001" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="예약일자 :" position="absolute 5 6 85 23" id="caption9" class="search_name"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_info_rsrvidinfo_T0001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="rbasecdflag" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="instance1" type="STRING" size="256"/>
- <Column id="ebasecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_excuroomcdlist_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256" sumtext="기본코드"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="코드설명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_info_execridlist_execr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256" sumtext="사번"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="성명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="rsrvdate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_calenlist_calendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="dutflag" type="STRING" size="256" sumtext="예약수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_curerprescondlist_rsrvcalendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="count" type="STRING" size="256" sumtext="예약수"/>
- <Column id="max" type="STRING" size="256" sumtext="가용인원"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_curerprescondlist_orddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="수행부서"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_info_suppdeptlist_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="suppdeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="suppdeptnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvfromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="rsrvtodd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="rsrvflag" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
- <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="execrid" type="STRING" size="256" sumtext="실시자"/>
- <Column id="unexecyn" type="STRING" size="256" sumtext="실시여부"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="srchflag" type="STRING" size="256" sumtext="조회구분"/>
- <Column id="rsrvid" type="STRING" size="256" sumtext="예약자"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="rsrvdd" type="STRING" size="256"/>
- <Column id="sdate" type="STRING" size="256"/>
- <Column id="tdate" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="excuroomgrpcdid" type="STRING" size="256"/>
- <Column id="prsrvfromdd" type="STRING" size="256"/>
- <Column id="prsrvtodd" type="STRING" size="256"/>
- <Column id="psuppdeptcd" type="STRING" size="256"/>
- <Column id="printgubn" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="excuroomnm" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsrvprescondlist2_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
- <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
- <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
- <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
- <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
- <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
- <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
- <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
- <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
- <!-- 2012.11.26 선택의 추가 by kya -->
- <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
- <!-- 2013.11.22 급비 추가 by kya -->
- <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rsrvprescondlist_rsrvposstm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="시간"/>
- <Column id="count" type="STRING" size="256" sumtext="현황"/>
- <Column id="max" type="STRING" size="256" sumtext="가용인원수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rsrvprescondlist_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
- <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
- <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
- <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
- <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
- <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
- <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
- <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
- <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
- <!-- 2012.11.26 선택의 추가 by kya -->
- <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
- <!-- 2013.11.22 급비구분 추가 by kya -->
- <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
- <Column id="orddd" type="STRING" size="256" sumtext="외래진료예약일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rsrvupdtinfo_rsrvupdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvupdtfromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="rsrvupdtfromtm" type="STRING" size="256" sumtext="시작시간"/>
- <Column id="rsrvupdttodd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="rsrvupdttotm" type="STRING" size="256" sumtext="종료시간"/>
- <Column id="updtresndesc" type="STRING" size="256" sumtext="변동사유"/>
- <Column id="updtresncnts" type="STRING" size="256" sumtext="비고"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종변경자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종변경일시"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실"/>
- <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="검사실명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun_memo" type="STRING" size="256"/>
- <Column id="mon_memo" type="STRING" size="256"/>
- <Column id="tue_memo" type="STRING" size="256"/>
- <Column id="wed_memo" type="STRING" size="256"/>
- <Column id="thu_memo" type="STRING" size="256"/>
- <Column id="fri_memo" type="STRING" size="256"/>
- <Column id="sat_memo" type="STRING" size="256"/>
- <Column id="colBack0" type="STRING" size="256"/>
- <Column id="colBack1" type="STRING" size="256"/>
- <Column id="colBack2" type="STRING" size="256"/>
- <Column id="colBack3" type="STRING" size="256"/>
- <Column id="colBack4" type="STRING" size="256"/>
- <Column id="colBack5" type="STRING" size="256"/>
- <Column id="colBack6" type="STRING" size="256"/>
- <Column id="colColor0" type="STRING" size="256"/>
- <Column id="colColor1" type="STRING" size="256"/>
- <Column id="colColor2" type="STRING" size="256"/>
- <Column id="colColor3" type="STRING" size="256"/>
- <Column id="colColor4" type="STRING" size="256"/>
- <Column id="colColor5" type="STRING" size="256"/>
- <Column id="colColor6" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="year" type="STRING" size="256"/>
- <Column id="month" type="STRING" size="256"/>
- <Column id="dd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cntflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_orddeptcdlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_info_wardcdlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="calrow" type="STRING" size="256"/>
- <Column id="calcol" type="STRING" size="256"/>
- <Column id="bfcalrow" type="STRING" size="256"/>
- <Column id="bfcalcol" type="STRING" size="256"/>
- <Column id="color" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init2_cmb_info_prcpgenrflag_M0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init2_cmb_info_initexecprcpstatcd_M0011" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_rsrvlist_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
- <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
- <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
- <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
- <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
- <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
- <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
- <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
- <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
- <!-- 2012.11.26 선택의 추가 by kya -->
- <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
- <!-- 2013.11.22 급비구분 추가 by kya -->
- <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
- <Column id="orddd" type="STRING" size="256" sumtext="외래진료예약일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_rsrvprescondlist_rsrvposstm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="시간"/>
- <Column id="count" type="STRING" size="256" sumtext="현황"/>
- <Column id="max" type="STRING" size="256" sumtext="가용인원수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_rsrvprescondlist_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
- <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
- <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
- <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
- <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
- <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
- <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
- <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
- <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
- <!-- 2012.11.26 선택의 추가 by kya -->
- <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
- <!-- 2013.11.22 급비구분 추가 by kya -->
- <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
- <Column id="orddd" type="STRING" size="256" sumtext="외래진료예약일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_rsrvlist_rsrvposstm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvtm" type="STRING" size="256" sumtext="시간"/>
- <Column id="count" type="STRING" size="256" sumtext="현황"/>
- <Column id="max" type="STRING" size="256" sumtext="가용인원수"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.combo1" propid="value" datasetid="ds_send" columnid="suppdeptcd"/>
- <BindItem id="item1" compid="group3.group2.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
- <BindItem id="item2" compid="group3.group2.combo6" propid="value" datasetid="ds_send" columnid="execrid"/>
- <BindItem id="item3" compid="group3.group2.rdo_ioflag" propid="value" datasetid="ds_send" columnid="ioflag"/>
- <BindItem id="item4" compid="group3.group2.rbo_gb" propid="value" datasetid="ds_send" columnid="unexecyn"/>
- <BindItem id="item5" compid="switch1.case1.group4.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
- <BindItem id="item6" compid="switch1.case1.group4.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
- <BindItem id="item7" compid="switch1.case2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="rsrvfromdd"/>
- <BindItem id="item8" compid="switch1.case2.ipt_todd" propid="value" datasetid="ds_send" columnid="rsrvtodd"/>
- <BindItem id="item9" compid="switch1.case2.ipt_prcpcd" propid="value" datasetid="ds_send" columnid="prcpcd"/>
- <BindItem id="item10" compid="switch1.case2.cmb_rsrvid" propid="value" datasetid="ds_send" columnid="rsrvid"/>
- <BindItem id="item11" compid="switch1.case1.chk_cntflag" propid="value" datasetid="ds_hidden" columnid="cntflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_examcurexp -> SMAEA05300
- * Creator : yjh
- * Make Date : 2018-02-12
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-02-12 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- include "ast_examcurexp::combolist.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function getRsrvPossTm(gridObj) {
- var calRow = ds_hidden_grdcellcolor.getColumn(0, "calrow");
- var calCol = ds_hidden_grdcellcolor.getColumn(0, "calcol");
-
- if( calCol >= 7 )
- calCol -= 7;
-
- var yyyy = ds_hidden_calendar.getColumn(0, "year");
- var mm = ds_hidden_calendar.getColumn(0, "month");
- var sColNm = utlf_transNullToEmpty(gridObj.getCellProperty("body", calCol, "text")).replace("bind:", "");
- var dd = ds_hidden_calendar_weeklist_list.getColumn(calRow, sColNm);
-
-
- if (utlf_getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- ds_send.setColumn(0, "rsrvtodd", yyyy + mm + dd);
- ds_send_data.setColumn(0, "rsrvdd", yyyy + mm + dd);
- ds_send.setColumn(0, "rsrvfromdd", "");
- ds_send_data.setColumn(0, "rsrvdate",ds_send_data.getColumn(0, "rsrvdd"));
-
- ds_hidden.setColumn(0, "cntflag", "");
-
- ds_send.setColumn(0, "rsrvdd", ds_send.getColumn(0, "rsrvtodd"));
-
- var oParam = {};
- oParam.id = "TRAEA05303";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvPresCondList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvprescondlist_rsrvposstm=rsrvposstm ds_main_rsrvprescondlist_rsrvprescond=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEA05303";
- tranf_submit(oParam);
-
- ds_main_rsrvprescondlist_rsrvprescond.addColumn("colBack", "string");
- ds_main_rsrvprescondlist_rsrvprescond.addColumn("colFont", "string");
-
- if( !utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
- ds_main_rsrvprescondlist_rsrvprescond.enableevent = false;
- ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = false;
-
- ds_main_rsrvprescondlist_rsrvprescond.deleteColumn("prcpdelivefact");
-
- ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = true;
- ds_main_rsrvprescondlist_rsrvprescond.enableevent = true;
- }
-
- ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
- }
- function initCalendar() {
-
- var curDate = utlf_getCurrentDate().toDate();
-
- ds_hidden_calendar.setColumn(0, "year", curDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", curDate.getDateFormat('MM'));
- //model.refresh();
-
- setCalendar(curDate);
-
- }
- function setCurrentDate() {
-
- var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",0);
- if(curWeek == "mon")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",1);
- if(curWeek == "tue")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",2);
- if(curWeek == "wed")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",3);
- if(curWeek == "thu")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",4);
- if(curWeek == "fri")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",5);
- if(curWeek == "sat")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",6);
-
- for(var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ ) {
- if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) ==curDate) {
- ds_hidden_grdcellcolor.setColumn(0, "calrow",i);
- }
- }
- setCellColor(switch1.case1.grd_calendar);
- }
- function setCellColor(gridObj) {
-
- var calRow = -1; //현재선택
- var calCol = -1; //현재선택
- var bfcalRow = -1; //전에 선택
- var bfcalCol = -1; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
- if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "calrow")) ){
- calRow = Number(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
- }
- if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "calcol")) ){
- calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
- }
-
- if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow")) ){
- bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
- }
- if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol")) ){
- bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
- }
- // 1. 원래 색으로 돌려놓기
- if(ds_hidden_grdcellcolor.getColumn(0, "color") == "1" ) {
-
- ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#ffffff"); //yjh
- // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- //
- // if( bfcalCol < 7 )
- // bfcalCol += 7;
- // else
- // bfcalCol -= 7;
- //
- // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- }
- else if (ds_hidden_grdcellcolor.getColumn(0, "color") == "2" ) {
-
- ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#c4e693");
- // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- //
- // if( bfcalCol < 7 )
- // bfcalCol += 7;
- // else
- // bfcalCol -= 7;
- //
- // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- // if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
- //
- // model.setValue("/root/hidden/grdcellcolor/color", "1");
- // }
- // if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
- //
- // model.setValue("/root/hidden/grdcellcolor/color", "2");
- // }
-
- if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#ffffff" ) {
- //if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
-
- ds_hidden_grdcellcolor.setColumn(0, "color", "1");
- }
- if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#c4e693" ) {
- //if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
- ds_hidden_grdcellcolor.setColumn(0, "color", "2");
- }
- ds_hidden_grdcellcolor.setColumn(0, "bfcalrow",calRow);
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol",calCol);
-
- ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#daa7d9");
- // gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- //
- // if( calCol < 7 )
- // calCol += 7;
- // else
- // calCol -= 7;
- //
- // gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- // 현재일자 색상 표시 2011.07.20 by kya
- var curdate = utlf_getCurrentDate();
- var caldate = utlf_transNullToEmpty(ds_hidden_calendar.getColumn(0, "year")) + utlf_transNullToEmpty(ds_hidden_calendar.getColumn(0, "month"));
- var curday = curdate.substring(6,8);
- var calday = "";
-
- if ( curdate.substring(0,6) == caldate ) {
- for (var i=0; i<ds_hidden_calendar_weeklist_list.rowcount; i++) {
- for (var j=0; j<gridObj.getFormatColCount(); j++) {
- var sColNm = utlf_transNullToEmpty(gridObj.getCellProperty("body", j, "text")).replace("bind:", "");
- calday = ds_hidden_calendar_weeklist_list.getColumn(i, sColNm);
- if (eval(curday) == calday) {
- calRow = i;
- calCol =j;
- // 현재일자 색상 표시
- ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#95d4fb");
- // gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
- //
- // if ( calCol < 7 ) {
- // calCol += 7;
- // } else {
- // calCol -= 7;
- // }
- // gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
- }
- }
- }
- }
-
-
- }
- function fGetCalendar(arg){
-
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- if(ds_hidden_calendar.getColumn(0, "month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
-
- }
- if(ds_hidden_calendar.getColumn(0, "month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
- setCalendar(isDate);
- }
- function setCalendar(dateObj) {
- // 그리드 초기화
- ds_hidden_calendar_weeklist_list.clearData();
- ds_init_curerprescondlist_rsrvcalendar.clearData();;
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- /*
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- */
- if (rows != ds_hidden_calendar_weeklist_list.rowcount){
- ds_hidden_calendar_weeklist_list.clearData();
-
- for( var i = 0; i < rows; i++ ){
- ds_hidden_calendar_weeklist_list.addRow();
- }
-
- ds_hidden_calendar_weeklist_list.rowposition = -1;
- }else{
- //model.setValue("/root/hidden/calendar/weeklist/list", "");
-
- }
-
- var rowIndex = 0;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- var sColNm = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex, "text")).replace("bind:", "");
- var sColNm2 = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex+7, "text")).replace("bind:", "");
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm, i);
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm2, "0/0");
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
-
- }
- }
-
- ds_send_data.setColumn(0, "rsrvdd",ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")+"01");
-
- fCalendar();
-
- setRsrvPresCondByMonth();
-
- //submit("TRAEA00901");
-
- }
- function fCalendar(){
- var oParam = {};
- oParam.id = "TRAEA02012";
- oParam.service = "examcurersrvapp.SytsRsrv";
- oParam.method = "reqGetCalenList";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_init_calenlist_calendinfo=calendinfo";
- oParam.async = false;
- oParam.callback = "cf_TRAEA02012";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TRAEA02012") > -1){
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
- for (var i = 0; i < ds_init_calenlist_calendinfo.rowcount; i++) {
- var dd = ds_init_calenlist_calendinfo.getColumn(i, "basedd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
- //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
- if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "8"){
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "red"); //yjh
- //grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "4"){
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "blue");
- //grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "black");
- //grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
- }
- }
- }
- function cf_TRAEA02012(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function setCalendarinit(dateObj){
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rowIndex = 0;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- var sColNm = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex, "text")).replace("bind:", "");
- var sColNm2 = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex+7, "text")).replace("bind:", "");
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm, i);
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm2, "0/0");
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
-
- }
- }
- }
- function setRsrvPresCondByMonth() {
- ds_send.setColumn(0, "deptcd", ds_send.getColumn(0, "suppdeptcd"));
- ds_send.setColumn(0, "rsrvdd", ds_send_data.getColumn(0, "rsrvdd"));
-
- var oParam = {};
- oParam.id = "TRAEA00907";
- oParam.service = "examcurersrvapp.SytsRsrv";
- oParam.method = "reqGetCurerRsrvCountInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_curerprescondlist_rsrvcalendar=rsrvcalendar ds_init_curerprescondlist_orddeptlist=orddeptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA00907";
- tranf_submit(oParam);
-
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
- for (var i = 0; i < ds_init_calenlist_calendinfo.rowcount; i++) {
- var dd = ds_init_calenlist_calendinfo.getColumn(i, "basedd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
- //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colBack"+colidx, "white"); //yjh
- // grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
- // grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
- }
- //grd_calendar.rebuildStyle();
- for (var i = 0; i < ds_init_curerprescondlist_rsrvcalendar.rowcount; i++) {
- var dd = ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "rsrvdd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
- var sColNm = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colidx+7, "text")).replace("bind:", "");
-
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, sColNm, ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "count")+"/"+ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "max"));
-
- //예약가능일자 녹색주기
- //if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") < model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")){
- /*
- if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") > "0"){
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
- }else{
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "#ffffff";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#ffffff"; // #D9EFB9 < #C4E693 < #ABDC65
- }
- */
- if(parseFloat(ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "count")) < parseFloat(ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "max"))){
- //alert("==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) + "==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")));
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colBack"+colidx, "#c4e693");
- // grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
- // grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
- }
- }
- setCellColor(switch1.case1.grd_calendar);
-
- ds_hidden.setColumn(0, "cntflag", "");
-
- ds_send.setColumn(0, "rsrvdd", ds_send.getColumn(0, "rsrvtodd"));
-
- var oParam = {};
- oParam.id = "TRAEA05303";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvPresCondList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvprescondlist_rsrvposstm=rsrvposstm ds_main_rsrvprescondlist_rsrvprescond=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEA05303";
- tranf_submit(oParam);
-
- ds_main_rsrvprescondlist_rsrvprescond.addColumn("colBack", "string");
- ds_main_rsrvprescondlist_rsrvprescond.addColumn("colFont", "string");
-
- if( !utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
- ds_main_rsrvprescondlist_rsrvprescond.enableevent = false;
- ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = false;
-
- ds_main_rsrvprescondlist_rsrvprescond.deleteColumn("prcpdelivefact");
-
- ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = true;
- ds_main_rsrvprescondlist_rsrvprescond.enableevent = true;
- }
-
- ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
-
- //2011.08.10 검사실별 휴검관리 조회 추가- 박재영
- var sdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"01";
- var tdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"31";
- ds_send.setColumn(0, "sdate",sdate);
- ds_send.setColumn(0, "tdate",tdate);
-
- var oParam = {};
- oParam.id = "TRAEA00701";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvUpdtInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvupdtinfo_rsrvupdt=rsrvupdt";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA00701";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEA05300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMAEA05300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEA05300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMAEA05300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(switch1.case1.datagrid1);
- grdf_setGridSort(switch1.case2.datagrid2);
-
- ds_send_globalinstance.setColumn(0, "rbasecdflag", "R");
- ds_send_globalinstance.setColumn(0, "ebasecdflag", "E");
-
- group3.group2.rbo_gb.value = "";
- group3.group2.rdo_ioflag.value = "";
-
- ds_main_rsrvprescondlist_rsrvprescond.clearData();
-
- lf_aezfSetSuppDeptcd();
- ds_send_globalinstance.setColumn(0, "instance1", frmf_getParameter("AST_DEPTCD"));
-
- //model.setValue("/root/send/rsrvfromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
- ds_send.setColumn(0, "rsrvtodd", utlf_getCurrentDate());
- ds_send.setColumn(0, "prsrvfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "prsrvtodd", utlf_getCurrentDate());
- var instcd = sysf_getUserInfo("posinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; //외래진료실
- var rslt_ref = "ds_init_cmb_info_orddeptcdlist_dept";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref);
-
- ord_deptflag = "W"; //일반병동
- rslt_ref = "ds_init_cmb_info_wardcdlist_dept";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref);
-
- //통합예약사용자가져오기
- var arrParam = [{dsNm: "ds_init_cmb_info_rsrvidinfo_T0001", cdGrpId: "T0001"}]
- lf_getAstCodeList(arrParam);
- //astGetComboList( new Array("T0001"), new Array("/root/init/cmb_info/rsrvidinfo") );
- ds_send.setColumn(0, "rsrvid", "");//model.getValue("/root/init/cmb_info/rsrvidinfo/T0001"));
- switch1.case2.cmb_rsrvid.index = 0;
-
- var arrParam = [{dsNm: "ds_init2_cmb_info_initexecprcpstatcd_M0011", cdGrpId: "M0011"},
- {dsNm: "ds_init2_cmb_info_prcpgenrflag_M0010", cdGrpId: "M0010"}]
- appf_getCodeList(arrParam);
- //submit("TRZBC00101", false); //사용 안하는듯..
-
- //submit("TRAEA00904", false); //지원부서
- ds_send_globalinstance.setColumn(0, "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
-
- var oParam = {};
- oParam.id = "TRAEA05301";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvSuppDeptCdList";
- oParam.inds = "req=ds_send_globalinstance";
- oParam.outds = "ds_init_cmb_info_suppdeptlist_suppdept=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA05301";
- tranf_submit(oParam); //지원부서
-
- // submit("TRAEA00902", false); //검사실
- // submit("TRAEA00903", false); //검사자
- // submit("TRAEA01301", false); //검사실
-
- switch1.tabindex = 0;
-
- ds_send.setColumn(0, "suppdeptcd",ds_send_globalinstance.getColumn(0, "instance1"));
- ds_send.setColumn(0, "psuppdeptcd",ds_send_globalinstance.getColumn(0, "instance1"));
- ds_send.setColumn(0, "printgubn", "1");
-
- // //*********************************************************************************************************************************************
- // //담당 검사실 갖고오기
- // submit("TRAEA01115",false);
- //
- // //담당 검사실 세팅
- // model.setValue("/root/send/excuroomcd",model.getValue("/root/init2/cmb_info/initexcuroomcd[1]/excuroomcd"));
- // //*********************************************************************************************************************************************
-
- initCalendar();
- setCurrentDate();
-
- //model.toggle("case1");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if (switch1.tabindex == 0) {
-
- ds_hidden.setColumn(0, "cntflag", "");
-
- ds_send.setColumn(0, "rsrvdd", ds_send.getColumn(0, "rsrvtodd"));
-
- var oParam = {};
- oParam.id = "TRAEA05303";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvPresCondList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvprescondlist_rsrvposstm=rsrvposstm ds_main_rsrvprescondlist_rsrvprescond=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEA05303";
- tranf_submit(oParam);
-
- ds_main_rsrvprescondlist_rsrvprescond.addColumn("colBack", "string");
- ds_main_rsrvprescondlist_rsrvprescond.addColumn("colFont", "string");
-
- if( !utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
- ds_main_rsrvprescondlist_rsrvprescond.enableevent = false;
- ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = false;
-
- ds_main_rsrvprescondlist_rsrvprescond.deleteColumn("prcpdelivefact");
-
- ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = true;
- ds_main_rsrvprescondlist_rsrvprescond.enableevent = true;
- }
-
- ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
-
- //2011.08.10 검사실별 휴검관리 조회 추가- 박재영
- var sdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"01";
- var tdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"31";
- ds_send.setColumn(0, "sdate",sdate);
- ds_send.setColumn(0, "tdate",sdate);
-
- var oParam = {};
- oParam.id = "TRAEA00701";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvUpdtInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvupdtinfo_rsrvupdt=rsrvupdt";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA00701";
- tranf_submit(oParam);
- } else {
- var oParam = {};
- oParam.id = "TRAEA05302";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvPresCondList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvprescondlist2_rsrvprescond=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA05302";
- tranf_submit(oParam);
-
- if( !utlf_isNull(ds_main_rsrvprescondlist2_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
- ds_main_rsrvprescondlist2_rsrvprescond.enableevent = false;
- ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = false;
-
- ds_main_rsrvprescondlist2_rsrvprescond.deleteColumn("prcpdelivefact");
-
- ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = true;
- ds_main_rsrvprescondlist2_rsrvprescond.enableevent = true;
- }
-
- ds_main_rsrvprescondlist2_rsrvprescond.rowposition = -1;
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_excuroom
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function group3_group2_cmb_excuroom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if (switch1.tabindex == 0) {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendarinit(isDate);
- setRsrvPresCondByMonth();
- } else {
- var oParam = {};
- oParam.id = "TRAEA05302";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetRsrvPresCondList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsrvprescondlist2_rsrvprescond=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA05302";
- tranf_submit(oParam);
-
- if( !utlf_isNull(ds_main_rsrvprescondlist2_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
- ds_main_rsrvprescondlist2_rsrvprescond.enableevent = false;
- ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = false;
-
- ds_main_rsrvprescondlist2_rsrvprescond.deleteColumn("prcpdelivefact");
-
- ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = true;
- ds_main_rsrvprescondlist2_rsrvprescond.enableevent = true;
- }
-
- ds_main_rsrvprescondlist2_rsrvprescond.rowposition = -1
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : combo1
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function group3_group2_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send_globalinstance.setColumn(0, "instance1", ds_send.getColumn(0, "suppdeptcd"));
- ds_send.setColumn(0, "excuroomcd", "");
-
- ds_send_globalinstance.setColumn(0, "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
-
- var oParam = {};
- oParam.id = "TRAEA00902";
- oParam.service = "examcurebaseapp.ExamCureRoom";
- oParam.method = "reqGetExamCureRoomGrpList";
- oParam.inds = "req=ds_send_globalinstance";
- oParam.outds = "ds_init_cmb_info_excuroomcdlist_excuroom=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA00902";
- tranf_submit(oParam);
-
- ds_send_globalinstance.setColumn(0, "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
-
- var oParam = {};
- oParam.id = "TRAEA00903";
- oParam.service = "examcurebaseapp.ExecrCode";
- oParam.method = "reqGetExecrCodeList";
- oParam.inds = "req=ds_send_globalinstance";
- oParam.outds = "ds_init_cmb_info_execridlist_execr=execrcode";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA00903";
- tranf_submit(oParam);
-
- ds_main_rsrvprescondlist_rsrvposstm.clearData();
-
- ds_main_rsrvprescondlist_rsrvprescond.clearData();
-
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendarinit(isDate);
- }
- /****************************************************************************************
- * Components : Tab
- * Components ID : switch1
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 탭 변경시
- ****************************************************************************************/
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- switch( e.postindex ){
- case 0 :
- var excuroomcd = ds_send.getColumn(0, "excuroomcd");
- ds_send.setColumn(0, "rsrvfromdd", "");
-
- if (utlf_isNull(excuroomcd)) {
- ds_main_rsrvprescondlist_rsrvposstm.clearData();
-
- ds_main_rsrvprescondlist_rsrvprescond.clearData();
-
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendarinit(isDate);
- } else {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendarinit(isDate);
- setRsrvPresCondByMonth();
- }
- break;
-
- case 1 :
- var rsrvfromdd = ds_send.getColumn(0, "rsrvfromdd");
- if (utlf_isNull(rsrvfromdd)) {
- switch1.case2.ipt_fromdd.value = utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
- ds_send.setColumn(0, "rsrvfromdd", utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
- }
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 일일예약리스트출력버튼 클릭시
- ****************************************************************************************/
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- model.setValue("/root/send/reqdata/rsrvfromdd", ds_send.getColumn(0, "rsrvfromdd"));
- model.setValue("/root/send/reqdata/rsrvtodd", ds_send.getColumn(0, "rsrvtodd"));
- model.setValue("/root/send/reqdata/suppdeptcd", ds_send.getColumn(0, "suppdeptcd"));
- model.setValue("/root/send/reqdata/excuroomcd", ds_send.getColumn(0, "excuroomcd"));
- model.setValue("/root/send/reqdata/execrid", ds_send.getColumn(0, "execrid"));
- model.setValue("/root/send/reqdata/instcd", sysf_getUserInfo("dutplceinstcd"));
- var _room = combo1.label
- if(cmb_excuroom.label != '' && cmb_excuroom.label.length >1)
- { _room += '('+ cmb_excuroom.label +')'; }
- model.setValue("/root/send/reqdata/room", _room);
-
- var printgubn = ds_send.getColumn(0, "printgubn");
- if (printgubn == "1") {
- exeReportPreview("RPAEA00910", "XML", "/root/send/reqdata");
- } else if (printgubn == "2"){
- exeReportPreview("RPAEA00911", "XML", "/root/send/reqdata");
- } else {
- exeReportPreview("RPAEA00912", "XML", "/root/send/reqdata");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_reset
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_calendar
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function switch1_case1_grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_hidden_calendar_weeklist_list.rowposition != -1 ) {
-
- ds_hidden_grdcellcolor.setColumn(0, "calrow",ds_hidden_calendar_weeklist_list.rowposition);
- ds_hidden_grdcellcolor.setColumn(0, "calcol",switch1.case1.grd_calendar.currentcol);
-
- setCellColor(switch1.case1.grd_calendar);
- getRsrvPossTm(switch1.case1.grd_calendar);
-
-
- var curDate = utlf_getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =ds_send_data.getColumn(0, "rsrvdd"); //선택일자
-
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button7
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 1버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "01") {
- fGetCalendar("01");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button8
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 2버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "02") {
- fGetCalendar("02");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button9
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 3버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "03") {
- fGetCalendar("03");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button10
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 4버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "04") {
- fGetCalendar("04");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button11
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 5버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "05") {
- fGetCalendar("05");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button12
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 6버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button12_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "06") {
- fGetCalendar("06");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button13
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 7버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button13_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "07") {
- fGetCalendar("07");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button14
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 8버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button14_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "08") {
- fGetCalendar("08");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button18
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 9버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button18_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "09") {
- fGetCalendar("09");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button19
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 10버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button19_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "10") {
- fGetCalendar("10");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button20
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 11버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button20_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "11") {
- fGetCalendar("11");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button21
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 12버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button21_onclick(obj:Button, e:ClickEventInfo)
- {
- if(switch1.case1.group4.opt_month.value!== "12") {
- fGetCalendar("12");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button31
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >>버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button31_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button33
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button33_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
- /*
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
- */
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button35
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button35_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- /*
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
- */
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button36
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <<버튼 클릭시
- ****************************************************************************************/
- function switch1_case1_group4_button36_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : datagrid1
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function switch1_case1_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if (utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumn(ds_main_rsrvprescondlist_rsrvprescond.rowposition, "hngnm"))) {
- return;
- }
-
- var pid = ds_main_rsrvprescondlist_rsrvprescond.getColumn(ds_main_rsrvprescondlist_rsrvprescond.rowposition, "pid");
-
- var main = frmf_getMainViewer();
-
- // if (main.document.title == "통합예약관리") {
- // main.window.model.makeValue("/root/send/data/srchpid", pid);
- // main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
- // } else if (main.document.title == "검사예약") {
- // main.window.ds_send_data.setColumn(0, "pid", pid);
- // setGlobalVariable("menuparam", "T");
- // main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "root/send/data/pid", "root/send/data/pid");
- // }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : datagrid4
- * Event : onsetfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 포커스 들어올때
- ****************************************************************************************/
- function switch1_case1_datagrid4_onsetfocus(obj:Grid, e:SetFocusEventInfo)
- {
- //checkKeyColumn("datagrid2");
- }
- /****************************************************************************************
- * Components : CheckBox
- * Components ID : chk_cntflag
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 체크박스 클릭시
- ****************************************************************************************/
- function switch1_case1_chk_cntflag_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- obj.updateToDataset();
-
- var mPath = ds_main_rsrvprescondlist_rsrvprescond;
- var cnt = ds_main_rsrvprescondlist_rsrvprescond.rowcount;
- if (cnt < 1) {
- return;
- }
-
- var hPath = ds_hidden_rsrvlist_rsrvprescond;
-
- if (ds_hidden.getColumn(0, "cntflag") == "Y") {
-
- // 원본 노드 백업
- ds_temp_rsrvprescondlist_rsrvposstm.copyData(ds_main_rsrvprescondlist_rsrvposstm);
- ds_temp_rsrvprescondlist_rsrvprescond.copyData(ds_main_rsrvprescondlist_rsrvprescond);
-
- // 작업 노드 저장
- ds_hidden_rsrvlist_rsrvposstm.copyData(ds_main_rsrvprescondlist_rsrvposstm);
- ds_hidden_rsrvlist_rsrvprescond.copyData(ds_main_rsrvprescondlist_rsrvprescond);
-
- ds_hidden_rsrvlist_rsrvprescond.keystring = "S:rsrvtm";
-
- ds_main_rsrvprescondlist_rsrvposstm.clearData();
- ds_main_rsrvprescondlist_rsrvprescond.clearData();
-
- var hCnt = 1;
- var addCnt = 0;
-
- for (var i = 0; i < cnt; i++) {
- var nRow = ds_main_rsrvprescondlist_rsrvprescond.addRow();
- ds_main_rsrvprescondlist_rsrvprescond.copyRow(nRow, ds_hidden_rsrvlist_rsrvprescond, i);
-
- var hour = utlf_transNullToEmpty(ds_hidden_rsrvlist_rsrvprescond.getColumn(i, "rsrvtm")).substr(8, 2);
-
- var nextHour = "";
- if (i < (cnt-1)) {
- nextHour = utlf_transNullToEmpty(ds_hidden_rsrvlist_rsrvprescond.getColumn(i+1, "rsrvtm")).substr(8, 2);
- } else {
- nextHour = parseInt(hour) + 1;
- nextHour = nextHour.length == 1 ? "0" + nextHour : String(nextHour);
- }
-
- if (hour != nextHour) {
-
- var nRow2 = ds_main_rsrvprescondlist_rsrvprescond.addRow();
- // var node = instance1.selectSingleNode(hPath + "[" + i + "]");
- // var nodeList = node.childNodes;
- // while (n = nodeList.nextNode()) {
- // model.makeValue(mPath + "[" + ( i + addCnt ) + "]/" + n.nodeName, "");
- // }
-
- ds_main_rsrvprescondlist_rsrvprescond.setColumn(nRow2, "rsrvtm", hour + ":00 ~ " + nextHour + ":00");
- ds_main_rsrvprescondlist_rsrvprescond.setColumn(nRow2, "pid", hCnt);
-
- addCnt++;
-
- hCnt = 1;
-
- } else {
- hCnt++;
- }
- }
-
- for (var i = 0; i < ds_main_rsrvprescondlist_rsrvprescond.rowcount; i++) {
- if (utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumn(i, "hngnm"))){
- ds_main_rsrvprescondlist_rsrvprescond.setColumn(i, "colBack", "#ffff00");
- ds_main_rsrvprescondlist_rsrvprescond.setColumn(i, "colFont", "arial,9,bold");
- }
- }
-
- } else {
-
- ds_main_rsrvprescondlist_rsrvposstm.copyData(ds_temp_rsrvprescondlist_rsrvposstm);
- ds_main_rsrvprescondlist_rsrvprescond.copyData(ds_temp_rsrvprescondlist_rsrvprescond);
- }
-
- ds_main_rsrvprescondlist_rsrvprescond.rowposition = 0;
- ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장 클릭시
- ****************************************************************************************/
- function switch1_case1_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var filename = "검사실별 예약 현황_" + group3.group2.combo1.text + "_" + ds_send_data.getColumn(0, "rsrvdd");
-
- if( switch1.case1.datagrid1.rowcount > 0 ){
- grdf_exportExcel(switch1.case1.datagrid1, filename, "예약내역", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
-
- // var filename = "검사실별 예약 현황_" + group3.group2.combo1.text + "_" + ds_send_data.getColumn(0, "rsrvdd");
- // var filename = window.fileDialog("save", ",", false, filename, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- // if (filename == "") {
- // messageBox("파일명을 지정해 주십시오.", "C999");
- // return;
- // }
- //
- // datagrid1.saveExcel(filename, "sheetname:예약내역;colhiddenextend:true;rowhiddenextend:false;");
- // messageBox("엑셀 저장이 완료되었습니다.", "I999");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : datagrid2
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function switch1_case2_datagrid2_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var pid = ds_main_rsrvprescondlist2_rsrvprescond.getColumn(ds_main_rsrvprescondlist2_rsrvprescond.rowposition, "pid");
-
- var main = frmf_getMainViewer();
-
- // if (main.document.title == "통합예약관리") {
- // main.window.model.makeValue("/root/send/data/srchpid", pid);
- // main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
- // } else if (main.document.title == "검사예약") {
- // main.window.ds_send_data.setColumn(0, "pid", pid);
- // main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "/root/send/data/pid", "/root/send/data/pid");
- // }
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_ioflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_group2_rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group3.group2.btn_sea.click();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rbo_gb
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_group2_rbo_gb_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group3.group2.btn_sea.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function cf_TRAEA05303(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- if(utlf_isNull(ds_main_rsrvprescondlist_rsrvposstm.getColumnInfo("excutm"))) return;
-
- ds_main_rsrvprescondlist_rsrvposstm.addColumn("over","string");
- for(var i = 1 ; i < ds_main_rsrvprescondlist_rsrvposstm.rowcount ; i++) {
- var tmbefor = ds_main_rsrvprescondlist_rsrvposstm.getColumn(i-1,"rsrvtm");
- var tmnow = ds_main_rsrvprescondlist_rsrvposstm.getColumn(i,"rsrvtm");
-
- if(tmbefor == tmnow) continue;
-
- var interval = fn_getInterval(tmnow, tmbefor);
- if(interval < parseInt(ds_main_rsrvprescondlist_rsrvposstm.getColumn(i-1, "excutm"))) {
- ds_main_rsrvprescondlist_rsrvposstm.setColumn(i, "over", "Y");
- }
- }
- }
- function fn_getInterval(a, b) {
- var a1 = a.substring(0,2);
- var a2 = a.substring(2,4);
- var b1 = b.substring(0,2);
- var b2 = b.substring(2,4);
- var m1 = (parseInt(a1) - parseInt(b1)) * 60;
- var m2 = 0;
- if(parseInt(a2) < parseInt(b2)) {
- m2 = ((parseInt(a2)+60) - parseInt(b2)) * -1;
- } else {
- m2 = parseInt(a2) - parseInt(b2);
- }
-
- return m1 + m2;
- }]]></Script>
- </Form>
- </FDL>
|