123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>마약/향정입출고내역</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <srchcond>
- <narclist>
- <narccd/>
- <narcnm/>
- <goodspec/>
- <specunit/>
- <suplplce/>
- <brngfwrdqty/>
- <winqty/>
- <custnm/>
- <allendyn/>
- </narclist>
- </srchcond>
- <prcplist>
- <item>
- <sel/>
- <prcpdd/>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <addr/>
- <diagcd/>
- <sympnm/>
- <ordqty/>
- <deliveqty/>
- <etccau/>
- <stocqty/>
- <seqno/>
- <narccd/>
- <narcnm/>
- <goodspec/>
- <specunit/>
- <custnm/>
- <brngfwrdqty/>
- <winqty/>
- <orgioflag/>
- <ioflag/>
- </item>
- </prcplist>
- <printlist>
- <item>
- <narccd/>
- <narcnm/>
- <deliveqty/>
- <returnqty/>
- <bfstocqty/>
- <winqty/>
- </item>
- </printlist>
- <printlist2>
- <item>
- <narccd/>
- <narcnm/>
- <packunit/>
- <deliveqty/>
- <bfstocqty/>
- <winqty/>
- <stocqty/>
- </item>
- </printlist2>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <prcplist2>
- <item>
- <drugdd/>
- </item>
- </prcplist2>
- <datacheck>
- <datachk>
- <yn/>
- </datachk>
- </datacheck>
- </main>
- <send>
- <srchdata>
- <narcflag>M</narcflag>
- <srchrtnwardcd/>
- <srchwardcd/>
- <srchrtnwardnm/>
- <srchwardnm/>
- <drugcd/>
- <drugnm/>
- <ioflag/>
- <endflag>A</endflag>
- <enddd/>
- <barcode/>
- <totsumqty/>
- <chkcnt/>
- <preview/>
- <deptflag/>
- <allward/>
- <goodspec/>
- <specunit/>
- <suplplce/>
- <brngfwrdqty/>
- <winqty/>
- <stocyn/>
- <drugkind>N M</drugkind>
- <deptnm/>
- <drugkindnm/>
- <fromenddd/>
- <toenddd/>
- <prtmode/>
- <prniflag>I</prniflag>
- <prnoflag/>
- <prnmkind>M</prnmkind>
- <prnnkind>N</prnnkind>
- <prnykind/>
- <deptinm/>
- <deptonm/>
- <statdd/>
- <srchdrugkind>N','Y M</srchdrugkind>
- <prnaflag/>
- <deptanm/>
- <m_drugkind/>
- <h_drugkind/>
- <stocdeptcd/>
- <stocdeptcdnm/>
- <magamflag/>
- <multday/>
- </srchdata>
- <data>
- <narcstocdata/>
- <print1>
- <item>
- <sel/>
- <prcpdd/>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <addr/>
- <diagcd/>
- <sympnm/>
- <ordqty/>
- <deliveqty/>
- <etccau/>
- <stocqty/>
- <seqno/>
- <narccd/>
- <narcnm/>
- <goodspec/>
- <specunit/>
- <suplplce/>
- <brngfwrdqty/>
- <winqty/>
- </item>
- </print1>
- <print2>
- <item>
- <drugcd/>
- <enddd/>
- <orddept/>
- <deliveqty_i/>
- <deliveqty_o/>
- <brngfwrdqty/>
- <winqty/>
- <stocqty/>
- <narccd/>
- <narcnm/>
- <goodspec/>
- <specunit/>
- <custnm/>
- </item>
- </print2>
- </data>
- </send>
- <init>
- <deptlist>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- </deptlist>
- <orddept>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddept>
- <misdeptlist/>
- <dayinfo>
- <base>
- <basedd/>
- </base>
- </dayinfo>
- </init>
- <hidden>
- <ret/>
- <srchinfo>
- <wardcd/>
- <wardnm/>
- </srchinfo>
- <prninfo/>
- </hidden>
- <temp>
- <srchcond>
- <narclist>
- <sel/>
- <narcnm/>
- <narccd/>
- </narclist>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </srchcond>
- <drugdeptinfo/>
- <srchinfo>
- <ward/>
- </srchinfo>
- <tttt>
- <a/>
- <b/>
- <c/>
- <rr/>
- <ww/>
- </tttt>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <submission id="TRADT30301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/srchcond"/>
- <submission id="TRADT30302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT30303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/printlist"/>
- <submission id="TRADT30304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist2"/>
- <submission id="TRADT30305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/printlist2"/>
- <submission id="TRADT30306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/printlist2"/>
- <submission id="TRADT30308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instancd" resultref="/root/init/dayinfo"/>
- <submission id="TXADT30301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXADT30302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXADT30303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TRADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <submission id="TRADT30406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdeptinfo" replace="instance" resultref="/root/temp/dutdeptinfo"/>
- <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRADT30701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/srchcond"/>
- <!-- (20090807)-->
- <submission id="TRADT30310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/datacheck"/>
- <!-- (20090807)-->
- <!-- 출고부서조회-->
- <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
- <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //병동 체크박스 조회
- //model.setValue("/root/send/srchdata/deptflag", "D");
- //submit("TRADT10203");
- //success = submit("TRADT10203");
- //if (success) astfAddCombo("/root/init/deptlist","ward","wardcd,wardnm","H,전체");
- model.setValue("/root/send/srchdata/enddd", getCurrentDate());
- model.setValue("/root/send/srchdata/statdd", getCurrentDate());
- //chk_allward.attribute("visibility")="hidden"; //병동 전체 체크박스 숨김.
- chk_ward.attribute("visibility")="hidden"; //병동 체크박스 숨김.
- button1.disabled = true; //마감버튼 비활성화
- button3.disabled = true; //마감취소버튼 비활성화
- btn_save.disabled = true; //저장버튼 비활성화
- button4.disabled = true; //전송버튼 비활성화
- button19.disabled = true; //수불대장출력버튼 비활성화
- btn_prt.disabled = true; //출력버튼 비활성화
- //향정출력버튼
- button7.visible = false;
- button8.visible = false;
- chkbox_day.visible = false;
-
-
- // 진료과세팅
- ////zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/orddept"); //부서코드 콤보조회
- //if ( model.instances(0).selectSingleNode("/root/init/orddept/dept") != null) {
- // astfAddCombo("/root/init/orddept","dept","deptcd,depthngnm",",전체");
- //}
- ////copyNodeType("/root/temp/drugdeptinfo","/root/init/orddept", "replace");
-
- ////zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "W", "/root/init/deptlist"); //부서코드 콤보조회
- //copyNodeType("/root/temp/drugdeptinfo","/root/init/deptlist", "after");
-
- //병동 Combo 조회
- model.makeValue("/root/send/srchcond/deptflag", "D");
- model.makeValue("/root/send/srchcond/narcflag", "M");
- submit("TRADT30401");
- model.copyNode("/root/temp/drugdeptinfo","/root/temp/srchcond");
- ////copyNodeType("/root/temp/drugdeptinfo","/root/temp/srchcond/dept", "after");
-
- //병동 Combo 조회
- //model.makeValue("/root/send/deptinfo/deptflag", "W");
- //submit("TRADT10203");
- model.makeValue("/root/send/srchcond/deptflag", "W");
- submit("TRADT30401");
- astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
-
- ////copyNodeType("/root/temp/drugdeptinfo","/root/temp/srchcond", "after");
-
- //submit("TRADT30406");
- //copyNodeListType("/root/temp/drugdeptinfo","/root/temp/dutdeptinfo/dept ", "after");
- //copyNodeListType("/root/temp/srchcond","/root/temp/dutdeptinfo/dept ", "after");
- //astfAddCombo("/root/temp/srchcond", "dept", "deptcd,deptnm", ",");
- model.refresh();
-
- submit("TRADT30301");
-
- if(model.getValue("/root/main/srchcond/narclist/allendyn") == "Y" ) {
- button1.disabled = false;
- button6.disabled = false;
- }
-
- if( model.getValue("/root/send/srchdata/narcflag") == "M") {
- //향정출력버튼
- button7.visible = false;
- button8.visible = false;
-
- button1.disabled = true;
- button3.disabled = true;
- btn_save.disabled = true;
-
- grd_prcplist.visible = true;
- grd_pshchlist.visible = false;
-
- radio3.visible = true;
- radio5.visible = true;
- radio6.visible = true;
- radio4.value = "A";
- radio1.value = "I";
-
- group5.visible = false;
-
- // 수불일자 마감일 invisible
- caption9.visible = false;
- input5.visible = false;
- caption9.refresh();
- input5.refresh();
-
- } else if( model.getValue("/root/send/srchdata/narcflag") == "H") {
- //향정출력버튼
- button7.visible = true;
- button7.disabled = true;
- button8.visible = true;
- button1.disabled = false;
- button3.disabled = false;
- btn_save.disabled = false;
-
- grd_prcplist.visible = false;
- grd_pshchlist.visible = true;
-
- radio3.visible = false;
- radio5.visible = false;
- radio6.visible = false;
- radio4.value = "A";
- radio1.value = "I";
-
- group5.visible = true;
-
- if(model.getValue("/root/send/srchdata/prtmode") == "Y") {
- caption9.visible = true;
- input5.visible = true;
- caption9.refresh();
- input5.refresh();
- }
- }
-
- // 출고부서 조회, 설정
- submit("TRADT01106");
- if(combo1.length == 1) {
- combo1.select(0);
- }else if(combo1.length > 1) {
- // 2010.01.25 pymi 입원주사조제실 제거
- if(model.getValue("/root/init/misdeptlist/deptlist[1]/deptcd") == "3242104000") {
- combo1.choices.itemset.attribute("nodeset") = "/root/init/misdeptlist/deptlist[deptcd != '3242104000' ]";
- }
- // (e)
- astfAddCombo("/root/init/misdeptlist", "deptlist","deptcd,deptnm", "T,전체(조회용)");
- combo1.value = "T";
- }
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fView(){
- model.setValue("/root/send/srchdata/stocyn", "");
- submit("TRADT30302");
- var sumqty =0;
- for ( var i = 1; i < grd_prcplist.rows; i++){
- sumqty = sumqty + parseFloat(model.getValue("/root/main/prcplist/item["+i+"]/deliveqty"));
- }
- model.setValue("/root/send/srchdata/totsumqty", sumqty);
- model.refresh();
- }
-
-
- //수불대장 출력시 전체 약품에 대한 내역을 출력하기위해 약품별 출고내역 조회
- function fPrint1(){
- var cnt = 1;
- model.setValue("/root/send/srchdata/ioflag", "");
- model.removeNodeset("/root/send/data/print1/item");
- model.removeNodeset("/root/main/prcplist/item");
- //model.makeNode("/root/send/data/print1");
- for ( var i = 1; i <= grd_druglist.rows-1; i++){
- model.setValue("/root/send/srchdata/drugcd", model.getValue("/root/main/srchcond/narclist["+i+"]/narccd"));
- //--------------------------(20090807)
- //마약이면서 향정수불을 체크한다.
- submit("TRADT30310", false);
- var dataChk = model.getValue("/root/main/datacheck/datachk/yn");
- //alert(dataChk);
- if(dataChk != "Y"){
- continue;
- }
- //--------------------------
- submit("TRADT30302", false);
- for ( var j = 1; j <= getNodesetCount("/root/main/prcplist/item") ; j++){
-
- model.makeNode("/root/send/data/print1/item["+cnt+"]");
-
- model.setValue("/root/main/prcplist/item["+j+"]/narccd", model.getValue("/root/main/srchcond/narclist["+i+"]/narccd"));
- model.setValue("/root/main/prcplist/item["+j+"]/narcnm", model.getValue("/root/main/srchcond/narclist["+i+"]/narcnm"));
- model.setValue("/root/main/prcplist/item["+j+"]/goodspec", model.getValue("/root/main/srchcond/narclist["+i+"]/goodspec"));
- model.setValue("/root/main/prcplist/item["+j+"]/specunit", model.getValue("/root/main/srchcond/narclist["+i+"]/specunit"));
- model.setValue("/root/main/prcplist/item["+j+"]/custnm", model.getValue("/root/main/srchcond/narclist["+i+"]/custnm"));
- model.makeValue("/root/main/prcplist/item["+j+"]/hospnm", model.getValue("/root/main/srchcond/narclist["+i+"]/hospnm"));
- model.makeValue("/root/main/prcplist/item["+j+"]/lncsno", model.getValue("/root/main/srchcond/narclist["+i+"]/lncsno"));
- model.makeValue("/root/main/prcplist/item["+j+"]/mngtrid", model.getValue("/root/main/srchcond/narclist["+i+"]/mngtrid"));
- //model.setValue("/root/main/prcplist/item["+j+"]/brngfwrdqty", model.getValue("/root/main/srchcond/narclist["+i+"]/brngfwrdqty"));
- //model.setValue("/root/main/prcplist/item["+j+"]/winqty", model.getValue("/root/main/srchcond/narclist["+i+"]/winqty"));
- model.copyNode("/root/send/data/print1/item["+cnt+"]", "/root/main/prcplist/item["+j+"]");
- cnt = cnt + 1;
- }
- }
- model.removeNodeset("/root/send/data/print1/item["+cnt+"]");
- model.refresh();
- }
-
- // 향정 일지
- function fPTDrugPnt(){
- model.setValue("/root/send/srchdata/drugkindnm", "내복약");
- if(model.getValue("/root/send/srchdata/prnnkind") == "N") { //내복약 일지
- model.setValue("/root/send/srchdata/drugkind", "N");
- submit("TRADT30305");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30305", "XMLSTR", "RPADT30305", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30305", "XMLSTR", "RPADT30305", "", "true","","","","","true", "", "");
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "주사약");
- if(model.getValue("/root/send/srchdata/prnmkind") == "M"){
- if(model.getValue("/root/send/srchdata/prniflag") == "I" || model.getValue("/root/send/srchdata/prnaflag") == "A") { // 병동
- model.setValue("/root/send/srchdata/drugkind", "M");
- submit("TRADT30305");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30305", "XMLSTR", "RPADT30305", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30305", "XMLSTR", "RPADT30305", "", "true","","","","","true", "", "");
- }
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "외용약");
- if(model.getValue("/root/send/srchdata/prnykind") == "Y") {
- model.setValue("/root/send/srchdata/drugkind", "Y");
- submit("TRADT30305");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30305", "XMLSTR", "RPADT30305", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30305", "XMLSTR", "RPADT30305", "", "true","","","","","true", "", "");
- }
- }
- }
- ]]>
- </script>
- <submission id="TXADT30305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/ret"/>
- <submission id="TXADT30304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/ret"/>
- <submission id="TRADT30307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/hidden/prninfo"/>
- <submission id="TRADT30311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/hidden/prninfo"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode==121){
- grp_all.visible=true;
- group6.visible = true;
- } else if (event.keyCode == 35){
- input10.visible = true;
- model.refresh();
- } else if (event.keyCode == 120){
- button17.visible = true;
- }
- ]]>
- </script>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:185px; height:13px; ">마약/향정 입출고내역</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; color:#ffffff; ">
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/item" visibility="hidden" backcoloralternate="#f0f0f0" caption="^일자^I/O^투약번호^등록번호^등록번호^성명^성별^나이^주소^진단코드^주요증상^투여량^출고량^비고^재고^SeqNo^narcbarcode^caption1^caption2" colsep="^" colwidth="28, 85, 27, 60, 85, 20, 63, 34, 38, 173, 54, 79, 54, 55, 5, 48, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:260px; top:100px; width:934px; height:642px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="text-align:right; "/>
- <col ref="prcpdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="orgioflag" type="input" validateformat="true" style="text-align:center; "/>
- <col ref="drugno" style="text-align:right; "/>
- <col ref="pid" type="inputbutton" maxlength="10"/>
- <col ref="udt" type="inputbutton"/>
- <col ref="hngnm" type="input"/>
- <col ref="sex" type="input" maxlength="3"/>
- <col ref="age" type="input" maxlength="5"/>
- <col ref="addr" type="input" maxlength="300"/>
- <col ref="diagcd" type="input" maxlength="5"/>
- <col ref="sympnm" type="combo">
- <choices>
- <item>
- <label>Pain</label>
- <value>Pain</value>
- </item>
- <item>
- <label>Cough</label>
- <value>Cough</value>
- </item>
- </choices>
- </col>
- <col imemode="disabled" ref="ordqty" type="input" format="(-)####.##" maxlength="8" style="text-align:right; "/>
- <col ref="deliveqty" type="input" format="(-)####.##" maxlength="8" style="text-align:right; "/>
- <col ref="etccau" type="input" visibility="hidden"/>
- <col ref="stocqty" type="input" format="(-)####.##" maxlength="8" style="text-align:right; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="narcbarcode" visibility="hidden"/>
- <col ref="drugsumtm" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //if(isDataCell()) { // button은 datacell로 인식하지 않음 - 2009-06-11 - 김귀남
- if ( grd_prcplist.colRef("pid") ==grd_prcplist.col){
- modal("SPPMC02500",0,100,150,"SPPMC02500","","");
- if(model.getValue("/root/main/patinfo/patinfolist/pid") != "") {
- model.setValue ( "/root/main/prcplist/item["+grd_prcplist.row+"]/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue ( "/root/main/prcplist/item["+grd_prcplist.row+"]/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue ( "/root/main/prcplist/item["+grd_prcplist.row+"]/sex",model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue ( "/root/main/prcplist/item["+grd_prcplist.row+"]/age",model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue ( "/root/main/prcplist/item["+grd_prcplist.row+"]/addr",model.getValue("/root/main/patinfo/patinfolist/addr")+model.getValue("/root/main/patinfo/patinfolist/detladdr"));
- }
-
- if(grd_prcplist.rowStatus(grd_prcplist.row) != "1") {
- grd_prcplist.addStatus(grd_prcplist.row,"update");
- }
-
- model.refresh();
- } else if ( grd_prcplist.colRef("udt") ==grd_prcplist.col){
- model.makeValue("/root/source/pid", model.getValue("/root/main/prcplist/item["+grd_prcplist.mouseRow+"]/pid"));
- modal("SPPMO01400",0,100,150,"SPPMO01400","/root/source/pid","/root/source/pid");
- }
- //}
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- if(grd_prcplist.colRef("chkyn") == grd_prcplist.mouseCol) {
- model.setValue("/root/send/data/narcstocdata", grd_prcplist.getUpdateData());
- submit("TXADT30304");
- submit("TRADT30302");
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_pshchlist" nodeset="/root/main/prcplist/item" backcoloralternate="#f0f0f0" caption="^일자^I/O^투약번호^등록번호^등록번호^성명^성별^나이^진료과^투여량^출고량^비고^재고^집계시간^SeqNo^narcbarcode^caption1" colsep="^" colwidth="28, 85, 27, 60, 85, 21, 63, 34, 38, 173, 54, 55, 5, 48, 70, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:260px; top:100px; width:934px; height:642px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="text-align:right; "/>
- <col ref="prcpdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="orgioflag" style="text-align:center; "/>
- <col ref="drugno" style="text-align:right; "/>
- <col ref="pid" type="inputbutton" maxlength="10"/>
- <col ref="udt" type="inputbutton"/>
- <col ref="hngnm" type="input"/>
- <col ref="sex" type="input" maxlength="3"/>
- <col ref="age" type="input" maxlength="5"/>
- <col ref="addr" type="combo" maxlength="300">
- <choices>
- <itemset nodeset="/root/temp/drugdeptinfo/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col imemode="disabled" ref="ordqty" type="input" format="(-)####.##" maxlength="8" style="text-align:right; "/>
- <col ref="deliveqty" type="input" format="(-)####.##" maxlength="8" style="text-align:right; "/>
- <col ref="etccau" type="input" visibility="hidden"/>
- <col ref="stocqty" type="input" format="(-)####.##" maxlength="8" style="text-align:right; "/>
- <col ref="drugsumtm" format="hh:nn:ss" style="text-align:right; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="narcbarcode" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //if(isDataCell()) { // button은 datacell로 인식하지 않음 - 2009-06-11 - 김귀남
- if ( grd_pshchlist.colRef("pid") ==grd_pshchlist.col){
- modal("SPPMC02500",0,100,150,"SPPMC02500","","");
- model.setValue ( "/root/main/prcplist/item["+grd_pshchlist.row+"]/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue ( "/root/main/prcplist/item["+grd_pshchlist.row+"]/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue ( "/root/main/prcplist/item["+grd_pshchlist.row+"]/sex",model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue ( "/root/main/prcplist/item["+grd_pshchlist.row+"]/age",model.getValue("/root/main/patinfo/patinfolist/age"));
- model.refresh();
- } else if ( grd_pshchlist.colRef("udt") ==grd_pshchlist.col){
- model.makeValue("/root/source/pid", model.getValue("/root/main/prcplist/item[" + grd_pshchlist.mouseRow+"]/pid"));
- modal("SPPMO01400",0,100,150,"SPPMO01400","/root/source/pid","/root/source/pid");
- }
- //}
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- if(grd_prcplist.colRef("chkyn") == grd_prcplist.mouseCol) {
- model.setValue("/root/send/data/narcstocdata", grd_prcplist.getUpdateData());
- submit("TXADT30304");
- submit("TRADT30302");
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter2" style="left:1152px; top:78px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
-
- if(model.getValue("/root/send/srchdata/narcflag") =="M") {
- grd_prcplist.saveExcel(file);
- }else if(model.getValue("/root/send/srchdata/narcflag") =="H") {
- grd_pshchlist.saveExcel(file);
- }
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:5px; width:1195px; height:65px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1194px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1120px; y1:13px; x2:1120px; y2:63px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:215px; top:11px; width:96px; height:17px; ">수불일자 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:11px; width:86px; height:17px; ">구분 :</caption>
- <select1 id="radio2" ref="/root/send/srchdata/narcflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:79px; top:11px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>마약</label>
- <value>M</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- submit("TRADT30301");
-
- if( model.getValue("/root/send/srchdata/narcflag") == "M") {
- //향정출력버튼
- button7.visible = false;
- button8.visible = false;
-
- button1.disabled = true;
- button3.disabled = true;
- btn_save.disabled = true;
-
- grd_prcplist.visible = true;
- grd_pshchlist.visible = false;
-
- radio3.visible = true;
- radio5.visible = true;
- radio6.visible = true;
- radio4.value = "A";
- radio1.value = "I";
-
- group5.visible = false;
-
- // 수불일자 마감일 invisible
- caption9.visible = false;
- input5.visible = false;
- caption9.refresh();
- input5.refresh();
-
- txt_narc.visible = true;
- txt_phy.visible = false;
-
- bool1.visible = false;
- chkbox_day.visible = false;
-
- } else if( model.getValue("/root/send/srchdata/narcflag") == "H") {
- //향정출력버튼
- button7.visible = true;
- button7.disabled = true;
- button8.visible = true;
- button1.disabled = false;
- button3.disabled = false;
- btn_save.disabled = false;
-
- grd_prcplist.visible = false;
- grd_pshchlist.visible = true;
-
- radio3.visible = false;
- radio5.visible = false;
- radio6.visible = false;
- radio4.value = "A";
- radio1.value = "I";
-
- group5.visible = true;
- chkbox_day.visible = true;
- if(model.getValue("/root/send/srchdata/prtmode") == "Y") {
- caption9.visible = true;
- input5.visible = true;
- caption9.refresh();
- input5.refresh();
- }
-
- txt_narc.visible = false;
- txt_phy.visible = true;
-
- bool1.visible = true;
- }
-
- model.removeNodeset("/root/main/prcplist/item");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:505px; top:39px; width:86px; height:17px; ">수행부서 :</caption>
- <output id="ipt_wardnm" ref="/root/send/srchdata/srchwardnm" class="output_search" style="left:595px; top:38px; width:480px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (chk_ward.attribute("visibility")=="hidden") {
- chk_ward.attribute("visibility")="visible";
- chk_allward.attribute("visibility")="visible";
- } else if (chk_ward.attribute("visibility")=="visible") {
- chk_ward.attribute("visibility")="hidden";
- chk_allward.attribute("visibility")="hidden";
- }
- ]]>
- </script>
- </output>
- <button id="btn_sea" class="btn1_letter2" style="left:1130px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/srchdrugkind") == "") {
- messageBox("약품종류를 선택하세요", "I900");
- return;
- }
- submit("TRADT30301");
- //submit("TRADT30302");
- ]]>
- </script>
- </button>
- <select1 id="radio3" ref="/root/send/srchdata/endflag" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:345px; top:40px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>D1</label>
- <value>D1</value>
- </item>
- <item>
- <label>D2</label>
- <value>D2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //submit("TRADT30301");
- fView();
- //마감구분이 전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = true;
- //button6.disabled = true;
- button19.disabled = true;
- //출력/마감/마감취소/저장 버튼 활성화
- button1.disabled = false;
- button3.disabled = false;
- if(combo1.value != "T"){
- btn_prt.disabled = false;
- btn_save.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/send/srchdata/enddd" class="input_search" inputtype="date" style="left:305px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/enddd") < "20081003") {
- button19.disabled = true;
- button6.disabled = true;
- } else {
- button19.disabled = false;
- button6.disabled = false;
- }
-
- submit("TRADT30301");
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/send/srchdata/barcode" class="input_search" imemode="alpha" style="left:595px; top:10px; width:205px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- //input9.disabled=true;
- setInputNodeCurText();
- var cnt=0;
- var matchcnt = 0;
- var barcode = model.getValue("/root/send/srchdata/barcode").toUpperCase();
-
- //model.setValue( "/root/main/prcplist/item[narcbarcode='"+model.getValue("/root/send/srchdata/barcode")+"']/chkyn","Y");
-
- if(barcode != "") {
- for ( var i = 0; i < grd_prcplist.rows; i++){
- if(model.getValue( "/root/main/prcplist/item[" + i + "]/narcbarcode") == barcode){
- model.setValue( "/root/main/prcplist/item[" + i + "]/chkyn", "Y");
- grd_prcplist.rowStatus(i) = 2;
- matchcnt++;
- }
-
- if (model.getValue("/root/main/prcplist/item["+i+"]/chkyn")=="Y"){
-
- cnt++;
- }
- }
-
- //model.refresh();
-
- if(matchcnt == 0) {
- messageBox("바코드와 일치하는 처방이", "I004");
- } else {
- model.setValue("/root/send/data/narcstocdata", grd_prcplist.getUpdateData());
- submit("TXADT30304", false); //바코드체크 업데이트
- //submit("TRADT30302");
- model.setValue("/root/send/srchdata/chkcnt", cnt + "/" + (grd_prcplist.rows-1));
-
- }
- }
- model.setValue("/root/send/srchdata/barcode", "");
- model.setFocus("input9");
- model.refresh();
- //input9.disabled=false;
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:505px; top:10px; width:75px; height:17px; ">바코드 :</caption>
- <caption id="caption4" class="search_name" visibility="visible" style="left:810px; top:10px; width:99px; height:17px; ">약품종류 :</caption>
- <output id="output4" ref="/root/send/srchdata/chkcnt" style="left:805px; top:25px; width:115px; height:19px; font-size:10pt; font-weight:bold; color:#0000ff; "/>
- <caption id="caption8" class="search_name" style="left:215px; top:40px; width:96px; height:17px; ">마감구분 :</caption>
- <select1 id="radio4" ref="/root/send/srchdata/endflag" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:453px; top:40px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //submit("TRADT30301");
-
- fView();
-
- if(model.getValue("/root/send/srchdata/narcflag") == "M") {
- //마감구분이 전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = false;
- //button6.disabled = false;
- button19.disabled = false;
- //마감구분이 전체일 경우 출력/마감/마감취소/저장 버튼 비활성화
- button1.disabled = true;
- button3.disabled = true;
- if(combo1.value != "T"){
- //btn_prt.disabled = true;
- btn_save.disabled = true;
- }
- } else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- //마감구분이 전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = true;
- //button6.disabled = true;
- //마감구분이 전체일 경우 출력/마감/마감취소/저장 버튼 비활성화
- button1.disabled = false;
- button3.disabled = false;
- if(combo1.value != "T"){
- btn_save.disabled = false;
- }
- }
- ]]>
- </script>
- </select1>
- <select1 id="radio5" ref="/root/send/srchdata/endflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:305px; top:40px; width:40px; height:20px; font-weight:bold; color:#ffffff; background-color:#ff6600; border-style:none; ">
- <choices>
- <item>
- <label>D0</label>
- <value>N2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //submit("TRADT30301");
- fView();
- //마감구분이 전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = true;
- //button6.disabled = true;
- button19.disabled = true;
- //출력/마감/마감취소/저장 버튼 활성화
- button1.disabled = false;
- button3.disabled = false;
- if(combo1.value != "T"){
- btn_prt.disabled = false;
- btn_save.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <select1 id="radio6" ref="/root/send/srchdata/endflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:415px; top:40px; width:35px; height:20px; font-weight:bold; color:#ffffff; background-color:#ff6600; border-style:none; ">
- <choices>
- <item>
- <label>N</label>
- <value>N1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //submit("TRADT30301");
- fView();
- //마감구분이 전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = true;
- //button6.disabled = true;
- button19.disabled = true;
- //출력/마감/마감취소/저장 버튼 활성화
- button1.disabled = false;
- button3.disabled = false;
- if(combo1.value != "T"){
- btn_prt.disabled = false;
- btn_save.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <input id="input5" ref="/root/send/srchdata/statdd" class="input_search" visibility="hidden" inputtype="date" style="left:410px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption9" visibility="hidden" style="left:398px; top:11px; width:15px; height:20px; ">~</caption>
- <select id="checkbox7" ref="/root/send/srchdata/srchdrugkind" overflow="visible" appearance="full" cols="2" style="left:900px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>N','Y</value>
- </item>
- <item>
- <label>주사</label>
- <value>M</value>
- </item>
- </choices>
- </select>
- <caption id="caption10" style="left:5px; top:35px; width:70px; height:20px; font-weight:bold; color:#ff0000; ">실출고부서</caption>
- <select1 id="combo1" ref="/root/send/srchdata/stocdeptcd" appearance="minimal" style="left:79px; top:35px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/misdeptlist/deptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo1.value == "T") {
- if(model.getValue("/root/send/srchdata/endflag") != "A") {
- btn_save.disabled = true;
- btn_prt.disabled = true;
- }
- if(model.getValue("/root/send/srchdata/narcflag") == "M" ) {
- //전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = false;
- //button6.disabled = false;
- if(model.getValue("/root/send/srchdata/endflag") == "A") {
- button19.disabled = false;
- }
- } else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- //전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = false;
- //button6.disabled = false;
- if(model.getValue("/root/send/srchdata/endflag") == "A") {
- button19.disabled = false;
- }
- }
- } else {
- if(model.getValue("/root/send/srchdata/endflag") != "A") {
- btn_save.disabled = false;
- }
-
- btn_prt.disabled = false;
- button4.disabled = true;
- //button6.disabled = true;
- button19.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <select id="chkbox_day" ref="/root/send/srchdata/multday" overflow="visible" appearance="full" cols="2" style="left:173px; top:11px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>기간</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <button id="btn_grdadd" class="btn2_letter3" disabled="true" style="left:984px; top:78px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/narcflag") =="M") {
- grd_prcplist.addItem();
- model.setValue("/root/main/prcplist/item[" + grd_prcplist.row + "]/prcpdd", model.getValue("/root/send/srchdata/enddd"));
- //model.setValue("/root/main/prcplist/item[" + grd_prcplist.row + "]/ioflag", model.getValue("/root/send/srchdata/ioflag"));
-
- }else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- grd_pshchlist.addItem();
- model.setValue("/root/main/prcplist/item[" + grd_pshchlist.row + "]/prcpdd", model.getValue("/root/send/srchdata/enddd"));
- //model.setValue("/root/main/prcplist/item[" + grd_pshchlist.row + "]/ioflag", model.getValue("/root/send/srchdata/ioflag"));
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_grdcopy" class="btn2_letter3" disabled="true" style="left:1040px; top:78px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chkrow = 0;
-
- if(model.getValue("/root/send/srchdata/narcflag") =="M") {
- copyNodesetType("/root/main/prcplist/item[" + grd_prcplist.row + "]", "/root/main/prcplist/item[" + grd_prcplist.row + "]", "after");
- model.refresh();
-
- chkrow = grd_prcplist.rows-1;
- model.setValue("/root/main/prcplist/item[" + chkrow + "]/narcbarcode", ""); //직접입력건은 바코드 생성 하지 않음
- grd_prcplist.addStatus(chkrow, "insert");
-
- }else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- copyNodesetType("/root/main/prcplist/item[" + grd_pshchlist.row + "]", "/root/main/prcplist/item[" + grd_pshchlist.row + "]", "after");
- model.refresh();
-
- chkrow = grd_pshchlist.rows-1;
- model.setValue("/root/main/prcplist/item[" + chkrow + "]/narcbarcode", ""); //직접입력건은 바코드 생성 하지 않음
- grd_pshchlist.addStatus(chkrow, "insert");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disabled="true" style="left:1096px; top:78px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/narcflag") =="M") {
- grd_prcplist.addStatus(grd_prcplist.row,"delete");
- }else if(model.getValue("/root/send/srchdata/narcflag") =="H") {
- grd_pshchlist.addStatus(grd_pshchlist.row,"delete");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_druglist" nodeset="/root/main/srchcond/narclist" backcoloralternate="#f0f0f0" caption="약품코드^약품명" colsep="^" colwidth="92, 120" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:100px; width:255px; height:642px; ">
- <col ref="narccd"/>
- <col ref="narcnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- /*if ( model.getValue("/root/send/srchdata/ioflag") ==""){
- messageBox ( "병동/외래 구분을 ", "C002" );
- return;
- }*/
- if ( model.getValue("/root/send/srchdata/endflag") ==""){
- messageBox ( "마감 구분을 ", "C002" );
- return;
- }
-
- btn_grdadd.disabled = false;
- btn_grdcopy.disabled = false;
- btn_grddel.disabled = false;
- //button6.disabled = false;
-
- model.setValue("/root/send/srchdata/drugcd", model.getValue("/root/main/srchcond/narclist["+grd_druglist.row+"]/narccd"));
- model.setValue("/root/send/srchdata/drugnm", model.getValue("/root/main/srchcond/narclist["+grd_druglist.row+"]/narcnm"));
- // model.setValue("/root/send/srchdata/goodspec", model.getValue("/root/main/srchcond/narclist["+grd_druglist.row+"]/goodspec"));
- // model.setValue("/root/send/srchdata/specunit", model.getValue("/root/main/srchcond/narclist["+grd_druglist.row+"]/specunit"));
- // model.setValue("/root/send/srchdata/brngfwrdqty", model.getValue("/root/main/srchcond/narclist["+grd_druglist.row+"]/brngfwrdqty"));
- // model.setValue("/root/send/srchdata/winqty", model.getValue("/root/main/srchcond/narclist["+grd_druglist.row+"]/winqty"));
- model.makeValue("/root/send/srchdata/stocprntyn", "");
- fView();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_druglist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <output id="output3" ref="/root/send/srchdata/totsumqty" style="left:840px; top:77px; width:85px; height:19px; font-size:11pt; font-weight:bold; color:#3366ff; "/>
- <caption id="caption1" style="left:788px; top:79px; width:50px; height:15px; font-size:10pt; font-weight:bold; ">출고합</caption>
- <datagrid id="grd_prnt2" nodeset="/root/main/prcplist2/item" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" ref="/root/main/prcplist2/item" style="left:295px; top:175px; width:325px; height:180px; ">
- <col ref="drugcd"/>
- <col ref="stnddd"/>
- <col ref="enddd"/>
- </datagrid>
- <input id="ipt_wardcd" ref="/root/send/srchdata/srchwardcd" class="input_search" visibility="hidden" style="left:985px; top:25px; width:115px; height:19px; "/>
- <button id="button11" class="icon_search" visibility="visible" style="left:1085px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(chk_ward.visible==true){
- chk_ward.visible = false;
- }else {
- chk_ward.visible = true;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="4" itemwidth="150" sep="|" style="left:595px; top:60px; width:480px; height:20px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/temp/srchcond/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- //ipt_wardcd.value = "2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000";
- //ipt_wardnm.value = "분만실|신생아실|신생아중환자실|응급의료센터|통원수술센터|임상시험센터병동|04층동병동|04층서병동|05층동병동|05층서병동|06층동병동|06층서병동|07층동병동|07층서병동|08층동병동|08층서병동|09층동병동|09층서병동|10층동병동|10층서병동|응급병동|호스피스병동|중환자실|내과중환자실|외과중환자실|신경외과중환자실|순환기계중환자실|2층중환자실|특수주사실특수주사";
- //model.setValue("/root/temp/srchinfo/ward", "T|2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000");
- // for(var i = 0; i < chk_ward.length; i++) {
- // chk_ward.select(i);
- // }
-
- var strwardnm = "";
- var strwardcd = "";
-
- for(var i = 0 ; i <= getNodesetCount("/root/hidden/deptlist/ward") ; i++) {
- strwardnm = strwardnm+ "|"+ model.getValue("/root/hidden/deptlist/ward[" + i + "]/wardnm");
- strwardcd = strwardcd + "|" + model.getValue("/root/hidden/deptlist/ward[" + i + "]/wardcd");
- }
- model.setValue("/root/send/srchdata/srchwardcd", strwardcd);
-
- } else {
- //ipt_wardcd.value = "";
- //ipt_wardnm.value = "";
- model.setValue("/root/temp/srchinfo/ward", "");
- }
- model.refresh();
- }
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
- ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
- } else {
- ipt_wardcd.value = chk_ward.value.setReplaceWord("|", " ");
- ipt_wardnm.value = chk_ward.label.setReplaceWord("|", " ");
- }
- //input3.refresh();
- //검사실 체크박스 감추기
- //chk_excuroom.visible = false;
- ]]>
- </script>
- </select>
- <group id="grp_all" visibility="hidden" style="left:5px; top:70px; width:375px; height:25px; ">
- <button id="button9" class="btn4_letter3" style="left:235px; top:3px; width:68px; height:22px; ">
- <caption>재마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if ( model.getValue("/root/send/srchdata/ioflag") ==""){
- messageBox("병동 외래 구분을 선택하십시오. ","C999");
- return;
- }
- */
-
- if (model.getValue("/root/send/srchdata/stocdeptcd") == "" || model.getValue("/root/send/srchdata/stocdeptcd") == "T"){
- messageBox("실출고부서를 선택하세요. ","C999");
- return;
- }
-
- if ( messageBox("재마감 작업을 ","Q003")==6 ) {
- for ( var i = 0 ; i==i; i++ )
- {
- model.setValue("/root/send/srchdata/enddd", model.getValue("/root/send/srchdata/fromenddd").toDate("YYYYMMDD").getAddDate(i,"D").getDateFormat("YYYYMMDD"));
- model.refresh();
- submit("TRADT30301");
-
- submit("TXADT30303"); //마감취소
- submit("TRADT30302");
-
- submit("TXADT30301"); //마감
- submit("TRADT30302");
-
- if (model.getValue("/root/send/srchdata/toenddd") ==model.getValue("/root/send/srchdata/fromenddd").toDate("YYYYMMDD").getAddDate(i,"D").getDateFormat("YYYYMMDD") ) {
- break;
- }
- }
- alert( "재마감 완료");
-
-
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/srchdata/fromenddd" class="input_search" inputtype="date" style="left:5px; top:5px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/enddd") < "20081003") {
- button19.disabled = true;
- button6.disabled = true;
- } else {
- button19.disabled = false;
- button6.disabled = false;
- }
-
- submit("TRADT30301");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/srchdata/toenddd" class="input_search" inputtype="date" style="left:115px; top:5px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/enddd") < "20081003") {
- button19.disabled = true;
- button6.disabled = true;
- } else {
- button19.disabled = false;
- button6.disabled = false;
- }
-
- submit("TRADT30301");
- ]]>
- </script>
- </input>
- <button id="button10" class="btn4_letter3" style="left:305px; top:3px; width:68px; height:22px; ">
- <caption>재반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("재반영 작업을 ","Q003")==6 ) {
-
- if(model.getValue("/root/send/srchdata/narcflag") == "M") {
- model.setValue("/root/send/srchdata/m_drugkind", "N','Y','M");
- model.setValue("/root/send/srchdata/h_drugkind", "");
- } else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- model.setValue("/root/send/srchdata/m_drugkind", "");
- model.setValue("/root/send/srchdata/h_drugkind", "N','Y','M");
- }
-
- for ( var i = 0 ; i==i; i++ )
- {
- model.setValue("/root/send/srchdata/enddd", model.getValue("/root/send/srchdata/fromenddd").toDate("YYYYMMDD").getAddDate(i,"D").getDateFormat("YYYYMMDD"));
- model.refresh();
- /*submit("TRADT30301");
-
- model.setValue("/root/send/srchdata/stocyn", "Y"); // stocyn = "Y" 인 상태에서 TRADT30302 호출시 재고에 불출 수량이 빠지지 않는 오류 발생.
- fPrint1(); //수불대장 조회
- */
-
- submit("TRADT30701");
-
- if (model.getValue("/root/send/srchdata/toenddd") ==model.getValue("/root/send/srchdata/fromenddd").toDate("YYYYMMDD").getAddDate(i,"D").getDateFormat("YYYYMMDD") ) {
- break;
- }
- }
- alert( "재반영 완료");
- }
- ]]>
- </script>
- </button>
- </group>
- <select1 id="radio1" ref="/root/send/srchdata/ioflag" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:445px; top:75px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동약국</label>
- <value>I</value>
- </item>
- <item>
- <label>외래약국</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //submit("TRADT30301");
- //fView();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //전체일 경우만 전송/수불대장출력 버튼 활성화
- button4.disabled = true;
- button6.disabled = true;
- button19.disabled = true;
- //출력/마감/마감취소/저장 버튼 활성화
- // btn_prt.disabled = false;
- // button1.disabled = false;
- // button3.disabled = false;
- // btn_save.disabled = false;
- ]]>
- </script>
- </select1>
- <select1 id="radio7" ref="/root/send/srchdata/ioflag" visibility="hidden" appearance="full" overflow="visible" style="left:390px; top:75px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //if(model.getValue("/root/send/srchdata/narcflag") == "M" ) {
- //전체일 경우만 전송/수불대장출력 버튼 활성화
- // button4.disabled = false;
- // button6.disabled = false;
- // button19.disabled = false;
- //전체일 경우 출력/마감/마감취소/저장 버튼 비활성화
- // btn_prt.disabled = true;
- // button1.disabled = true;
- // button3.disabled = true;
- // btn_save.disabled = true;
- // } else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- // //전체일 경우만 전송/수불대장출력 버튼 활성화
- // button4.disabled = false;
- // button6.disabled = false;
- // button19.disabled = false;
- //전체일 경우 출력/마감/마감취소/저장 버튼 비활성화
- // btn_prt.disabled = true;
- // button1.disabled = true;
- // button3.disabled = true;
- // btn_save.disabled = true;
- // }
-
- ]]>
- </script>
- </select1>
- <group id="group7" visibility="hidden" style="left:685px; top:305px; width:350px; height:370px; ">
- <input id="input6" ref="/root/temp/tttt/a" class="input_search" inputtype="date" style="left:75px; top:20px; width:90px; height:19px; "/>
- <input id="input7" ref="/root/temp/tttt/b" class="input_search" inputtype="date" style="left:195px; top:20px; width:90px; height:19px; "/>
- <button id="button14" class="btn4_letter6" style="left:20px; top:90px; width:104px; height:22px; ">
- <caption>향정재고반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTemp = "";
- var sSS = model.getValue("/root/temp/tttt/a");
- var sEE = model.getValue("/root/temp/tttt/b");
-
- alert(sSS + " ~ " + sEE);
-
- var iInter = getDateInterval(sSS, sEE);
-
- for(var iNo = 0 ; iNo <= iInter ; iNo++) {
- model.setValue("/root/send/srchdata/enddd", (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") );
- sTemp += ", " + (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") ;
- model.setValue("/root/temp/tttt/c", (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") );
- model.setValue("/root/temp/tttt/rr", sTemp);
-
- submit("TRADT30301");
- model.refresh();
-
- if(model.getValue("/root/send/srchdata/narcflag") == "M") {
- model.setValue("/root/send/srchdata/m_drugkind", "N','Y','M");
- model.setValue("/root/send/srchdata/h_drugkind", "");
- } else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- model.setValue("/root/send/srchdata/m_drugkind", "");
- model.setValue("/root/send/srchdata/h_drugkind", "N','Y','M");
- }
-
- submit("TRADT30311");
-
- }
-
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/temp/tttt/c" style="left:140px; top:55px; width:95px; height:19px; "/>
- <button id="button15" class="btn4_letter4" style="left:140px; top:90px; width:80px; height:22px; ">
- <caption>향정마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTemp = "";
- var sSS = model.getValue("/root/temp/tttt/a");
- var sEE = model.getValue("/root/temp/tttt/b");
-
- alert(sSS + " ~ " + sEE);
-
- var iInter = getDateInterval(sSS, sEE);
-
- for(var iNo = 0 ; iNo <= iInter ; iNo++) {
- model.setValue("/root/send/srchdata/enddd", (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") );
- sTemp += ", " + (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") ;
- model.setValue("/root/temp/tttt/c", (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") );
- model.setValue("/root/temp/tttt/rr", sTemp);
- model.refresh();
-
-
-
- submit("TRADT30301");
-
-
- /*if (model.getValue("/root/main/srchcond/narclist/allendyn") != "Y" && model.getValue("/root/send/srchdata/ioflag") == ""){
- messageBox("병동 외래 구분을 선택하십시오. ","C999");
- return;
- }*/
- if (model.getValue("/root/send/srchdata/narcflag") == "M" && model.getValue("/root/send/srchdata/endflag") == "A") {
- messageBox("마약은 마감구분을 전체로 마감할 수 없습니다.", "C999");
- return;
- }
-
- if (model.getValue("/root/send/srchdata/stocdeptcd") == "" || model.getValue("/root/send/srchdata/stocdeptcd") == "T"){
- messageBox("실출고부서를 선택하세요. ","C999");
- return;
- }
-
- //if ( messageBox("마감 작업을 ","Q003")==6 ) {
-
- /*
- if(model.getValue("/root/main/srchcond/narclist/allendyn") == "Y" && model.getValue("/root/send/srchdata/ioflag") == "") {
- model.setValue("/root/send/srchdata/ioflag", "O");
- submit("TXADT30301");
- submit("TRADT30302");
-
- model.setValue("/root/send/srchdata/ioflag", "I");
- submit("TXADT30301");
- submit("TRADT30302");
-
- } else {
-
- submit("TXADT30301");
- submit("TRADT30302");
- }
- */
-
- /*
- 20091014 이선경 수정 : 입원환자는 병동약국으로, 외래환자는 외래약국으로 마감하지 않고
- 실제 약이 조제, 불출이 어디에서 되었나를 가지고 출고마감하도록 수정
- 처방전출력화면에서 실출고부서(외래약국조제실, 병동약국조제실, 약무실(약제팀))를 어디로 하느냐에 따라 출고마감을 하도록 수정함
- 업무상으로 외래약국에서 입원환자의 약을 조제, 불출할 수도 있고 병동약국에서 외래환자의 약을 조제,불출할 수도 있음
- 그래서 어느 출고부서로 출고마감을 하던지 입원환자마감, 외래환자마감을 모두 해야함
- 단, 주사제는 모두 병동약국 또는 약무실(약제팀)으로 마감됨
- */
- submit("TXADT30301");
- submit("TRADT30302");
- //}
-
-
-
-
-
-
-
-
-
- }
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/temp/tttt/rr" style="left:25px; top:125px; width:315px; height:225px; "/>
- <button id="button16" class="btn6_letter5" style="left:240px; top:90px; width:92px; height:22px; ">
- <caption>향정 일지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var sTemp = "";
- var sSS = model.getValue("/root/temp/tttt/a");
- var sEE = model.getValue("/root/temp/tttt/b");
-
- alert(sSS + " ~ " + sEE);
-
- var iInter = getDateInterval(sSS, sEE);
-
- for(var iNo = 0 ; iNo <= iInter ; iNo++) {
- model.setValue("/root/send/srchdata/enddd", (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") );
- sTemp += ", " + (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") ;
- model.setValue("/root/temp/tttt/c", (sSS.toDate().getAddDate(iNo, "D")).getDateFormat("YYYYMMDD") );
- model.setValue("/root/temp/tttt/rr", sTemp);
-
- submit("TRADT30301");
- model.refresh();
-
- if(model.getValue("/root/send/srchdata/prniflag") == "I") {
- model.setValue("/root/send/srchdata/deptinm", "병동");
- } else {
- model.setValue("/root/send/srchdata/deptinm", "");
- }
- if(model.getValue("/root/send/srchdata/prnoflag") == "O") {
- model.setValue("/root/send/srchdata/deptonm", "외래");
- } else {
- model.setValue("/root/send/srchdata/deptonm", "");
- }
- if(model.getValue("/root/send/srchdata/prnaflag") == "A") {
- model.setValue("/root/send/srchdata/deptanm", "원내");
- } else {
- model.setValue("/root/send/srchdata/deptanm", "");
- }
-
- if( model.getValue("/root/send/srchdata/prtmode") == "Y") { // 대장
- model.setValue("/root/send/srchdata/drugkindnm", "내복약");
- if(model.getValue("/root/send/srchdata/prnnkind") == "N") { //내복약 일지
- model.setValue("/root/send/srchdata/drugkind", "N");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "true","","","","","true", "", "");
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "주사약");
- if(model.getValue("/root/send/srchdata/prnmkind") == "M"){ // 주사
- if(model.getValue("/root/send/srchdata/prniflag") == "I" || model.getValue("/root/send/srchdata/prnaflag") == "A") { // 병동 또는 원내
- model.setValue("/root/send/srchdata/drugkind", "M");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "true","","","","","true", "", "");
- }
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "외용약");
- if( model.getValue("/root/send/srchdata/prnykind") == "Y") { // 외용
- model.setValue("/root/send/srchdata/drugkind", "Y");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "true","","","","","true", "", "");
- }
- }
- }
- else { // 일지
- if(model.getValue("/root/send/srchdata/prniflag") == "I") {
- model.setValue("/root/send/srchdata/deptnm", "병동약국");
- model.setValue("/root/send/srchdata/ioflag", "I")
- fPTDrugPnt();
- }
- if(model.getValue("/root/send/srchdata/prnoflag") == "O") {
- model.setValue("/root/send/srchdata/deptnm", "외래약국");
- model.setValue("/root/send/srchdata/ioflag", "O")
- fPTDrugPnt();
- }
- if(model.getValue("/root/send/srchdata/prnaflag") == "A") {
- model.setValue("/root/send/srchdata/deptnm", "원내약국");
- model.setValue("/root/send/srchdata/ioflag", "")
- fPTDrugPnt();
- }
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <input id="input10" ref="/root/temp/tttt/ww" visibility="hidden" style="left:790px; top:275px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == 13){
-
- alert(input10.currentText );
-
- if(input10.currentText == "정보지원팀") {
- group7.visible = true;
- model.refresh();
- } else {
- input10.visible = false;
- group7.visible = false;
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </input>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter5" style="left:70px; top:5px; width:92px; height:22px; ">
- <caption>마감표 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRADT30303");
- model.setValue("/root/send/srchdata/stocdeptcdnm", combo1.label);
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30301", "XMLSTR", "RPADT30301", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30301", "XMLSTR", "RPADT30301", "", "true","","","","","true", "", "");
- }
- ]]>
- </script>
- </button>
- <button id="button17" class="btn6_letter6" visibility="hidden" style="left:160px; top:5px; width:104px; height:22px; ">
- <caption>수불대장출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ioflag = model.getValue("/root/send/srchdata/ioflag");
- model.setValue("/root/send/srchdata/stocyn", "");
- model.makeValue("/root/send/srchdata/stocprntyn", "Y");
- fPrint1(); //수불대장 조회
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "true","","","","","true", "", "");
- }
-
- model.setValue("/root/send/srchdata/ioflag", ioflag);
- model.removeNodeset("/root/send/data/print1/item");
- model.removeNodeset("/root/main/prcplist/item");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn6_letter6" style="left:166px; top:5px; width:104px; height:22px; ">
- <caption>향정관리대장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*model.setValue("/root/send/srchdata/stocyn", "");
- var cnt = 1;
- var ioflag = model.getValue("/root/send/srchdata/ioflag");
- //model.setValue("/root/send/srchdata/ioflag", "");
- model.makeNode("/root/send/data/print2");
- //for ( var i = 1; i < grd_druglist.rows; i++){
- var i = grd_druglist.row;
- if(model.getValue("/root/main/srchcond/narclist["+i+"]/narccd") == "") {
- messageBox("출력할 향정약품을 ", "C002");
- return;
- }
- model.setValue("/root/send/srchdata/drugcd", model.getValue("/root/main/srchcond/narclist["+i+"]/narccd"));
- submit("TRADT30304", false);
- for ( var j = 1; j <= getNodesetCount("/root/main/prcplist2/item") ; j++){
-
- model.makeNode("/root/send/data/print2/item["+cnt+"]");
-
- model.makeValue("/root/main/prcplist2/item["+j+"]/narccd", model.getValue("/root/main/srchcond/narclist["+i+"]/narccd"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/narcnm", model.getValue("/root/main/srchcond/narclist["+i+"]/narcnm"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/goodspec", model.getValue("/root/main/srchcond/narclist["+i+"]/goodspec"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/specunit", model.getValue("/root/main/srchcond/narclist["+i+"]/specunit"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/custnm", model.getValue("/root/main/srchcond/narclist["+i+"]/custnm"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/hospnm", model.getValue("/root/main/srchcond/narclist["+i+"]/hospnm"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/lncsno", model.getValue("/root/main/srchcond/narclist["+i+"]/lncsno"));
- model.makeValue("/root/main/prcplist2/item["+j+"]/mngtrid", model.getValue("/root/main/srchcond/narclist["+i+"]/mngtrid"));
- //model.setValue("/root/main/prcplist/item["+j+"]/brngfwrdqty", model.getValue("/root/main/srchcond/narclist["+i+"]/brngfwrdqty"));
- //model.setValue("/root/main/prcplist/item["+j+"]/winqty", model.getValue("/root/main/srchcond/narclist["+i+"]/winqty"));
-
- model.copyNode("/root/send/data/print2/item["+cnt+"]", "/root/main/prcplist2/item["+j+"]");
- cnt = cnt + 1;
- model.makeNode("/root/send/data/print2/item["+cnt+"]");
- }
- //}
-
- model.removeNodeset("/root/send/data/print2/item["+cnt+"]");
-
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30304", "XMLSTR", "RPADT30304", "", "false","","","","","true", "", "");
- } else {
- exeReportPreview("RPADT30304", "XMLSTR", "RPADT30304", "", "true","","","","","true", "", "");
- }
-
- model.setValue("/root/send/srchdata/ioflag", ioflag);
- model.removeNodeset("/root/send/data/print2/item");
- model.removeNodeset("/root/main/prcplist2/item");
-
-
- */
-
- if(model.getValue("/root/send/srchdata/prniflag") == "I") {
- model.setValue("/root/send/srchdata/deptinm", "병동");
- } else {
- model.setValue("/root/send/srchdata/deptinm", "");
- }
- if(model.getValue("/root/send/srchdata/prnoflag") == "O") {
- model.setValue("/root/send/srchdata/deptonm", "외래");
- } else {
- model.setValue("/root/send/srchdata/deptonm", "");
- }
- if(model.getValue("/root/send/srchdata/prnaflag") == "A") {
- model.setValue("/root/send/srchdata/deptanm", "원내");
- } else {
- model.setValue("/root/send/srchdata/deptanm", "");
- }
-
- // 20110503 wify 경북대병원 항정관리대장 출력시 조회기간이 멀티로 입력되면 출력을 1일기준으로 출력해야함.
-
- // 20110503 wify 경북대병원 조회기간 날짜 가져오기.
- submit("TRADT30308");
- // alert(instance1.selectNodesXml("/root/init/dayinfo"));
- //// 20112년 12월 13일 김치국
- if (chkbox_day.value == "Y") { //// 기간별 출력에 체크된 경우
- // 조회 일자 찾기
- // var startday = model.getValue("/root/send/srchdata/enddd");
- // var endday = model.getValue("/root/send/srchdata/statdd");
- if( model.getValue("/root/send/srchdata/prtmode") == "Y") { // 대장
- model.setValue("/root/send/srchdata/drugkindnm", "내복약");
- if(model.getValue("/root/send/srchdata/prnnkind") == "N") { //내복약 일지
- model.setValue("/root/send/srchdata/drugkind", "N");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30309", "XMLSTR", "RPADT30309", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30309", "XMLSTR", "RPADT30309", "", "true","","","","","true", "", "");
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "주사약");
- if(model.getValue("/root/send/srchdata/prnmkind") == "M"){ // 주사
- if(model.getValue("/root/send/srchdata/prniflag") == "I" || model.getValue("/root/send/srchdata/prnaflag") == "A" || model.getValue("/root/send/srchdata/prnoflag") == "O") { // 병동 또는 원내 20110812_LABORU_외래 주사도 출력
- model.setValue("/root/send/srchdata/drugkind", "M");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "true","","","","","true", "", "");
- }
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "외용약");
- if( model.getValue("/root/send/srchdata/prnykind") == "Y") { // 외용
- model.setValue("/root/send/srchdata/drugkind", "Y");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "true","","","","","true", "", "");
- }
- }
- }
- } else {
- var dayno = model.getValue("/root/init/dayinfo/base/basedd");
- var ins = instance1.selectNodes("/root/init/dayinfo/base/basedd");
-
- model.setValue("/root/send/srchdata/stocdeptcdnm", combo1.label);
-
- for ( var i = 0 ; i < ins.length; i++) {
- if ( ins.length > i ) {
- // 20110503 wify 경북대병원 instance에 있는 날짜를 가져온다.
- var inss = ins.nextNode();
- // alert(inss.text);
- }
-
- // 20110503 wify 경북대병원 가져온 날짜를 마감일자에 set한다.
- model.setValue("/root/send/srchdata/enddd", inss.text);
-
- if( model.getValue("/root/send/srchdata/prtmode") == "Y") { // 대장
- model.setValue("/root/send/srchdata/drugkindnm", "내복약");
- if(model.getValue("/root/send/srchdata/prnnkind") == "N") { //내복약 일지
- model.setValue("/root/send/srchdata/drugkind", "N");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- // exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "false","","","","","false", "", "");
- exeReportPreview("RPADT30309", "XMLSTR", "RPADT30309", "", "false","","","","","false", "", "");
- } else {
- // exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "true","","","","","true", "", "");
- exeReportPreview("RPADT30309", "XMLSTR", "RPADT30309", "", "true","","","","","true", "", "");
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "주사약");
- if(model.getValue("/root/send/srchdata/prnmkind") == "M"){ // 주사
- if(model.getValue("/root/send/srchdata/prniflag") == "I" || model.getValue("/root/send/srchdata/prnaflag") == "A" || model.getValue("/root/send/srchdata/prnoflag") == "O") { // 병동 또는 원내 20110812_LABORU_외래 주사도 출력
- model.setValue("/root/send/srchdata/drugkind", "M");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- // exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "false","","","","","false", "", "");
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "false","","","","","false", "", "");
- } else {
- // exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "true","","","","","true", "", "");
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "true","","","","","true", "", "");
- }
- }
- }
- model.setValue("/root/send/srchdata/drugkindnm", "외용약");
- if( model.getValue("/root/send/srchdata/prnykind") == "Y") { // 외용
- model.setValue("/root/send/srchdata/drugkind", "Y");
- submit("TRADT30306");
- submit("TRADT30307");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- // exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "false","","","","","false", "", "");
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "false","","","","","false", "", "");
- } else {
- // exeReportPreview("RPADT30307", "XMLSTR", "RPADT30307", "", "true","","","","","true", "", "");
- exeReportPreview("RPADT30308", "XMLSTR", "RPADT30308", "", "true","","","","","true", "", "");
- }
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button19" class="btn6_letter6" visibility="hidden" style="left:70px; top:5px; width:104px; height:22px; ">
- <caption>수불대장출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ioflag = model.getValue("/root/send/srchdata/ioflag");
- model.setValue("/root/send/srchdata/stocyn", "");
- fPrint1(); //수불대장 조회
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "false","","","","","false", "", "");
- } else {
- exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "true","","","","","true", "", "");
- }
-
- model.setValue("/root/send/srchdata/ioflag", ioflag);
- model.removeNodeset("/root/send/data/print1/item");
- model.removeNodeset("/root/main/prcplist/item");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn6_letter5" style="left:70px; top:5px; width:92px; height:22px; ">
- <caption>향정 일지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/send/srchdata/prniflag") == "I") {
- model.setValue("/root/send/srchdata/deptinm", "병동");
- } else {
- model.setValue("/root/send/srchdata/deptinm", "");
- }
- if(model.getValue("/root/send/srchdata/prnoflag") == "O") {
- model.setValue("/root/send/srchdata/deptonm", "외래");
- } else {
- model.setValue("/root/send/srchdata/deptonm", "");
- }
- if(model.getValue("/root/send/srchdata/prnaflag") == "A") {
- model.setValue("/root/send/srchdata/deptanm", "원내");
- } else {
- model.setValue("/root/send/srchdata/deptanm", "");
- }
-
-
- if( model.getValue("/root/send/srchdata/prtmode") != "Y") {// 일지
- if(model.getValue("/root/send/srchdata/prniflag") == "I") {
- model.setValue("/root/send/srchdata/deptnm", "병동약국");
- model.setValue("/root/send/srchdata/ioflag", "I")
- fPTDrugPnt();
- }
- if(model.getValue("/root/send/srchdata/prnoflag") == "O") {
- model.setValue("/root/send/srchdata/deptnm", "외래약국");
- model.setValue("/root/send/srchdata/ioflag", "O")
- fPTDrugPnt();
- }
- if(model.getValue("/root/send/srchdata/prnaflag") == "A") {
- model.setValue("/root/send/srchdata/deptnm", "원내약국");
- model.setValue("/root/send/srchdata/ioflag", "")
- fPTDrugPnt();
- }
- }
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/send/srchdata/preview" class="checkbox_search" overflow="visible" appearance="full" cols="2" rows="1" style="left:0px; top:8px; width:68px; height:14px; border-style:none; ">
- <choices>
- <item>
- <label>미리보기</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <button id="btn_save" class="btn4_letter2" style="left:1080px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. 행추가, 행복사, 행삭제 적용후 저장버튼 클릭시 체크되어야하는 조건
- - 마약향정 구분(narcflag)
- - 병동약국, 외래약국 마감구분(ioflag)
- - 마약일 경우 마감구분 (endflag or rtnendflag)
- - 선택된 약품코드값(drugcd)
- */
- if(model.getValue("/root/send/srchdata/narcflag") =="M") {
- var data = grd_prcplist.getUpdateData();
- }else if(model.getValue("/root/send/srchdata/narcflag") =="H") {
- var data = grd_pshchlist.getUpdateData();
- }
-
- model.setValue("/root/send/data/narcstocdata", data);
- if(submit("TXADT30302")){
- submit("TRADT30302");
- }
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:935px; top:5px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*if (model.getValue("/root/main/srchcond/narclist/allendyn") != "Y" && model.getValue("/root/send/srchdata/ioflag") == ""){
- messageBox("병동 외래 구분을 선택하십시오. ","C999");
- return;
- }*/
- if (model.getValue("/root/send/srchdata/narcflag") == "M" && model.getValue("/root/send/srchdata/endflag") == "A") {
- messageBox("마약은 마감구분을 전체로 마감할 수 없습니다.", "C999");
- return;
- }
-
- if (model.getValue("/root/send/srchdata/stocdeptcd") == "" || model.getValue("/root/send/srchdata/stocdeptcd") == "T"){
- messageBox("실출고부서를 선택하세요. ","C999");
- return;
- }
-
- if ( messageBox("마감 작업을 ","Q003")==6 ) {
-
- /*
- if(model.getValue("/root/main/srchcond/narclist/allendyn") == "Y" && model.getValue("/root/send/srchdata/ioflag") == "") {
- model.setValue("/root/send/srchdata/ioflag", "O");
- submit("TXADT30301");
- submit("TRADT30302");
-
- model.setValue("/root/send/srchdata/ioflag", "I");
- submit("TXADT30301");
- submit("TRADT30302");
-
- } else {
-
- submit("TXADT30301");
- submit("TRADT30302");
- }
- */
-
- /*
- 20091014 이선경 수정 : 입원환자는 병동약국으로, 외래환자는 외래약국으로 마감하지 않고
- 실제 약이 조제, 불출이 어디에서 되었나를 가지고 출고마감하도록 수정
- 처방전출력화면에서 실출고부서(외래약국조제실, 병동약국조제실, 약무실(약제팀))를 어디로 하느냐에 따라 출고마감을 하도록 수정함
- 업무상으로 외래약국에서 입원환자의 약을 조제, 불출할 수도 있고 병동약국에서 외래환자의 약을 조제,불출할 수도 있음
- 그래서 어느 출고부서로 출고마감을 하던지 입원환자마감, 외래환자마감을 모두 해야함
- 단, 주사제는 모두 병동약국 또는 약무실(약제팀)으로 마감됨
- */
-
- // 20110217_laboru_경북대병원_향정 약,주사 마감시 마감 구분자 추가
- if(model.getValue("/root/send/srchdata/srchdrugkind") == "M") {
- model.makeValue("/root/send/srchdata/magamflag", "1"); // 주사만
- } else if(model.getValue("/root/send/srchdata/srchdrugkind") == "N','Y") {
- model.makeValue("/root/send/srchdata/magamflag", "2"); // 약만
- } else {
- model.makeValue("/root/send/srchdata/magamflag", "3"); // 약, 주사 모두
- }
- submit("TXADT30301");
- submit("TRADT30302");
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" visibility="hidden" style="left:1135px; top:5px; width:56px; height:22px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var data = model.instances(0).selectNodes( "/root/main/prcplist/item" );
- //model.setValue("/root/send/data/narcstocdata", getNodeListCSV(data));
- submit("TXADT30305");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter4" style="left:580px; top:5px; width:80px; height:22px; ">
- <caption>재고관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT30700",0,0,10,"SMADT30700","","");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter4" disabled="false" style="left:855px; top:5px; width:80px; height:22px; ">
- <caption>재고반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.setValue("/root/send/srchdata/stocyn", "Y"); // stocyn = "Y" 인 상태에서 TRADT30302 호출시 재고에 불출 수량이 빠지지 않는 오류 발생.
- //fPrint1(); //수불대장 조회
- if(combo1.value == "T" && radio4.value != "A") {
- messageBox("실출고부서를 선택하세요", "E999");
- return;
- }
-
- if(model.getValue("/root/send/srchdata/narcflag") == "M") {
- model.setValue("/root/send/srchdata/m_drugkind", "N','Y','M");
- model.setValue("/root/send/srchdata/h_drugkind", "");
- } else if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- model.setValue("/root/send/srchdata/m_drugkind", "");
- model.setValue("/root/send/srchdata/h_drugkind", "N','Y','M");
- }
-
- submit("TRADT30311");
- ]]>
- </script>
- </button>
- <group id="group5" visibility="hidden" style="left:275px; top:4px; width:300px; height:23px; ">
- <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" el3lipsewidth="20" ellipseheight="20" style="left:0px; top:2px; width:300px; height:21px; background-color:#f2fafe; border-color:#7cbbdd; "/>
- <select id="checkbox4" ref="/root/send/srchdata/prniflag" overflow="visible" appearance="full" style="left:5px; top:4px; width:47px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- checkbox8.deselect(0);
- ]]>
- </script>
- </select>
- <select id="checkbox5" ref="/root/send/srchdata/prnoflag" overflow="visible" appearance="full" style="left:53px; top:4px; width:47px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- checkbox8.deselect(0);
- ]]>
- </script>
- </select>
- <select id="checkbox1" ref="/root/send/srchdata/prnnkind" overflow="visible" appearance="full" style="left:151px; top:4px; width:47px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>내복</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send/srchdata/prnykind" overflow="visible" appearance="full" style="left:199px; top:4px; width:47px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>외용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox6" ref="/root/send/srchdata/prnmkind" overflow="visible" appearance="full" style="left:247px; top:4px; width:47px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>주사</label>
- <value>M</value>
- </item>
- </choices>
- </select>
- <select id="checkbox8" ref="/root/send/srchdata/prnaflag" overflow="visible" appearance="full" style="left:101px; top:4px; width:47px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>원내</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- checkbox4.deselect(0);
- checkbox5.deselect(0);
- ]]>
- </script>
- </select>
- </group>
- <group id="group6" visibility="hidden" style="left:995px; top:0px; width:85px; height:27px; ">
- <button id="button3" class="btn4_letter4" style="left:0px; top:5px; width:80px; height:22px; ">
- <caption>마감취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if ( model.getValue("/root/send/srchdata/ioflag") ==""){
- messageBox("병동 외래 구분을 선택하십시오. ","C999");
- return;
- }
- */
- if ( model.getValue("/root/send/srchdata/narcflag") == "M" && model.getValue("/root/send/srchdata/endflag") == "A") {
- messageBox("마약은 마감구분을 전체로 마감취소할 수 없습니다.", "C999");
- return;
- }
-
- if (model.getValue("/root/send/srchdata/stocdeptcd") == "" || model.getValue("/root/send/srchdata/stocdeptcd") == "T"){
- messageBox("실출고부서를 선택하세요. ","C999");
- return;
- }
-
- if ( messageBox("마감 취소 작업을 ","Q003")==6 ) {
- submit("TXADT30303");
- submit("TRADT30302");
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="button12" class="btn3_letter6" style="left:660px; top:5px; width:104px; height:22px; ">
- <caption>마감시간관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPADT64100");
- ]]>
- </script>
- </button>
- <button id="button13" class="btn3_letter5" style="left:760px; top:5px; width:92px; height:22px; ">
- <caption>마약일계표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT30900",0,0,10,"SMADT30900","","");
- ]]>
- </script>
- </button>
- <bool id="bool1" visibility="hidden" checkvalue="Y,N" ref="/root/send/srchdata/prtmode" style="left:171px; top:6px; width:15px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/narcflag") == "H") {
- if(model.getValue("/root/send/srchdata/prtmode") == "Y") {
- caption9.visible = true;
- input5.visible = true;
- caption9.refresh();
- input5.refresh();
- button7.disabled = false;
- button8.disabled = true;
- } else {
- caption9.visible = false;
- input5.visible = false;
- caption9.refresh();
- input5.refresh();
- button7.disabled = true;
- button8.disabled = false;
- }
- } else {
- caption9.visible = false;
- input5.visible = false;
- caption9.refresh();
- input5.refresh();
- }
- ]]>
- </script>
- </bool>
- </group>
- <caption id="txt_narc" style="left:820px; top:0px; width:368px; height:20px; ">* 재고관리, 수불대장출력, 마감표출력은 반드시 재고반영 후 사용</caption>
- <caption id="txt_phy" visibility="hidden" style="left:825px; top:0px; width:350px; height:20px; ">* 재고관리, 향정관리대장, 향정일지는 반드시 재고반영 후 사용</caption>
- </xhtml:body>
- </xhtml:html>
|