123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT30600" position="absolute 0 0 1209 860" titletext="마약/향정약 처방관리" oninit="SMADT30600_oninit" onload="SMADT30600_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 8 31 1203 775" id="group3" scrollbars="autoboth" onkeyup="group3_onkeyup">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 260" id="group2" anchor="default" class="div_SA">
- <Layouts>
- <Layout>
- <Edit position="absolute 245 120 860 195" id="input9" class="font_ab" anchor="default" onkeyup="group3_group2_input9_onkeyup" style="font:Dotum,40,bold;"/>
- <Static text="바코드 :" position="absolute 10 120 245 195" id="caption7" class="font_ab" anchor="default" style="font:Dotum,30,bold;"/>
- <Static text="담당자 :" position="absolute 10 35 245 110" id="caption8" class="font_ab" anchor="default" style="font:Dotum,30,bold;"/>
- <Edit readonly="true" position="absolute 595 34 596 109" id="output1" class="font_ab" anchor="default"/>
- <Edit position="absolute 245 34 585 109" id="input1" class="font_ab" anchor="default" onkeyup="group3_group2_input1_onkeyup" onkillfocus="group3_group2_input1_onkillfocus" style="font:Dotum,40,bold;"/>
- <Button position="absolute 1085 80 1165 102" id="button1" class="btn4" visible="false" text="불출확인" anchor="default" onclick="group3_group2_button1_onclick"/>
- <Button position="absolute 1085 135 1165 157" id="button2" class="btn4" text="불출취소" anchor="default" onclick="group3_group2_button2_onclick"/>
- <Shape position="absolute 1052 5 1058 245" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="사용자ID를 입력하십시오." position="absolute 240 200 860 240" id="caption1" anchor="default" style="color:red;font:Dotum,12,bold;"/>
- <Static id="Static00" position="absolute 615 34 951 110" style="font:Dotum,40,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="마약/향정약 처방관리" class="tit_1" position="absolute 8 6 188 31"/>
- <Grid id="grd_outnarc" class="datagrid2" taborder="1" binddataset="ds_main_narclist" useinputpanel="false" position="absolute 8 310 1203 750" visible="false" oncelldblclick="grd_outnarc_oncelldblclick" onkeydown="grd_outnarc_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="27"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="53"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="61"/>
- <Column size="90"/>
- <Column size="150"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="55"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="6"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="6"/>
- <Column size="70"/>
- <Column size="7"/>
- <Column size="70"/>
- <Column size="10"/>
- <Column size="70"/>
- <Column size="10"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="6"/>
- <Column size="85"/>
- <Column size="7"/>
- <Column size="85"/>
- <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/>
- <Cell col="1"/>
- <Cell col="2" text="불출상태"/>
- <Cell col="3" text="반환상태"/>
- <Cell col="4" text="반납상태"/>
- <Cell col="5" text="약품 구분"/>
- <Cell col="6" text="투약번호"/>
- <Cell col="7" text="수행부서"/>
- <Cell col="8" text="처방일자"/>
- <Cell col="9" text="환자번호"/>
- <Cell col="10" text="환자명"/>
- <Cell col="11" text="약품코드"/>
- <Cell col="12" text="약품명"/>
- <Cell col="13" colspan="2" text="총량" taborder="undefined"/>
- <Cell col="15" colspan="2" text="일수량" taborder="undefined"/>
- <Cell col="17" colspan="2" text="일용량" taborder="undefined"/>
- <Cell col="19" text="횟수"/>
- <Cell col="20" text="일수"/>
- <Cell col="21" colspan="2" text="잔량" taborder="undefined"/>
- <Cell col="23" colspan="2" text="반환횟수" taborder="undefined"/>
- <Cell col="25" colspan="2" text="반환용량" taborder="undefined"/>
- <Cell col="27" text="조제일시"/>
- <Cell col="28" text="조제약사"/>
- <Cell col="29" text="투약일시"/>
- <Cell col="30" text="투약약사"/>
- <Cell col="31" text="수령일시"/>
- <Cell col="32" text="수령 담당자"/>
- <Cell col="33" text="부서확인 일시"/>
- <Cell col="34" text="부서확인 간호사"/>
- <Cell col="35" text="반환신청일시"/>
- <Cell col="36" text="반환신청 간호사"/>
- <Cell col="37" text="반환확인일시"/>
- <Cell col="38" text="반환확인 약사"/>
- <Cell col="39" text="반환사유"/>
- <Cell col="40" text="반납신청 일시"/>
- <Cell col="41" text="잔량반납신청 간호사"/>
- <Cell col="42" text="반납확인 일시"/>
- <Cell col="43" text="잔량반납확인 약사"/>
- <Cell col="44" text="prcpno"/>
- <Cell col="45" text="prcphistno"/>
- <Cell col="46" text="drugdd"/>
- <Cell col="47" text="drugno"/>
- <Cell col="48" text="ioflag"/>
- <Cell col="49" text="instcd"/>
- <Cell col="50" text="narcflag"/>
- <Cell col="51" text="prntflag"/>
- <Cell col="52" text="orddd"/>
- <Cell col="53" text="orddeptcd"/>
- <Cell col="54" text="prcpgenrflag"/>
- <Cell col="55" text="drugkind"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:narcstat"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:cnclstat"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:rtnstat"/>
- <Cell col="5" text="bind:drugkindnm"/>
- <Cell col="6" text="bind:drugno"/>
- <Cell col="7" text="bind:issdeptcdnm"/>
- <Cell col="8" text="bind:prcpdd" mask="yyyy/mm/dd"/>
- <Cell col="9" text="bind:pid"/>
- <Cell col="10" text="bind:patnm"/>
- <Cell col="11" text="bind:prcpcd"/>
- <Cell col="12" text="bind:drugnm"/>
- <Cell col="13" text="bind:totdrugqty"/>
- <Cell col="14" text="bind:prcpqtyunit"/>
- <Cell col="15" text="bind:dayprcpqty"/>
- <Cell col="16" text="bind:prcpqtyunit"/>
- <Cell col="17" text="bind:prcpvol"/>
- <Cell col="18" text="bind:prcpvolunit"/>
- <Cell col="19" text="bind:prcptims"/>
- <Cell col="20" text="bind:prcpdayno"/>
- <Cell col="21" text="bind:spreqty"/>
- <Cell col="22" text="bind:prcpvolunit"/>
- <Cell col="23" displaytype="text" edittype="text" class="gridinput" text="bind:rtnqty"/>
- <Cell col="24" text="bind:rtnunit"/>
- <Cell col="25" text="bind:returnqty"/>
- <Cell col="26" text="bind:prcpvolunit"/>
- <Cell col="27" text="bind:prcpdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="28" text="bind:prcpidnm"/>
- <Cell col="29" text="bind:drugdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="30" text="bind:drugidnm"/>
- <Cell col="31" text="bind:delivedt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="32" text="bind:deliveidnm"/>
- <Cell col="33" text="bind:acptdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="34" text="bind:acptidnm"/>
- <Cell col="35" text="bind:rtnappdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="36" text="bind:rtnappidnm"/>
- <Cell col="37" text="bind:rtncnfmdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="38" text="bind:rtncnfmidnm"/>
- <Cell col="39" text="bind:rtnresn"/>
- <Cell col="40" text="bind:spredt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="41" text="bind:spreidnm"/>
- <Cell col="42" text="bind:sprecnfmdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="43" text="bind:sprecnfmidnm"/>
- <Cell col="44" text="bind:prcpno"/>
- <Cell col="45" text="bind:prcphistno"/>
- <Cell col="46" text="bind:drugdd"/>
- <Cell col="47" text="bind:drugno"/>
- <Cell col="48" text="bind:ioflag"/>
- <Cell col="49" text="bind:instcd"/>
- <Cell col="50" text="bind:narcflag"/>
- <Cell col="51" text="bind:prntflag"/>
- <Cell col="52" text="bind:orddd"/>
- <Cell col="53" text="bind:orddeptcd"/>
- <Cell col="54" text="bind:prcpgenrflag"/>
- <Cell col="55" text="bind:drugkind"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_sprelist" class="datagrid2" taborder="2" binddataset="ds_main_narclist" useinputpanel="false" position="absolute 8 350 1203 790" visible="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="29"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="58"/>
- <Column size="90"/>
- <Column size="150"/>
- <Column size="50"/>
- <Column size="33"/>
- <Column size="50"/>
- <Column size="26"/>
- <Column size="50"/>
- <Column size="29"/>
- <Column size="34"/>
- <Column size="50"/>
- <Column size="34"/>
- <Column size="100"/>
- <Column size="65"/>
- <Column size="100"/>
- <Column size="62"/>
- <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/>
- <Cell col="1"/>
- <Cell col="2" text="상태"/>
- <Cell col="3" text="처방일자"/>
- <Cell col="4" text="환자번호"/>
- <Cell col="5" text="환자명"/>
- <Cell col="6" text="약품코드"/>
- <Cell col="7" text="약품명"/>
- <Cell col="8" text="총량"/>
- <Cell col="9" text="총량"/>
- <Cell col="10" text="일수량"/>
- <Cell col="11" text="일수량"/>
- <Cell col="12" text="일용량"/>
- <Cell col="13" text="일용량"/>
- <Cell col="14" text="횟수"/>
- <Cell col="15" text="잔량"/>
- <Cell col="16" text="잔량"/>
- <Cell col="17" text="반납신청일시"/>
- <Cell col="18" text="반납신청 담당자"/>
- <Cell col="19" text="반납확인일시"/>
- <Cell col="20" text="반납확인 담당자"/>
- <Cell col="21" text="prcpno"/>
- <Cell col="22" text="prcphistno"/>
- <Cell col="23" text="drugdd"/>
- <Cell col="24" text="drugno"/>
- <Cell col="25" text="ioflag"/>
- <Cell col="26" text="instcd"/>
- <Cell col="27" text="narcflag"/>
- <Cell col="28" text="prntflag"/>
- <Cell col="29" text="orddd"/>
- <Cell col="30" text="orddeptcd"/>
- <Cell col="31" text="prcpgenrflag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:narcstat"/>
- <Cell col="3" text="bind:prcpdd" mask="yyyy/mm/dd"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:patnm"/>
- <Cell col="6" text="bind:prcpcd"/>
- <Cell col="7" text="bind:drugnm"/>
- <Cell col="8" text="bind:totdrugqty"/>
- <Cell col="9" text="bind:prcpqtyunit"/>
- <Cell col="10" text="bind:dayprcpqty"/>
- <Cell col="11" text="bind:prcpqtyunit"/>
- <Cell col="12" text="bind:prcpvol"/>
- <Cell col="13" text="bind:prcpvolunit"/>
- <Cell col="14" text="bind:prcptims"/>
- <Cell col="15" text="bind:spreqty"/>
- <Cell col="16" text="bind:prcpvolunit"/>
- <Cell col="17" text="bind:spredt" mask="expr:utlf_isNull(spredt) ? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="18" text="bind:spreidnm"/>
- <Cell col="19" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt) ? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="20" text="bind:sprecnfmidnm"/>
- <Cell col="21" text="bind:prcpno"/>
- <Cell col="22" text="bind:prcphistno"/>
- <Cell col="23" text="bind:drugdd"/>
- <Cell col="24" text="bind:drugno"/>
- <Cell col="25" text="bind:ioflag"/>
- <Cell col="26" text="bind:instcd"/>
- <Cell col="27" text="bind:narcflag"/>
- <Cell col="28" text="bind:prntflag"/>
- <Cell col="29" text="bind:orddd"/>
- <Cell col="30" text="bind:orddeptcd"/>
- <Cell col="31" text="bind:prcpgenrflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <ActiveX id="CommAX" position="absolute 278 465 323 510" progid="{87A84390-EB86-424F-97B9-45E53A5EFE28}" useautobitmapcache="1" anchor="default" taborder="3"/>
- <Grid id="grd_narclist" class="datagrid2" taborder="4" binddataset="ds_main_narclist" useinputpanel="false" position="absolute 8 390 1203 830" oncelldblclick="grd_narclist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="30"/>
- <Column size="56"/>
- <Column size="56"/>
- <Column size="56"/>
- <Column size="67"/>
- <Column size="41"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="65"/>
- <Column size="50"/>
- <Column size="90"/>
- <Column size="150"/>
- <Column size="40"/>
- <Column size="27"/>
- <Column size="36"/>
- <Column size="27"/>
- <Column size="40"/>
- <Column size="28"/>
- <Column size="26"/>
- <Column size="32"/>
- <Column size="28"/>
- <Column size="28"/>
- <Column size="29"/>
- <Column size="32"/>
- <Column size="35"/>
- <Column size="8"/>
- <Column size="70"/>
- <Column size="6"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="9"/>
- <Column size="70"/>
- <Column size="9"/>
- <Column size="70"/>
- <Column size="9"/>
- <Column size="70"/>
- <Column size="7"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="7"/>
- <Column size="85"/>
- <Column size="7"/>
- <Column size="85"/>
- <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/>
- <Cell col="1"/>
- <Cell col="2" text="불출상태"/>
- <Cell col="3" text="반환상태"/>
- <Cell col="4" text="반납상태"/>
- <Cell col="5" text="처방일자"/>
- <Cell col="6" text="투약번호"/>
- <Cell col="7" text="수행부서"/>
- <Cell col="8" text="병실"/>
- <Cell col="9" text="환자번호"/>
- <Cell col="10" text="환자명"/>
- <Cell col="11" text="약품코드"/>
- <Cell col="12" text="약품명"/>
- <Cell col="13" colspan="2" text="총량" taborder="undefined"/>
- <Cell col="15" colspan="2" text="일수량" taborder="undefined"/>
- <Cell col="17" colspan="2" text="일용량" taborder="undefined"/>
- <Cell col="19" text="횟수"/>
- <Cell col="20" colspan="2" text="잔량" taborder="undefined"/>
- <Cell col="22" colspan="2" text="반환횟수" taborder="undefined"/>
- <Cell col="24" colspan="2" text="반환수량" taborder="undefined"/>
- <Cell col="26" text="조제일시"/>
- <Cell col="27" text="조제 약사"/>
- <Cell col="28" text="투약일시"/>
- <Cell col="29" text="투약 약사"/>
- <Cell col="30" text="수령일시"/>
- <Cell col="31" text="수령 담당자"/>
- <Cell col="32" text="병동수령일시"/>
- <Cell col="33" text="부서확인 간호사"/>
- <Cell col="34" text="반환신청일시"/>
- <Cell col="35" text="반환신청 간호사"/>
- <Cell col="36" text="반환일시"/>
- <Cell col="37" text="반환 담당자"/>
- <Cell col="38" text="반환확인일시"/>
- <Cell col="39" text="반환확인 약사"/>
- <Cell col="40" text="반환사유"/>
- <Cell col="41" text="잔량반납 신청일시"/>
- <Cell col="42" text="잔량반납신청 간호사"/>
- <Cell col="43" text="잔량반납 확인일시"/>
- <Cell col="44" text="잔량반납확인 약사"/>
- <Cell col="45" text="prcpno"/>
- <Cell col="46" text="prcphistno"/>
- <Cell col="47" text="drugdd"/>
- <Cell col="48" text="drugno"/>
- <Cell col="49" text="ioflag"/>
- <Cell col="50" text="instcd"/>
- <Cell col="51" text="narcflag"/>
- <Cell col="52" text="prntflag"/>
- <Cell col="53" text="orddd"/>
- <Cell col="54" text="orddeptcd"/>
- <Cell col="55" text="prcpgenrflag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:narcstat" combodataset="ds_init_narcstat" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:cnclstat" combodataset="ds_init_cnclstat" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:rtnstat" combodataset="ds_init_rtnstat" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" text="bind:prcpdd" mask="####/##/##"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:drugno"/>
- <Cell col="7" text="bind:issdeptcdnm"/>
- <Cell col="8" text="bind:roomcd"/>
- <Cell col="9" text="bind:pid"/>
- <Cell col="10" text="bind:patnm"/>
- <Cell col="11" text="bind:prcpcd"/>
- <Cell col="12" text="bind:drugnm"/>
- <Cell col="13" text="bind:totdrugqty"/>
- <Cell col="14" text="bind:prcpqtyunit"/>
- <Cell col="15" text="bind:dayprcpqty"/>
- <Cell col="16" text="bind:prcpqtyunit"/>
- <Cell col="17" text="bind:prcpvol"/>
- <Cell col="18" text="bind:prcpvolunit"/>
- <Cell col="19" text="bind:prcptims"/>
- <Cell col="20" text="bind:spreqty"/>
- <Cell col="21" text="bind:prcpvolunit"/>
- <Cell col="22" text="bind:rtnqty"/>
- <Cell col="23" text="bind:rtnunit"/>
- <Cell col="24" text="bind:returnqty"/>
- <Cell col="25" text="bind:prcpqtyunit"/>
- <Cell col="26" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="27" text="bind:prcpidnm"/>
- <Cell col="28" text="bind:drugdt" mask="expr:utlf_isNull(drugdt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="29" text="bind:drugidnm"/>
- <Cell col="30" text="bind:delivedt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="31" text="bind:deliveidnm"/>
- <Cell col="32" text="bind:acptdt" mask="expr:utlf_isNull(acptdt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="33" text="bind:acptidnm"/>
- <Cell col="34" text="bind:rtnappdt" mask="expr:utlf_isNull(rtnappdt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="35" text="bind:rtnappidnm"/>
- <Cell col="36" text="bind:rtndt" mask="expr:utlf_isNull(rtndt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="37" text="bind:rtnidnm"/>
- <Cell col="38" text="bind:rtncnfmdt" mask="expr:utlf_isNull(rtncnfmdt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="39" text="bind:rtncnfmidnm"/>
- <Cell col="40" text="bind:rtnresn"/>
- <Cell col="41" text="bind:spredt" mask="expr:utlf_isNull(spredt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="42" text="bind:spreidnm"/>
- <Cell col="43" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt)? "yyyy/mm/dd hh:nn" : """/>
- <Cell col="44" text="bind:sprecnfmidnm"/>
- <Cell col="45" text="bind:prcpno"/>
- <Cell col="46" text="bind:prcphistno"/>
- <Cell col="47" text="bind:drugdd"/>
- <Cell col="48" text="bind:drugno"/>
- <Cell col="49" text="bind:ioflag"/>
- <Cell col="50" text="bind:instcd"/>
- <Cell col="51" text="bind:narcflag"/>
- <Cell col="52" text="bind:prntflag"/>
- <Cell col="53" text="bind:orddd"/>
- <Cell col="54" text="bind:orddeptcd"/>
- <Cell col="55" text="bind:prcpgenrflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group4" taborder="5" style="background:#f8f8f8ff;border:1 solid #9ebed4ff ;" class="cell_1" visible="false" position="absolute 461 406 696 476">
- <Layouts>
- <Layout>
- <Static id="caption6" text="약제담당자 ID" class="tit_2" position="absolute 9 13 114 31" anchor="default"/>
- <Edit id="input3" taborder="1" position="absolute 120 9 220 28" anchor="default" onkeyup="group4_input3_onkeyup"/>
- <Button id="button4" taborder="2" text="취소" class="btn4" position="absolute 164 34 220 56" anchor="default" onclick="group4_button4_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sel" type="STRING"/>
- <Column id="narcstat" type="STRING"/>
- <Column id="cnclstat" type="STRING"/>
- <Column id="rtnstat" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="drugno" type="STRING"/>
- <Column id="issdeptcdnm" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="drugnm" type="STRING"/>
- <Column id="totdrugqty" type="STRING"/>
- <Column id="prcpqtyunit" type="STRING"/>
- <Column id="dayprcpqty" type="STRING"/>
- <Column id="prcpqtyunit" type="STRING"/>
- <Column id="prcpvol" type="STRING"/>
- <Column id="prcpvolunit" type="STRING"/>
- <Column id="prcptims" type="STRING"/>
- <Column id="spreqty" type="STRING"/>
- <Column id="prcpvolunit" type="STRING"/>
- <Column id="rtnqty" type="STRING"/>
- <Column id="rtnunit" type="STRING"/>
- <Column id="returnqty" type="STRING"/>
- <Column id="prcpqtyunit" type="STRING"/>
- <Column id="prcpdt" type="STRING"/>
- <Column id="prcpidnm" type="STRING"/>
- <Column id="drugdt" type="STRING"/>
- <Column id="drugidnm" type="STRING"/>
- <Column id="delivedt" type="STRING"/>
- <Column id="deliveidnm" type="STRING"/>
- <Column id="acptdt" type="STRING"/>
- <Column id="acptidnm" type="STRING"/>
- <Column id="rtnappdt" type="STRING"/>
- <Column id="rtnappidnm" type="STRING"/>
- <Column id="rtndt" type="STRING"/>
- <Column id="rtnidnm" type="STRING"/>
- <Column id="rtncnfmdt" type="STRING"/>
- <Column id="rtncnfmidnm" type="STRING"/>
- <Column id="rtnresn" type="STRING"/>
- <Column id="spredt" type="STRING"/>
- <Column id="spreidnm" type="STRING"/>
- <Column id="sprecnfmdt" type="STRING"/>
- <Column id="sprecnfmidnm" type="STRING"/>
- <Column id="prcpno" type="STRING"/>
- <Column id="prcphistno" type="STRING"/>
- <Column id="drugdd" type="STRING"/>
- <Column id="drugno" type="STRING"/>
- <Column id="ioflag" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="narcflag" type="STRING"/>
- <Column id="prntflag" type="STRING"/>
- <Column id="orddd" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="prcpgenrflag" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="narcflag" type="STRING" size="256" sumtext="마약향정구분"/>
- <Column id="timeflag" type="STRING" size="256" sumtext="조회구간구분"/>
- <Column id="fst_dd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="last_dd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="srchdrugkind" type="STRING" size="256" sumtext="약주사구분"/>
- <Column id="srchioflag" type="STRING" size="256" sumtext="병동외래구분"/>
- <Column id="drugflag" type="STRING" size="256" sumtext="병동조회구분"/>
- <Column id="srchroot" type="STRING" size="256" sumtext="마약switch구분"/>
- <Column id="narcstat" type="STRING" size="256" sumtext="불출상태"/>
- <Column id="cnclstat" type="STRING" size="256" sumtext="반환상태"/>
- <Column id="rtnstat" type="STRING" size="256" sumtext="반납상태"/>
- <Column id="nodeliveflag" type="STRING" size="256" sumtext="미불출상태"/>
- <Column id="narctype" type="STRING" size="256" sumtext="마약코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="ward" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="srchdrugno" type="STRING" size="256" sumtext="투약번호"/>
- <Column id="barcode" type="STRING" size="256" sumtext="바코드"/>
- <Column id="narccd" type="STRING" size="256" sumtext="마약종류"/>
- <Column id="barcode_2" type="STRING" size="256" sumtext="바코드전용여부"/>
- <Column id="srchdeptcd" type="STRING" size="256" sumtext="수행부서코드"/>
- <Column id="srchprcpkind" type="STRING" size="256" sumtext="처방구분"/>
- <Column id="srchprcpkindall" type="STRING" size="256" sumtext="처방구분전체"/>
- <Column id="prntdt" type="STRING" size="256" sumtext="출력일자"/>
- <Column id="issdeptcd" type="STRING" size="256" sumtext="수행부서"/>
- <Column id="selkey" type="STRING" size="256" sumtext="체크박스선택 조합기"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_srchcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="narcflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="narcflag">M</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_prntinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_narcinfo_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_narcinfo_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_narcinfo_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_lblskip" 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="narcflag" type="STRING" size="256"/>
- <Column id="timeflag" type="STRING" size="256"/>
- <Column id="fst_dd" type="STRING" size="256"/>
- <Column id="last_dd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="srchdrugno" type="STRING" size="256"/>
- <Column id="barcode" type="STRING" size="256"/>
- <Column id="srchdrugkind" type="STRING" size="256"/>
- <Column id="srchioflag" type="STRING" size="256"/>
- <Column id="drugflag" type="STRING" size="256"/>
- <Column id="srchroot" type="STRING" size="256"/>
- <Column id="narcstat" type="STRING" size="256"/>
- <Column id="cnclflag" type="STRING" size="256"/>
- <Column id="cnclstat" type="STRING" size="256"/>
- <Column id="rtnflag" type="STRING" size="256"/>
- <Column id="rtnstat" type="STRING" size="256"/>
- <Column id="narctypeflag" type="STRING" size="256"/>
- <Column id="narctype" type="STRING" size="256"/>
- <Column id="srchid" type="STRING" size="256"/>
- <Column id="narccd" type="STRING" size="256"/>
- <Column id="barcode_2" type="STRING" size="256"/>
- <Column id="phamid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="narcflag"/>
- <Col id="timeflag">2</Col>
- <Col id="fst_dd"/>
- <Col id="last_dd"/>
- <Col id="pid"/>
- <Col id="ward"/>
- <Col id="srchdrugno"/>
- <Col id="barcode"/>
- <Col id="srchdrugkind"/>
- <Col id="srchioflag">I</Col>
- <Col id="drugflag">I</Col>
- <Col id="srchroot"/>
- <Col id="narcstat"/>
- <Col id="cnclflag"/>
- <Col id="cnclstat"/>
- <Col id="rtnflag"/>
- <Col id="rtnstat"/>
- <Col id="narctypeflag"/>
- <Col id="narctype"/>
- <Col id="srchid"/>
- <Col id="narccd"/>
- <Col id="barcode_2">drug</Col>
- <Col id="phamid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_srchcond_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="narcnm" type="STRING" size="256"/>
- <Column id="narccd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_srchcond_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_userinfo" 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"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- <Column id="userdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_chkcashinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_narcstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">미신청</Col>
- <Col id="cdid">1</Col>
- </Row>
- <Row>
- <Col id="cdnm">불출신청</Col>
- <Col id="cdid">2</Col>
- </Row>
- <Row>
- <Col id="cdnm">출력완료</Col>
- <Col id="cdid">3</Col>
- </Row>
- <Row>
- <Col id="cdnm">조제완료</Col>
- <Col id="cdid">4</Col>
- </Row>
- <Row>
- <Col id="cdnm">불출</Col>
- <Col id="cdid">5</Col>
- </Row>
- <Row>
- <Col id="cdnm">부서확인</Col>
- <Col id="cdid">6</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cnclstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">-</Col>
- </Row>
- <Row>
- <Col id="cdid">0</Col>
- <Col id="cdnm">반환대상</Col>
- </Row>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">반환신청</Col>
- </Row>
- <Row>
- <Col id="cdid">2</Col>
- <Col id="cdnm">반환확인</Col>
- </Row>
- <Row>
- <Col id="cdid">7</Col>
- <Col id="cdnm">반환종료</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_rtnstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">-</Col>
- </Row>
- <Row>
- <Col id="cdid">0</Col>
- <Col id="cdnm">잔량대상</Col>
- </Row>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">잔량신청</Col>
- </Row>
- <Row>
- <Col id="cdid">2</Col>
- <Col id="cdnm">잔량확인</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_bknarclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_bknarclist2" 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="lblskip" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_rtnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="group3.group2.input1" propid="value" datasetid="ds_temp_srchinfo" columnid="srchid"/>
- <BindItem id="item2" compid="group3.group2.input9" propid="value" datasetid="ds_temp_srchinfo" columnid="barcode"/>
- <BindItem id="item3" compid="group4.input3" propid="value" datasetid="ds_temp_srchinfo" columnid="phamid"/>
- <BindItem id="item0" compid="group3.group2.Static00" propid="text" datasetid="ds_temp_userinfo" columnid="usernm"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- //include "ast_pharmacyxp::SMADT30600.xjs"
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMADT30600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMADT30600_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- }
- function fInit() {
- group3.group2.caption1.text = "";
- // grd_narclist.fixedcellcheckbox(0,1) = true;
- // grd_sprelist.fixedcellcheckbox(0,1) = true;
- // grd_outnarc.fixedcellcheckbox(0,1) = true;
- //구분 초기화(전체)
- ds_temp_srchinfo.setColumn(0, "narcflag", "M");
- ds_temp_srchinfo.setColumn(0, "srchdrugkind", "T");
- ds_temp_srchinfo.setColumn(0, "drugflag", "I");
- // fChkIOTotal();
- ds_temp_srchinfo.setColumn(0, "narcstat", "T");
- // rdo_cncl.disabled = true;
- ds_temp_srchinfo.setColumn(0, "cnclstat", "");
- // rdo_rtn.disabled = true;
- ds_temp_srchinfo.setColumn(0, "rtnstat", "");
- ds_temp_srchinfo.setColumn(0, "narctypeflag", "T");
- ds_temp_srchinfo.setColumn(0, "srchioflag", "I");
- fChgIOFlag();
- //토글초기화
- ds_temp_srchinfo.setColumn(0, "srchroot", "M");
- grd_narclist.visible = true;
- //조회날짜 초기화
- ds_temp_srchinfo.setColumn(0, "fst_dd", utlf_getCurrentDate());
- ds_temp_srchinfo.setColumn(0, "last_dd", utlf_getCurrentDate());
- //병동 Combo 조회
- ds_send_srchcond.setColumn(0, "deptflag", "W");
-
- var oParam = {};
- oParam.id = "TRADT30101";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetSrchList";
- oParam.inds = "req=ds_send_srchcond";
- oParam.outds = "ds_temp_srchcond_ward=ward ds_temp_srchcond_narclist=narclist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30101";
- tranf_submit(oParam);
- //astfAddCombo("/root/temp/srchcond", "ward", "wardcd,wardnm", ",");
- //로그인 사용자 셋팅
- var userid = sysf_getUserId();
- //model.setValue("/root/temp/srchinfo/srchid", userid);
- //fChgUserID();
- group3.group2.input1.setFocus();
- //gTimer1 = window.setInterval("fClearUserID()",90000);
-
- this.setFocus();
- }
- /******************************************************************
- * Argument :
- * Description : 입원외래구분 클릭시
- ******************************************************************/
- function fChgIOFlag() {
- var ioflag = ds_temp_srchinfo.getColumn(0, "srchioflag");
- if(ioflag == "O"){
- ds_temp_srchinfo.setColumn(0, "drugflag", "");
- //rdo_drugflag.visible = false;
-
- } else if(ioflag == "I"){
- ds_temp_srchinfo.setColumn(0, "drugflag", "I");
- //rdo_drugflag.visible = true;
- }
- fChgSwitch();
-
- fGetNarcData();
- }
- /******************************************************************
- * Argument :
- * Description : switch case변경
- ******************************************************************/
- function fChgSwitch() {
- var srchroot = ds_temp_srchinfo.getColumn(0, "srchroot");
- var ioflag = ds_temp_srchinfo.getColumn(0, "srchioflag");
- var drugflag = ds_temp_srchinfo.getColumn(0, "drugflag");
- if(srchroot == "M"){
- if(ioflag == "O"){
- grd_narclist.visible = false;
- grd_sprelist.visible = false;
- grd_outnarc.visible = true;
- } else {
- if(drugflag == "L"){
- grd_narclist.visible = false;
- grd_sprelist.visible = false;
- grd_outnarc.visible = true;
- } else {
- grd_narclist.visible = true;
- grd_sprelist.visible = false;
- grd_outnarc.visible = false;
- }
- }
- } else if(srchroot == "R"){
- grd_narclist.visible = false;
- grd_sprelist.visible = true;
- grd_outnarc.visible = false;
- }
- }
- /******************************************************************
- * Argument :
- * Description : 마약리스트 조회
- ******************************************************************/
- function fGetNarcData() {
- // grd_narclist.fixedcellischeck(0, 1) = false;
- // grd_outnarc.fixedcellischeck(0, 1) = false;
- // ds_send_srchinfo.copyData(ds_temp_srchinfo);
- ds_send_srchinfo.copyRow(ds_send_srchinfo.addRow(),ds_temp_srchinfo,0);
-
- var oParam = {};
- oParam.id = "TRADT30102";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarcData";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_narclist=narclist";
- oParam.async = false;
- oParam.callback = "cf_TRADT30102";
- tranf_submit(oParam);
-
- ds_main_narclist.addColumn("prcpqtyunit2", "string", 256);
- ds_main_narclist.addColumn("dayprcpqtyunit", "string", 256);
- ds_main_narclist.addColumn("prcpvolunit2", "string", 256);
-
- for( var i = 0; i < ds_main_narclist.rowcount; i++ ){
- var unit = ds_main_narclist.getColumn(i, "prcpqtyunit");
- var volunit = ds_main_narclist.getColumn(i, "prcpvolunit");
- ds_main_narclist.setColumn(i, "prcpqtyunit2", unit);
- ds_main_narclist.setColumn(i, "dayprcpqtyunit", unit);
- ds_main_narclist.setColumn(i, "prcpvolunit2", volunit);
- }
- }
- function cf_TRADT30102(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setTypeFormat(ds_main_narclist, "prcptims:INT^prcpdayno:INT^rtnqty:INT^prcpno:INT^prcphistno:INT^drugno:INT");
- }
- /******************************************************************
- * Argument : fClearUserID()
- * Description :
- ******************************************************************/
- function fClearUserID(){
- if( !utlf_isNull(ds_temp_userinfo.getColumn(0, "userid")) ){
- ds_temp_srchinfo.setColumn(0, "srchid", "");
- ds_temp_userinfo.setColumn(0, "userid", "");
-
- var sUserid = ds_temp_srchinfo.getColumn(0, "srchid");
- ds_temp_userinfo.setColumn(0, "userid", "");
-
- //if(sUserid.length == 8 || sUserid.length == 9 || sUserid.length == 10){
- ds_send_userinfo.setColumn(0, "userid", sUserid);
- var oParam = {};
- oParam.id = "TRADT30104";
- oParam.service = "pharmacyprescriptionapp.DrugReturn";
- oParam.method = "reqGetUserInfo";
- oParam.inds = "req=ds_send_userinfo";
- oParam.outds = "ds_temp_userinfo=userinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30104";
- tranf_submit(oParam);
-
- ds_temp_userinfo.clearData();
- ds_temp_userinfo.addRow();
-
- //처방리스트들도 같이 삭제.
- ds_main_narclist.clearData();
-
- ds_temp_srchinfo.setColumn(0, "srchid","");
- ds_temp_userinfo.setColumn(0, "usernm", "");
- group3.group2.input1.setFocus();
- }
- }
- /******************************************************************
- * Argument : fChgUserID()
- * Description : userid 변경시
- ******************************************************************/
- function fChgUserID() {
- var sUserid = ds_temp_srchinfo.getColumn(0, "srchid");
- ds_temp_userinfo.setColumn(0, "userid","");
-
- ds_send_userinfo.setColumn(0, "userid", sUserid);
-
- var oParam = {};
- oParam.id = "TRADT30104";
- oParam.service = "pharmacyprescriptionapp.DrugReturn";
- oParam.method = "reqGetUserInfo";
- oParam.inds = "req=ds_send_userinfo";
- oParam.outds = "ds_temp_userinfo=userinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30104";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_temp_userinfo.getColumn(0, "userid")) ){
- sysf_messageBox("사용자ID 정보가 없습니다.\n다시","C001");
-
- ds_temp_userinfo.clearData();
- ds_temp_userinfo.addRow();
-
- ds_temp_srchinfo.setColumn(0, "srchid","");
- ds_temp_userinfo.setColumn(0, "usernm", "");
- group3.group2.input1.setFocus();
- } else {
- ds_temp_srchinfo.setColumn(0, "srchid","");
-
- //처방리스트 리셋
- ds_main_narclist.clearData();
-
- group3.group2.input9.setFocus();
- }
- }
- /******************************************************************
- * Argument : fChgUserIDPharm()
- * Description : 약제 담당자 id인지 체크
- ******************************************************************/
- function fChgUserIDPharm() {
- var sUserid = ds_temp_srchinfo.getColumn(0, "phamid");
- ds_send_userinfo.setColumn(0, "userid", sUserid);
-
- var oParam = {};
- oParam.id = "TRADT30104";
- oParam.service = "pharmacyprescriptionapp.DrugReturn";
- oParam.method = "reqGetUserInfo";
- oParam.inds = "req=ds_send_userinfo";
- oParam.outds = "ds_temp_userinfo=userinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30104";
- tranf_submit(oParam);
-
- ds_temp_srchinfo.setColumn(0, "phamid","");
- if( ds_temp_userinfo.getColumn(0, "grupjoblncd") != "15" ){
- sysf_messageBox("약제 담당자 ID가 아닙니다.\n다시","C001");
-
- group4.input3.setFocus();
- } else {
- group4.visible = false;
-
- // if ( gTimer1 != null ){
- // window.clearinterval(gTimer1);
- // }
- this.close();
- }
- }
- /******************************************************************
- * Argument : fClickToggle(chk)
- * Description : 토글클릭시
- ******************************************************************/
- function fClickToggle(chk) {
- if(chk == "1"){
- ds_temp_srchinfo.setColumn(0, "srchroot", "M");
- } else if(chk == "2"){
- ds_temp_srchinfo.setColumn(0, "srchroot", "R");
- }
- fChgSwitch();
- fGetNarcData();
- }
- /******************************************************************
- * Argument : fChkPatSearch()
- * Description : 환자별 조회인지 체크
- ******************************************************************/
- function fChkPatSearch() {
- var pid = ds_temp_srchinfo.getColumn(0, "pid");
-
- if( !utlf_isNull(pid) && ds_main_narclist.rowcount != 0){
- for(var i = 0; i < ds_main_narclist.rowcount; i++){
- if( ds_main_narclist.getColumn(i, "narcstat") != "1"){
- ds_main_narclist.setColumn(i, "sel", "Y");
- }
- }
- }
- }
- /******************************************************************
- * Argument : fClickToggle(chk)
- * Description : 액팅후 체크표시 cach
- ******************************************************************/
- function fChkCash(chk) {
- var pid = ds_temp_srchinfo.getColumn(0, "pid");
- if( !utlf_isNull(pid) && ds_main_narclist.rowcount != 0){
- if(chk == "before"){
- ds_temp_chkcashinfo.clearData();
- for( var i = 0; i < ds_main_narclist.rowcount; i++ ){
- if( ds_main_narclist.getColumn(i, "sel") == "Y" ){
- var iRow = ds_temp_chkcashinfo.addRow();
- ds_temp_chkcashinfo.copyRow(iRow, ds_main_narclist, i);
- }
- }
- } else if (chk == "after"){
- for(var a = 0; a < ds_temp_chkcashinfo.rowcount; a++){
- var cash_prcpdd = ds_temp_chkcashinfo.getColumn(a, "prcpdd");
- var cash_prcpno = ds_temp_chkcashinfo.getColumn(a, "prcpno");
- for(var b = 0; b < ds_main_narclist.rowcount; b++){
- var search_prcpdd = ds_main_narclist.getColumn(b, "prcpdd");
- var search_prcpno = ds_main_narclist.getColumn(b, "prcpno");
- if(cash_prcpdd == search_prcpdd && cash_prcpno == search_prcpno){
- ds_main_narclist.setColumn(b, "sel", "Y");
- }
- }
- }
- } else {
-
- }
- }
- }
- /******************************************************************
- * Argument : fChgBarcode()
- * Description : 바코드 변경시
- ******************************************************************/
- function fChgBarcode() {
- var iRowNo = 0;
- var sBar = ds_temp_srchinfo.getColumn(0, "barcode");
- if(sBar.length >= 21){
- if( utlf_isNull(ds_temp_userinfo.getColumn(0, "userid")) ){
- sysf_messageBox("사용자ID가 없습니다. 사용자ID부터","C001");
-
- ds_temp_srchinfo.setColumn(0, "srchid","");
- ds_temp_srchinfo.setColumn(0, "barcode","");
- group3.group2.input1.setFocus();
- } else if(sBar.substr(0,1) != "M"){
- sysf_messageBox("바코드 정보가 다릅니다. 바코드를 다시","C001");
- ds_temp_srchinfo.setColumn(0, "barcode","");
- group3.group2.input9.setFocus();
- } else {
-
- //해당 바코드를 확인 처리 하기전 노드를 백업하여 기존에 이미 확인한 리스트들이 사라지지 않도록 한다.
- ds_temp_bknarclist.clearData();
- ds_temp_bknarclist.copyData(ds_main_narclist);
-
- //바코드로 먼저 해당처방을 조회함
- fGetNarcData();
- //바코드로 Acting처리가 가능한 처방인지 체크함
- //바코드로 처리가능한 Acting : 조제완료, 불출, 잔량반납확인, 반환확인
- //바코드로 조회시 데이터는 한건만 조회됨.
- if(sBar.substr(2,1) == "O" || sBar.substr(2,1) == "E" || sBar.substr(2,1) == "D"){
- if( ds_temp_srchinfo.getColumn(0, "srchroot") == "M" ){
- if( ds_main_narclist.getColumn(0, "narcstat")=="4"){
- //바코드로 취소는 불가능 조회만가능
- ds_main_narclist.setColumn(0, "sel","Y");
- fNarcActing("Drug");
- fSetNarcNodes("ADD");
- return;
- }
- }
- }
-
- fSetNarcNodes("ADD");
-
- ds_temp_srchinfo.setColumn(0, "barcode","");
- }
- } else {
- sysf_messageBox("바코드 정보가 다릅니다.\n다시","C001");
- ds_temp_srchinfo.setColumn(0, "barcode","");
- group3.group2.input9.setFocus();
- }
- }
- /******************************************************************
- * Argument : fSetNarcNodes(chk)
- * Description : 백업해 두었던 노드들을 다시 추가 한다.
- ******************************************************************/
- function fSetNarcNodes(pFlag) {
- var iDeleteNode = 0;
- var sChkYn = "";
- var iRowNo = 0;
-
- if( ds_temp_bknarclist.rowcount >= 1) {
- if(pFlag == "ADD") {
-
- ds_temp_bknarclist2.clearData();
- ds_temp_bknarclist2.copyData(ds_main_narclist);
-
- iRowNo = ds_main_narclist.rowcount;
-
- for(var iRNo = 0; iRNo < ds_temp_bknarclist.rowcount ; iRNo++) {
- sChkYn = "Y";
-
- //중복처방은 복사하지 않음.
- for(var iNo = 0; iNo < ds_main_narclist.rowcount; iNo++) {
- if(( ds_main_narclist.getColumn(iNo, "prcpdd") == ds_temp_bknarclist.getColumn(iRNo, "prcpdd"))
- && (ds_main_narclist.getColumn(iNo, "prcpno") == ds_temp_bknarclist.getColumn(iRNo, "prcpno"))) {
- sChkYn = "N";
- break;
- }
- }
-
- if(sChkYn == "Y") {
- ds_temp_bknarclist2.addRow();
- iRowNo++;
- dsf_copyColInfo(ds_temp_bknarclist2, ds_temp_bknarclist);
- ds_temp_bknarclist2.copyRow(iRowNo, ds_temp_bknarclist, iRNo);
- }
- }
- ds_main_narclist.copyData(ds_temp_bknarclist2);
- ds_temp_bknarclist2.clearData();
-
- } if(pFlag == "COPY") {
- ds_main_narclist.copyData(ds_temp_bknarclist);
- }
- }
- }
- /******************************************************************
- * Argument : fNarcActing(sActing)
- * Description : 마약 Acting 버튼 클릭시 -- 2009-05-20 김귀남 변경
- ******************************************************************/
- function fNarcActing(sActing) {
- if( utlf_isNull(ds_temp_userinfo.getColumn(0, "userid")) ){
- sysf_messageBox("사용자ID가 없습니다. 사용자ID를 먼저","C001");
- ds_temp_srchinfo.setColumn(0, "srchid","");
-
- opener.group3.group2.ipt_srchid.setFocus();
- return;
- }
- var iActing_Cnt = 0; // 행위 구분을 위한 카운트값
- var sActing_nm = ""; // 해당 행위의 명칭
- var sActingAfter = "";
- var selCnt = 0;
- //액팅전 체크표시 cash
- fChkCash("before");
- ds_send_narcinfo_narclist.clearData();
- dsf_copyColInfo(ds_send_narcinfo_narclist, ds_main_narclist);
-
- // **** 체크박스 선택 값 카운트 Start ****
- for(var i = 0; i < ds_main_narclist.rowcount; i++){
- var sel = ds_main_narclist.getColumn(i, "sel");
- var sNarcStat = ds_main_narclist.getColumn(i, "narcstat");
- if(sel == "Y" && sNarcStat != "1") selCnt++; // 선택된 값(sel == "Y") 들 중 미신청 값은 제외
- }
-
- if(selCnt == 0) {
- sysf_messageBox("선택된 데이터가","I004");
- return;
- }
- // **** 체크박스 선택 값 카운트 End ****
- for( var i = 0; i < ds_main_narclist.rowcount; i++){
- var sel = ds_main_narclist.getColumn(i, "sel"); // 선택여부
- var sNarcStat = ds_main_narclist.getColumn(i, "narcstat"); // 불출상태
- var sCnclStat = ds_main_narclist.getColumn(i, "cnclstat"); // 반환상태
- var sRtnStat = ds_main_narclist.getColumn(i, "rtnstat"); // 반납상태
- var sDrugFlag = ds_main_narclist.getColumn(i, "drugflag"); // 마약/향정구분
- var sReturnFlag = ds_main_narclist.getColumn(i, "returnflag"); // 반납여부
- var sDrugKind = ds_main_narclist.getColumn(i, "drugkind"); // 발생구분
- var sIOflag = ds_main_narclist.getColumn(i, "ioflag"); // 입원/외래구분
- var sPrcphistcd = ds_main_narclist.getColumn(i, "prcphistcd"); // 처방상태
- var sPid = ds_main_narclist.getColumn(i, "pid"); // 환자번호
- var sPrcpcd = ds_main_narclist.getColumn(i, "prcpcd"); // 약품코드
- var sDrugno = ds_main_narclist.getColumn(i, "drugno"); // 약품코드
- var sMsg = "*투약번호 : "+sDrugno+" *환자번호 : "+ sPid+ " *약품코드 : "+ sPrcpcd + "\n";
- //=========================================== 제한조건 체크 Start ================================================//
- // 변수명 parameter 명칭 동작가능상태 //
- //------------------------------------------------------------------------------------------------------------//
- // sCnclStat 1. 7 : 반환종료 sCnclStat == "7" ( 진행불가 ) //
- //------------------------------------------------------------------------------------------------------------//
- // sActing - 1. Prcp : 조제확인 sNarcStat == "3" [출력완료] //
- // 2. PrcpCncl : 조제취소 sNarcStat == "4" [조제완료] //
- // 3. Drug : 불출확인 sNarcStat == "4" [조제완료] //
- // 4. DrugCncl : 불출취소 sNarcStat == "5" [불출] //
- // 5. Rtn : 반환확인 sCnclStat == "1" [반환신청] //
- // 6. RtnCncl : 반환취소 (2009-05-05 추가) sCnclStat == "2" [반환확인] //
- // 7. Spre : 잔량확인 sRtnStat == "1" [잔량신청] //
- // 8. SpreCncl : 잔량취소 (2009-05-05 추가) sRtnStat == "2" [잔량확인] //
- //============================================================================================================//
- if(sel == 'Y'){
- // *** 반환종료 *** 처방 메시지 처리 (진행불가) Start
- if(sCnclStat == "7" && (sNarcStat == "3" || sNarcStat == "4")){
- //메세지처리 반환종료 된 처방입니다.
- messageBox(sMsg+"반환 종료 되었습니다. 반환처방전을 출력","I008");
- return;
- } else if(sCnclStat == "7" && sNarcStat == "2"){
- //메세지처리 : 반환종료되었습니다.
- messageBox(sMsg+"반환","I002");
- return;
- }
- // *** 반환종료 *** 처방 메시지 처리 (진행불가) End
-
- if(sActing == "Prcp"){ // ***조제확인*** 출력완료 일 때만 기능 동작
- //이선경 2008-07-23 start
- /*
- if(sCnclStat != ""){
- if(messageBox("반환된 처방입니다. 조제완료를", "Q002") == "7") {
- return;
- }
- }
- */
- // 한영현/간호 ITC 협의사항 - 'D'인 처방도 정상적인 흐름으로 처리 후 다시 반환처리 - 2009.06.04 (목) 김귀남
- //이선경 2008-07-23 end
- if(sNarcStat == "2"){ // [불출신청] 상태일 때
- sysf_messageBox("마약처방전이 출력되지","E007");
- return;
- }
- if(parseInt(sNarcStat, 10) > 3){ // [출력완료] 상태 이상일 때
- sysf_messageBox("이미 조제완료된 처방","E008");
- return;
- }
- if(sNarcStat == "3"){ // [출력완료] 일 때만 기능 동작
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- sActing_nm = "조제완료";
- iActing_Cnt++;
- } else { // 불출상태가 [미신청]일때
- sActing_nm = "조제완료";
- }
- } else if(sActing == "PrcpCncl"){ // ***조제취소***
- //이선경 2008-07-23 start
- if( !utlf_isNull(sCnclStat) ){
- if(sysf_messageBox("반환된 처방입니다. 조제취소를", "Q002") == "7") {
- return;
- }
- }
- //이선경 2008-07-23 end
- if(sNarcStat == "4"){ // [조제완료] 상태일 때
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- }
- sActing_nm = "조제취소";
- } else if(sActing == "Drug"){ // ***불출확인***
- //이선경 2008-07-23 start
- /*
- if(sCnclStat != ""){
- if(messageBox("반환된 처방입니다. 불출확인를", "Q002") == "7") {
- return;
- }
- }
- */
- // 한영현/간호 ITC 협의사항 - 'D'인 처방도 정상적인 흐름으로 처리 후 다시 반환처리 - 2009.06.04 (목) 김귀남
- //이선경 2008-07-23 end
- if(sNarcStat == "4"){ // [조제완료] 상태일 때
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- }
- sActing_nm = "불출";
- } else if(sActing == "DrugCncl"){ // ***불출취소***
- //이선경 2008-07-23 start
- if(sCnclStat != ""){
- if(sysf_messageBox("반환된 처방입니다. 불출취소를", "Q002") == "7") {
- return;
- }
- }
- //이선경 2008-07-23 end
- if(sNarcStat == "5"){ // [불출] 상태일 때
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- }
- sActing_nm = "불출취소";
- } else if(sActing == "Spre"){ // ***잔량확인***
- if(sRtnStat == "1"){ // [잔량신청] 일 때
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- // [반환신청] 이거나 [외래] 경구약 혹은 외용제이면서 처방상태(sReturnFlag)가 [D/C]일 경우
- // 반환일시가 존재할때.
- if((sCnclStat == "1" || (sIOflag == "O" && (sDrugKind == "N" || sDrugKind == "Y") && sReturnFlag == "Y"))
- && !utlf_isNull(ds_main_narclist.getColumn(i, "rtndt")) ){
- var vb_prcpcd = ds_main_narclist.getColumn(i, "prcpcd");
- var vb_Chk = sysf_messageBox(vb_prcpcd+"마약에 대해 반환확인 데이터가 존재합니다.\n반환확인을 ", "Q004");
- if(vb_Chk == 6){
- var cnt = ds_send_narcinfo_narclist.rowcount;
- ds_send_narcinfo_narclist.addColumn("acting_after", "string", 256);
- ds_send_narcinfo_narclist.setColumn(cnt, "acting_after", "Rtn");
- }
- }
- }
- sActing_nm = "잔량반납확인";
- } else if(sActing == "SpreCncl"){ // ***잔량취소***
- if(sRtnStat == "2"){ // [잔량확인] 일 때
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- }
- sActing_nm = "잔량취소";
- } else if(sActing == "Rtn"){ // ***반환확인***
- /*
- 1. 입원 약주사, 외래주사는 간호사가 반환신청을 함
- 2. 퇴원/외박/외출은 약국에서 반환을 수행(삭제, 간호에서 반환신청해야함)
- 3. 외래 원내 약/외용약은 약국에서 반환을 수행
- */
- //이선경 2008-07-23 start
- if( sIOflag !="O" && sCnclStat == "1" && sPrcphistcd == "E" && sDrugFlag !="L" && sDrugFlag != 'G'){
- //messageBox("간호투약확인후 반환확인을 ", "C002");
- //return;
- }
- //이선경 2008-07-23 end
- if(sCnclStat == "1"){ // [반환신청]상태일 때 (입원/외래 공통)
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- /*} else if((sDrugFlag == "L" || sDrugFlag == "G") && (parseInt(sNarcStat,10) < 6 ) && sReturnFlag == "Y"){
- if(model.getValue("/root/main/narclist/narclist["+i+"]/rtnqty") != ""){
- astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- iActing_Cnt++;
- } else {
- messageBox("반환량이 없습니다. 반환량을","C001");
- return;
- }*/
- if( !utlf_isNull(ds_main_narclist.getColumn(i, "rtnqty")) ){
- } else {
- sysf_messageBox("반환량이 없습니다. 반환량을","C001");
- return;
- }
- if(sRtnStat == "1" && !utlf_isNull(ds_main_narclist.getColumn(i, "rtndt")) ){
- var vb_Chk = sysf_messageBox("잔량확인 데이터가 존재합니다.\n잔랑반납확인을 ", "Q004");
- if(vb_Chk == 6){
- var cnt = ds_send_narcinfo_narclist.rowcount;
- ds_send_narcinfo_narclist.addColumn("acting_after", "string", 256);
- ds_send_narcinfo_narclist.setColumn(cnt, "acting_after", "Spre");
- }
- }
- } else if(sIOflag == "O" && (sDrugKind == "N" || sDrugKind == "Y") && sReturnFlag == "Y"){ // [외래] 경구/외용약이면서 prcphistcd가 D,C 일 때
- if( utlf_isNull(ds_main_narclist.getColumn(i, "rtnqty")) ){
- sysf_messageBox("반환량이 없습니다. 반환량을","C001");
- return;
- }
- if(isNaN(ds_main_narclist.getColumn(i, "rtnqty"))){
- sysf_messageBox("반환량은 숫자로","C001");
- ds_main_narclist.setColumn(i, "rtnqty", "");
- return;
- }
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- if(sRtnStat == "1" && !utlf_isNull(ds_main_narclist.getColumn(i, "rtndt")) ){
- var vb_prcpcd = ds_main_narclist.getColumn(i, "prcpcd");
- var vb_Chk = sysf_messageBox(vb_prcpcd+"마약에 대해 잔량확인 데이터가 존재합니다.\n잔랑반납확인을 ", "Q004");
- if(vb_Chk == 6){
- var cnt = ds_send_narcinfo_narclist.rowcount;
- ds_send_narcinfo_narclist.addColumn("acting_after", "string", 256);
- ds_send_narcinfo_narclist.setColumn(cnt, "acting_after", "Spre");
- }
- }
- }
- sActing_nm = "반환확인";
- } else if(sActing == "RtnCncl"){ // ***반환취소***
- if(sCnclStat == "2"){ // [반환확인] 일 때
- var iRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(iRow, ds_main_narclist, i);
- iActing_Cnt++;
- }
- sActing_nm = "반환취소";
- }
- }
- }
- //=========================================== 제한조건 체크 Start ===========================================
- if(iActing_Cnt == 0 && utlf_isNull(ds_temp_srchinfo.getColumn(0, "barcode")) ){
- sysf_messageBox("선택된 데이터중에 ["+sActing_nm+"]할 데이터가 없거나 \n선택된 데이터가","I004");
- return;
- } else if(iActing_Cnt == 0 && !utlf_isNull(ds_temp_srchinfo.getColumn(0, "barcode")) ){
- sysf_messageBox("이미","I001");
- ds_temp_srchinfo.setColumn(0, "barcode","");
- group3.group2.input9.setFocus();
- return;
- }
- if(sActing == "Prcp" && ds_temp_srchinfo.getColumn(0, "srchioflag") == "I" && ds_temp_srchinfo.getColumn(0, "drugflag") != "L"){
- if ( ds_send.getColumn(0, "lblskip") != "Y" ){
- fNarcLBLPrint("Prnt");
- }
- }
- ds_send_narcinfo_srchinfo.copyData(ds_temp_srchinfo);
- ds_send_narcinfo_userinfo.copyData(ds_temp_userinfo);
- ds_send_narcinfo_srchinfo.addColumn("acting", "string", 256);
- ds_send_narcinfo_srchinfo.setColumn(0, "acting", sActing);
- if(sActing == "Prcp" && ds_temp_srchinfo.getColumn(0, "srchioflag") == "I" && ds_temp_srchinfo.getColumn(0, "drugflag") != "L"){
- if ( ds_send.getColumn(0, "lblskip") != "Y" ){
- dsf_setTypeFormat(ds_send_narcinfo_narclist, "prcpno:INT^prcphistno:INT^drugno:INT");
- var oParam = {};
- oParam.id = "TXADT30102";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqExeNarcLblCnt";
- oParam.inds = "req=ds_send_narcinfo_narclist srch=ds_send_narcinfo_srchinfo user=ds_send_narcinfo_userinfo";
- oParam.outds = "ds_temp_ret=item";
- oParam.async = false;
- //oParam.callback = "cf_TXADT30102";
- tranf_submit(oParam);
- }
- }
- var oParam = {};
- oParam.id = "TXADT30101";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqExeNarcData";
- oParam.inds = "req=ds_send_narcinfo_narclist srch=ds_send_narcinfo_srchinfo user=ds_send_narcinfo_userinfo";
- oParam.outds = "ds_main_narclist=narclist";
- oParam.async = false;
- oParam.callback = "cf_TXADT30101";
- tranf_submit(oParam);
- //액팅전 체크표시 다시 표시
- // grd_narclist.fixedcellischeck(0, 1) = false;
- // grd_outnarc.fixedcellischeck(0, 1) = false;
- fChkCash("after");
- ds_temp_srchinfo.setColumn(0, "barcode","");
- group3.group2.input9.setFocus();
- }
- /******************************************************************
- * Argument : fIptRtnCnts()
- * Description : 반환량입력시
- ******************************************************************/
- function fIptRtnCnts() {
- var RtnCnts = ds_main_narclist.getColumn(0, "rtnqty");
- //그리드와 데이터셋이 다르며 데이터셋에 데이터가 담기거나 하는 곳이 없음.
- //var RtnCnfmDt = model.getValue("/root/main/rtnlist/rtnlist["+grd_outnarc.row+"]/rtncnfmdt");
- var cRow = ds_main_narclist.rowposition;
- var RtnCnfmDt = ds_main_rtnlist.getColumn(cRow, "rtncnfmdt");
- if( !utlf_isNull(RtnCnts) ){
- //반납의뢰인 약품만 반납처리함
- if( !utlf_isNull(RtnCnfmDt) ){
- sysf_messageBox("반환완료된 약품","E008");
- return;
- }
- //반납량을 입력하지 않았을 경우
- if(RtnCnts == "0"){
- sysf_messageBox("반환량을","C001");
- ds_main_narclist.setColumn(cRow, "rtnqty", "");
- return;
- }
-
- if(isNaN(RtnCnts)){
- sysf_messageBox("반환량은 숫자로","C001");
- ds_main_narclist.setColumn(cRow, "rtnqty", "");
- return;
- }
-
- ds_main_narclist.setColumn(cRow, "sel", "Y");
- ds_main_narclist.rowposition = ds_main_narclist.rowposition + 1;
- grd_outnarc.showEditor(true);
- }
- }
- /********************************화면 Event Start*****************************/
- /******************************************************************
- * Argument :
- * Description : 담당자ID 입력 후 enter event
- ******************************************************************/
- function group3_group2_input1_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- group3.group2.input9.setFocus();
- }
- }
- /******************************************************************
- * Argument :
- * Description : 담당자ID 입력 후 focusOut event
- ******************************************************************/
- function group3_group2_input1_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- group3.group2.caption1.text = "";
- if ( utlf_isNull(ds_temp_srchinfo.getColumn(0, "srchid")) ) {
- ds_temp_srchinfo.setColumn(0, "srchid", "");
-
- if( utlf_isNull(ds_temp_userinfo.getColumn(0, "userid")) ){
- group3.group2.caption1.text = "사용자ID를 입력하십시오.";
- ds_temp_userinfo.clearData();
- ds_temp_userinfo.addRow();
-
- group3.group2.input1.setFocus();
- } else {
- group3.group2.input9.setFocus();
- }
- } else {
- fChgUserID();
- }
- }
- /******************************************************************
- * Argument :
- * Description : 바코드 입력 후 focusOut event
- ******************************************************************/
- function group3_group2_input9_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- group3.group2.caption1.text = "";
- group3.group2.input9.enable = false;
- group3.group2.input9.updateToDataset();
- fChgBarcode();
- group3.group2.input9.enable = true;
- group3.group2.input9.setFocus();
- }
- }
- /******************************************************************
- * Argument :
- * Description : 불출확인 button event
- ******************************************************************/
- function group3_group2_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("Drug");
- }
- /******************************************************************
- * Argument :
- * Description : 불출취소 button event
- ******************************************************************/
- function group3_group2_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- group3.group2.caption1.text = "";
- fNarcActing("DrugCncl");
- }
- /******************************************************************
- * Argument :
- * Description : key event
- ******************************************************************/
- function group3_onkeyup(obj:Div, e:KeyEventInfo)
- {
- if( e.keycode == 27 || e.keycode == 81 ){// 'ESC' or 'Q' 키가 눌려진 경우
- var answer = sysf_messageBox("마약불출 프로그램 종료를 ", "Q004") ;
- if(answer == 6)
- {
- group4.visible = true;
- group3.group2.enable = false;
- }
- }
-
- if( e.keycode == 121 ){
- ds_temp_srchinfo.setColumn(0, "srchid",""); //담당자
- ds_temp_userinfo.setColumn(0, "usernm", ""); //담자자명
- ds_temp_srchinfo.setColumn(0, "barcode",""); //바코드
- ds_main_narclist.clearData(); //내역
- group3.group2.input9.setFocus();
- }
- }
- /******************************************************************
- * Argument :
- * Description : grou4 약제 담당자ID event
- ******************************************************************/
- function group4_input3_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- group4.input3.updateToDataset();
- fChgUserIDPharm();
- }
- }
- /******************************************************************
- * Argument :
- * Description : grou4 취소 button event
- ******************************************************************/
- function group4_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- group4.visible = false;
- group3.group2.enable = true;
- group3.group2.input1.setFocus();
- }
- /******************************************************************
- * Argument :
- * Description : grd_narclist event
- ******************************************************************/
- function grd_narclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var cRow = ds_main_narclist.rowposition;
- ds_temp_srchinfo.setColumn(0, "pid", ds_main_narclist.getColumn(cRow, "pid"));
- //model.refresh();
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch();
- }
- /******************************************************************
- * Argument :
- * Description : grd_outnarc event
- ******************************************************************/
- function grd_outnarc_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var cRow = ds_main_narclist.rowposition;
- ds_temp_srchinfo.setColumn(0, "pid", ds_main_narclist.getColumn(cRow, "pid"));
- //model.refresh();
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch();
- }
- /******************************************************************
- * Argument :
- * Description : grd_outnarc event
- ******************************************************************/
- function grd_outnarc_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- var cCol = grd_outnarc.currentcol;
- var rtnqtyCol = grd_outnarc.getBindCellIndex("body", "returnqty");
- if( cCol == rtnqtyCol ){
- fIptRtnCnts();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|