123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMT01000" position="absolute 0 0 1195 845" titletext="예약장부" oninit="SMMMT01000_oninit" onload="SMMMT01000_onload">
- <Layouts>
- <Layout>
- <Div id="grp_srch" taborder="13" position="absolute 0 453 530 515" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption17" text="~" position="absolute 169 37 184 55" anchor="default"/>
- <Shape id="line4" linetype="vertical" position="absolute 447 32 453 58" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 466 35 522 57" onclick="grp_srch_btn_search_onclick" anchor="default"/>
- <Calendar id="ipt_srchenddd" taborder="3" class="input_search" position="absolute 183 36 269 55" anchor="default" autoselect="true" dateformat="yyyy-MM-dd"/>
- <Calendar id="ipt_srchstartdd" taborder="4" class="input_search" position="absolute 80 36 165 55" anchor="default" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
- <Edit id="ipt_srchpid" taborder="6" class="input_search" position="absolute 409 8 524 27" anchor="default" autoselect="true"/>
- <Static id="caption32" text="조회기간 :" class="search_name" position="absolute 5 38 78 55" anchor="default"/>
- <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 339 10 410 27" anchor="default"/>
- <Static id="cap_schehistcd" text="상태 :" class="search_name" position="absolute 279 38 337 55"/>
- <Combo id="cmb_schehistcd" taborder="7" innerdataset="@ds_init_schehistcd" codecolumn="histcd" datacolumn="histnm" class="combo_search" position="absolute 332 36 422 55"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="예약일자" position="absolute 535 127 655 150" align="align:left middle;" id="caption3" class="cell_1"/>
- <Static text="진료실" position="absolute 1214 83 1315 106" align="align:left middle;" id="caption4" class="cell_1" visible="false"/>
- <Static text="예약장부등록" position="absolute 537 27 650 43" align="align:center middle;" id="caption27" class="tit_2"/>
- <Shape position="absolute 534 44 1194 50" linetype="horizontal" id="line2" class="line_1" style="strokepen:3 solid #9ebed4ff;"/>
- <Static text="예약 장부" position="absolute 0 0 193 24" id="stt_head" class="tit_1" onclick="caption28_onclick"/>
- <Static text="진료의" position="absolute 837 75 938 98" align="align:left middle;" id="caption34" class="cell_1"/>
- <Static text="등록번호" position="absolute 535 49 655 72" align="align:left middle;" id="caption35" class="cell_1"/>
- <Static text="성 명" position="absolute 837 49 937 72" align="align:left middle;" id="caption36" class="cell_1"/>
- <Grid position="absolute 0 539 1195 845" id="grd_schelist" binddataset="ds_main_schereclist" autoenter="select" anchor="all" oncellclick="grd_schelist_oncellclick" extendsizetype="col" cellsizingtype="col" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="40" band="left"/>
- <Column size="70" band="left"/>
- <Column size="47" band="left"/>
- <Column size="60" band="left"/>
- <Column size="60" band="left"/>
- <Column size="40" band="left"/>
- <Column size="100" band="left"/>
- <Column size="60" band="left"/>
- <Column size="110" band="left"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="30"/>
- </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="S/A"/>
- <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="regstno"/>
- <Cell col="16" text="regshitno"/>
- <Cell col="17" text="schehistcd"/>
- <Cell col="18" text="deptinnrscflag"/>
- <Cell col="19" text="sex"/>
- <Cell col="20" text="age"/>
- <Cell col="21" text="status"/>
- <Cell col="22" text="순서"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:schehistcd" combodataset="ds_init_schehistcd" combocodecol="histcd" combodatacol="histnm"/>
- <Cell col="2" displaytype="date" text="bind:schedd"/>
- <Cell col="3" displaytype="text" text="bind:schedt" mask="expr:utlf_isNull(schedt) ? '' : '##:##'"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:ptbsinfo"/>
- <Cell col="7" displaytype="combo" style="align:left;" text="bind:deptcd" combodataset="ds_init_orddept3" combocodecol="deptcd" combodatacol="depthngnm"/>
- <Cell col="8" text="bind:drnm"/>
- <Cell col="9" displaytype="text" style="align:left middle;padding:0 5 0 5;" text="bind:diagnm"/>
- <Cell col="10" displaytype="combo" text="bind:cnclresncd" combodataset="ds_init_cnclresn" combocodecol="trgtcd" combodatacol="trgtcdnm"/>
- <Cell col="11" text="bind:fstrgstrnm"/>
- <Cell col="12" text="bind:fstrgstdt" mask="####-##-## ##:##"/>
- <Cell col="13" text="bind:lastupdtrnm"/>
- <Cell col="14" text="bind:lastupdtdt" mask="####-##-## ##:##"/>
- <Cell col="15" text="bind:regstno"/>
- <Cell col="16" text="bind:regshitno"/>
- <Cell col="17" text="bind:schehistcd"/>
- <Cell col="18" text="bind:deptinnrscflag"/>
- <Cell col="19" text="bind:sex"/>
- <Cell col="20" text="bind:age"/>
- <Cell col="21" text="bind:status"/>
- <Cell col="22" text="bind:refseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 69 530 447" id="grd_calendar" binddataset="ds_main_week" autofittype="col" oncellclick="grd_calendar_oncellclick" selecttype="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="58"/>
- </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="align:left top;padding:18 5 0 5;color:#ff0000ff;color2:#ff0000ff;font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:sun"/>
- <Cell col="1" style="align:left top;padding:18 5 0 5;color:EXPR(getColumn(currow,'mon').substr(getColumn(currow,'mon').length-1,getColumn(currow,'mon').length) == 8?"#FF0000":"");color2:EXPR(getColumn(currow,'mon').substr(getColumn(currow,'mon').length-1,getColumn(currow,'mon').length) == 8?"#FF0000":"");font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:mon"/>
- <Cell col="2" style="align:left top;padding:18 5 0 5;color:EXPR(getColumn(currow,'tue').substr(getColumn(currow,'tue').length-1,getColumn(currow,'tue').length) == 8?"#FF0000":"");color2:EXPR(getColumn(currow,'tue').substr(getColumn(currow,'tue').length-1,getColumn(currow,'tue').length) == 8?"#FF0000":"");font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:tue"/>
- <Cell col="3" style="align:left top;padding:18 5 0 5;color:EXPR(getColumn(currow,'wed').substr(getColumn(currow,'wed').length-1,getColumn(currow,'wed').length) == 8?"#FF0000":"");color2:EXPR(getColumn(currow,'wed').substr(getColumn(currow,'wed').length-1,getColumn(currow,'wed').length) == 8?"#FF0000":"");font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:wed"/>
- <Cell col="4" style="align:left top;padding:18 5 0 5;color:EXPR(getColumn(currow,'thu').substr(getColumn(currow,'thu').length-1,getColumn(currow,'thu').length) == 8?"#FF0000":"");color2:EXPR(getColumn(currow,'thu').substr(getColumn(currow,'thu').length-1,getColumn(currow,'thu').length) == 8?"#FF0000":"");font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:thu"/>
- <Cell col="5" style="align:left top;padding:18 5 0 5;color:EXPR(getColumn(currow,'fri').substr(getColumn(currow,'fri').length-1,getColumn(currow,'fri').length) == 8?"#FF0000":"");color2:EXPR(getColumn(currow,'fri').substr(getColumn(currow,'fri').length-1,getColumn(currow,'fri').length) == 8?"#FF0000":"");font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:fri"/>
- <Cell col="6" style="align:left top;padding:18 5 0 5;color:EXPR(getColumn(currow,'sat').substr(getColumn(currow,'sat').length-1,getColumn(currow,'sat').length) == 8?"#FF0000":"#0000FF");color2:EXPR(getColumn(currow,'sat').substr(getColumn(currow,'sat').length-1,getColumn(currow,'sat').length) == 8?"#FF0000":"#0000FF");font:돋움,10,bold;selectbackground:URL('theme://images\redbox.png') stretch;" text="bind:sat"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 658 51 810 70" id="ipt_pid" class="input_essential" onkeydown="ipt_pid_onkeydown" autoselect="true"/>
- <Edit readonly="true" position="absolute 940 51 1109 70" align="align:left middle;" id="sct_hngnm" class="output" autoselect="true"/>
- <Edit readonly="true" position="absolute 1114 51 1190 70" align="align:center middle;" id="sct_sa" class="output"/>
- <Calendar position="absolute 658 129 778 148" align="align:center middle;" id="ipt_schedd" class="input_essential" autoselect="true"/>
- <Combo position="absolute 941 77 1190 96" align="align:left middle;" id="cmb_drid" class="combo_essential" innerdataset="@ds_init_userlist2" datacolumn="usernm" codecolumn="userid" visible="true"/>
- <Combo position="absolute 1318 85 1567 104" align="align:left middle;" id="cmb_scroomcd" class="combo_essential" enable="true" innerdataset="@ds_init_scroomlist" datacolumn="roomnm" codecolumn="roomcd" visible="false"/>
- <Edit position="absolute 439 519 460 538" id="ipt_scregstremfact2" class="input_search" visible="false"/>
- <Button position="absolute 0 26 26 45" id="btn_bfyear" class="icon_left" text="" onclick="btn_bfyear_onclick"/>
- <Button position="absolute 128 26 154 45" id="btn_aftyear" class="icon_right" text="" onclick="btn_aftyear_onclick"/>
- <Static text="예약 리스트" position="absolute 1 522 172 538" align="align:center middle;" id="caption11" class="tit_2"/>
- <Button position="absolute 1138 20 1194 42" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick"/>
- <Static text="/" position="absolute 1148 51 1158 71" id="caption14"/>
- <Button position="absolute 1080 20 1136 42" id="btn_del" class="btn4" text="삭제" onclick="btn_del_onclick"/>
- <Button position="absolute 1022 20 1078 42" id="btn_new" class="btn4" text="신규" onclick="btn_new_onclick"/>
- <Edit position="absolute 27 26 127 45" align="align:center middle;" id="output2" style="align:center middle;font:Dotum,11,bold;" autoselect="true"/>
- <Edit readonly="true" position="absolute 1119 51 1149 70" align="align:center middle;" id="output3" style="background:transparent;border:1 none #808080ff ;" autoselect="true"/>
- <Edit readonly="true" position="absolute 1154 51 1184 70" align="align:center middle;" id="output4" style="background:transparent;" class="output" autoselect="true"/>
- <Combo position="absolute 156 26 310 45" id="cmb_schedept" class="combo_search" innerdataset="@ds_init_orddept4" datacolumn="depthngnm" codecolumn="deptcd" style="background:#ccffccff;border:1 solid #808080ff ;" onitemchanged="cmb_schedept_onitemchanged"/>
- <Button position="absolute 813 52 829 68" id="btn_patInfo" class="icon_search" text="" onclick="btn_patInfo_onclick"/>
- <Combo position="absolute 312 26 418 45" id="cmb_schedrid" class="combo_search" innerdataset="ds_init_userlist4" datacolumn="usernm" codecolumn="userid" style="background:#ffff99ff;border:1 solid #808080ff ;"/>
- <Shape position="absolute 536 149 1190 155" linetype="horizontal" id="line10" class="line_2"/>
- <Shape position="absolute 536 123 1191 129" linetype="horizontal" id="line5" class="line_2"/>
- <Shape position="absolute 536 71 1190 77" linetype="horizontal" id="line6" class="line_2" visible="false"/>
- <Button position="absolute 462 24 526 43" id="button10" class="btn5" text="크게보기" onclick="button10_onclick" visible="false"/>
- <Button id="btn_01" taborder="1" text="1월" position="absolute 1 47 43 67" class="btn2" onclick="btn_month_onclick"/>
- <Button id="btn_02" taborder="2" text="2월" class="btn2" position="absolute 45 47 87 67" onclick="btn_month_onclick"/>
- <Button id="btn_03" taborder="3" text="3월" class="btn2" position="absolute 89 47 131 67" onclick="btn_month_onclick"/>
- <Button id="btn_04" taborder="4" text="4월" class="btn2" position="absolute 133 47 175 67" onclick="btn_month_onclick"/>
- <Button id="btn_05" taborder="5" text="5월" class="btn2" position="absolute 177 47 219 67" onclick="btn_month_onclick"/>
- <Button id="btn_06" taborder="6" text="6월" class="btn2" position="absolute 221 47 263 67" onclick="btn_month_onclick"/>
- <Button id="btn_07" taborder="7" text="7월" class="btn2" position="absolute 265 47 307 67" onclick="btn_month_onclick"/>
- <Button id="btn_08" taborder="8" text="8월" class="btn2" position="absolute 309 47 351 67" onclick="btn_month_onclick"/>
- <Button id="btn_09" taborder="9" text="9월" class="btn2" position="absolute 353 47 395 67" onclick="btn_month_onclick"/>
- <Button id="btn_10" taborder="10" text="10월" class="btn2" position="absolute 397 47 439 67" onclick="btn_month_onclick"/>
- <Button id="btn_11" taborder="11" text="11월" class="btn2" position="absolute 441 47 483 67" onclick="btn_month_onclick"/>
- <Button id="btn_12" taborder="12" text="12월" class="btn2" position="absolute 485 47 527 67" onclick="btn_month_onclick"/>
- <Button id="button4" taborder="17" text="Excel" onclick="btn_savexls_onclick" class="btn7" position="absolute 466 519 529 538"/>
- <Div id="ivw_loader" anchor="left top right" taborder="18" url="emr_medirecxp::SSMMR01100_서식로더.xfdl" position="absolute 540 155 1190 535"/>
- <Static id="caption30" text="진료과 :" class="search_name" position="absolute 5 463 65 480" visible="true"/>
- <Combo id="cmb_srchdeptcd" taborder="19" innerdataset="@ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 67 461 182 480" visible="true" onitemchanged="cmb_srchdeptcd_onitemchanged"/>
- <Static id="caption19" text="진료의 :" class="search_name" position="absolute 1220 36 1295 53" visible="false"/>
- <Combo id="combo3" taborder="20" innerdataset="@ds_init_userlist2" codecolumn="userid" datacolumn="usernm" class="combo_search" position="absolute 1281 34 1367 53" visible="false"/>
- <Static id="caption31" text="진료실 :" class="search_name" position="absolute 1376 36 1439 53" visible="false"/>
- <Combo id="cmb_srchscroomgrp" taborder="21" innerdataset="@ds_init_scroomgrplist" codecolumn="roomgrpcd" datacolumn="roomgrpnm" onitemchanged="grp_srch_cmb_srchscroomgrp_onitemchanged" class="combo_search" position="absolute 1437 34 1508 53" visible="false"/>
- <Combo id="cmb_srchscroom" taborder="22" innerdataset="@ds_init_scroomlist2" codecolumn="roomcd" datacolumn="roomnm" class="combo_search" position="absolute 1510 34 1586 53" visible="false"/>
- <Static id="caption6" text="진단코드/명" class="cell_1" position="absolute 535 101 655 124"/>
- <Edit id="ipt_diagcd" taborder="23" onkeydown="ipt_diagcd_onkeydown" position="absolute 658 103 753 122" autoselect="true" class="output"/>
- <Edit id="ipt_diagnm" taborder="24" onkeydown="ipt_diagnm_onkeydown" class="output" position="absolute 757 103 1143 122" autoselect="true"/>
- <Button id="caption16" taborder="25" text="취소" onclick="caption16_onclick" class="btn2" position="absolute 1148 103 1190 122"/>
- <Static id="caption8" text="병동 :" class="search_name" position="absolute 1224 121 1275 138" visible="false"/>
- <Combo id="combo1" taborder="26" innerdataset="ds_init_ward" codecolumn="deptcd" datacolumn="depthngnm" class="combo_s_essential" position="absolute 1298 119 1436 138" visible="false"/>
- <Static id="caption00" text="병동" class="cell_1" position="absolute 1213 53 1313 76" visible="false"/>
- <Combo id="cmb_wardcd" taborder="27" innerdataset="@ds_init_ward2" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 1316 55 1491 74" visible="false"/>
- <Combo id="cmb_perfdeptcd" taborder="28" innerdataset="@ds_init_orddept2" codecolumn="deptcd" datacolumn="depthngnm" class="combo_essential" position="absolute 658 77 833 96" onitemchanged="cmb_perfdeptcd_onitemchanged"/>
- <Static id="caption2" text="진료과" class="cell_1" position="absolute 535 75 655 98"/>
- <Shape id="line00" class="line_2" visible="false" position="absolute 536 97 1190 103"/>
- <Static id="caption01" text="진료의 :" class="search_name" position="absolute 193 463 251 480"/>
- <Combo id="cmb_srchdrid" taborder="29" innerdataset="@ds_init_userlist" codecolumn="userid" datacolumn="usernm" class="combo_search" position="absolute 251 461 331 480"/>
- <Button id="btn_X" taborder="30" text="취소" class="btn5" position="absolute 708 20 753 42" visible="false" onclick="comn_mngt"/>
- <Button id="btn_D" taborder="31" text="부도" class="btn5" visible="false" position="absolute 1213 165 1258 187" onclick="comn_mngt"/>
- <Button id="btn_R" taborder="32" text="확정" class="btn4" visible="false" position="absolute 920 20 972 42" onclick="comn_mngt"/>
- <Div id="div_cnclresn" taborder="33" position="absolute 392 187 737 318" class="div_DA" visible="false">
- <Layouts>
- <Layout>
- <Static id="caption27" text="사유입력" class="tit_2" position="absolute 10 11 92 27" anchor="default"/>
- <Static id="caption1" text="사 유" class="cell_1" position="absolute 10 36 71 59" anchor="default"/>
- <Combo id="cmb_resn" taborder="1" innerdataset="ds_init_cnclresn" codecolumn="trgtcd" datacolumn="trgtcdnm" onitemchanged="cmb_resn_onitemchanged" position="absolute 75 37 330 56" anchor="default"/>
- <Edit id="ipt_etc" taborder="2" position="absolute 10 63 330 85" anchor="default"/>
- <Button id="btn_confirm" taborder="3" text="확인" class="btn4" position="absolute 212 94 268 116" anchor="default" onclick="div_cnclresn_btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="4" text="취소" class="btn4" position="absolute 272 94 328 116" anchor="default" onclick="div_cnclresn_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="stt_capacity" position="absolute 206 5 336 21" class="tit_3" visible="false"/>
- <Static id="stt_schehistnm" position="absolute 658 21 706 41" class="sta_DG_box" style="align:center middle;font:Dotum,9,bold;"/>
- <MaskEdit id="ipt_schedt" taborder="34" type="string" mask="##:##" position="absolute 780 129 830 148" style="align:center middle;" displaynulltext=" " trimtype="both" ontextchange="ipt_schedt_ontextchange" autoselect="true"/>
- <Button id="btn_rslt" taborder="35" text="통합결과조회" class="btn5" position="absolute 102 516 192 538" onclick="btn_rslt_onclick"/>
- <Button id="btn_emr" taborder="36" text="통합기록조회" class="btn5" position="absolute 194 516 286 538" onclick="btn_emr_onclick"/>
- <Button id="btn_C" taborder="37" text="승인" onclick="comn_mngt" class="btn5" visible="false" position="absolute 824 20 869 42"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_schereclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="regstno" type="STRING" size="256"/>
- <Column id="regsthistno" type="STRING" size="256"/>
- <Column id="schehistcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="schedd" type="STRING" size="256"/>
- <Column id="schedt" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- <Column id="dispdiagcd" type="STRING" size="256"/>
- <Column id="diagnm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="brthdd" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="cnclresncd" type="STRING" size="256"/>
- <Column id="cnclresn" type="STRING" size="256"/>
- <Column id="fstrgstrnm" type="STRING" size="256"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- <Column id="orgschedd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_week" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sun" type="STRING"/>
- <Column id="mon" type="STRING"/>
- <Column id="tue" type="STRING"/>
- <Column id="wed" type="STRING"/>
- <Column id="thu" type="STRING"/>
- <Column id="fri" type="STRING"/>
- <Column id="sat" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" 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="orddeptcd" type="STRING" size="256"/>
- <Column id="schedrid" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="queryflag" type="STRING" size="256"/>
- <Column id="openflag" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="condqry" type="STRING" size="256"/>
- <Column id="colinfo" type="STRING" size="256"/>
- <Column id="schehistcd" type="STRING" size="256"/>
- <Column id="uschehistcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="colinfo"/>
- <Col id="condqry"/>
- <Col id="formcd"/>
- <Col id="wardcd"/>
- <Col id="openflag"/>
- <Col id="queryflag"/>
- <Col id="basedd"/>
- <Col id="drid"/>
- <Col id="deptcd"/>
- <Col id="pid"/>
- <Col id="todd"/>
- <Col id="fromdd"/>
- <Col id="schedrid"/>
- <Col id="orddeptcd"/>
- <Col id="month"/>
- <Col id="year"/>
- <Col id="schehistcd">-</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddept2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddept3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddept4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_scpatflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcd" type="STRING" size="256"/>
- <Column id="hardcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_scherecinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="regstno" type="STRING" size="256"/>
- <Column id="regsthistno" type="STRING" size="256"/>
- <Column id="schehistcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="schedd" type="STRING" size="256"/>
- <Column id="schedt" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- <Column id="dispdiagcd" type="STRING" size="256"/>
- <Column id="diagnm" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="brthdd" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="dispdiagcd" type="STRING" size="256"/>
- <Column id="addtelno" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formrecseq" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="schehistflag" type="STRING" size="256"/>
- <Column id="cnclresncd" type="STRING" size="256"/>
- <Column id="cnclresn" type="STRING" size="256"/>
- <Column id="condqry" type="STRING" size="256"/>
- <Column id="orgschedd" type="STRING" size="256"/>
- <Column id="cctlyn" type="STRING" size="256"/>
- <Column id="uschehistcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="regstno"/>
- <Col id="regsthistno"/>
- <Col id="schehistcd"/>
- <Col id="pid"/>
- <Col id="schedd"/>
- <Col id="diagcd"/>
- <Col id="dispdiagcd"/>
- <Col id="diagnm"/>
- <Col id="drid"/>
- <Col id="drnm"/>
- <Col id="hngnm"/>
- <Col id="sex"/>
- <Col id="age"/>
- <Col id="brthdd"/>
- <Col id="mpphontel"/>
- <Col id="fstrgstdt"/>
- <Col id="addtelno"/>
- <Col id="orddd"/>
- <Col id="cretno"/>
- <Col id="ioflag"/>
- <Col id="formcd"/>
- <Col id="formrecseq"/>
- <Col id="deptcd"/>
- <Col id="schehistflag"/>
- <Col id="cnclresncd"/>
- <Col id="cnclresn"/>
- <Col id="schedt"/>
- <Col id="condqry"/>
- <Col id="orgschedd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" 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="deptcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_sccdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_scschecal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="dutflag" type="STRING" size="256"/>
- <Column id="ordyn" type="STRING" size="256"/>
- <Column id="patsum" type="STRING" size="256"/>
- <Column id="day" type="STRING" size="256"/>
- <Column id="week" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_gridseq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_sccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patordinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="brthdd" type="STRING" size="256" sumtext="생일"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="핸드폰"/>
- <Column id="etctel1" type="STRING" size="256" sumtext="기타연락처"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
- <Column id="zipcdseq" type="STRING" size="256" sumtext="우편번호seq"/>
- <Column id="addr" type="STRING" size="256" sumtext="주소"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="email" type="STRING" size="256" sumtext="이메일"/>
- <Column id="recmyn" type="STRING" size="256" sumtext="관계여부"/>
- <Column id="recmernm" type="STRING" size="256" sumtext="관계"/>
- <Column id="recmerrela" type="STRING" size="256" sumtext="종교"/>
- <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
- <Column id="viprem" type="STRING" size="256" sumtext="VIP"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
- <Column id="remfact" type="STRING" size="256" sumtext="참고"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자 (입원일 경우 입원일자)"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="acptseqno" type="STRING" size="256" sumtext="접수일련번호 (입원일 경우 seqno)"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="외래입원구분"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료부서명"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="drvalidyn" type="STRING" size="256" sumtext="진료의퇴직유무"/>
- <Column id="specordyn" type="STRING" size="256" sumtext="진료의특진유무"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="insukindcd" type="STRING" size="256" sumtext="보험유형코드"/>
- <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_tscinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" sumtext="fromdd"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmpscschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_chojindata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_chojinlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="signno" type="STRING" size="256" sumtext="Signno"/>
- <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_scroomgrplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_scallroomgrplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cond_formdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formkind" type="STRING" size="256"/>
- <Column id="btnvisible" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="formrecdd" type="STRING" size="256"/>
- <Column id="topyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING"/>
- <Column id="wardnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_ward2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING"/>
- <Column id="wardnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_ward3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING"/>
- <Column id="wardnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_forminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_userlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_userlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_userlist4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_schehistcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="histcd" type="STRING" size="256"/>
- <Column id="histnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="histcd">-</Col>
- <Col id="histnm">전체</Col>
- </Row>
- <Row>
- <Col id="histcd"/>
- <Col id="histnm">예약/확정/승인</Col>
- </Row>
- <Row>
- <Col id="histcd">T</Col>
- <Col id="histnm">예약</Col>
- </Row>
- <Row>
- <Col id="histcd">R</Col>
- <Col id="histnm">확정</Col>
- </Row>
- <Row>
- <Col id="histcd">D</Col>
- <Col id="histnm">부도</Col>
- </Row>
- <Row>
- <Col id="histcd">X</Col>
- <Col id="histnm">취소</Col>
- </Row>
- <Row>
- <Col id="histcd">L</Col>
- <Col id="histnm">삭제</Col>
- </Row>
- <Row>
- <Col id="histcd">C</Col>
- <Col id="histnm">승인</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cnclresn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item16" compid="cmb_perfdeptcd" propid="" datasetid="ds_main_scherecinfo" columnid="perfdeptcd"/>
- <BindItem id="item43" compid="cmb_perfdeptcd" propid="value" datasetid="ds_main_scherecinfo" columnid="deptcd"/>
- <BindItem id="item0" compid="output2" prscid="value" datasetid="ds_main_cond" columnid="year"/>
- <BindItem id="item1" compid="cmb_schedept" prscid="value" datasetid="ds_main_cond" columnid="perfdeptcd"/>
- <BindItem id="item2" compid="cmb_schedrid" prscid="value" datasetid="ds_main_cond" columnid="heperfdrid"/>
- <BindItem id="item4" compid="grp_srch.ipt_srchpid" prscid="value" datasetid="ds_main_cond" columnid="pid"/>
- <BindItem id="item5" compid="grp_srch.ipt_srchstartdd" prscid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item6" compid="grp_srch.ipt_srchenddd" prscid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item10" compid="ipt_pid" prscid="value" datasetid="ds_main_scherecinfo" columnid="pid"/>
- <BindItem id="item11" compid="sct_hngnm" prscid="value" datasetid="ds_main_scherecinfo" columnid="hngnm"/>
- <BindItem id="item12" compid="output3" prscid="value" datasetid="ds_main_scherecinfo" columnid="sex"/>
- <BindItem id="item13" compid="output4" prscid="value" datasetid="ds_main_scherecinfo" columnid="age"/>
- <BindItem id="item14" compid="ipt_schedd" prscid="value" datasetid="ds_main_scherecinfo" columnid="schedd"/>
- <BindItem id="item15" compid="cmb_scroomcd" prscid="value" datasetid="ds_main_scherecinfo" columnid="roomcd"/>
- <BindItem id="item17" compid="cmb_drid" prscid="value" datasetid="ds_main_scherecinfo" columnid="perfdrid"/>
- <BindItem id="item31" compid="ipt_scregstremfact2" prscid="value" datasetid="ds_main_scherecinfo" columnid="regstremfact"/>
- <BindItem id="item20" compid="output2" propid="value" datasetid="ds_main_cond" columnid="year"/>
- <BindItem id="item21" compid="cmb_schedept" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
- <BindItem id="item24" compid="cmb_schedrid" propid="value" datasetid="ds_main_cond" columnid="schedrid"/>
- <BindItem id="item25" compid="grp_srch.ipt_srchpid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- <BindItem id="item32" compid="grp_srch.ipt_srchstartdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item33" compid="grp_srch.ipt_srchenddd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item37" compid="ipt_pid" propid="value" datasetid="ds_main_scherecinfo" columnid="pid"/>
- <BindItem id="item38" compid="sct_hngnm" propid="value" datasetid="ds_main_scherecinfo" columnid="hngnm"/>
- <BindItem id="item39" compid="output3" propid="value" datasetid="ds_main_scherecinfo" columnid="sex"/>
- <BindItem id="item40" compid="output4" propid="value" datasetid="ds_main_scherecinfo" columnid="age"/>
- <BindItem id="item41" compid="ipt_schedd" propid="value" datasetid="ds_main_scherecinfo" columnid="schedd"/>
- <BindItem id="item42" compid="cmb_scroomcd" propid="value" datasetid="ds_main_scherecinfo" columnid="roomcd"/>
- <BindItem id="item44" compid="cmb_drid" propid="value" datasetid="ds_main_scherecinfo" columnid="drid"/>
- <BindItem id="item54" compid="ipt_scregstremfact2" propid="value" datasetid="ds_main_scherecinfo" columnid="regstremfact"/>
- <BindItem id="item7" compid="cmb_srchdeptcd" propid="" datasetid="ds_main_cond" columnid="orddeptcd"/>
- <BindItem id="item34" compid="cmb_srchdeptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
- <BindItem id="item8" compid="combo3" propid="" datasetid="ds_main_cond" columnid="perfdrid"/>
- <BindItem id="item35" compid="combo3" propid="value" datasetid="ds_main_cond" columnid="perfdrid"/>
- <BindItem id="item22" compid="cmb_srchscroomgrp" propid="" datasetid="ds_main_cond" columnid="roomcd"/>
- <BindItem id="item23" compid="cmb_srchscroomgrp" propid="value" datasetid="ds_main_cond" columnid="roomgrpcd"/>
- <BindItem id="item9" compid="cmb_srchscroom" propid="" datasetid="ds_main_cond" columnid="roomcd"/>
- <BindItem id="item36" compid="cmb_srchscroom" propid="value" datasetid="ds_main_cond" columnid="roomcd"/>
- <BindItem id="item18" compid="ipt_diagcd" propid="" datasetid="ds_main_scherecinfo" columnid="dispdiagcd"/>
- <BindItem id="item45" compid="ipt_diagcd" propid="value" datasetid="ds_main_scherecinfo" columnid="dispdiagcd"/>
- <BindItem id="item19" compid="ipt_diagnm" propid="" datasetid="ds_main_scherecinfo" columnid="diagnm"/>
- <BindItem id="item46" compid="ipt_diagnm" propid="value" datasetid="ds_main_scherecinfo" columnid="diagnm"/>
- <BindItem id="item26" compid="combo1" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item27" compid="cmb_wardcd" propid="" datasetid="ds_main_scherecinfo" columnid="perfdeptcd"/>
- <BindItem id="item28" compid="cmb_wardcd" propid="value" datasetid="ds_main_scherecinfo" columnid="wardcd"/>
- <BindItem id="item3" compid="cmb_srchdrid" propid="value" datasetid="ds_main_cond" columnid="drid"/>
- <BindItem id="item29" compid="grp_srch.cmb_schehistcd" propid="value" datasetid="ds_main_cond" columnid="schehistcd"/>
- <BindItem id="item30" compid="div_cnclresn.cmb_resn" propid="value" datasetid="ds_main_scherecinfo" columnid="cnclresncd"/>
- <BindItem id="item47" compid="div_cnclresn.ipt_etc" propid="value" datasetid="ds_main_scherecinfo" columnid="cnclresn"/>
- <BindItem id="item55" compid="ipt_schedt" propid="value" datasetid="ds_main_scherecinfo" columnid="schedt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-01-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-01-27 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_medirecxp::MMR01100.xjs";
- include "emr_prcpmngtxp::MMO001.xjs"
- var arErrorCode = new HashArray();
- var lgv_formcd = ""; // 사용 서식코드
- var lgv_condqry = ""; // 그리드 쿼리정보
- var lgv_colInfo = ""; // 그리드 컬럼정보
- var lgv_capacity = ""; // 제한인원
- var lgv_bmngt = false; // 관리부서
- /****************************************************************************************
- * Function : fReqScScheRecCalendar
- * Description : 예약장부 달력정보 조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fReqScScheRecCalendar(){
- ds_send_reqdata.clearData();
- var nRow = ds_send_reqdata.addRow();
-
- ds_send_reqdata.setColumn(nRow, "year", ds_main_cond.getColumn(0,"year"));
- ds_send_reqdata.setColumn(nRow, "month", ds_main_cond.getColumn(0,"month"));
- ds_send_reqdata.setColumn(nRow, "deptcd", ds_main_cond.getColumn(0,"orddeptcd"));
- ds_send_reqdata.setColumn(nRow, "schedrid", ds_main_cond.getColumn(0,"schedrid"));
- ds_send_reqdata.setColumn(nRow, "formcd", ds_main_cond.getColumn(0,"formcd"));
-
- var oParam = {};
- oParam.id = "TRMMT01000";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetScheRecCalendar";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_scschecal=scschecal";
- oParam.async = false;
- oParam.callback = "cf_TRMMT01000";
- tranf_submit(oParam);
-
- var basedd = ds_main_cond.getColumn(0, "basedd");
- if( utlf_isNull(basedd) ) basedd = utlf_getCurrentDate();
- setFocusOnSelectedDayRed(basedd);
- }
- /****************************************************************************************
- * Description : TRMMT01000 콜백함수
- * return type :
- ****************************************************************************************/
- function cf_TRMMT01000(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- fMakeCalendar();
- }
- /****************************************************************************************
- * Function : fMakeCalendar
- * Description : 달력값 설정
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fMakeCalendar(){
- var totcnt = ds_main_scschecal.rowcount;
- ds_main_week.clear();
- for(var i = 0 ; i < totcnt ; i++) {
- var calDay = ds_main_scschecal.getColumn(i,"day");
- var calVal = parseInt(ds_main_scschecal.getColumn(i,"basedd").substr(6,7))+"\n("+ds_main_scschecal.getColumn(i,"patsum")+")\n\n"+ds_main_scschecal.getColumn(i,"dutflag");
- var calRow = ds_main_scschecal.getColumn(i,"week")-1;
-
- if(calDay == "1") {
- dsf_makeValue(ds_main_week,"sun","string", calVal, calRow);
- }
- if(calDay == "2") {
- dsf_makeValue(ds_main_week,"mon","string", calVal, calRow);
- }
- if(calDay == "3") {
- dsf_makeValue(ds_main_week,"tue","string", calVal, calRow);
- }
- if(calDay == "4") {
- dsf_makeValue(ds_main_week,"wed","string", calVal, calRow);
- }
- if(calDay == "5") {
- dsf_makeValue(ds_main_week,"thu","string", calVal, calRow);
- }
- if(calDay == "6") {
- dsf_makeValue(ds_main_week,"fri","string", calVal, calRow);
- }
- if(calDay == "7") {
- dsf_makeValue(ds_main_week,"sat","string", calVal, calRow);
- }
- }
- ds_main_week.rowposition = -1;
- }
- /****************************************************************************************
- * Function : fSelectCalendar
- * Description : 달력 선택시 예약 리스트 조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fSelectCalendar(){
- if(ds_main_week.rowposition > -1 && !utlf_isNull(grd_calendar.getCellText(ds_main_week.rowposition,grd_calendar.getCellPos()))) {
- var week = ds_main_week.rowposition +1;
- var day = grd_calendar.getCellPos()+1;
- var basedd = ds_main_scschecal.getColumn(ds_main_scschecal.findRowExpr("week=='"+week+"' && day=='"+day+"'"),"basedd");
- ds_main_scherecinfo.setColumn(0,"schedd", basedd);
- ds_main_cond.setColumn(0,"queryflag", "cal");
- ds_main_cond.setColumn(0,"basedd" , basedd);
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMMT01001";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetScheRecList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_schereclist=schereclist";
- oParam.async = false;
- oParam.callback = "cf_TRMMT01001";
- tranf_submit(oParam);
- }
- }
- /****************************************************************************************
- * Function : cf_TRMRE02101
- * Description : TRMRE02101 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMMT01001(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- if( !utlf_isNull(ds_main_scherecinfo.getColumn(0, "pid"))
- && !utlf_isNull(ds_main_scherecinfo.getColumn(0, "hngnm"))
- && ds_main_scherecinfo.getColumn(0, "status") != "u"
- && utlf_isNull(ivw_loader.ivw_base.url) ){
- lf_LoadForm();
- }else{
-
- }
-
- }
- function lf_setButton(){
- if( lgv_bmngt ){
- grp_srch.cmb_schehistcd.visible = true;
- grp_srch.cap_schehistcd.visible = true;
-
- //btn_R.visible = true;
- btn_C.visible = true;
- btn_D.visible = true;
- btn_X.visible = true;
- }else{
- grp_srch.cmb_schehistcd.visible = false;
- grp_srch.cap_schehistcd.visible = false;
-
- //btn_R.visible = false;
- btn_C.visible = false;
- btn_D.visible = false;
- btn_X.visible = false;
- }
- }
- function lf_setGridColInfo(){
-
- if( utlf_isNull(lgv_colInfo) ){
- return;
- }
-
- var gridarr = lgv_colInfo.split("▩");
- var refarr = gridarr[0].split("^");
- var sizearr = gridarr[1].split(",")
-
- var grid:Grid = this.components["grd_schelist"];
- var oGridDataSet = eval(grid.binddataset);
-
- grid.enableevent = false;
- grid.enableredraw = false;
-
- var nFrozenCols = 9;
- //try {
- if(!utlf_isNull(nFrozenCols)) {
- for(var i = oGridDataSet.colcount - 1; i >= 0; i--) {
- if(i <= nFrozenCols)
- grid.setFormatColProperty(i, "band", "body");
- }
- }
- var itemCnt = 0;
- for(var i = 0; i < refarr.length; i++) {
- var nCol = (10 + i);
- nCol = grid.insertContentsCol(nCol, false);
- grid.setCellProperty("head", nCol, "text", refarr[i]);
- grid.setCellProperty("body", nCol, "text", "bind:itemval" + ++itemCnt );
- grid.setCellProperty("body", nCol, "displaytype", "text" );
- grid.setFormatColProperty(nCol, "size", sizearr[i]);
- grid.setFormatColProperty(nCol, "band", "body");
- }
- if(!utlf_isNull(nFrozenCols)) {
- for(var i = 0; i < oGridDataSet.colcount; i++) {
- if(i <= nFrozenCols)
- grid.setFormatColProperty(i, "band", "left");
- else
- break;
- }
- }
- //} finally {
- grid.enableevent = true;
- grid.enableredraw = true;
-
- if( lgv_bmngt ){
- var idx = grid.getBindCellIndex("body", "cnclresncd");
- grid.setFormatColProperty(idx, "size", 110);
- }
-
- grdf_setToolTipBind(grid);
- grdf_setGridSort(grid);
- }
- function lf_LoadForm(nFormrecseq){
- if( !utlf_isNull(ds_main_scherecinfo.getColumn(0, "pid"))
- && !utlf_isNull(ds_main_scherecinfo.getColumn(0, "hngnm"))
- && !utlf_isNull(ds_main_scherecinfo.getColumn(0, "schedd")) ){
- frmf_setParameter("SSMMR01100_recsavechk", "Y");
- //var path = grp_base;
- var objArg = new Object();
- var vFormKind = "new";
- var gFormcd = lgv_formcd;
- if( !utlf_isNull(nFormrecseq) && nFormrecseq != 0 ){
- vFormKind = "rec";
- gFormcd = nFormrecseq;
- }
-
- ds_cond_formdata.clearData();
- ds_cond_formdata.addRow();
- ds_cond_formdata.setColumn(0, "formcd", gFormcd); // 서식목록 - linkcd, 기록목록 - formrecseq 컬럼값.
- ds_cond_formdata.setColumn(0, "formkind", vFormKind); // 서식목록 탭 - new , 기록목록 - rec
- ds_cond_formdata.setColumn(0, "btnvisible", false);
- ds_cond_formdata.setColumn(0, "pid", ds_paminfo.getColumn(0, "pid"));
- ds_cond_formdata.setColumn(0, "orddd", ds_paminfo.getColumn(0, "orddd"));
- ds_cond_formdata.setColumn(0, "cretno", ds_paminfo.getColumn(0, "cretno"));
- ds_cond_formdata.setColumn(0, "orddeptcd", ds_paminfo.getColumn(0, "orddeptcd"));
- ds_cond_formdata.setColumn(0, "ioflag", ds_paminfo.getColumn(0, "ioflag"));
- ds_cond_formdata.setColumn(0, "formrecdd", ds_main_scherecinfo.getColumn(0, "schedd"));
- ds_cond_formdata.setColumn(0, "topyn", "N");
-
-
- ds_main_scherecinfo.setColumn(0, "orddd", ds_paminfo.getColumn(0, "orddd"));
- ds_main_scherecinfo.setColumn(0, "cretno", ds_paminfo.getColumn(0, "cretno"));
- ds_main_scherecinfo.setColumn(0, "ioflag", ds_paminfo.getColumn(0, "ioflag"));
-
- objArg.ds_cond_formdata = ds_cond_formdata;
-
- lf_loadSMMMR01100(false, objArg);
-
- lf_setDiagInfo();
-
- }else{
- ivw_loader.ivw_base.url = "";
- }
- }
- function lf_setDiagInfo()
- {
- var pid = ds_paminfo.getColumn(0, "pid");
- var orddeptcd = ds_paminfo.getColumn(0, "orddeptcd");
- var ioflag = ds_paminfo.getColumn(0, "ioflag");
-
- var sOutDs = dsf_createDsRow("ds_data_diaginfo", [{col:"diagdd", type:"string", size:256, val:""},
- {col:"diagcd", type:"string", size:256, val:""},
- {col:"icd10cd", type:"string", size:256, val:""},
- {col:"dispdiagcd", type:"string", size:256, val:""},
- {col:"diagengnm", type:"string", size:256, val:""},
- {col:"diaghngnm", type:"string", size:256, val:""},
- {col:"diagkindcd" , type:"string", size:256, val:""},
- {col:"diagkindcdflag" , type:"string", size:256, val:""}
- ]);
-
- var objOutDs:Dataset = new Dataset;
- objOutDs = this.objects[sOutDs];
-
- var sSendDs;
- var objSendDs:Dataset = new Dataset;
-
-
- sSendDs = dsf_createDsRow("ds_cond_diaginfo", [{col:"pid", type:"string", size:256, val:pid},
- {col:"orddd", type:"string", size:256, val:""},
- {col:"cretno", type:"string", size:256, val:""},
- {col:"mskind", type:"string", size:256, val:"Y"},
- {col:"histflag", type:"string", size:256, val:"Y"},
- {col:"grupflag", type:"string", size:256, val:"Y"},
- {col:"orddeptcd", type:"string", size:256, val:orddeptcd},
- {col:"fromdd", type:"string", size:256, val:""},
- {col:"todd", type:"string", size:256, val:""},
- {col:"ioflag", type:"string", size:256, val:ioflag}]);
-
- objSendDs = this.objects[sSendDs];
-
- var oParam = {};
- oParam.id = "TRMMR02908";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetPatDiagInfo";
- oParam.inds = "req="+sSendDs;
- oParam.outds = sOutDs+"=diagcdlist";
- oParam.async = false;
- tranf_submit(oParam);
- if( objOutDs.rowcount > 0 ){
- ds_main_scherecinfo.setColumn(0, "diagcd", objOutDs.getColumn(0, "diagcd"));
- ds_main_scherecinfo.setColumn(0, "dispdiagcd", objOutDs.getColumn(0, "dispdiagcd"));
- ds_main_scherecinfo.setColumn(0, "diagnm", objOutDs.getColumn(0, "diagengnm"));
-
- ipt_diagcd.readonly = true;
- ipt_diagnm.readonly = true;
- }
- }
- /*************************************************************************************************************
- * Function : lf_ivw_loader_setting
- * Description : 서식 로더 내 컨트롤 설정
- * Argument :
- * retrun type :
- * Creator :
- ************************************************************************************************************/
- function lf_ivw_loader_setting() {
- ivw_loader.grup_titl.visible = false;
-
- ivw_loader.Static01.position.top = ivw_loader.grup_titl.position.top;
- ivw_loader.Static01.position.bottom = ivw_loader.grup_btn.position.bottom;
- ivw_loader.Static01.border = "1 solid #a0c5d8ff,1 solid #a0c5d8ff,1 solid #a0c5d8ff,1 solid #a0c5d8ff";
- ivw_loader.ivw_base.position.left = 0;
- ivw_loader.ivw_base.position.top = ivw_loader.grup_titl.position.top;
- ivw_loader.ivw_base.position.bottom = ivw_loader.grup_btn.position.bottom;
- ivw_loader.lf_btnVisible(false); // 버튼 visible/hidden
- }
- /***************************************************************************************************
- * Description : 환자진료정보 조회 및 설정
- * Argument : pid - 등록번호
- * return type : true/false
- ***************************************************************************************************/
- function lf_getPatOrdInfo(pid){
-
- ds_paminfo.clearData(); //환자정보 삭제
-
-
- dsf_createDsRow("ds_send_paminfo", [{col:"pid", type:"string", size:256, val:pid}
- ,{col:"orddeptcd", type:"string", size:256, val:"-"}
- ,{col:"orddrid", type:"string", size:256, val:"-"}
- ,{col:"ordtype", type:"string", size:256, val:""}
- ,{col:"srchmode", type:"string", size:256, val:""}
- ,{col:"dschflag", type:"string", size:256, val:""}
- ,{col:"rsrvflag", type:"string", size:256, val:""}
- ,{col:"nopay", type:"string", size:256, val:""}
- ,{col:"ordddfr", type:"string", size:256, val:""}
- ,{col:"ordddto", type:"string", size:256, val:""}
- ,{col:"amtyn", type:"string", size:256, val:""}]);
-
- dsf_createDs("ds_main_result_pathistlist");
-
- var oParam = {};
- oParam.id = "TRMMR05501";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetPatHistList";
- oParam.inds = "req=ds_send_paminfo";
- oParam.outds = "ds_main_result_pathistlist=pathistlist";
- oParam.async = false;
- oParam.callback = "cf_TRMMR05501";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMMR05501") > -1){
- if(ds_main_result_pathistlist.rowcount > 1){
- var objArg = new Object();
- objArg.arg_ds_main_result_pathistlist = ds_main_result_pathistlist;
- frmf_modal("SPMMR05700", "SPMMR05700", objArg ,"",1, 10, 10, "","","","","","M"); //확인필요 multi, 환자정보
- if(frmf_getParameter("SPMMR05700_useyn")=="Y"){
- var pid = ds_main_result_pathistlist.getColumn(0,"pid");
- var orddd = ds_main_result_pathistlist.getColumn(0,"orddd");
- var cretno = ds_main_result_pathistlist.getColumn(0,"cretno");
- var hngnm = ds_main_result_pathistlist.getColumn(0,"hngnm");
- var sex = ds_main_result_pathistlist.getColumn(0,"sex");
- var age = ds_main_result_pathistlist.getColumn(0,"age");
- var brthdd = ds_main_result_pathistlist.getColumn(0,"brthdd");
- var rrgstno1 = ds_main_result_pathistlist.getColumn(0,"rrgstno1");
- var rrgstno2 = ds_main_result_pathistlist.getColumn(0,"rrgstno2");
- var addr = ds_main_result_pathistlist.getColumn(0,"addr");
- var hometel = ds_main_result_pathistlist.getColumn(0,"hometel");
- var ioflag = ds_main_result_pathistlist.getColumn(0,"ordtype");
- var orddeptcd= ds_main_result_pathistlist.getColumn(0,"orddeptcd");
- var orddeptnm= ds_main_result_pathistlist.getColumn(0,"orddeptnm");
- var orddrid = ds_main_result_pathistlist.getColumn(0,"orddrid");
- var insukind = ds_main_result_pathistlist.getColumn(0,"insukind");
- var suppkind = ds_main_result_pathistlist.getColumn(0,"suppkind");
- var dschdd = ds_main_result_pathistlist.getColumn(0,"dschdd"); // 2009.09.28 퇴원일 추가 (상급병실확인서)
- frmf_setParameter("SPMMR05700_useyn", "N");
- }else{
- frmf_setParameter("SPMMR05700_useyn", "N");
- return;
-
- }
- }else if(ds_main_result_pathistlist.rowcount == 1){
- var pid = ds_main_result_pathistlist.getColumn(0,"pid");
- var orddd = ds_main_result_pathistlist.getColumn(0,"orddd");
- var cretno = ds_main_result_pathistlist.getColumn(0,"cretno");
- var hngnm = ds_main_result_pathistlist.getColumn(0,"hngnm");
- var sex = ds_main_result_pathistlist.getColumn(0,"sex");
- var age = ds_main_result_pathistlist.getColumn(0,"age");
- var brthdd = ds_main_result_pathistlist.getColumn(0,"brthdd");
- var rrgstno1 = ds_main_result_pathistlist.getColumn(0,"rrgstno1");
- var rrgstno2 = ds_main_result_pathistlist.getColumn(0,"rrgstno2");
- var addr = ds_main_result_pathistlist.getColumn(0,"addr");
- var hometel = ds_main_result_pathistlist.getColumn(0,"hometel");
- var ioflag = ds_main_result_pathistlist.getColumn(0,"ordtype");
- var orddeptcd= ds_main_result_pathistlist.getColumn(0,"orddeptcd");
- var orddeptnm= ds_main_result_pathistlist.getColumn(0,"orddeptnm");
- var orddrid = ds_main_result_pathistlist.getColumn(0,"orddrid");
- var insukind = ds_main_result_pathistlist.getColumn(0,"insukind");
- var suppkind = ds_main_result_pathistlist.getColumn(0,"suppkind");
- var dschdd = ds_main_result_pathistlist.getColumn(0,"dschdd"); // 2009.09.28 퇴원일 추가 (상급병실확인서)
- }else{
- sysf_messageBox("수진정보가 존재하지 않습니다.", "I");
- return false;
- }
- dsf_makeValue(ds_paminfo,"pid" , "string",pid);
- dsf_makeValue(ds_paminfo,"orddd" , "string",orddd);
- dsf_makeValue(ds_paminfo,"cretno" , "string",cretno);
- dsf_makeValue(ds_paminfo,"hngnm" , "string",hngnm);
- dsf_makeValue(ds_paminfo,"rrgstno1" , "string",rrgstno1 + "-" + rrgstno2.substring(0, 1) + "******");
- dsf_makeValue(ds_paminfo,"sex" , "string",sex);
- dsf_makeValue(ds_paminfo,"age" , "string",age);
- dsf_makeValue(ds_paminfo,"brthdd" , "string",brthdd);
- dsf_makeValue(ds_paminfo,"addr" , "string",addr);
- dsf_makeValue(ds_paminfo,"ioflag" , "string",ioflag);
- dsf_makeValue(ds_paminfo,"orddeptcd" , "string",orddeptcd);
- dsf_makeValue(ds_paminfo,"orddeptnm" , "string",orddeptnm);
- dsf_makeValue(ds_paminfo,"hometel" , "string", hometel);
- dsf_makeValue(ds_paminfo,"orddrid" , "string",orddrid);
- dsf_makeValue(ds_paminfo,"insukind" , "string",insukind);
- dsf_makeValue(ds_paminfo,"suppkind" , "string",suppkind);
- dsf_makeValue(ds_paminfo,"dschdd" , "string", dschdd); // 2009.09.28 퇴원일 추가 (상급병실확인서)
-
- return true;
- }
- }
- function cf_TRMMR05501(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- utlf_addLog("***** cf_TRMMR05501 *****");
- }
- /****************************************************************************************
- * Description : 예약 장부 등록값 초기화
- * Argument :
- * return type :
- ****************************************************************************************/
- function fClkBtnInit(){
- ds_main_scherecinfo.clearData();
- ds_main_scherecinfo.addRow();
-
- var basedd = ds_main_cond.getColumn(0,"basedd");
- if( utlf_isNull(basedd) ) basedd = utlf_getCurrentDate();
-
- ds_main_scherecinfo.setColumn(0,"schedd", basedd);
- ds_main_scherecinfo.setColumn(0,"status", "i");
- ds_main_scherecinfo.setColumn(0,"formcd", lgv_formcd);
- ds_main_scherecinfo.setColumn(0,"cctlyn", "N");
-
- ipt_pid.enable = true;
- btn_patInfo.enable = true;
-
- btn_R.enable = true;
- btn_C.enable = true;
- btn_D.enable = true;
- btn_X.enable = true;
- btn_save.enable = true;
-
- stt_schehistnm.text = "신규";
-
- ivw_loader.ivw_base.url = "";
- }
- /****************************************************************************************
- * Description : 저장
- * Argument :
- * return type :
- ****************************************************************************************/
- function fClkBtnSave(){
-
- ds_main_scherecinfo.setColumn(0,"uschehistcd",""); //초기화
-
- if(lf_preChkMsg("S") == false){
- return;
- }
-
- if(fChkValidScheInfo()== true){ //저장유효성 검사
-
- var successflag = "";
- ivw_loader.gSubmitSaveFlag = false;
- frmf_setParameter("chkdeptpresave", "N");
- successflag = ivw_loader.fClickSave("N"); //임시저장 로직
-
- if (frmf_getParameter("SMMMR02900_saveerr") == "Y"){
- frmf_clearParameter("SMMMR02900_saveerr");
- sysf_messageBox("저장되지", "E007");
- return;
- } else {
- frmf_clearParameter("SMMMR02900_saveerr");
- }
- if(successflag == false){
- return;
- }
-
- lf_SetRec();
- ds_send_savedata.copyData(ds_main_scherecinfo);
- ds_send_savedata.setColumn(0, "schehistflag", "N");
- ds_send_savedata.setColumn(0, "condqry", lgv_condqry);
-
- var oParam = {};
- oParam.id = "TXMMT01001";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqExeSaveScheRecInfo";
- oParam.inds = "req=ds_send_savedata formrec=ds_save_formrec recitem=ds_save_recitem";
- oParam.outds = "ds_main_schereclist=schereclist";
- oParam.async = false;
- //oParam.callback = "cf_TXMMT01001";
- tranf_submit(oParam);
-
- //fClkBtnReq();
- fReqScScheRecCalendar();
- if ("Y" != ds_main_scherecinfo.getColumn(0,"cctlyn")) {
- fClkBtnInit();
- }
- }
- }
- /****************************************************************************************
- * Description : 예약장부 저장시 무결성 검사
- * Argument :
- * return type :
- ****************************************************************************************/
- function fChkValidScheInfo(){
- var pid = ds_main_scherecinfo.getColumn(0,"pid");
- var deptcd = ds_main_scherecinfo.getColumn(0,"deptcd");
- var drid = ds_main_scherecinfo.getColumn(0,"drid");
- if(utlf_isNull(pid)){
- sysf_messageBox("환자의 등록번호를", "C001");
- return false;
- }
-
- if(utlf_isNull(deptcd)){
- sysf_messageBox("진료과를", "C001");
- return false;
- }
-
- if(utlf_isNull(drid)){
- sysf_messageBox("진료의를", "C001");
- return false;
- }
-
- return true;
- }
- function lf_SetRec(){
- dsf_createDs("ds_save_recitem");
- dsf_createDs("ds_save_formrec");
-
- ds_save_formrec.copyData(ivw_loader.ds_send_saverecinfo_formrec);
- ds_save_recitem.copyData(ivw_loader.ds_send_saverecinfo_recitem);
-
- if(ds_main_scherecinfo.getColumn(0,"status") == "U"){
- ds_save_formrec.setColumn(0,"status", "U");
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMT01000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMMMT01000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMT01000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로드시 초기화 함수 실행
- ****************************************************************************************/
- function SMMMT01000_onload(obj:Form, e:LoadEventInfo)
- {
- //lf_getHardCDList("N", 9988, null, ds_init_forminfo);
- dsf_createDsRow("ds_cond_TRMMT01002", [{col:"hardcdno", type:"STRING", size:256, val:"9988"}]);
- var oParam = {};
- oParam.id = "TRMMT01002";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetHrcdinfo";
- oParam.inds = "req=ds_cond_TRMMT01002";
- oParam.outds = "ds_init_forminfo=hrcdinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
-
- ds_cond_TRMMT01002.setColumn(0, "hardcdno", "9990");
-
- var oParam = {};
- oParam.id = "TRMMT01002";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetHrcdinfo";
- oParam.inds = "req=ds_cond_TRMMT01002";
- oParam.outds = "ds_init_cnclresn=hrcdinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_deleteDs("ds_cond_TRMMT01002");
- var mAuth = frmf_getMenuParam();
-
- var nFindRow = ds_init_forminfo.findRow("trgtcd", mAuth);
- lgv_formcd = ds_init_forminfo.getColumn(nFindRow, "trgtcdnm");
- lgv_condqry = utlf_transNullToEmpty(ds_init_forminfo.getColumn(nFindRow, "condqry"));
- lgv_colInfo = ds_init_forminfo.getColumn(nFindRow, "ccode");
- if( !utlf_isNull(ds_init_forminfo.getColumn(nFindRow, "valitodt")) ){
- lgv_capacity = ds_init_forminfo.getColumn(nFindRow, "valitodt");
- stt_capacity.text = "일일제한인원 " + lgv_capacity + "명";
- stt_capacity.visible = true;
- btn_R.visible = true; //관리부서가 존재시만 확정 프로세스 진행
- }
- var hardspec = utlf_transNullToEmpty(ds_init_forminfo.getColumn(nFindRow, "hardspec"));
- if( !utlf_isNull(hardspec) ){
- //this.titletext = hardspec;
- stt_head.text = hardspec;
- }
- var dutplcecd = utlf_transNullToEmpty(ds_init_forminfo.getColumn(nFindRow, "trgtcdsnm"));
- if ( dutplcecd == sysf_getUserInfo("dutplcecd") ){
- lgv_bmngt = true;
- }
-
- if( utlf_isNull(lgv_formcd) ){
- sysf_messageBox("화면 사용 권한이 없습니다. 전산실로 문의바랍니다.\n\n화면을 종료합니다.", "E");
- this.close();
- }
-
- lf_setButton();
- lf_setGridColInfo();
-
- fClkBtnInit();
-
- lf_mmbfGetDeptCodeComboList(ds_init_orddept, "O");
- ds_init_orddept2.copyData(ds_init_orddept);
- ds_init_orddept3.copyData(ds_init_orddept);
- dsf_addDsItem(ds_init_orddept, "deptcd", "depthngnm", "전체", "-");
- ds_init_orddept4.copyData(ds_init_orddept);
-
- lf_mmbfGetUserComboList(ds_init_userlist, sysf_getUserInfo("dutplcecd"), "0330", "", "", "", "", "", "", "");
- ds_init_userlist2.copyData(ds_init_userlist);
- ds_init_userlist3.copyData(ds_init_userlist);
- ds_init_userlist4.copyData(ds_init_userlist);
- dsf_addDsItem(ds_init_userlist, "userid", "usernm", "전체", "-");
- dsf_addDsItem(ds_init_userlist2, "userid", "usernm", "전체", "");
- dsf_addDsItem(ds_init_userlist4, "userid", "usernm", "전체", "-");
-
-
-
- lf_mmbfGetDeptCodeComboList(ds_init_ward, "W");
- ds_init_ward2.copyData(ds_init_ward);
- ds_init_ward3.copyData(ds_init_ward);
- dsf_addDsItem(ds_init_ward, "deptcd", "depthngnm", "전체", "-");
-
- ds_main_cond.setColumn(0,"fromdd", utlf_getCurrentDate()); //시작일자
- // var todd = (utlf_getCurrentDate().toDate()).getAddDate(3);
- // todd = todd.getDateFormat();
-
- ds_main_cond.setColumn(0,"todd" , utlf_getCurrentDate()); //종료일자
- ds_main_cond.setColumn(0,"orddeptcd", "-");
- ds_main_cond.setColumn(0,"deptcd", "-");
- ds_main_cond.setColumn(0,"schehistcd", "");
-
-
- ds_main_cond.setColumn(0,"schedrid", "-");
- ds_main_cond.setColumn(0,"drid", "-");
- ds_main_cond.setColumn(0,"wardcd", "-");
- ds_main_cond.setColumn(0,"year" , utlf_getCurrentDate().substr(0, 4)); //year
- ds_main_cond.setColumn(0,"month" , utlf_getCurrentDate().substr(4, 2)); //month
- ds_main_cond.setColumn(0,"condqry" , lgv_condqry);
- ds_main_cond.setColumn(0,"formcd" , lgv_formcd);
- gButtonID = "btn_".concat(ds_main_cond.getColumn(0,"month")); //select된 button의 color를 변경해 준다.
- var btnobj = components[gButtonID];
- btnobj.class = "btn5"
- fClkBtnReq();
- fReqScScheRecCalendar();
-
-
- lf_ivw_loader_setting();
-
- // 상단정보 연계
- var node = sysf_getGlobalVariable("paminfo");
- if(!utlf_isNull(node)) {
- ds_paminfo.clearData();
- dsf_setCSVToDs("ds_paminfo", node);
-
- var deptcd = ds_paminfo.getColumn(0,"orddeptcd");
- lf_mmbfGetUserComboList(ds_init_userlist2, deptcd, "0330", "", "", "", "", "", "", "");
-
- ds_main_scherecinfo.setColumn(0,"pid", ds_paminfo.getColumn(0,"pid"));
- ds_main_scherecinfo.setColumn(0,"hngnm", ds_paminfo.getColumn(0,"hngnm"));
- ds_main_scherecinfo.setColumn(0,"sex", ds_paminfo.getColumn(0,"sex"));
- ds_main_scherecinfo.setColumn(0,"age", ds_paminfo.getColumn(0,"age"));
- ds_main_scherecinfo.setColumn(0,"deptcd", deptcd);
-
- var ioflag = ds_paminfo.getColumn(0,"ioflag");
- if(ioflag == "O" || ioflag == "S"){
- ds_main_scherecinfo.setColumn(0,"drid", ds_paminfo.getColumn(0,"orddrid"));
- }else{
- if( ds_paminfo.getColumnInfo("orddd") == null ) ds_paminfo.addColumn("orddd", "string");
- ds_paminfo.setColumn(0, "orddd", ds_paminfo.getColumn(0,"indd"));
- ds_paminfo.setColumn(0, "orddrid", ds_paminfo.getColumn(0,"medispclid"));
- ds_main_scherecinfo.setColumn(0,"drid", ds_paminfo.getColumn(0,"medispclid"));
- }
- lf_LoadForm();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_month
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 월 버튼 클릭시 달력변경
- ****************************************************************************************/
- function btn_month_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cond.setColumn(0,"month", obj.name.substr(4,6));
- var btnobj = components[gButtonID];
- btnobj.class = "btn2"
- gButtonID = obj.name;
- obj.class = "btn5"
- fReqScScheRecCalendar();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_bfyear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 전년도 변경 버튼 클릭
- ****************************************************************************************/
- function btn_bfyear_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_week.clear();
- var year = ds_main_cond.getColumn(0,"year");
- ds_main_cond.setColumn(0,"year",--year);
-
- fReqScScheRecCalendar();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_aftyear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 후년도 변경 버튼 클릭
- ****************************************************************************************/
- function btn_aftyear_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_week.clear();
- var year = ds_main_cond.getColumn(0,"year");
- ds_main_cond.setColumn(0,"year",++year);
- fReqScScheRecCalendar();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_schedept
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 담당과 변경
- ****************************************************************************************/
- function cmb_schedept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fReqScScheRecCalendar();
-
- if( !utlf_isNull(e.postvalue) ) {
-
- lf_mmbfGetUserComboList(ds_init_userlist4, cmb_schedept.value, "0330", "", "", "", "", "", "", "");
- frmf_addComboItem( "cmb_schedept", "전체", "", "above");
-
- cmb_schedrid.value = "";
-
- ds_main_cond.setColumn(0, "deptcd", e.postvalue);
- frmf_inputEnterKey("cmb_srchdeptcd", "onitemchanged", new ItemChangeEventInfo());
- }
-
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_calendar
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 예약일자 선택
- ****************************************************************************************/
- function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelectCalendar();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch.btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭
- ****************************************************************************************/
- function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnReq();
- fReqScScheRecCalendar();
- fClkBtnInit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button7
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자조회 버튼
- ****************************************************************************************/
- function btn_patInfo_onclick(obj:Button, e:ClickEventInfo)
- {
- if(lf_getPatOrdInfo(ipt_pid.value)) {
-
- var deptcd = ds_paminfo.getColumn(0,"orddeptcd");
-
- lf_mmbfGetUserComboList(ds_init_userlist2, deptcd, "0330", "", "", "", "", "", "", "");
-
- ds_main_scherecinfo.setColumn(0,"pid", ds_paminfo.getColumn(0,"pid"));
- ds_main_scherecinfo.setColumn(0,"hngnm", ds_paminfo.getColumn(0,"hngnm"));
- ds_main_scherecinfo.setColumn(0,"sex", ds_paminfo.getColumn(0,"sex"));
- ds_main_scherecinfo.setColumn(0,"age", ds_paminfo.getColumn(0,"age"));
- ds_main_scherecinfo.setColumn(0,"deptcd", deptcd);
- ds_main_scherecinfo.setColumn(0,"drid", ds_paminfo.getColumn(0,"orddrid"));
-
- lf_LoadForm();
- }else{
- ivw_loader.ivw_base.url = "";
- }
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_patinfo
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자조회 버튼
- ****************************************************************************************/
- function btn_patinfo_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_scherecinfo.setColumn(0,"pid",ipt_pid.value);
- fReqPatOrdInfo();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_diagcd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단코드 입력후 엔터
- ****************************************************************************************/
- function ipt_diagcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
-
- if(utlf_isNull(obj.value)) {
- sysf_messageBox("진단코드를", "C001");
- return;
- }
- fOpenDiagSearch("code");
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_diagnm
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단명 입력후 엔터
- ****************************************************************************************/
- function ipt_diagnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
-
- if(utlf_isNull(obj.value)) {
- sysf_messageBox("진단명을", "C001");
- return;
- }
-
- fOpenDiagSearch("term");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : caption16
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단코드/명 취소 버튼클릭
- ****************************************************************************************/
- function caption16_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_scherecinfo.setColumn(0,"diagcd","");
- ds_main_scherecinfo.setColumn(0,"diagnm","");
- ipt_diagcd.readonly = false;
- ipt_diagnm.readonly = false;
- ipt_diagcd.setFocus();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_savexls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장버튼
- ****************************************************************************************/
- function btn_savexls_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_schereclist.rowcount > 0) {
- grdf_exportExcel(grd_schelist,"excel","sheet1");
- sysf_messageBox("저장이 ", "I002");
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button9
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 통합기록화면 오픈
- ****************************************************************************************/
- function button9_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_main_scherecinfo.getColumn(0,"pid");
- frmf_setParameter("SMMRI00400_param_pid", pid );
- // open("SMMRI00400", 2, 0, 0);
- frmf_open("SMMRI00400","SMMRI00400",null,null,2,0,0,null,null,null,null,null,"M");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button5
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 통합결과 화면 오픈
- ****************************************************************************************/
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_createDs("ds_source");
- dsf_makeValue(ds_source,"srchpid","string",ds_main_scherecinfo.getColumn(0,"pid"));
- var objArg = new Object();
- objArg.arg_ds_send_singdata = ds_source;
- frmf_open("SMMMI00100","SMMMI00100",objArg,null,null,null,null,null,null,null,null,null,"M");
- dsf_deleteDs("ds_source");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button10
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 크게보기 화면 오픈
- ****************************************************************************************/
- function button10_onclick(obj:Button, e:ClickEventInfo)
- {
-
- var month = ds_main_cond.getColumn(0,"month");
- var year = ds_main_cond.getColumn(0,"year");
- var scheperfdrid = ds_main_cond.getColumn(0,"perfdrid");
- var scroomgrpcd = ds_main_cond.getColumn(0,"roomgrpcd");
- var scroomcd = ds_main_cond.getColumn(0,"roomcd");
-
- frmf_setParameter("SMMRE02100_param_perfdeptcd" , ds_main_cond.getColumn(0,"deptcd"));
- frmf_setParameter("SMMRE02100_param_scschedt" , year+month );
- frmf_setParameter("SMMRE02100_param_perfdeptnm" , grp_srch.cmb_srchdeptcd.text);
- frmf_setParameter("SMMRE02100_param_scheperfdrid" , scheperfdrid );
- frmf_setParameter("SMMRE02100_param_scheperfdrnm" , grp_srch.combo3.text);
- frmf_setParameter("SMMRE02100_param_scroomgrpcd" , scroomgrpcd );
- frmf_setParameter("SMMRE02100_param_scroomcd" , scroomcd );
- frmf_setParameter("SMMRE02100_param_year" , year );
- frmf_setParameter("SMMRE02100_param_month" , month );
- // open("SPMMB03700");
- frmf_open("SPMRB02100","SPMRB02100",null,null,null,null,null,null,null,null,null,null,"M");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_list
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 입원의뢰화면 오픈
- ****************************************************************************************/
- function btn_list_onclick(obj:Button, e:ClickEventInfo)
- {
- var insukind = ds_main_scherecinfo.getColumn(0,"insukind");
- var suppkind = ds_main_scherecinfo.getColumn(0,"suppkind");
- if(utlf_isNull(insukind)){
- sysf_messageBox("입원의뢰서를 등록하려면 현재 환자를 진료대상자 또는 스케줄현황 화면에서", "C002");
- return;
- }
- if(utlf_isNull(suppkind)){
- sysf_messageBox("입원의뢰서를 등록하려면 현재 환자를 진료대상자 또는 스케줄현황 화면에서", "C002");
- return;
- }
- frmf_open("SPMMO00100","SPMMO00100",null,null,null,null,null,null,null,null,null,null,"M");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_new
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 신규버튼 클릭
- ****************************************************************************************/
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnInit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭
- ****************************************************************************************/
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if(lf_preChkMsg("L") == false){
- return;
- }
-
- ds_main_scherecinfo.setColumn(0,"status", "d");
- ds_send_savedata.copyData(ds_main_scherecinfo);
- ds_send_savedata.setColumn(0, "condqry", lgv_condqry);
-
- var oParam = {};
- oParam.id = "TXMMT01101";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqExeSaveScheRecInfo";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_main_schereclist=schereclist";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- //fClkBtnReq();
- fReqScScheRecCalendar();
- fClkBtnInit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnSave();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_schelist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 예약리스트 클릭
- ****************************************************************************************/
- function grd_schelist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1 && e.col > -1){
- fClkGrdScScheList();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_pid
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 등록번호 검색
- ****************************************************************************************/
- function ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.value = utlf_trim(obj.value);
- btn_patInfo.click();
- }
- }
-
- /****************************************************************************************
- * Description : 예약 리스트 그리드 클릭
- * Argument :
- * return type :
- ****************************************************************************************/
- function fClkGrdScScheList(){
- var currow = ds_main_schereclist.rowposition;
- if( currow > -1 ){
- var orddeptcd = ds_main_schereclist.getColumn(currow,"deptcd");
- lf_mmbfGetUserComboList(ds_init_userlist2, orddeptcd, "0330", "", "", "", "", "", "", "");
-
- ds_main_scherecinfo.copyRow(0, ds_main_schereclist, currow);
- ds_main_scherecinfo.setColumn(0,"status","u");
- var formrecseq = ds_main_scherecinfo.getColumn(0, "formrecseq");
- lf_LoadForm(formrecseq);
-
- if(!utlf_isNull(ipt_diagcd.value)) {
- ipt_diagcd.readonly = true;
- ipt_diagnm.readonly = true;
- }else{
- ipt_diagcd.readonly = false;
- ipt_diagnm.readonly = false;
- }
-
- ipt_pid.enable = false;
- btn_patInfo.enable = false;
-
- var schehistcd = ds_main_scherecinfo.getColumn(0, "schehistcd");
- if( schehistcd == "T" ){ //예약
- btn_R.enable = true;
- btn_X.enable = false;
- btn_C.enable = false;
- btn_D.enable = false;
- btn_save.enable = true;
- }else if( schehistcd == "R" ){ //확정
- btn_R.enable = false;
- btn_C.enable = true;
- btn_X.enable = true;
- btn_D.enable = false;
- btn_save.enable = true;
- }else if( schehistcd == "C" ){ //승인
- btn_R.enable = false;
- btn_C.enable = false;
- btn_X.enable = false;
- btn_D.enable = false;
- btn_save.enable = true;
- }else if( schehistcd == "X" ){ // 취소
- btn_R.enable = false;
- btn_C.enable = false;
- btn_X.enable = false;
- btn_D.enable = true;
- btn_save.enable = false;
- }else if( schehistcd == "D" ){ // 부도
- btn_R.enable = false;
- btn_C.enable = false;
- btn_X.enable = false;
- btn_D.enable = false;
- btn_save.enable = false;
- }
- var histnm = ds_init_schehistcd.lookup("histcd", schehistcd, "histnm");
- stt_schehistnm.text = histnm;
-
- }
- }
- /****************************************************************************************
- * Function : fOpenDiagSearch
- * Description : 진단명 검색 팝업 open
- * Argument : pFlag : 처리구분 (code : 코드검색, term : 진단명)
- * return type :
- * Creator :
- ****************************************************************************************/
- function fOpenDiagSearch(pFlag){
- if(pFlag == "code"){
- frmf_setParameter("SPMMO00800_cond1", 1);
- frmf_setParameter("SPMMO00800_cond2", 1);
- frmf_setParameter("SPMMO00800_cond3", "E");
- frmf_setParameter("SPMMO00800_cond4", utlf_getCurrentDate());
- frmf_setParameter("SPMMO00800_cond5", ds_main_scherecinfo.getColumn(0,"dispdiagcd"));
-
- }else if(pFlag =="term"){
- var diagnm = ds_main_scherecinfo.getColumn(0,"diagnm");
- frmf_setParameter("SPMMO00800_cond1", 2);
- frmf_setParameter("SPMMO00800_cond2", 4);
- frmf_setParameter("SPMMO00800_cond3", utlf_isHangul(diagnm));
- frmf_setParameter("SPMMO00800_cond4", utlf_getCurrentDate());
- frmf_setParameter("SPMMO00800_cond5", diagnm);
- }
- // modal("SPMMO00800");
- frmf_modal("SPMMO00800","SPMMO00800",null,null,null,null,null,null,null,null,null,null,"M");
-
- var useyn = frmf_getParameter("SPMMO00800_rtn_useyn");
- if(useyn == "Y"){
- frmf_setParameter("SPMMO00800_rtn_useyn", "N");
- var rtnparam = frmf_getParameter("SPMMO00800_rtn");
- rtnparam = rtnparam.split("▩");
- var tmpstr = rtnparam[0];
-
- tmpstr = tmpstr.split("▦");
- ds_main_scherecinfo.setColumn(0,"dispdiagcd", tmpstr[1]);
- ds_main_scherecinfo.setColumn(0,"diagcd" , tmpstr[9]);
- ds_main_scherecinfo.setColumn(0,"diagnm" , tmpstr[2]);
- ipt_diagcd.readonly = true;
- ipt_diagnm.readonly = true;
- }else{
- ds_main_scherecinfo.setColumn(0,"dispdiagcd", "");
- ds_main_scherecinfo.setColumn(0,"diagcd" , "");
- ds_main_scherecinfo.setColumn(0,"diagnm" , "");
- }
- }
- /****************************************************************************************
- * Function : fOpenPatInfo
- * Description : 환자진료정보 list 조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fOpenPatInfo(){
- var pid = sSCSCHERECINFO_PATH.getColumn(0,"pid");
- if(utlf_isNull(pid)){
- sysf_messageBox("환자의 등록번호를", "C001");
- return;
- }
-
- frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, null, null, null, null, null, null, null, "M");
- if(!utlf_isNull(this.objects["ds_patinfolist"])) {
- ds_main_scherecinfo.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
- ds_main_scherecinfo.setColumn(0,"hngnm", ds_patinfolist.getColumn(0,"hngnm"));
- ds_main_scherecinfo.setColumn(0,"sex", ds_patinfolist.getColumn(0,"sex"));
- ds_main_scherecinfo.setColumn(0,"age", ds_patinfolist.getColumn(0,"age"));
- ds_main_scherecinfo.setColumn(0,"insukind", ds_patinfolist.getColumn(0,"insukind"));
- ds_main_scherecinfo.setColumn(0,"suppkind", ds_patinfolist.getColumn(0,"suppkind"));
- }
- }
- /****************************************************************************************
- * Function : fClkBtnReq
- * Description : 조회버튼 클릭시, 조회조건으로 검색
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fClkBtnReq(){
-
- ds_main_schereclist.clearData();
-
- ds_main_cond.setColumn(0,"queryflag", "");
- ds_send_reqdata.copyData(ds_main_cond);
-
-
-
- var oParam = {};
- oParam.id = "TRMMT01001";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetScheRecList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_schereclist=schereclist";
- oParam.async = false;
- oParam.callback = "cf_TRMMT01001";
- tranf_submit(oParam);
-
-
- }
- function cmb_srchdeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var deptcd = e.postvalue;
- if( deptcd != "-") {
- lf_mmbfGetUserComboList(ds_init_userlist, deptcd, "0330", "", "", "", "", "", "", "");
- dsf_addDsItem(ds_init_userlist, "userid", "usernm", "전체", "-");
-
- cmb_srchdrid.value = "-";
- }
- }
- function cmb_perfdeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var deptcd = e.postvalue;
- lf_mmbfGetUserComboList(ds_init_userlist2, deptcd, "0330", "", "", "", "", "", "", "");
- cmb_drid.index = 0;
- }
- function comn_mngt(obj:Button, e:ClickEventInfo)
- {
- var uSchehistcd = obj.name.split("_")[1];
- var uSchehistnm = ds_init_schehistcd.lookup("histcd", uSchehistcd, "histnm");
- var cSchehistcd = ds_main_scherecinfo.getColumn(0, "schehistcd");
-
- ds_main_scherecinfo.setColumn(0,"uschehistcd",uSchehistcd); //변경 schehistcd 세팅
-
- if(lf_preChkMsg(uSchehistcd) == false){
- return;
- }
-
- if(fChkValidScheInfo()== true){
- var successflag = "";
- ivw_loader.gSubmitSaveFlag = false;
- successflag = ivw_loader.fClickSave("N"); //임시저장 로직
-
- if(successflag == false){
- return;
- }
-
- lf_SetRec();
- }
-
-
-
- // 부도버튼, 취소버튼, 확정 상태가 아닐경우
- if( uSchehistcd == "D" || uSchehistcd == "X"){
-
- if( uSchehistcd == "X" && cSchehistcd != "R" ){ // 취소
- sysf_messageBox("확정 상태일 경우만 "+ uSchehistnm + " 상태로 변경 가능합니다.", "I");
- return;
- }
- if( uSchehistcd == "D" && cSchehistcd != "X" ){ // 부도
- sysf_messageBox("취소 상태일 경우만 "+ uSchehistnm + " 상태로 변경 가능합니다.", "I");
- return;
- }
-
- var sCnclresncd = ds_main_scherecinfo.getColumn(0, "cnclresncd");
- var sCnclresn = ds_main_scherecinfo.getColumn(0, "cnclresn");
-
- if( utlf_isNull(sCnclresncd) || sCnclresncd.indexOf(uSchehistcd) < 0){
-
- // 사유 입력
- ds_init_cnclresn.filter("");
- ds_init_cnclresn.filter("trgtcdsnm == '"+uSchehistcd+"'");
-
- ds_main_scherecinfo.setColumn(0, "cnclresncd", "");
- ds_main_scherecinfo.setColumn(0, "cnclresn", "");
-
- div_cnclresn.visible = true;
- div_cnclresn.execNm = obj.name;
-
- lf_setComponents(false);
- return;
- }
- }
-
- ds_main_scherecinfo.setColumn(0,"status", "u");
- ds_send_savedata.copyData(ds_main_scherecinfo);
- ds_send_savedata.setColumn(0, "schehistcd", uSchehistcd);
- ds_send_savedata.setColumn(0, "schehistflag", "N");
- ds_send_savedata.setColumn(0, "condqry", lgv_condqry);
-
-
- var oParam = {};
- oParam.id = "TXMMT01101";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqExeSaveScheRecInfo";
- oParam.inds = "req=ds_send_savedata formrec=ds_save_formrec recitem=ds_save_recitem";
- oParam.outds = "ds_main_schereclist=schereclist";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- //fClkBtnReq();
- fReqScScheRecCalendar();
- fClkBtnInit();
-
- }
- function lf_setComponents(nFlag){
- for(var i = 0; i < this.components.length; i++)
- {
- var ctrl = this.components[i];
- if( ctrl instanceof Div || ctrl instanceof Grid || ctrl instanceof Edit ||
- ctrl instanceof Calendar || ctrl instanceof Combo || ctrl instanceof Button ){
- if( ctrl instanceof Div && ctrl.name == "div_cnclresn" ){
- continue;
- }
- if( nFlag == false ){
- ctrl.orgenable = ctrl.enable;
- ctrl.enable = nFlag;
- }else{
- ctrl.enable = ctrl.orgenable;
- }
- }
- }
- }
- function div_cnclresn_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setComponents(true);
- ds_main_scherecinfo.setColumn(0, "cnclresncd", "");
- ds_main_scherecinfo.setColumn(0, "cnclresn", "");
- div_cnclresn.execNm = "";
- div_cnclresn.visible = false;
- }
- function div_cnclresn_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var sRsnCd = ds_main_scherecinfo.getColumn(0,"cnclresncd");
-
- if (utlf_isNull(sRsnCd))
- {
- sysf_messageBox("사유가", "I004");
- div_cnclresn.cmb_resn.setFocus();
- return;
- }
- else if (sRsnCd == "D03" || sRsnCd == "X03")
- {
- var sEtc = utlf_transNullToEmpty(ds_main_scherecinfo.getColumn(0, "cnclresn"));
-
- var tmpEtc = sEtc.replace(/\s/g, "");
-
- if (utlf_isNull(tmpEtc)) //기타사유 입력여부 검사
- {
- sysf_messageBox("기타 사유를", "C001");
- ds_main_scherecinfo.setColumn(0, "cnclresn", tmpEtc);
- div_cnclresn.ipt_etc.setFocus();
- return;
- }
- else
- {
- if (sEtc.length < 6)
- {
- sysf_messageBox("한글5자, 영문10자 이상 기록", "I008");
- div_cnclresn.ipt_etc.setFocus();
- return;
- }
- }
- }
-
- lf_setComponents(true);
- div_cnclresn.visible = false;
-
- var btnNm = div_cnclresn.execNm;
- var btnObj = this.components[btnNm];
-
- btnObj.click();
- }
- var xss = 0;
- var yss = 0;
- function div_cnclresn_ondrag(obj:Div, e:DragEventInfo)
- {
- xss = obj.position.left - e.screenX;
- yss = obj.position.top - e.screenY;
- return true;
- }
- function div_cnclresn_ondragmove(obj:Div, e:DragEventInfo)
- {
- obj.move(e.screenX + xss, e.screenY + yss);
- }
- function lf_preChkMsg(uSchehistcd){
-
- if( utlf_isNull(uSchehistcd) ) return true;
-
- var uSchehistnm = ds_init_schehistcd.lookup("histcd", uSchehistcd, "histnm");
- if( uSchehistcd == "S" ) uSchehistnm = "저장";
-
- if(uSchehistcd != "S" && utlf_isNull(ds_main_scherecinfo.getColumn(0, "regstno")) ){
- sysf_messageBox("[" + uSchehistnm + "] 상태 변경할 정보가 존재하지 않습니다.", "I");
- return;
- }
-
- var cSchehistcd = ds_main_scherecinfo.getColumn(0, "schehistcd");
-
- // 삭제, 저장 시 확정상태일경우 제어
- if( !lgv_bmngt && (uSchehistcd == "L" || uSchehistcd == "S") && cSchehistcd == "R"){
- sysf_messageBox("확정 상태에서는 "+uSchehistnm+" 불가능합니다.", "E");
- return false;
- }
-
- // 삭제, 저장 시 승인상태일경우 제어
- if( !lgv_bmngt && (uSchehistcd == "L" || uSchehistcd == "S") && cSchehistcd == "C"){
- sysf_messageBox("승인 상태에서는 "+uSchehistnm+" 불가능합니다.", "E");
- return false;
- }
-
- // 확정버튼, 예약 상태가 아닐경우
- if( uSchehistcd == "R" && cSchehistcd != "T" ){
- sysf_messageBox("예약 상태일 경우만 확정 상태로 변경 가능합니다.", "I");
- return false;
- }
-
- if( uSchehistcd == "L" || uSchehistcd == "R" ){
- var rtn = sysf_messageBox(uSchehistnm + " 하시겠습니까?", "Q");
- if( rtn != 6 ){
- return false;
- }
- }
-
- if( uSchehistcd == "S" ){
- var status = ds_main_scherecinfo.getColumn(0, "status");
-
- if(status == "u"){
- if(!lf_compareNodeVal(ds_cmpscschelist, ds_main_scherecinfo)){
- sysf_messageBox("변경된 사항이", "I004");
- return false;
- }
- }
-
- var sRecDate = ds_main_scherecinfo.getColumn(0, "schedd");
- var sRecTime = ds_main_scherecinfo.getColumn(0, "schedt");
- if(!utlf_isNull(sRecTime) && utlf_isValidDateTime(sRecDate+sRecTime,"YYYYMMDDhhmm")== false){
- sysf_messageBox("예약 시간이 유효하지","E007");
- ipt_schedt.setFocus();
- return false;
- }
-
-
- var nSchedd = ds_main_scherecinfo.getColumn(0, "schedd");
- var nOrgSchedd = ds_main_scherecinfo.getColumn(0, "orgschedd");
-
-
- // 제한인원
- if( !lgv_bmngt && !utlf_isNull(lgv_capacity) ){
-
- if( status == "i" || (status == "u" && nSchedd != nOrgSchedd) ){
- dsf_createDsRow("ds_cond_TRMMT01003", [{col:"formcd", type:"STRING", size:256, val:lgv_formcd}
- , {col:"schedd", type:"STRING", size:256, val:ds_main_scherecinfo.getColumn(0, "schedd")}
- , {col:"instcd", type:"STRING", size:256, val:""}]);
-
- dsf_createDs("ds_data_TRMMT01003", [{col:"cnt", type:"STRING", size:256}]);
-
- var oParam = {};
- oParam.id = "TRMMT01003";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetScheRecCnt";
- oParam.inds = "req=ds_cond_TRMMT01003";
- oParam.outds = "ds_data_TRMMT01003=schereccnt";
- oParam.async = false;
- tranf_submit(oParam);
-
- var nCapacity = ds_data_TRMMT01003.getColumn(0, "cnt");
- if ( nCapacity >= lgv_capacity ){
- sysf_messageBox("스케줄 예약이 불가능합니다.\n(일일제한인원 : "+lgv_capacity+"명)", "E");
- return false;
- }
- }
- }
- if( status == "i" || (status == "u" && nSchedd != nOrgSchedd) ){
- // 중복 저장 불가처리
- dsf_createDsRow("ds_cond_TRMMT01003", [{col:"formcd", type:"STRING", size:256, val:lgv_formcd}
- , {col:"schedd", type:"STRING", size:256, val:nSchedd}
- , {col:"instcd", type:"STRING", size:256, val:""}
- , {col:"pid", type:"STRING", size:256, val:ds_main_scherecinfo.getColumn(0, "pid")}]);
-
- dsf_createDs("ds_data_TRMMT01003", [{col:"cnt", type:"STRING", size:256}]);
-
- var oParam = {};
- oParam.id = "TRMMT01003";
- oParam.service = "schedulemngtapp.ScheduleMngt";
- oParam.method = "reqGetScheRecCnt";
- oParam.inds = "req=ds_cond_TRMMT01003";
- oParam.outds = "ds_data_TRMMT01003=schereccnt";
- oParam.async = false;
- tranf_submit(oParam);
-
- var nCnt = ds_data_TRMMT01003.getColumn(0, "cnt");
- if ( nCnt > 0 ){
- sysf_messageBox("해당일자로 예약되어있습니다. 스케줄 예약이 불가능합니다.", "E");
- return false;
- }
- }
-
- }
-
- return true;
- }
- function setFocusOnSelectedDayRed(selectedDate) {
- var rows = ds_main_week.rowcount;
- var cols = grd_calendar.getCellCount("Head");
-
- var nYYMM = ds_main_cond.getColumn(0, "year") + "" + ds_main_cond.getColumn(0, "month");
- var yymm = selectedDate.substr(0, 6);
- var dd = selectedDate.substr(6, 2);
-
- if( nYYMM != yymm ) return;
-
-
- if (dd.substr(0, 1) == "0") {
- dd = dd.substr(1, 1);
- dd = dd + "\n";
- }
- for (var row = 0; row < rows; row++) {
- for (var col = 0; col < cols; col++) {
- if (dd == utlf_transNullToEmpty(grd_calendar.getCellValue(row, col)).substr(0, 2)) {
- ds_main_week.rowposition = row;
- grd_calendar.setCellPos(col);
- grd_calendar.setFocus();
- return true;
- }
- }
- }
- }
- function ipt_schedt_ontextchange(obj:MaskEdit, e:TextChangeEventInfo)
- {
- utlf_validMaskEditTime(obj, e);
- }
- function btn_rslt_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_createDs("ds_source");
- dsf_makeValue(ds_source,"srchpid","string",ds_main_scherecinfo.getColumn(0,"pid"));
- var objArg = new Object();
- objArg.arg_ds_send_singdata = ds_source;
- frmf_open("SMMMI00100","SMMMI00100",objArg,null,null,null,null,null,null,null,null,null,"M");
- dsf_deleteDs("ds_source");
- }
- function btn_emr_onclick(obj:Button, e:ClickEventInfo)
- {
- var pid = ds_main_scherecinfo.getColumn(0,"pid");
- frmf_setParameter("SMMRI00400_param_pid", pid );
- // open("SMMRI00400", 2, 0, 0);
- frmf_open("SMMRI00400","SMMRI00400",null,null,2,0,0,null,null,null,null,null,"M");
- }
- ]]></Script>
- </Form>
- </FDL>
|