123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT20300" position="absolute 0 0 1194 787" titletext="특수조제실 출력 및 마감" oninit="SMADT20300_oninit" onload="SMADT20300_onload" ontimer="SMADT20300_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 87 1194 785" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 -1 1194 5" linetype="horizontal" id="line9" class="line_1" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- <Shape position="absolute 0 691 1194 697" linetype="horizontal" id="line1" class="line_3" anchor="left right bottom"/>
- <Grid position="absolute 275 4 1194 656" id="grd_prcplist" binddataset="ds_main_masterinfo_grid1" anchor="all" cellsizingtype="col" selecttype="multirow" onlbuttonup="group3_grd_prcplist_onlbuttonup" onrbuttondown="group3_grd_prcplist_onrbuttondown" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="54"/>
- <Column size="46"/>
- <Column size="70"/>
- <Column size="43"/>
- <Column size="42"/>
- <Column size="33"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="93"/>
- <Column size="27"/>
- <Column size="57"/>
- <Column size="100"/>
- <Column size="54"/>
- <Column size="54"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="34"/>
- <Column size="31"/>
- <Column size="41"/>
- <Column size="84"/>
- <Column size="83"/>
- <Column size="58"/>
- <Column size="79"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="24"/>
- </Rows>
- <Band id="head">
- <Cell text="처방구분"/>
- <Cell col="1" text="병실"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="성명"/>
- <Cell col="4" text="S/A"/>
- <Cell col="5" text="과"/>
- <Cell col="6" text="D#"/>
- <Cell col="7" text="Mix"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10" text="약품코드"/>
- <Cell col="11" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="12" text="상태"/>
- <Cell col="13" text="전달사항"/>
- <Cell col="14" text="용량"/>
- <Cell col="15" text="1회용량"/>
- <Cell col="16" text="단위"/>
- <Cell col="17" text="수량"/>
- <Cell col="18" text="1회수량"/>
- <Cell col="19" text="단위"/>
- <Cell col="20" text="횟수"/>
- <Cell col="21" text="일수"/>
- <Cell col="22" text="적용일자"/>
- <Cell col="23" text="입원일"/>
- <Cell col="24" text="퇴원예고"/>
- <Cell col="25" text="퇴원예정일"/>
- <Cell col="26" text="caption1"/>
- <Cell col="27" text="caption2"/>
- <Cell col="28" text="caption3"/>
- <Cell col="29" text="caption4"/>
- <Cell col="30" text="caption5"/>
- <Cell col="31" text="caption6"/>
- <Cell col="32" text="caption7"/>
- <Cell col="33" text="caption8"/>
- <Cell col="34" text="caption9"/>
- <Cell col="35" text="caption10"/>
- <Cell col="36" text="caption11"/>
- <Cell col="37" text="caption12"/>
- <Cell col="38" text="caption13"/>
- <Cell col="39" text="caption14"/>
- <Cell col="40" text="caption15"/>
- <Cell col="41" text="caption16"/>
- <Cell col="42" text="caption18"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;padding:0 0 0 3;" text="bind:prcpflagnm" wordwrap="char" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:roomcd" wordwrap="char" suppress="2" suppressalign="middle,over"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;background:EXPR(dschstat=='퇴원예고'||dschstat=='퇴원수납'?'#f7a08b':'');background2:EXPR(dschstat=='퇴원예고'||dschstat=='퇴원수납'?'#f7a08b':'');" text="bind:pid" wordwrap="char" suppress="3" suppressalign="middle,over"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:hngnm" wordwrap="char" suppress="3" suppressalign="middle,over"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:sexage" wordwrap="char" suppress="3" suppressalign="middle,over"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:orddeptnm" wordwrap="char" suppress="3" suppressalign="middle,over"/>
- <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:prtldg" wordwrap="char" suppress="3" suppressalign="middle,over"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:prcpmixno" wordwrap="char" suppress="4" suppressalign="middle,over"/>
- <Cell col="8" text="bind:execprcphistcdnm" wordwrap="char"/>
- <Cell col="9" text="bind:prcpno" wordwrap="char"/>
- <Cell col="10" style="align:left;padding:0 0 0 3;background:EXPR(prcpexecdeptnm=='ID'?'#d5bfaa':execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(prcpexecdeptnm=='ID'?'#d5bfaa':execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpcd" wordwrap="char"/>
- <Cell col="11" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0" wordwrap="char"/>
- <Cell col="12" style="align:left;padding:0 0 0 3;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:drugstatnm" wordwrap="char"/>
- <Cell col="13" style="align:left;padding:0 0 0 3;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpdelivefact" wordwrap="char"/>
- <Cell col="14" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpvol"/>
- <Cell col="15" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpvol2"/>
- <Cell col="16" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpvolunit"/>
- <Cell col="17" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpqty"/>
- <Cell col="18" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpqty2"/>
- <Cell col="19" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpqtyunit"/>
- <Cell col="20" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcptims"/>
- <Cell col="21" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpdayno"/>
- <Cell col="22" displaytype="expr:utlf_isNull(prcpdd) || prcpdd == '-' ? 'normal' : 'date'" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpdd"/>
- <Cell col="23" displaytype="expr:utlf_isNull(orddd) || orddd == '-' ? 'normal' : 'date'" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:orddd"/>
- <Cell col="24" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:dschstat"/>
- <Cell col="25" displaytype="expr:utlf_isNull(dschdd) || dschdd == '-' ? 'normal' : 'date'" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:dschdd"/>
- <Cell col="26" text="bind:drugno"/>
- <Cell col="27" text="bind:drugtypenm"/>
- <Cell col="28" text="bind:sumdt"/>
- <Cell col="29" text="bind:prntdt"/>
- <Cell col="30" text="bind:drugstat"/>
- <Cell col="31" text="bind:drugdd"/>
- <Cell col="32" text="bind:ioflag"/>
- <Cell col="33" text="bind:instcd"/>
- <Cell col="34" text="bind:prcphistno"/>
- <Cell col="35" text="bind:grdselrow"/>
- <Cell col="36" text="bind:reteresn"/>
- <Cell col="37" text="bind:prcpflag"/>
- <Cell col="38" text="bind:wardcd"/>
- <Cell col="39" text="bind:cretno"/>
- <Cell col="40" text="bind:drugseqno"/>
- <Cell col="41" text="bind:userid"/>
- <Cell col="42" text="bind:reglindcaseyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 4 270 689" id="grd_sumlist" binddataset="ds_main_sumlist" anchor="left top bottom" onlbuttonup="group3_grd_sumlist_onlbuttonup" cellsizingtype="col" onheadclick="group3_grd_sumlist_onheadclick" cellclickbound="cell" oncellclick="group3_grd_sumlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="24"/>
- <Column size="70"/>
- <Column size="55"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="38"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="마감일자"/>
- <Cell col="3" text="마감시간"/>
- <Cell col="4" text="sumdt"/>
- <Cell col="5" text="sumcls"/>
- <Cell col="6" text="처방구분"/>
- <Cell col="7" text="건수"/>
- <Cell col="8" text="drugdd"/>
- <Cell col="9" text="ioflag"/>
- <Cell col="10" text="instcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" displaytype="date" style="align:left middle;" text="bind:sumdd"/>
- <Cell col="3" text="bind:sumtm" mask="@@:@@:@@"/>
- <Cell col="4" text="bind:sumdt"/>
- <Cell col="5" text="bind:sumcls"/>
- <Cell col="6" text="bind:prcpflagnm" wordwrap="char"/>
- <Cell col="7" text="bind:cnt"/>
- <Cell col="8" text="bind:drugdd"/>
- <Cell col="9" text="bind:ioflag"/>
- <Cell col="10" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="roundrect3" type="roundrectangle" position="absolute 275 659 945 689" anchor="left bottom"/>
- <Static id="caption40" class="color_5" position="absolute 455 666 470 681" anchor="left bottom"/>
- <Static id="caption41" text="범 례" class="cell_2" position="absolute 295 664 365 684" anchor="left bottom"/>
- <Static id="caption43" text="분할전 원처방" visible="false" position="absolute 680 667 765 681" anchor="left bottom"/>
- <Static id="caption38" text="반환" position="absolute 473 667 508 681" anchor="left bottom"/>
- <Static id="caption39" class="color_7" position="absolute 377 666 392 681" anchor="left bottom"/>
- <Static id="caption29" text="반환의뢰" position="absolute 395 667 445 681" anchor="left bottom"/>
- <Static id="caption4" class="color_6" position="absolute 512 666 527 681" anchor="left bottom"/>
- <Static id="caption5" text="퇴원환자" position="absolute 530 667 580 681" anchor="left bottom"/>
- <Static id="caption8" text="실출고부서" position="absolute 972 665 1041 685" anchor="left bottom" style="color:red;font:Dotum,9,bold;"/>
- <Combo id="combo3" taborder="1" innerdataset="@ds_init_misdeptlist_deptlist" codecolumn="deptcd" datacolumn="deptnm" position="absolute 1040 665 1161 684" anchor="left bottom" onitemchanged="group3_combo3_onitemchanged"/>
- <Static id="caption42" class="color_9" visible="false" position="absolute 662 666 677 681" anchor="left bottom"/>
- <Static position="absolute 590 666 605 681" id="caption46" class="color_8" anchor="left bottom"/>
- <Static text="병동약국" position="absolute 608 667 658 681" align="align:center middle;" id="caption48" anchor="left bottom"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 61 1194 88" id="group4" scrollbars="autoboth" anchor="left top right">
- <Layouts>
- <Layout>
- <Button position="absolute 94 3 162 25" id="button1" class="btn6" text="처방전" anchor="default" onclick="group4_button1_onclick"/>
- <Button position="absolute 222 3 290 25" id="button2" class="btn6" text="조제표" anchor="default" onclick="group4_button2_onclick"/>
- <Button position="absolute 362 3 454 25" id="button3" class="btn6" text="반환리스트" anchor="default" onclick="group4_button3_onclick"/>
- <Button position="absolute 164 3 220 25" id="button5" class="btn6" text="라벨" anchor="default" onclick="group4_button5_onclick"/>
- <Button position="absolute 292 3 360 25" id="button6" class="btn6" text="집계표" anchor="default" onclick="group4_button6_onclick"/>
- <Button position="absolute 0 3 92 25" id="btn_prnt" class="btn3" text="프린터설정" anchor="default" onclick="group4_btn_prnt_onclick"/>
- <Button position="absolute 1055 3 1111 25" id="button29" class="btn4" text="마감" anchor="top right" onclick="group4_button29_onclick"/>
- <Button position="absolute 1114 3 1194 25" id="button4" class="btn4" visible="true" text="마감취소" anchor="top right" onclick="group4_button4_onclick"/>
- <Combo position="absolute 465 5 565 24" id="combo1" visible="false" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">입원주사조제</Col>
- </Row>
- <Row>
- <Col id="codecolumn">V</Col>
- <Col id="datacolumn">외래주사조제</Col>
- </Row>
- <Row>
- <Col id="codecolumn">U</Col>
- <Col id="datacolumn">원내조제</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Q</Col>
- <Col id="datacolumn">완제품TPN</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static text="등록번호 :" position="absolute 863 7 937 24" id="caption7" class="search_name" anchor="default"/>
- <Edit position="absolute 940 5 1021 24" id="input4" anchor="default"/>
- <Static text="[병동별 마감]" position="absolute 465 9 560 24" id="caption6" anchor="default" style="color:blue;font:Dotum,9,bold;"/>
- <Edit id="ipt_wardnm" taborder="1" class="input_search" enable="false" position="absolute 550 5 830 24" anchor="default"/>
- <Button id="button7" taborder="2" class="icon_search" position="absolute 831 6 847 22" anchor="default" onclick="group4_button7_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Edit position="absolute 710 84 850 103" id="ipt_wardcd" class="input_search" visible="false"/>
- <Static id="caption19" text="특수조제실 처방전/라벨/집계표/조제표 출력" class="tit_1" position="absolute 0 0 300 25"/>
- <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1194 62" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1071 7 1077 32" anchor="top right"/>
- <Calendar id="ipt_prcpdd" taborder="1" class="input_default" position="absolute 90 10 178 29" anchor="default" onchanged="group2_ipt_prcpdd_onchanged"/>
- <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1129 8 1185 30" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Radio id="rdo_ioflag" taborder="3" columncount="3" rowcount="4" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 286 10 381 30" anchor="default" onitemchanged="group2_rdo_ioflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption1" text="입원외래구분 :" class="search_name" position="absolute 185 12 289 29" anchor="default"/>
- <Static id="caption2" text="처방구분 :" class="search_name" position="absolute 386 12 464 29" anchor="default"/>
- <CheckBox id="checkbox3" taborder="4" class="checkbox_search" position="absolute 461 9 536 29" anchor="default" text="전체선택" truevalue="Y" onchanged="group2_checkbox3_onchanged"/>
- <Combo id="combo2" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 8 10 85 29" anchor="default" onitemchanged="group2_combo2_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">적용일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">마감일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <CheckBox id="chk_autoflag" taborder="7" position="absolute 1080 12 1125 27" anchor="top right" text="자동" onchanged="group2_chk_autoflag_onchanged" truevalue="1"/>
- <Static id="caption3" text="※ 체크된 처방구분만 마감됩니다." position="absolute 869 10 1074 30" anchor="default" style="color:blue;font:Dotum,9,bold;"/>
- <cp_checkboxList id="checkbox1" titletext="CheckBox List" taborder="8" text="cp_checkboxList00" scrollbars="none" position="absolute 535 11 635 29" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <cp_checkboxList id="chk_ward" titletext="CheckBox List" taborder="4" scrollbars="none" visible="false" position="absolute 550 85 650 109" style="background:azure;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list1_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="선택" type="STRING" size="256"/>
- <Column id="room" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_sumlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="sumdd" type="STRING" size="256"/>
- <Column id="sumtm" type="STRING" size="256"/>
- <Column id="sumdt" type="STRING" size="256"/>
- <Column id="sumcls" type="STRING" size="256"/>
- <Column id="prcpflagnm" type="STRING" size="256"/>
- <Column id="cnt" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_masterinfo_grid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_masterinfo_grid1_oncolumnchanged">
- <ColumnInfo>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="prtldg" type="STRING" size="256"/>
- <Column id="prcpmixno" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="drugstatnm" type="STRING" size="256"/>
- <Column id="prcpdelivefact" type="STRING" size="256"/>
- <Column id="prcpvol" type="STRING" size="256"/>
- <Column id="prcpvolunit" type="STRING" size="256"/>
- <Column id="prcpqty" type="STRING" size="256"/>
- <Column id="prcpqtyunit" type="STRING" size="256"/>
- <Column id="prcptims" type="STRING" size="256"/>
- <Column id="prcpdayno" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="drugtypenm" type="STRING" size="256"/>
- <Column id="sumdt" type="STRING" size="256"/>
- <Column id="prntdt" type="STRING" size="256"/>
- <Column id="drugstat" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="prcphistno" type="STRING" size="256"/>
- <Column id="grdselrow" type="STRING" size="256"/>
- <Column id="reteresn" type="STRING" size="256"/>
- <Column id="prcpflag" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="drugseqno" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="dschstat" type="STRING" size="256"/>
- <Column id="dschdd" type="STRING" size="256"/>
- <Column id="lblflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_sumprintlist_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_suminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="prcpflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="drugflag" type="STRING" size="256"/>
- <Column id="drugkind" type="STRING" size="256"/>
- <Column id="kindd" type="STRING" size="256"/>
- <Column id="kindb" type="STRING" size="256"/>
- <Column id="kindt" type="STRING" size="256"/>
- <Column id="kindc" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="kind1" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpdd"/>
- <Col id="prcpflag"/>
- <Col id="instcd"/>
- <Col id="drugflag">S</Col>
- <Col id="drugkind"/>
- <Col id="kindd"/>
- <Col id="kindb"/>
- <Col id="kindt"/>
- <Col id="kindc"/>
- <Col id="pid"/>
- <Col id="kind1"/>
- <Col id="wardcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_sumlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="drugflag">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="srchioflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_prcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrnid" type="STRING" size="256"/>
- <Column id="data1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="autoflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="fst_drugno" type="STRING" size="256"/>
- <Column id="last_drugno" type="STRING" size="256"/>
- <Column id="prcpflag" type="STRING" size="256"/>
- <Column id="mpsflag" type="STRING" size="256"/>
- <Column id="lblyn" type="STRING" size="256"/>
- <Column id="lbl_drug" type="STRING" size="256"/>
- <Column id="lbl_inj" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="prntflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="sumdt" type="STRING" size="256"/>
- <Column id="drugflag" type="STRING" size="256"/>
- <Column id="drugkind" type="STRING" size="256"/>
- <Column id="drugkindall" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="timeflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="drugdd"/>
- <Col id="fst_drugno"/>
- <Col id="last_drugno"/>
- <Col id="prcpflag"/>
- <Col id="mpsflag"/>
- <Col id="lblyn"/>
- <Col id="lbl_drug"/>
- <Col id="lbl_inj"/>
- <Col id="ward"/>
- <Col id="pid"/>
- <Col id="prntflag"/>
- <Col id="instcd"/>
- <Col id="sumdt"/>
- <Col id="drugflag">S</Col>
- <Col id="drugkind"/>
- <Col id="drugkindall"/>
- <Col id="ioflag">I</Col>
- <Col id="wardcd"/>
- <Col id="wardnm"/>
- <Col id="timeflag">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_rtninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_prcpsrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stocdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_prnt_druglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="agesex" type="STRING" size="256"/>
- <Column id="bsa" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="diagnm" type="STRING" size="256"/>
- <Column id="prtlnm" type="STRING" size="256"/>
- <Column id="prtldg" type="STRING" size="256"/>
- <Column id="prcpmixno" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="prcpvol" type="STRING" size="256"/>
- <Column id="prcpvolunit" type="STRING" size="256"/>
- <Column id="prcptims" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="roomcd"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="agesex"/>
- <Col id="bsa"/>
- <Col id="orddeptnm"/>
- <Col id="diagnm"/>
- <Col id="prtlnm"/>
- <Col id="prtldg"/>
- <Col id="prcpmixno"/>
- <Col id="prcpcd"/>
- <Col id="prcpvol"/>
- <Col id="prcpvolunit"/>
- <Col id="prcptims"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_prnt_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ward" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_prntdrugsumlist_sumclsB_prntdrugsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="sum" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_prntdrugsumlist_sumclsT_prntdrugsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="false" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="sum" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reteresn" type="STRING" size="256"/>
- <Column id="stocdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">항암제</Col>
- <Col id="value">D</Col>
- </Row>
- <Row>
- <Col id="label">소아TPN</Col>
- <Col id="value">B</Col>
- </Row>
- <Row>
- <Col id="label">TPN</Col>
- <Col id="value">T</Col>
- </Row>
- <Row>
- <Col id="label">무균조제</Col>
- <Col id="value">C</Col>
- </Row>
- <Row>
- <Col id="label">면역억제제</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_misdeptlist_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_sumrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.combo2" propid="value" datasetid="ds_hidden_srchinfo" columnid="timeflag"/>
- <BindItem id="item1" compid="group2.ipt_prcpdd" propid="value" datasetid="ds_hidden_srchinfo" columnid="drugdd"/>
- <BindItem id="item2" compid="group2.rdo_ioflag" propid="value" datasetid="ds_hidden_srchinfo" columnid="ioflag"/>
- <BindItem id="item3" compid="group2.checkbox3" propid="value" datasetid="ds_hidden_srchinfo" columnid="drugkindall"/>
- <BindItem id="item4" compid="group2.chk_autoflag" propid="value" datasetid="ds_init" columnid="autoflag"/>
- <BindItem id="item5" compid="ipt_wardcd" propid="value" datasetid="ds_hidden_srchinfo" columnid="wardcd"/>
- <BindItem id="item6" compid="group4.ipt_wardnm" propid="value" datasetid="ds_hidden_srchinfo" columnid="wardnm"/>
- <BindItem id="item7" compid="group4.input4" propid="value" datasetid="ds_hidden_srchinfo" columnid="pid"/>
- <BindItem id="item8" compid="group3.combo3" propid="value" datasetid="ds_hidden_prcpsrch" columnid="stocdeptcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_commonxp::AST.xjs"
- include "com_commodulexp::SSZFM00901.xjs"
- include "ast_pharmacyxp::SMADT20300.xjs"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gTimer = 0;
- var checkAllFlag = "N";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- function fn_checkbox1() {
- ds_hidden_srchinfo.setColumn(0,"drugkind",String(group2.checkbox1.getData()).replace(",","|"));
-
- var sDrugkind = ds_hidden_srchinfo.getColumn(0,"drugkind");
- // alert(sDrugkind.length);
- if(sDrugkind.length == 9){
- group2.checkbox3.enableevent = false;
- ds_hidden_srchinfo.setColumn(0,"drugkindall", "Y");
- group2.checkbox3.enableevent = true;
- } else {
- group2.checkbox3.enableevent = false;
- ds_hidden_srchinfo.setColumn(0,"drugkindall", "");
- group2.checkbox3.enableevent = true;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 프린터 설정
- ****************************************************************************************/
- function fSetPrint() {
- var prntsetupinfo = ds_main_barcdprntsetup.getColumn(0,"prntsetupinfo");
- var objArg = new Object();
- objArg.arg_sSetupInfo = prntsetupinfo;
- objArg.arg_sCallBackFunction = "lf_convertXmlToDs";
- frmf_modal("SPZUR00300", "SPZUR00300", objArg, null, 0, 20, 150, null, null, null, null, null, "M");
-
- if(!utlf_isNull(frmf_getParameter("SetupInfo")))
- ds_main_barcdprntsetup.setColumn(0,"prntsetupinfo",frmf_clearParameter("SetupInfo"));
- }
- /****************************************************************************************
- * Argument : drugstat
- * Description : 팝업메뉴 실행
- ****************************************************************************************/
- function fSubmitDrugChk(drugstat){
- var reteresn = "";
- var nodeList = new Dataset();
- var rCSV = null;
- var sel = null;
- var befdrugstat = null;
- var prcpcd = null;
-
- // nodeList = instance1.selectNodes("/root/main/masterinfo/grid1[sel='Y']");
- // rCSV = getNodeListCSV(nodeList);
- ds_main_masterinfo_grid1.filter("sel=='Y'");
- nodeList.copyData(ds_main_masterinfo_grid1,true);
- ds_main_masterinfo_grid1.filter("");
-
- if ( nodeList.rowcount == 0 ) {
- sysf_messageBox("처방내역을 선택해 주십시오.","I999");
- return;
- }
- // 검수보류사유
- if (drugstat == "ND") {
- frmf_modal("SMADT00101", "SMADT00101", null, null, 0, 100, 160, null, null, null, null, null, "M");
- reteresn = ds_temp.getColumn(0,"reteresn");
-
- if (utlf_isNull(reteresn)) {
- sysf_messageBox("보류사유을", "C002");
- return;
- }
- }
- // 투약/미불출은 데이터 처리불가
- for (var j = 0; j < ds_main_masterinfo_grid1.rowcount; j++) {
- sel = ds_main_masterinfo_grid1.getColumn(j,"sel");
-
- if (sel == "Y") {
- befdrugstat = ds_main_masterinfo_grid1.getColumn(j,"drugstat");
- prcpcd = ds_main_masterinfo_grid1.getColumn(j,"prcpcd");
-
- if (befdrugstat == "M") {
- sysf_messageBox("[" + prcpcd + "] 약은 투약완료되어 처리", "E001");
- return;
- } else if (befdrugstat == "X") {
- sysf_messageBox("[" + prcpcd + "] 약은 미불출되어 처리", "E001");
- return;
- }
- }
- }
- // 검수보류사유와 검수상태셋팅
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++) {
- dsf_makeValue(ds_main_masterinfo_grid1,"drugstat","string",drugstat ,i);
- dsf_makeValue(ds_main_masterinfo_grid1,"reteresn","string",reteresn ,i);
- dsf_makeValue(ds_main_masterinfo_grid1,"userid" ,"string",sysf_getUserId() ,i);
- }
-
- // nodeList = instance1.selectNodes("/root/main/masterinfo/grid1[sel='Y']");
- // rCSV = getNodeListCSV(nodeList);
- ds_main_masterinfo_grid1.filter("sel=='Y'");
- nodeList.copyData(ds_main_masterinfo_grid1,true);
- ds_main_masterinfo_grid1.filter("");
-
- ds_send_data1.clear();
- ds_send_data1.copyData(nodeList);
- dsf_makeValue(ds_send_data1,"drugflag","string",ds_hidden_srchinfo.getColumn(0,"drugflag"));
- // 수정
- // var sucess = submit("TXADT20102");
- var oParam = {};
- oParam.id = "TXADT20102";
- oParam.service = "pharmacyprescriptionapp.MpsCheck";
- oParam.method = "reqExeDrugChkSp";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_hidden_ret=chkitem";
- oParam.async = false;
- //oParam.callback = "cf_TXADT20102";
- tranf_submit(oParam);
-
- fSrchPrcpDataRe();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 마감취소
- ****************************************************************************************/
- function fSumCancel(){
- var reteresn = "";
- var nodeList = new Dataset();
- var rCSV = null;
- var sel = null;
- var befdrugstat = null;
- var prcpcd = null;
- // nodeList = instance1.selectNodes("/root/main/masterinfo/grid1[sel='Y']");
- // rCSV = getNodeListCSV(nodeList);
- ds_main_masterinfo_grid1.filter("sel=='Y'");
- nodeList.copyData(ds_main_masterinfo_grid1,true);
- ds_main_masterinfo_grid1.filter("");
-
- if ( nodeList.rowcount == 0 ) {
- sysf_messageBox("처방내역을 선택해 주십시오.","I999");
- return;
- }
- ds_send_data1.clear();
- ds_send_data1.copyData(nodeList);
- // 수정
- // var sucess = submit("TXADT20301");
- var oParam = {};
- oParam.id = "TXADT20301";
- oParam.service = "pharmacyprescriptionapp.DrugAccept";
- oParam.method = "reqExeSumCancel";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_hidden_ret=chkitem";
- oParam.async = false;
- //oParam.callback = "cf_TXADT20301";
- tranf_submit(oParam);
-
- fSrchPrcpDataRe();
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : grd_prcplist 행 선택시 체크박스 선택 유무 변경
- * : 처방구분, 병실, 등록번호, 성명, S/A , 과, D#, Mix 선택시에는 동일한 항목에 대해서 일괄 체크
- * : 기타 로우는 드래그 혹은 단일 선택시 체크박스 선택
- ****************************************************************************************/
- function fRowSel(SelCol){
- //==============================선택한 row의 초기값 설정=======================================
- // 선택한 row의 일괄 체크 항목의 Col값들에 대해서 초기화를 실행한다.
- var prcpflagnm = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"prcpflagnm");
- var roomcd = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"roomcd");
- var pid = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"pid");
- var hngnm = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"hngnm");
- var sexage = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"sexage");
- var orddeptnm = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"orddeptnm");
- var prtldg = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"prtldg");
- var prcpmixno = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"prcpmixno");
- //===========================================================================================
- if(SelCol == 0){ // prcpflagnm - 처방구분
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 1){ // roomcd - 병실
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd){
- // group3.grd_prcplist.select(parseInt(i),1) = true;
-
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 2){ // pid - 등록번호
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
- && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 3){ // hngnm - 성명
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
- && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
- && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 4){ // sexage - S/A
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
- && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
- && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
- && ds_main_masterinfo_grid1.getColumn(i,"sexage") == sexage){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 5){ // orddeptnm - 과
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
- && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
- && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
- && ds_main_masterinfo_grid1.getColumn(i,"orddeptnm") == orddeptnm){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 6){ // prtldg - D#
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
- && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
- && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
- && ds_main_masterinfo_grid1.getColumn(i,"orddeptnm") == orddeptnm
- && ds_main_masterinfo_grid1.getColumn(i,"prtldg") == prtldg){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else if(SelCol == 7){ // prcpmixno - Mix
- for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
- && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
- && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
- && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
- && ds_main_masterinfo_grid1.getColumn(i,"orddeptnm") == orddeptnm
- && ds_main_masterinfo_grid1.getColumn(i,"prtldg") == prtldg
- && ds_main_masterinfo_grid1.getColumn(i,"prcpmixno") == prcpmixno){
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
- ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
- }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
- }
- }
- }else{ // 기타 머지되지 않는 셀
- var selectedRows = grdf_getSelectedRows(group3.grd_prcplist);
- var startRow = selectedRows[0];
- var endRow = selectedRows[selectedRows.length - 1];
- for(var i = startRow ; i <= endRow ; i++) {
- if(ds_main_masterinfo_grid1.getColumn(i,"sel") == "Y") ds_main_masterinfo_grid1.setColumn(i,"sel","N");
- else ds_main_masterinfo_grid1.setColumn(i,"sel","Y")
- }
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 자동체크시 실행되는 함수
- ****************************************************************************************/
- function fAuto(){
- ds_main_masterinfo_grid1.clearData();
-
- if(ds_hidden_srchinfo.getColumn(0,"ioflag") == "I") {
- fHosSpSum(); //마감
- }
- //마감리스트 조회
- dsf_makeValue(ds_hidden_srchinfo,"autoflag","string",ds_init.getColumn(0,"autoflag"));
- fSrchsumData();
- //마감별 환자리스트 조회
- fSrchPrcpData();
- if(ds_main_masterinfo_grid1.rowcount > 0) {
- //처방전 출력
- ds_hidden_srchinfo.setColumn(0,"mpsflag","Y"); // 처방전 출력 셋팅
- //라벨출력
- ds_hidden_srchinfo.setColumn(0,"lblyn" ,"Y"); // 라벨 출력 셋팅
-
- fPrcpMPSPrint();
-
- ds_hidden_srchinfo.setColumn(0,"mpsflag",""); //처방전 출력 클리어
- ds_hidden_srchinfo.setColumn(0,"lblyn" ,""); //라벨 출력 클리어
-
- fSrchPrcpDataRe();
- }
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT20300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMADT20300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT20300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMADT20300_onload(obj:Form, e:LoadEventInfo)
- {
- var sProp_5_1 = "col=5,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=17,overflow='visible'";
- group2.checkbox1.setInitComp(sProp_5_1,ds_checkbox1,"value","label","fn_checkbox1");
-
- group2.checkbox1.setCheckAll(true);
-
- frmf_createPopupMenu("popup"
- ,"fPopup"
- ,[{id: "SD", level: "0", title: "조제완료"}
- ,{id: "ND", level: "0", title: "조제보류"}]
- );
- fInit();
-
- // fn_setGridStyle();
- }
- function fPopup(obj:PopupMenu, e:MenuClickEventInfo) {
- fSubmitDrugChk(e.id);
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_masterinfo_grid1
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function ds_main_masterinfo_grid1_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="sel") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_sumlist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function ds_main_sumlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="sel") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : group2.combo2
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 변경시 마감가능여부 변경
- ****************************************************************************************/
- function group2_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(ds_hidden_srchinfo.getColumn(0,"timeflag") == "1") {
- group4.button29.enable = true;
- } else {
- group4.button29.enable = false;
- }
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : group2.ipt_prcpdd
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 일자 변경시 마감리스트 조회
- ****************************************************************************************/
- function group2_ipt_prcpdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_send_sumlistinfo.copyData(ds_hidden_srchinfo);
-
- call_TRADT20302();
-
- ds_main_masterinfo_grid1.clearData();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3.grd_sumlist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마감리스트 선택시 상세조회
- ****************************************************************************************/
- function group3_grd_sumlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- // if(e.row > -1) {
- // fSrchPrcpData();
- // }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3.grd_sumlist
- * Event : onheadclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 전체선택
- ****************************************************************************************/
- function group3_grd_sumlist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.col == 1) {
- ds_main_sumlist.rowposition = -1; // 전체선택이나 전체해제시
-
- if(utlf_isNull(group3.grd_sumlist.getCellProperty("Head",1,"text"))) {
- group3.grd_sumlist.setCellProperty("Head",1,"text",1);
-
- for(var i = 0; i < ds_main_sumlist.rowcount; i++) {
- ds_main_sumlist.setColumn(i,"sel","Y");
- }
- } else {
- group3.grd_sumlist.setCellProperty("Head",1,"text","");
-
- for(var i = 0; i < ds_main_sumlist.rowcount; i++) {
- ds_main_sumlist.setColumn(i,"sel","N");
- }
- }
-
- fSrchPrcpData();
- }
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : group2.rdo_ioflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 입원/외래 변경시 처리
- ****************************************************************************************/
- function group2_rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(ds_hidden_srchinfo.getColumn(0,"ioflag") == "O") {
- group4.ipt_wardnm.visible = false;
- group4.button7.visible = false;
- chk_ward.visible = false;
- group4.caption6.visible = false; //2010-05-25 병동별 마감 Title 추가
-
- ds_temp_srchinfo.setColumn(0,"ward", "");
- ipt_wardcd.value = String(chk_ward.getData()).replace(","," ");
- group4.ipt_wardnm.value = String(chk_ward.getLableData()).replace(","," ");
- } else if(ds_hidden_srchinfo.getColumn(0,"ioflag") == "I") {
- group4.ipt_wardnm.visible = true;
- group4.button7.visible = true;
- group4.caption6.visible = true; //2010-05-25 병동별 마감 Title 추가
- }
- ds_send_sumlistinfo.copyData(ds_hidden_srchinfo);
-
- call_TRADT20302();
- }
- /****************************************************************************************
- * Components : CheckBox
- * Components ID : group2.checkbox3
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 처방구분 체크박스 리스트 전체선택/해제
- ****************************************************************************************/
- function group2_checkbox3_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(e.postvalue == "Y") {
- group2.checkbox1.setCheckAll(true);
- } else {
- group2.checkbox1.setCheckAll(false);
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Components ID : group2.chk_autoflag
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 자동 체크시 동작
- ****************************************************************************************/
- function group2_chk_autoflag_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var autoflag = e.postvalue; //ds_init.getColumn(0,"autoflag");
-
- if (autoflag == "1" ) {
- group4.enable = false;
- group2.combo2.enable = false;
- group2.ipt_prcpdd.enable = false;
- group2.rdo_ioflag.enable = false;
- group2.checkbox3.enable = false;
- group2.checkbox1.enable = false;
- group2.btn_sea.enable = false;
- group3.grd_sumlist.enable = false;
-
- if (gTimer == 0) {
- // gTimer = window.setInterval("fAuto()",80000);
- gTimer = 1;
- this.setTimer(0,80000);
- }
- } else {
- group4.enable = true;
- group2.combo2.enable = true;
- group2.ipt_prcpdd.enable = true;
- group2.rdo_ioflag.enable = true;
- group2.checkbox3.enable = true;
- group2.checkbox1.enable = true;
- group2.btn_sea.enable = true;
- group3.grd_sumlist.enable = true;
-
- if (gTimer > 0) {
- // window.clearinterval(gTimer);
- gTimer = 0;
- this.killTimer(0);
- }
- }
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT20300
- * Event : ontimer
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 타이머이벤트
- ****************************************************************************************/
- function SMADT20300_ontimer(obj:Form, e:TimerEventInfo)
- {
- // gTimer++;
- fAuto();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회클릭
- ****************************************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_makeValue(ds_hidden_srchinfo,"autoflag","string","");
- ds_main_masterinfo_grid1.clearData();
-
- fSrchsumData();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.btn_prnt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 프린터설정
- ****************************************************************************************/
- function group4_btn_prnt_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetPrint();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 처방전 출력
- ****************************************************************************************/
- function group4_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_hidden_srchinfo.setColumn(0,"mpsflag","Y"); //처방전 출력 셋팅
-
- fPrcpMPSPrint();
-
- ds_hidden_srchinfo.setColumn(0,"mpsflag",""); //처방전 출력 클리어
-
- fSrchPrcpDataRe();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button5
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라벨 출력
- ****************************************************************************************/
- function group4_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_hidden_srchinfo.setColumn(0,"lblyn","Y"); //라벨 출력 셋팅
-
- fPrcpMPSPrint();
-
- ds_hidden_srchinfo.setColumn(0,"lblyn",""); //라벨 출력 클리어
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조제표 출력
- ****************************************************************************************/
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrcpListPrnt();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button6
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 집계표 출력
- ****************************************************************************************/
- function group4_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fSumPrint();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 반환리스트 출력
- ****************************************************************************************/
- function group4_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fRtnListPrnt();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : group4.combo3
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 실출고부서 변경
- ****************************************************************************************/
- function group3_combo3_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(chk_cnt != 0) {
- var ret = sysf_messageBox("약품출고부서를 " + e.posttext + "으로 ", "S001");
- if(ret == "6") {
- ds_send_suminfo.setColumn(0,"mstocdeptcd", e.postvalue);
- obj.index = e.postindex;
- } else {
- ds_send_suminfo.setColumn(0,"mstocdeptcd", e.prevalue);
- obj.index = e.preindex;
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button7
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 병동선택
- ****************************************************************************************/
- function group4_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- if(chk_ward.visible == true){
- chk_ward.visible = false;
- }else {
- chk_ward.visible = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button29
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마감버튼 클릭
- ****************************************************************************************/
- function group4_button29_onclick(obj:Button, e:ClickEventInfo)
- {
- fHosSpSum();
- fSrchsumData();
- chk_ward.visible = false;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group4.button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마감취소버튼 클릭
- ****************************************************************************************/
- function group4_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- for ( var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
- if ( ds_main_masterinfo_grid1.getColumn(i,"sel") =="Y" ){
- if ( ds_main_masterinfo_grid1.getColumn(i,"drugstat") =="SD" ){
- sysf_messageBox("특조완료된 처방은 불가능합니다.","I999");
- return;
- }
- //2010-03-09 주사실에서 특수조제실로 전송하는 모든 약제처방의 마감취소가 가능하도록 해야 함
- // (외래주사조제실(V)에서 [마감취소]가능하도록 처리한다. 그외는 원래상태의 [항암제]만 마감취소) [요청번호:6662]
- if ( frmf_getMenuParam() != "V") {
- if ( ds_main_masterinfo_grid1.getColumn(i,"prcpflag") != "D" ){
- sysf_messageBox("항암제만 가능합니다.","I999");
- return;
- }
- }
- }
- }
-
- if ( sysf_messageBox("선택된 약번호의 마감 취소를", "Q004") == 6 ){
- fSumCancel();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3.grd_prcplist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function group3_grd_prcplist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if ( e.row > -1 && e.col != 11) {
- fRowSel(e.col);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3.grd_prcplist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 팝업메뉴
- ****************************************************************************************/
- function group3_grd_prcplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1){
- grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
- popup.trackPopup(e.screenX,e.screenY);
- }
-
- return true;
- }
- function group3_grd_sumlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1) {
- fSrchPrcpData();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|