123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283 |
- <?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>
- <sumlist>
- <suminfo>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <sumqty/>
- </suminfo>
- </sumlist>
- <prcplist>
- <prcpinfo>
- <flag1/>
- <flag2/>
- <flag3/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <wardcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <drugno/>
- <execdt/>
- <drugsumdt/>
- <prcpno/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </prcplist>
- <sumterm>
- <suminfo>
- <sumflag/>
- <sumdt/>
- <sumfromdd/>
- <sumfromtm/>
- <sumtodd/>
- <sumtotm/>
- <sumdeptnm/>
- <sumnm/>
- </suminfo>
- </sumterm>
- <detlprcplist>
- <detlprcpinfo>
- <ioflagnm/>
- <ioflag/>
- <prcpno/>
- <drugno/>
- <execdd/>
- <exectm/>
- <drugsumdt/>
- <execdeptnm/>
- <execdeptcd/>
- <issdeptcd/>
- <issdeptcdnm/>
- </detlprcpinfo>
- </detlprcplist>
- <barlist>
- <prcpinfo>
- <flag1/>
- <flag2/>
- <flag3/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <wardcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <drugno/>
- <execdt/>
- <drugsumdt/>
- <prcpno/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </barlist>
- <barcdprntsetup/>
- <prnt>
- </prnt>
- </main>
- <send>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchfromtm>0000</srchfromtm>
- <srchtodd/>
- <srchtotm>2400</srchtotm>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd>A</prcpkindcd>
- <sumdt/>
- <srchorddeptcd/>
- <srchorddeptflag/>
- <userid/>
- <instcd/>
- <srchdeptnm/>
- <stocdeptcd>3242107000</stocdeptcd>
- <pid/>
- <drugcd/>
- <sumflag/>
- <orderby/>
- <expnflag/>
- <prcpno/>
- <ptpall/>
- <drugno/>
- </srchdata>
- <deptdata>
- <deptinfo>
- <sumorddeptcd/>
- <sumorddeptflag/>
- </deptinfo>
- </deptdata>
- <srchdetlinfo>
- <srchpid/>
- <prcpdd/>
- <orddeptflag/>
- <prcpno/>
- </srchdetlinfo>
- <srchbcinfo>
- <srchdrugdd/>
- <srchdrugno/>
- <srchioflag/>
- <srchbcno1/>
- </srchbcinfo>
- <scrnid/>
- <srchdept>
- <deptcd/>
- </srchdept>
- <srchpid>
- <sumdt/>
- <srchorddeptcd/>
- <pid/>
- <drugno/>
- </srchpid>
- </send>
- <init>
- <sumdept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- </dept>
- </sumdept>
- <orddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- </dept>
- </orddept>
- <sumorddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- <sumkind/>
- </dept>
- </sumorddept>
- <allsumorddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- <sumkind/>
- </dept>
- </allsumorddept>
- </init>
- <hidden>
- <popupmenu>
- <menu>
- <label>선택약품 개별집계</label>
- <func>fIndCaseEnd</func>
- </menu>
- </popupmenu>
- <stocdeptlist>
- <deptlist>
- <stocdeptcd/>
- <stocdeptnm/>
- </deptlist>
- </stocdeptlist>
- </hidden>
- <temp>
- <ret/>
- <sumrslt>
- <sumdt/>
- </sumrslt>
- <prntinfo>
- <sumflagnm>약품</sumflagnm>
- <wardnm>외래주사실</wardnm>
- <sumfromdd>20070901</sumfromdd>
- <sumfromtm>0000</sumfromtm>
- <sumtodd>20070930</sumtodd>
- <sumtotm>2400</sumtotm>
- <sumflag/>
- <usetype/>
- <sumdt/>
- <sumtotalnm>
- <![CDATA[< 향정신성 및 고가의약품 총집계량 >]]>
- </sumtotalnm>
- </prntinfo>
- <prntprcpinfo>
- <suminfo>
- <wardnm/>
- <prcpcd/>
- <prcpnm/>
- <prcpflag/>
- <sumqty/>
- <spcldurg/>
- <expninjyn/>
- <expnyn/>
- <keepmthdyn/>
- <keepmthd/>
- <divflag/>
- </suminfo>
- <sumtitle>
- <drugtype/>
- <drugcd/>
- <hngnm/>
- <sumqty/>
- <spcltype/>
- </sumtitle>
- <expnlist>
- <prcpdd/>
- <drugcd/>
- <drugnm/>
- <drugno/>
- <roomcd/>
- <orddeptnm/>
- <pid/>
- <hngnm/>
- <prcpqty/>
- <prcpdayno/>
- <sumqty/>
- </expnlist>
- </prntprcpinfo>
- <prntudsinfo>
- <injinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </injinfo>
- <exuinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </exuinfo>
- <ptpinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </ptpinfo>
- </prntudsinfo>
- <prntpatprcp>
- <prcpdrug>
- <roomcd/>
- <hngnm/>
- <pid/>
- <rrgstno/>
- <sna/>
- <drugno/>
- <drugcd/>
- <prcpvol/>
- <prcpqty/>
- <prcptims/>
- <prcpkindcd/>
- <drughngnm/>
- <prcpdayno/>
- <mthdcnts/>
- </prcpdrug>
- <resn>
- <resnnm/>
- <resncnts/>
- <durdrugcd/>
- </resn>
- </prntpatprcp>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchfromtm>0000</srchfromtm>
- <srchtodd/>
- <srchtotm>2400</srchtotm>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd>A</prcpkindcd>
- <sumdt/>
- <srchorddeptcd/>
- <srchorddeptflag/>
- <userid/>
- <instcd/>
- <srchdeptnm/>
- <stocdeptcd>3242107000</stocdeptcd>
- <pid/>
- <drugcd/>
- <sumflag/>
- </srchdata>
- <sumprntyn>
- <info>
- <prntyn/>
- </info>
- </sumprntyn>
- <barcodeprt>Y</barcodeprt>
- <sumpid>
- <pid/>
- <drugno/>
- <roomcd/>
- </sumpid>
- <filllistno>Y</filllistno>
- <fillinstcd/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(0, 50, 1179, 678, "grp_prnt");
- grd_deptlist.fixedcellcheckbox(0,0) = true;
- datagrid3.fixedcellcheckbox(0,0) = true;
-
- model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- model.setValue("/root/temp/srchdata/srchfromdd", getCurrentDate());
- model.setValue("/root/temp/srchdata/srchtodd", getCurrentDate());
- ////////2015.9.5 김치국 칠곡은 Filllist 라벨 출력을 안하는걸로 세팅
- model.setValue("/root/temp/fillinstcd", getUserInfo("dutplceinstcd"));
- var fillinstcd = model.getValue("/root/temp/fillinstcd");
- if( fillinstcd == "032") {
- model.setValue("/root/temp/barcodeprt", "");
- }
- //////
-
- model.refresh();
- submit("TRADT10324");
-
- //바코드프린터설정 초기화
- model.setValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101", false);
-
- var comm = model.getValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/comm02/comm");
- var prntkind = model.getValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- if(comm == "2") {
- model.setValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/comm02/comm", "1");
- }
- if(prntkind == "1") {
- model.setValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind", "5");
- }
-
- //집계표 출력시 고가, 향정 단독 출력물 출력여부 조회
- submit("TRADT10342");
-
- // 20100203_laboru_불출부서 visibility 막기
- submit("TRADT00704");
- if(model.getValue("/root/hidden/stocdeptlist/deptlist/stocdeptcd") == "Y") {
- cmb_stocdeptcd.visible = false;
- caption21.visible = false;
- }
-
- model.refresh();
-
-
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = grdBaseColHidn("D");
- //1회 기준
- if( colHidnValue == "C") {
- grd_prcplist.colHidden(grd_prcplist.colRef("prcpqty")) = true;
- datagrid2.colHidden(datagrid2.colRef("prcpqty")) = true;
- } else {
- grd_prcplist.colHidden(grd_prcplist.colRef("prcpqty2")) = true;
- datagrid2.colHidden(datagrid2.colRef("prcpqty2")) = true;
- }
- // 20101229 wify 경북대병원 영양수액 추가를 위한 flag
- model.makeNode("/root/send/srchdata/spclflag1");
- model.makeNode("/root/send/srchdata/spclflag2");
- model.makeNode("/root/send/srchdata/spclflag3");
- ]]>
- </script>
- <script type="javascript" ev:event="onPrintFinished">
- <![CDATA[
- cleanIViewer();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var sBfAllSumDt = "";
- var sAfAllSumDt = "";
- var gCurrPrtObj = null; //현재 출력 IViewer
-
- //=========================================================================================================
- // 부서코드의 선택 여부를 판별
- // 선택사항이 없을때 : false, 선택사항이 있을때 : true
- //=========================================================================================================
- function fSelDeptchk(){
- for(var i =grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y") return true;
- }
- return false;
- }
- //=========================================================================================================
- // 선택환자 개별마감
- //=========================================================================================================
- function fIndCaseEnd(){
- for(var i =grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- model.setValue("/root/init/orddept/dept["+i+"]/chk", "N");
- }
- var deptrow = grd_deptlist.selectedRow(0);
- model.setValue("/root/init/orddept/dept["+deptrow+"]/chk", "Y");
-
- var row = grd_prcplist.selectedRow(0);
- model.setValue("/root/send/srchdata/pid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
- model.setValue("/root/send/srchdata/drugcd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno")); //2010.07.22 pymi
- model.refresh();
-
- btn_sum.dispatch("DOMActivate");
- }
-
- function fSelSum(){
- model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
- model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
- model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
- model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
- model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
- model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TRADT10330");
- }
-
- //Fill List 전체 출력
- function fPrtAllFillList(prtPath) {
- var iCnt = getNodesetCount(prtPath);
- var tmpRptStr = "";
- for(var i = 1; i <= iCnt; i++){
- if ( model.getValue(prtPath+"["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 Fill List로 출력 가능
- ///if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/orderby", "");
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue(prtPath+"["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue(prtPath+"["+i+"]/depthngnm"));
-
- //submit("TRADT10332");
- //////////////// 2015.6.22 김치국 fillist 출력 유무 체크하기
- var filllistno = model.getValue("/root/temp/filllistno");
- if (filllistno == 'Y') {
- submit("TRADT10332");
- tmpRptStr = "report_"+i;
- if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
- tmpRptStr += "10302";
- gCurrPrtObj = "ivr_"+tmpRptStr;
- makeReportIViewer(0,0,10, 10,tmpRptStr);
- exeRexPreview("RPADT10302", "XMLSTR", "", "", "true","","","","","", "", tmpRptStr);
- //exeReportPreview("RPADT10302", "XMLSTR", "", "", "true","","","","","true");
- }
- if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
- //exeReportPreview("RPADT10303", "XMLSTR", "", "", "true","","","","","true");
- tmpRptStr += "10303";
- gCurrPrtObj = "ivr_"+tmpRptStr;
- makeReportIViewer(0,0,10, 10, tmpRptStr);
- exeRexPreview("RPADT10303", "XMLSTR", "", "", "true","","","","","", "", tmpRptStr);
- }
- if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
- //exeReportPreview("RPADT10304", "XMLSTR", "", "", "true","","","","","true");
- tmpRptStr += "10304";
- gCurrPrtObj = "ivr_"+tmpRptStr;
- makeReportIViewer(0,0,10, 10, tmpRptStr);
- exeRexPreview("RPADT10304", "XMLSTR", "", "", "true","","","","","", "", tmpRptStr);
- }
- }
- ////////2015년 6월 16일 라벨출력 김치국
- // debugger;
- fPrintBigbar();
-
- //}else{
-
- // messageBox("UDS 집계항목을", "C002");
- // break;
- //}
- }
- }
- }
-
- //Fill list 선택된 병동만 출력
- function fPrtCheckedFillList(prtPath) {
- var arrDept = chk_deptcd.value.split("|");
- var tmpRptStr = "";
- for (var i = 0; i < arrDept.length; i++) {
- model.setValue("/root/send/srchdata/orderby", "");
- model.setValue("/root/send/srchdata/srchorddeptcd", arrDept[i]);
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue(prtPath+"[deptcd="+ arrDept[i] +"]/depthngnm"));
-
- //submit("TRADT10332");
- //////////////// 2015.6.22 김치국 fillist 출력 유무 체크하기
- var filllistno = model.getValue("/root/temp/filllistno");
- if (filllistno == 'Y') {
- submit("TRADT10332");
- tmpRptStr = "report_"+i;
- if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
- tmpRptStr += "10302";
- gCurrPrtObj = "ivr_"+tmpRptStr;
- makeReportIViewer(0,0,10, 10,tmpRptStr);
- exeRexPreview("RPADT10302", "XMLSTR", "", "", "true","","","","","", "", tmpRptStr);
- //exeReportPreview("RPADT10302", "XMLSTR", "", "", "true","","","","","true");
- }
- if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
- //exeReportPreview("RPADT10303", "XMLSTR", "", "", "true","","","","","true");
- tmpRptStr += "10303";
- gCurrPrtObj = "ivr_"+tmpRptStr;
- makeReportIViewer(0,0,10, 10, tmpRptStr);
- exeRexPreview("RPADT10303", "XMLSTR", "", "", "true","","","","","", "", tmpRptStr);
- }
- if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
- tmpRptStr += "10304";
- //exeReportPreview("RPADT10304", "XMLSTR", "", "", "true","","","","","true");
- gCurrPrtObj = "ivr_"+tmpRptStr;
- makeReportIViewer(0,0,10, 10, tmpRptStr);
- exeRexPreview("RPADT10304", "XMLSTR", "", "", "true","","","","","", "", tmpRptStr);
- }
- }
- fPrintBigbar();
- }
- }
-
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- //20101221 wify 경북대병원 라벨출력방식을 rexpert로 변경
- //open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- open("SPZUR00300_바코드프린터설정_knuh.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- // 20101221 wify 경북대병원 라벨출력방식을 rexpert로 변경
- function fLBLPrintR() {
- //alert("lblprint");
- // Comm 설정
- //CommAX.CommPort = "1"; // 출력 Port
- //CommAX.Settings = "9600,n,8,1"; // Comm 설정
-
- /*
- ex) barPrt.PrnKind = 0; //ZEBRA로 설정됨
- barPrt.PrnKind = 1; //ZEBRAH로 설정됨
- barPrt.PrnKind = 4; //항목에 없으므로 ZEBRA로 설정됨
- barPrt.PrnKind = "ZEBRAH"; //ZEBRAH로 설정됨
- barPrt.PrnKind = "SATO(CT400)"; //SATO(CT400)로 설정됨
- barPrt.PrnKind = "ZebraH"; //대소문자에 상관 없음. ZEBRAH로 설정됨
- */
-
- PrnKind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- PrnMarginLeft = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/blank/left");
- PrnMarginTop = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/blank/top");
- var commkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind")
-
-
- //프린터 포트명, 혹은 네트웍 공유 프린터 명
- if(commkind == "01") {
- CommAX.PrtNm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/comm01/setupval");
- }
-
- var reprint ="";
- var iPoint=0;
- //페이지번호 조회
- var iPageCnt = 0;
-
- for(iPoint = 1; iPoint <= getNodesetCount("/root/temp/prntpat/prcpdrug") ; iPoint++){
- if(model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/pid") != "" ) {
- iPageCnt++;
- //////////////////////////////////////////////////
- // 라벨 상단내용 //
- /////////////////////////////////////////////////
- //병동
- model.setValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/wardnm" ,model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/wardnm") + " / " + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/roomcd"));
- //환자번호
- model.setValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/pid", "등록번호:" + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/pid") );
- //진료과
- model.setValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/orddeptnm" , model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/orddeptnm") + "/" + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/medispclidnm") + "/" + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/atdoctidnm") );
- //라벨출력일
- var lbldate = getCurrentDate();
- lbldate = lbldate.toDate().getDateFormat("YYYY/MM/DD") ;
- model.makeValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/lbldate" , lbldate);
- }
- }
-
- // 20100507_laboru_네임 카드 라벨 .
- //makeReportPreview(0,0,10, 10, "");
- //fPrintRexbar("RFADT10310");
-
- // 20100507_laboru_네임 카드 라벨
- if (arguments[0] == "undefined") {
- makeReportPreview(0,0,10, 10, "");
- fPrintRexbar("RFADT10310");
- } else {
- makeReportIViewer(0,0,10, 10, arguments[0]);
- fPrintRex("RFADT10310", "undefined", "undefined", "undefined", "undefined", "undefined", arguments[0]);
- }
- model.refresh();
- }
-
- /**
- 생성된 IViewer삭제
- **/
- function cleanIViewer() {
- if (arguments[0] == "undefined" || arguments[0] == undefined) { //파라미터가 없으면 현재 gCurrPrtObj변수로 IViewer를 삭제하고
- var o = document.all("ivr_"+gCurrPrtObj);
- if (o != null) {
- body.removeChild("ivr_"+gCurrPrtObj);
- }
- } else { //파라미터가 존재하면 파라미터 배열의 IViewer를 삭제함
- if (arguments[0].indexOf("|") != -1)
- return;
-
- var arr = arguments[0].split("|");
- for (var i in arr) {
- var o = document.all("ivr_"+arr[i]);
- if (o != null) {
- body.removeChild("ivr_"+arr[i]);
- }
- }
- }
- gCurrPrtObj = null;
- }
-
- /**
- * @-----------------------------------------------------------------------------------
- * @desc : 레포트 미리보기 Object를 생성한다.
- * @param :
- * @return :
- * @-----------------------------------------------------------------------------------
- */
- function makeReportIViewer(left, top, width, height, iViewerName){
- if(left==null || top==null || width==null || height==null){
- messageBox("미리보기 크기정보가", "I004");
- }else{
- if(iViewerName != null && iViewerName != ""){
- if(document.all("ivr_"+iViewerName) == null){
- if(document.all("grp_biz") == null){
- body.createChild("xforms:iviewer", "id:ivr_"+iViewerName+"; src:../../../com/commonweb/xrw/SPZUR00100_보고서.xrw; left:"+left+"px; top:"+top+"px; width:"+width+"px; height:"+height+
- "px;");
- }else{
- grp_biz.createChild("xforms:iviewer", "id:ivr_"+iViewerName+"; src:../../../com/commonweb/xrw/SPZUR00100_보고서.xrw; left:"+left+"px; top:"+top+"px; width:"+width+"px; height:"+height+
- "px;");
- }
- model.refresh();
- }
- }
- }
- }
-
- /**
- * 라벨출력
- */
- function fLBLPrint() {
- //alert("lblprint");
- // Comm 설정
- //CommAX.CommPort = "1"; // 출력 Port
- //CommAX.Settings = "9600,n,8,1"; // Comm 설정
-
- /*
- ex) barPrt.PrnKind = 0; //ZEBRA로 설정됨
- barPrt.PrnKind = 1; //ZEBRAH로 설정됨
- barPrt.PrnKind = 4; //항목에 없으므로 ZEBRA로 설정됨
- barPrt.PrnKind = "ZEBRAH"; //ZEBRAH로 설정됨
- barPrt.PrnKind = "SATO(CT400)"; //SATO(CT400)로 설정됨
- barPrt.PrnKind = "ZebraH"; //대소문자에 상관 없음. ZEBRAH로 설정됨
- */
-
- PrnKind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- PrnMarginLeft = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/blank/left");
- PrnMarginTop = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/blank/top");
- var commkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind")
-
- if ( PrnKind ==7 ) {
- CommAX.PrnKind =4;
- } else {
- CommAX.PrnKind =PrnKind;
- }
-
- //포트 종류 설정
- if(commkind == "02") {
- CommAX.PortNm = 1;
- } else {
- CommAX.PortNm = 2;
- }
-
- //프린터 포트명, 혹은 네트웍 공유 프린터 명
- if(commkind == "01") {
- CommAX.PrtNm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/comm01/setupval");
- }
-
- //alert("commax");
- //CommAX.Settings = "127.0.0.1"; // Comm 설정
- var sSndMsg ="";
- var reprint ="";
- var iPoint=0;
- //if ( CommAX.PortOpen() == true) {
- //alert("라벨 프린트 Open");
- //CommAX.SendMessage("^XA^SEE:UHANGUL.DAT^FS^CWQ,E:AAAAA.FNT^FS^CI26^FO100,50^AQN,40,40^FD이훈재ABCDEFGHI1234^FS^FO100,100^AQN,40,40^FD(주)한글인쇄테스트ABCDEFGHI1234^FS^FO100,150^AQN,40,40^FD A B C D E F G H I^FS^CI0^FO100,200^A0,50,50^FDPRINTING TEST^FS^FO100,250^BY2^B3N,N,100,Y,N,N^FD1232423423^FS^XZ");
-
- //CommAX.SendMessage("^XA^LH0,0^PRB^CF0,89^FO10,05^FDSH07^FS^CF0,70^FO260,05^FD10/10^FS^CF0,89^FO50,80^FD- 234567^FS^CFA20,20^FO10,150^FD1234567890^FS~DGGRAPH001,00504,021,0078000000E00000800000F01E000C00201FFC0000003C0000007007FFC00000F01E000C00201FFC000000006000003003000000C0701C00180060180C03000FFFF00FFE3003000000C0701C00180060180C0300061000061C300300000300783C003001E0101800C0007E000018300300C00300783C003001E0101800C000C30000303001FFE006006C6C006003600018006001818000603000180006006C6C006003600018006000C30000C03000180004006C6C00C0066000300020007E0001803000180004006C6C00C006600030002000180003003000181E0C0066CC0180186000600030001800060030FFFFFF0C0066CC018018600060003000181E1800207000000C00638C0300306000C00030FFFFFF0000000000000C00638C0300306000C000307000000000000000000400638C060060600180002000000000FFF00038000400638C0600606001800020007E00006060007E000600610C0C007FFC0180006000C30000006000C3000600610C0C007FFC018000600181800000400181800300600C18000060018000C001818000FFE00181800300600C18000060018000C001818000600001818000C0F03E300001F80180030000C30000600000C30000C0F03E300001F801800300007E00006060007E00000000000000000000000000003800003FF0003800000000000000000000000000^FO140,150^XGGRAPH001,1,1^FS~DGGRAPH002,00216,009,0000700000000001C00000380000000000E00000180000000000600000180000000000600FFF1807FFE0000060060E180300C03FFC60001C180000C0181C60003018000080001C600060180FFFC000186000D018070000001860018C180300000C18600307180300C006106606031801FFE006207F18001800000006006000001801860006036000001800C300061C6000001000C300FFE06000E00000C30070006000300000C31E000060003000FFFFFF000060003000700000000060003018000000000060001FFC000000000060000000000000000040^FO320,150^XGGRAPH002,1,1^FS^CFA20,20^FO10,180^FD2007-04-25^FS~DGGRAPH003,00240,010,002001E00000E0000080002001E000007007FFC0006006380000300300000060063800303003000001E00C1830183003000001E00C181818300300C003600800181BF001FFE0036008001FF830001800066018001818300018000660180018183000180018601BF0181BF000181E18601BF01FF830FFFFFF30601C1810103070000030601C180000200000006060180C0000000000006060180C0007000038007FFC0C0C000FC0007E007FFC0C0C00186000C30000600E1800303001818000600E1800303001818001F803E000303001818001F803E000186000C30000000000000FC0007E0000000000000700003800^FO140,180^XGGRAPH003,1,1^FS^CFE10,10^FO10,210^FDStomach 2/10^FS^CFA20,20^FO10,240^FDBiopsh^FS^PQ1^XZ");
- //CommAX.PortClose();
- //return;
- //페이지번호 조회
- var iPageCnt = 0;
-
- for(iPoint = 1; iPoint <= getNodesetCount("/root/temp/prntpat/prcpdrug") ; iPoint++){
- if(model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/pid") != "" ) {
- //시작(X, Y)
- sSndMsg += astfStartFormat(0, 0);
- iPageCnt++;
- //////////////////////////////////////////////////
- // 라벨 상단내용 //
- /////////////////////////////////////////////////
- //병동
- sSndMsg += astfPrintOut(20, 60, 3, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/wardnm") + " / " + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/roomcd"),"");
- //병실
- //sSndMsg += astfPrintOut(260, 60, 3, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/roomcd"),"");
- //환자명
- sSndMsg += astfPrintOut(330, 60, 6, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/hngnm"),"");
- //환자번호
- sSndMsg += astfPrintOut(30, 115, 3, "등록번호 " + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/pid"),"");
- //성별나이
- sSndMsg += astfPrintOut(330, 115, 3, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/sna"),"");
- //진료과
- sSndMsg += astfPrintOut(30, 165, 3, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/orddeptnm") + "/" + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/medispclidnm") + "/" + model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/atdoctidnm"),"");
- //주치의
- //sSndMsg += astfPrintOut(230, 165, 3, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/atdoctidnm") + "/","");
- //담당의
- //sSndMsg += astfPrintOut(330, 165, 3, model.getValue("/root/temp/prntpat/prcpdrug["+iPoint+"]/medispclidnm"),"");
- //라벨출력일
- var lbldate = getCurrentDate();
- lbldate = lbldate.toDate().getDateFormat("YYYY/MM/DD") ;
- sSndMsg += astfPrintOut(280, 225, 3, lbldate,"");
-
- //종료(매수)
- sSndMsg += astfEndFormat(0);
- //alert(sSndMsg);
- //CommAX.SendMessage(sSndMsg);
- if(commkind == "01") { //COM 포트가 아닐때
- CommAX.SendMsg(sSndMsg);
- } else {
- CommAX.SendMessage(sSndMsg);
- }
-
- fSleep(500);
- sSndMsg = "";
- }
- }
-
- CommAX.PortClose();
- model.refresh();
- //}
- }
-
- function fPrintRex(rexnm, closeYn, printCount, dataXPath, paramsXPath, infoXPath, parentId){
- var posx = '';
- var posy = '';
- var printnm = '';
-
- if(infoXPath == "" || infoXPath == "undefined" || infoXPath == null) infoXPath = "/root/main/barcdprntsetup/prntsetupinfo";
- if(model.getValue(infoXPath + "/setupinfo/rexgbn") != "1") return false;
- try{
- if(model.getXpathValue("count(" + infoXPath + "/setupinfo/pcl/pcllist[barnm='"+rexnm+"']/barnm)") > "0"){
- posx = model.getValue(infoXPath + "/setupinfo/pcl/pcllist[barnm='"+rexnm+"']/xpos");
- posy = model.getValue(infoXPath + "/setupinfo/pcl/pcllist[barnm='"+rexnm+"']/ypos");
- printnm = model.getValue(infoXPath + "/setupinfo/pcl/pcllist[barnm='"+rexnm+"']/prtnm");
- }else{
- posx = model.getValue(infoXPath + "/setupinfo/blank/left");
- posy = model.getValue(infoXPath + "/setupinfo/blank/top");
- printnm = model.getValue(infoXPath + "/setupinfo/comm01/setupval");
- }
- if(posx == '') posx = "0";
- if(posy == '') posy = "0";
-
- if(closeYn == "true") printnm = "";
-
- exeRexPreview(rexnm, 'XMLSTR', paramsXPath, '', printnm,
- '', '', '', '', '',
- '', parentId, '', '', '',
- printCount, '', 'offsetx=' + posx + ';offsety=' + posy + ';', dataXPath, '',
- '');
- }
- catch(e){
- alert("출력시 오류가 발생하였습니다\n" + e);
- return true;
- }
-
- return true;
- }
-
-
- function exeRexPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath)
- {
- var reportNode = instance1.selectSingleNode(gvReportPath);
-
- var syscd = getSystemCd();
- syscd = syscd.substr(3,3);
- //if(syscd == "888" || syscd == "999" || syscd == "") syscd = "001";
- if(syscd == "") syscd = "001";
- //레포트 관련 내용 초기화
- if(reportNode != null){
- model.removeNodeset(gvReportPath);
- }
-
- model.makeNode(gvReportPath);
- model.makeNode(gvReportParamsPath);
- model.makeNode(gvReportPropsPath);
- model.makeNode(gvReportOptionsPath);
- paramsXPath = instance1.selectSingleNode(paramsXPath);
- if(paramsXPath != null){
- model.copyNode(gvReportParamsPath, paramsXPath);
- }
-
- model.makeValue(gvReportParamsPath+"/userid", getUserId());
- model.makeValue(gvReportParamsPath+"/logoimgurl", getImageURL("error_logo"+getLogoImageKey()));
- model.makeValue(gvReportParamsPath+"/url", rid);
-
- model.makeValue(gvReportPropsPath+"/rex_rptname", rid);
- model.makeValue(gvReportPropsPath+"/rex_datatype", dataType);
- model.makeValue(gvReportPropsPath+"/rex_submitid", submitId);
- model.makeValue(gvReportPropsPath+"/rex_userservice", userService);
- model.makeValue(gvReportPropsPath+"/rex_data_xpath", dataXPath);
- model.makeValue(gvReportPropsPath+"/rex_xpath", mainDataXPath);
- model.makeValue(gvReportPropsPath+"/rex_xpath1", subDataXPath);
-
- model.makeValue(gvReportOptionsPath+"/rex_print", print);
- model.makeValue(gvReportOptionsPath+"/rex_printdialog", printDialog);
- model.makeValue(gvReportOptionsPath+"/rex_printpaperbin", printPaperBin);
- model.makeValue(gvReportOptionsPath+"/rex_filetype", fileType);
- model.makeValue(gvReportOptionsPath+"/rex_filename", fileName);
- model.makeValue(gvReportOptionsPath+"/rex_filedialog", fileDialog);
- model.makeValue(gvReportOptionsPath+"/rex_close", closeYn);
- model.makeValue(gvReportOptionsPath+"/rex_showbutton", showButton);
- model.makeValue(gvReportOptionsPath+"/rex_printcount", printCount);
- model.makeValue(gvReportOptionsPath+"/rex_zoomrate", zoomRate);
- model.makeValue(gvReportOptionsPath+"/rex_printoption", printOption);
-
- if(parentObjId == null || parentObjId == ""){
- if(document.all("ivr_report") == null){
- //popup
- setParameter("onready","true");
- modal("SPZUR00100", monNo);
- }else{
- //iviewer
- ivr_report.window.javascript.fInitRexpert();
- }
- }else{
- var parentObj = document.all("ivr_"+parentObjId);
- if(parentObj != null){
- var childObj = document.all("ivr_"+parentObjId);
-
- if(childObj != null){
- gCurrPrtObj = "ivr_"+parentObjId; //삭제할 viewer를 현재 출력 obj변수에 설정하고.. 프린트 끝난후 현재변수의 Iviewer를 삭제
- childObj.window.javascript.fInitRexpert();
- }
- }
- }
- }
-
- function fSleep(numberMillis) {
- var now = new Date();
- var exitTime = now.getTime() + numberMillis;
- while (true) {
- now = new Date();
- if (now.getTime() > exitTime)
- return;
- }
- }
-
- function fSetNode() {
- if ( isSearchString(chk_deptflag.value, "W") && isSearchString(chk_drugflag1.value, "2") && isSearchString(rdo_prcp.value, "E") ) {
- model.setValue("/root/send/srchdata/spclflag1", "W");
- }
-
- if( isSearchString(chk_deptflag.value, "E") && isSearchString(chk_drugflag1.value, "2" )) {
- model.setValue("/root/send/srchdata/spclflag2", "E");
- }
-
- if( isSearchString(chk_deptflag.value, "J") && isSearchString(chk_drugflag1.value, "2" )) {
- model.setValue("/root/send/srchdata/spclflag3", "J");
- }
- }
-
- function fUnChkAll() {
- /*
- var s = chk_deptcd.choices.itemset.attribute("nodeset");
- var iCnt = getNodesetCount(s);
- var rtn = "";
- for (var i = 1; i <= iCnt; i++) {
- rtn += model.getValue(s+"["+i+"]/deptcd") +"|";
- }
- rtn = rtn.substring(0, rtn.length-1);
- chk_deptcd.value = rtn;
- */
- chk_deptcd.value = "";
- }
-
- function fAppendSaveNode( desNode, srcNodeList ) {
- var saveDrPrcpList = model.instances(0).selectNodes( srcNodeList ); //의사처방 저장데이터
- for(var i = 0; i < saveDrPrcpList.length; i++) {
- var destNode = model.instances(0).selectSingleNode( desNode );
- destNode.appendChild(saveDrPrcpList.item(i).cloneNode(true));
- }
- }
-
- ////////////////////2015년 6월16일 김치국 라벨처리
- function fPrintBigbar(){
- var sbarcode = model.getValue("/root/temp/barcodeprt");
- if (sbarcode == 'Y') {
- // debugger;
- model.removeNodeset("/root/temp/temp");
- model.makeNode("/root/temp/temp");
- submit("TRADT10351");
- model.refresh();
- for(var k = 1 ; k <= getNodesetCount("/root/temp/temp/sumpid") ; k++){
- // for(var k = 1 ; k <= 1 ; k++){
- var vpid = model.getValue("/root/temp/temp/sumpid["+k+"]/pid");
- var vdrugno = model.getValue("/root/temp/temp/sumpid["+k+"]/drugno");
- var vsumdt = model.getValue("/root/send/srchdata/sumdt");
- // alert(vsumdt) ;
- model.setValue("/root/send/srchdata/pid", vpid);
- model.setValue("/root/send/srchdata/drugno", vdrugno);
- model.removeNodeset("/root/main/prnt/lbllist/lbllist");
- model.makeNode("/root/main/prnt/lbllist/lbllist");
- modal("SMADT10311",0,200,200,"SMADT10311","/root/send/srchdata","/root/send/srchdata");
- model.refresh();
- }
- }
- }
- /////////////////////
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/pharmacyweb/js/SPADT62305.js"/>
- <submission id="TRADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT10324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchdata" replace="instance" resultref="/root/main/sumterm"/>
- <submission id="TRADT10330" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sumorddept"/>
- <submission id="TRADT10329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TRADT10331" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetlinfo" replace="instance" resultref="/root/main/detlprcplist"/>
- <submission id="TRADT10332" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntudsinfo"/>
- <submission id="TRADT10333" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchpid" replace="instance" resultref="/root/temp/prntpatprcp"/>
- <submission id="TRADT10334" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TXADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/ret"/>
- <submission id="TXADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- <submission id="TXADT10333" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- <submission id="TXADT10323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/sumrslt"/>
- <submission id="TRADT10336" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/barlist"/>
- <submission id="TRADT10337" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpat"/>
- <!--병동별네임카드출력 -->
- <submission id="TRADT10345" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpat"/>
- <submission id="TRADT10318" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/init/allsumorddept"/>
- <!-- 프린터 설정-->
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRADT00704" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/stocdeptlist"/>
- <submission id="TRADT10342" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumprntyn"/>
- <!-- 프린터 설정-->
- <submission id="TRADT10350" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prnt"/>
- <!-- 개인별 바코드 출력을 위한 던지는 쿼리-->
- <submission id="TRADT10351" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/sumpid"/>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="87, 101, 210, 72" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:684px; top:80px; width:510px; height:220px; ">
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="sumqty" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- group5.visible = false;
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
- submit("TRADT10323");
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" allowselection="false" caption="구분^구분^구분^투약번호^병실^등록번호^환자명^orddeptcd^진료과^병동^Group코드^처방코드^처방명^1일수량^1회수량^횟수^일수^불출수량^실시일시^집계시간^처방번호^처방일자^반환일시^마감일시^출력일시" colsep="^" colwidth="45, 48, 46, 56, 53, 73, 45, 0, 60, 41, 73, 90, 196, 49, 49, 36, 33, 59, 130, 130, 100, 100, 100, 127, 137" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:215px; top:305px; width:979px; height:435px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptcd"/>
- <col ref="orddeptnm"/>
- <col ref="wardcd"/>
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm" style="left:650px; top:23px; width:196px; height:23px; "/>
- <col ref="prcpqty" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="prcpqty2" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="left:843px; top:23px; width:59px; height:23px; text-align:right; "/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rtndd"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- var row = grd_prcplist.selectedRow(0);
- model.setValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
- model.setValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
- model.setValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpdd"));
- model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
- submit("TRADT10331");
-
- group5.visible = true;
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_prcplist", false, "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/init/orddept/dept" allowselection="false" caption="^코드^부서^구분" colsep="^" colwidth="25, 37, 144, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:105px; width:210px; height:635px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="orddeptflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetNode();
- if ( ! isDataCell() ) return;
- group5.visible = false;
-
- if(model.getValue("/root/send/srchdata/udsflag") == "U" && model.getValue("/root/send/srchdata/drugflag")== "") {
- messageBox("약품종류를 ", "C002");
- return;
- }
-
- if ( grd_deptlist.col != grd_deptlist.colRef("chk")){
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10322");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_deptlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" autoresize="true" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^집계부서^집계자" colsep="^" colwidth="121, 116, 68, 34, 68, 34, 400, 58" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:215px; top:105px; width:465px; height:195px; ">
- <col ref="sumflag"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="sumfromdd" format="yyyy-mm-dd"/>
- <col ref="sumfromtm" format="hh:nn"/>
- <col ref="sumtodd" format="yyyy-mm-dd" style="left:339px; top:23px; width:68px; height:23px; "/>
- <col ref="sumtotm" format="hh:nn"/>
- <col ref="sumdeptnm"/>
- <col ref="sumnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
-
- fSelSum();
- /*
- function fSelSum(){
- model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
- model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
- model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
- model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
- model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
- model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TRADT10330");
- }
- */
- /*
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept[1]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept[1]/orddeptflag"));
- submit("TRADT10305");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10307");
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_drugsum.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="search_name" style="left:5px; top:81px; width:63px; height:17px; ">부서명</caption>
- <input id="input3" ref="/root/send/srchdata/srchdeptnm" class="input_default" style="left:73px; top:81px; width:137px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- submit("TRADT10321");
- }
- ]]>
- </script>
- </input>
- <group id="group6" visibility="hidden" style="left:230px; top:355px; width:935px; height:245px; ">
- <button id="button2" class="btn4_letter2" style="left:875px; top:220px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = false;
- ]]>
- </script>
- </button>
- <datagrid id="datagrid2" nodeset="/root/main/barlist/prcpinfo" allowselection="false" caption="구분^구분^구분^투약번호^병실^등록번호^환자명^진료과^Group코드^처방코드^처방명^1일수량^1회수량^횟수^일수^불출수량^실시일시^집계시간^처방번호^처방일자^반환일시^마감일시^출력일시" colsep="^" colwidth="42, 48, 46, 58, 43, 73, 45, 60, 73, 90, 196, 49, 49, 36, 33, 59, 130, 130, 100, 100, 100, 129, 131" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:925px; height:210px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="drugno"/>
- <col ref="roomcd"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptcd"/>
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpqty" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="prcpqty2" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="left:843px; top:23px; width:59px; height:23px; text-align:right; "/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="rtndd"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- var row = grd_prcplist.selectedRow(0);
- model.setValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
- model.setValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
- model.setValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpdd"));
- model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
- submit("TRADT10331");
-
- group5.visible = true;
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_prcplist", false, "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- </group>
- <input id="input6" ref="/root/temp/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:487px; top:81px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADT10324");
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/temp/srchdata/srchtodd" class="input_default" inputtype="date" style="left:590px; top:81px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADT10324");
- ]]>
- </script>
- </input>
- <caption id="caption10" style="left:577px; top:82px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="caption11" class="search_name" style="left:394px; top:81px; width:101px; height:17px; ">집계일자 :</caption>
- <group id="group5" visibility="hidden" style="left:290px; top:430px; width:790px; height:220px; ">
- <datagrid id="datagrid1" nodeset="/root/main/detlprcplist/detlprcpinfo" visibility="visible" scroll="auto" caption="구분^ioflag^처방번호^투약번호^병실^실시일자^실시시간^집계일시^집계부서^시행부서^발행부서^마감일시^출력일시" colsep="^" colwidth="40, 5, 3, 57, 51, 81, 71, 123, 121, 121, 121, 120, 138" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:790px; height:190px; ">
- <col ref="ioflagnm" style="text-align:center; "/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden" style="text-align:center; ">
- <![CDATA[/>]]>
- </col>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="exectm" format="hh:nn" style="text-align:center; "/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="sumdeptnm" style="text-align:center; "/>
- <col ref="execdeptnm" style="text-align:center; "/>
- <col ref="issdeptcdnm" style="text-align:center; "/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- </datagrid>
- <button id="button10" class="btn4_letter2" style="left:730px; top:195px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <select id="chk_barcode" ref="/root/temp/barcodeprt" overflow="visible" appearance="full" style="left:307px; top:83px; width:89px; height:15px; font-size:10pt; border-style:none; ">
- <choices>
- <item>
- <label>FillList라벨</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_fillno" ref="/root/temp/filllistno" overflow="visible" appearance="full" style="left:221px; top:83px; width:79px; height:15px; font-size:10pt; border-style:none; ">
- <choices>
- <item>
- <label>FillList</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">
- <![CDATA[약국 집계]]>
- </caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prntsum" class="btn6_letter5" style="left:295px; top:5px; width:92px; height:22px; ">
- <caption>집계표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
- if(model.getValue("/root/temp/sumprntyn/info/prntyn") == "Y") {// 고가, 향정 출력물은 옵션화
- model.makeNode("/root/temp/prntprcpinfo/sumtitle");
- submit("TRADT10334"); // 집계구간내 향정,영양수액,고가 품목/집계량 조회
- if(model.getValue("/root/temp/prntprcpinfo/sumtitle/drugcd") != ""){
- for(var i = 0; i < 2; i++){
- if(i == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약국용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- model.refresh();
- exeReportPreview("RPADT10306", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (향정신성 및 고가의약품 총집계량)
- if(getNodesetCount("/root/temp/prntprcpinfo/expnlist") > 0){
- exeReportPreview("RPADT10307", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (고가리스트)
- }
- }
- }
- }
-
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk") == "Y"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
-
- if(submit("TRADT10329")){ // 병동별 집계
- var item_cnt = getNodesetCount("/root/temp/prntprcpinfo/suminfo");
- if(item_cnt > 0) { // 2009.10.30 pymi 교환약만 집계된 출력물은 제외
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/temp/prntprcpinfo/suminfo["+item_cnt+"]/wardnm"));
- //alert(item_cnt+". 전송병실 : " + model.getValue("/root/temp/prntinfo/wardnm")+ "\n집계된부서 : "+model.getValue("/root/temp/prntprcpinfo/suminfo["+(item_cnt)+"]/wardnm"));
-
- var div_cnt = 1;
- for(var j = 1; j <= item_cnt; j++){
- if((j-1) % 10 == 0){
- div_cnt ++;
- }
- if(model.getValue("/root/temp/prntprcpinfo/suminfo["+j+"]/keepmthdyn") == "Y"){
- model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", div_cnt);
- }
- }
- for(var cnt = 0; cnt < 2; cnt++){
- if(cnt == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약국용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_sum" class="btn4_letter2" style="left:1058px; top:5px; width:56px; height:22px; ">
- <caption>집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_sum.disabled =true;
- model.setValue("/root/send/srchbcinfo/srchdrugdd" ,"-");
- model.setValue("/root/send/srchbcinfo/srchdrugno" ,"0");
- model.setValue("/root/send/srchbcinfo/srchioflag" ,"");
-
- if ( messageBox("집계를 ","Q004")==6 ) {
-
- if(model.getValue("/root/send/srchdata/udsflag") == "U" && model.getValue("/root/send/srchdata/drugflag")== "") {
- messageBox("약품종류를 ", "C002");
- btn_sum.disabled =false;
- return;
- }
-
- var ptpall = model.getValue("/root/send/srchdata/ptpall");
-
- if(fSelDeptchk() && ptpall != "Y"){ // 집계할 부서 선택 여부를 판별
- var prcpkindcd = model.getValue("/root/send/srchdata/prcpkindcd");
- var deptflag = chk_deptflag.value;
- if(prcpkindcd == "" && deptflag.indexOf("W") >= 0) {
- messageBox("집계할 처방의 구분2를","C002");
- return ;
- }
-
- model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
- model.setValue("/root/send/srchdata/userid",getUserId());
- model.setValue("/root/send/srchdata/instcd","");
- model.setValue("/root/send/srchdata/srchprcpcd","");
-
- if(submit("TXADT10323")){ // 약품집계 마스터에 집계사항 저장
- for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y"){
- model.removeNodeset("/root/send/deptdata/deptinfo");
- //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd",model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag",model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"));
- model.refresh();
- submit("TXADT10321"); // 약품집계 처방상세 저장
- }
- }
- submit("TRADT10324");
- // 집계표 출력 대상 선택 start
- var sumdt = model.getValue("/root/temp/sumrslt/sumdt");
- var rowno = "";
- if(sumdt != ""){
- for(var i = grd_drugsum.fixedRows; i < grd_drugsum.rows; i++){
- if(model.getValue("/root/main/sumterm/suminfo["+i+"]/sumdt") == sumdt){
- break;
- }
- }
- }
- grd_drugsum.row = parseInt(i);
- // 집계표 출력 대상 선택 end
- var tmp = model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt");
-
- if(model.getValue("/root/send/srchdata/drugflag") != "6") { //'UDS 내복약'을 집계하였을 경우에는 집계표를 자동으로 뽑지 않는다.
- fSelSum(); // 집계표 출력값 설정
- btn_prntsum.dispatch("DOMActivate"); // [집계표 출력]
- }
- }
- } else if(!fSelDeptchk() && ptpall == "Y"){ // 20130405_ptp 만 전체 집계 시
- var prcpkindcd = model.getValue("/root/send/srchdata/prcpkindcd");
- var deptflag = chk_deptflag.value;
- if(prcpkindcd == "" && deptflag.indexOf("W") >= 0) {
- messageBox("집계할 처방의 구분2를","C002");
- return ;
- }
-
- model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
- model.setValue("/root/send/srchdata/userid",getUserId());
- model.setValue("/root/send/srchdata/instcd","");
- model.setValue("/root/send/srchdata/srchprcpcd","");
-
- if(submit("TXADT10323")){ // 약품집계 마스터에 집계사항 저장
- //for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- //if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y"){
- model.removeNodeset("/root/send/deptdata/deptinfo");
- //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd","ptpall");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag","W");
- model.refresh();
- submit("TXADT10321"); // 약품집계 처방상세 저장
- //}
- //}
- submit("TRADT10324");
- // 집계표 출력 대상 선택 start
- var sumdt = model.getValue("/root/temp/sumrslt/sumdt");
- var rowno = "";
- if(sumdt != ""){
- for(var i = grd_drugsum.fixedRows; i < grd_drugsum.rows; i++){
- if(model.getValue("/root/main/sumterm/suminfo["+i+"]/sumdt") == sumdt){
- break;
- }
- }
- }
- grd_drugsum.row = parseInt(i);
- // 집계표 출력 대상 선택 end
- var tmp = model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt");
-
- if(model.getValue("/root/send/srchdata/drugflag") != "6") { //'UDS 내복약'을 집계하였을 경우에는 집계표를 자동으로 뽑지 않는다.
- fSelSum(); // 집계표 출력값 설정
- btn_prntsum.dispatch("DOMActivate"); // [집계표 출력]
- }
- }
- } else{
- messageBox("집계할 부서를","C002");
- }
- }
- model.setValue("/root/send/srchdata/pid","");
- model.setValue("/root/send/srchdata/drugcd","");
-
- model.refresh();
- btn_sum.disabled =false;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter6" style="left:385px; top:5px; width:104px; height:22px; ">
- <caption>Fill List출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var prtPath = grd_sumdeptlist.nodeset;
- var iCnt = getNodesetCount(prtPath);
-
- if (grd_drugsum.row <= 0)
- return;
-
- //집계된 병동을 선택할지 묻는다.. 20120725 정창혁
- if (iCnt > 1 && (messageBox("["+iCnt+"]건의 집계된 병동이 존재합니다. 출력할 병동을", "Q013") == 6)) {
- model.removeNodeset("/root/init/sumdept");
- model.makeNode("/root/init/sumdept");
- model.copyNode("/root/init/sumdept", "/root/init/sumorddept");
- model.refresh();
-
- fUnChkAll();
-
- var iHeight = ((Math.ceil(iCnt/3)+1)*20)+5;
- grp_dept.attribute("style") = "left:390px; top:50px; width:570px; height:"+iHeight +"px; background-color:#fffbf2; border-color:#ffd799; border-width:1px; border-style:solid; "
- grp_dept.visible = true;
- } else {
- messageBox("집계된 병동 전체를 출력합니다", "I000");
- fPrtAllFillList(prtPath);
- }
- //return;
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter6" style="left:105px; top:5px; width:104px; height:22px; ">
- <caption>집계현황조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT10300",0,20,150,"SMADT10300","","");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter4" style="left:1115px; top:5px; width:80px; height:22px; ">
- <caption>집계취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/send/srchdata/sumdt") ==""){
- messageBox("취소할 집계 자료를 목록에서 ","C002");
- return;
- }
- if ( messageBox("집계취소를 ","Q004")==6 ) {
- submit("TXADT10322");
- submit("TRADT10324");
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn6_letter6" style="left:487px; top:5px; width:104px; height:22px; ">
- <caption>환자별검수지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sBfSumDT = "";
- var sAfSumDT = "";
-
- //for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- //if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 환자별검수지 출력 가능
- //if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- //model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- sBfSumDT = model.getValue("/root/send/srchdata/sumdt");
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/sumterm/suminfo") ; iNo++) {
- if(model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumkind") == "U") {
- // && model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumflag2") == "R") {
- if(sAfSumDT == "") {
- sAfSumDT = model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumdt");
- } else {
- sAfSumDT += "|" + model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumdt");
- }
- }
- }
- model.makeValue("/root/send/srchdata/sumdt", sAfSumDT);
- sAfAllSumDt = sAfSumDT;
- if(submit("TRADT10318")) {
- model.makeValue("/root/send/srchdata/sumdt", sBfSumDT);
-
- grp_allsumdeptlist.attribute("left") = 490;
- grp_allsumdeptlist.attribute("top") = 40;
- grp_allsumdeptlist.attribute("width") = 385;
- grp_allsumdeptlist.attribute("height") = 325;
- button14.attribute("left") = 195;
- button15.visible = false;
- button14.visible = true;
- grp_allsumdeptlist.visible = true;
- model.refresh();
- }
-
- /*
- }else{
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- */
- //}
- //}
- ]]>
- </script>
- </button>
- <button id="button7" class="btn6_letter4" style="left:590px; top:5px; width:80px; height:22px; ">
- <caption>네임카드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var sBfSumDT = "";
- var sAfSumDT = "";
-
- //for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- //if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 네임카드 출력 가능
- //if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- //model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- sBfSumDT = model.getValue("/root/send/srchdata/sumdt");
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/sumterm/suminfo") ; iNo++) {
- if(model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumkind") == "U") {
- // && model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumflag2") == "R") {
- if(sAfSumDT == "") {
- sAfSumDT = model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumdt");
- } else {
- sAfSumDT += "|" + model.getValue("/root/main/sumterm/suminfo["+ iNo +"]/sumdt");
- }
- }
- }
- model.makeValue("/root/send/srchdata/sumdt", sAfSumDT);
- sAfAllSumDt = sAfSumDT;
- if(submit("TRADT10318")) {
- model.makeValue("/root/send/srchdata/sumdt", sBfSumDT);
-
- grp_allsumdeptlist.attribute("left") = 590;
- grp_allsumdeptlist.attribute("top") = 40;
- grp_allsumdeptlist.attribute("width") = 385;
- grp_allsumdeptlist.attribute("height") = 325;
- button15.attribute("left") = 219;
- button14.visible = false;
- button15.visible = true;
-
- grp_allsumdeptlist.visible = true;
- model.refresh();
- }
-
- //}else{
- // messageBox("UDS 집계항목을", "C002");
- // break;
- //}
-
- //}
- //}
- */
- var combDeptCd = "";
- var deptNode = grd_deptlist.nodeset;
- for(var iNo = 1 ; iNo <= getNodesetCount(deptNode) ; iNo++) {
- if(model.getValue(deptNode+"["+ iNo +"]/chk") == "Y") {
- combDeptCd += model.getValue(deptNode+"["+iNo+"]/deptcd")+"|";
- }
- }
-
- if (combDeptCd.indexOf("|") > 0) { //선택된 부서가 있으면.. 한방에 처리..
- model.makeValue("/root/send/srchdata/srchorddeptcd", combDeptCd.substring(0, combDeptCd.length));
- submit("TRADT10345");
-
- if (getNodesetCount(TRADT10345.attribute("resultref")+"/prcpdrug") == 0) {
- messageBox("출력할 네임카드가", "I004");
- return;
- }
- fLBLPrintR("report_1");
- } else {
- messageBox("부서를", "C002");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
- <caption>수액집계조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT11001",0,20,150,"SMADT11001","","");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" visibility="hidden" style="left:1000px; top:5px; width:56px; height:22px; ">
- <caption>발주</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/sumdt",model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TXADT10333");
- ]]>
- </script>
- </button>
- <select1 id="cmb_stocdeptcd" ref="/root/send/srchdata/stocdeptcd" class="combo_search" appearance="minimal" style="left:955px; top:5px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>외래약국Unit</label>
- <value>3242106000</value>
- </item>
- <item>
- <label>병동약국Unit</label>
- <value>3242107000</value>
- </item>
- <item>
- <label>특수조제Unit</label>
- <value>3242104000</value>
- </item>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:898px; top:3px; width:55px; height:23px; vertical-align:middle; ">불출부서</caption>
- <button id="button1" class="btn6_letter7" style="left:670px; top:5px; width:116px; height:22px; ">
- <caption>약품별목록출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/orderby", "drugcd");
-
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 Fill List로 출력 가능
- ///if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- submit("TRADT10332");
- if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
- exeReportPreview("RPADT10308", "XMLSTR", "", "", "true","","","","","true");
- }
- if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
- exeReportPreview("RPADT10309", "XMLSTR", "", "", "true","","","","","true");
- }
- if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
- exeReportPreview("RPADT10310", "XMLSTR", "", "", "true","","","","","true");
- }
-
-
- //}else{
-
- // messageBox("UDS 집계항목을", "C002");
- // break;
- //}
- }
- }
- model.setValue("/root/send/srchdata/orderby", "");
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:205px; top:5px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn6_letter6" style="left:786px; top:5px; width:104px; height:22px; ">
- <caption>고가수액출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2009.09.02 pymi
- model.makeNode("/root/temp/prntprcpinfo/sumtitle");
- model.setValue("/root/send/srchdata/expnflag", "Y");
- model.setValue("/root/temp/prntinfo/sumflagnm", "고가수액");
- model.setValue("/root/temp/prntinfo/sumtotalnm", "< 고가수액 총집계량 >");
- submit("TRADT10334");
-
- if(model.getValue("/root/temp/prntprcpinfo/sumtitle/drugcd") != ""){
- //for(var i = 0; i < 2; i++){
- //if(i == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
- //}else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- model.refresh();
- exeReportPreview("RPADT10306", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (향정신성 및 고가의약품 총집계량)
- /*if(getNodesetCount("/root/temp/prntprcpinfo/expnlist") > 0){
- exeReportPreview("RPADT10307", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (고가리스트)
- }*/
- //}
- }
-
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk") == "Y"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
-
- if(submit("TRADT10329")){ // 병동별 집계
- var item_cnt = getNodesetCount("/root/temp/prntprcpinfo/suminfo");
- if(item_cnt > 0) {
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/temp/prntprcpinfo/suminfo["+item_cnt+"]/wardnm"));
-
- var div_cnt = 1;
- for(var j = 1; j <= item_cnt; j++){
- if((j-1) % 10 == 0){
- div_cnt ++;
- }
- if(model.getValue("/root/temp/prntprcpinfo/suminfo["+j+"]/keepmthdyn") == "Y"){
- model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", div_cnt);
- }
- }
- for(var cnt = 0; cnt < 2; cnt++){
- if(cnt == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- }
- }
- }
- model.setValue("/root/send/srchdata/expnflag", "N");
- model.setValue("/root/temp/prntinfo/sumflagnm", "약품");
- model.setValue("/root/temp/prntinfo/sumtotalnm", "< 향정신성 및 고가의약품 총집계량 >");
- // (e)
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:40px; width:1195px; height:70px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" overflow="visible" appearance="full" cols="8" style="left:60px; top:11px; width:480px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- <item>
- <label>응급실</label>
- <value>E</value>
- </item>
- <item>
- <label>수술실</label>
- <value>O</value>
- </item>
- <item>
- <label>주사실</label>
- <value>J</value>
- </item>
- <item>
- <label>집계부서</label>
- <value>X</value>
- </item>
- <item>
- <label>진료부서</label>
- <value>D</value>
- </item>
- <item>
- <label>인공신장실</label>
- <value>A</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 진료과
- if(model.getValue("/root/send/srchdata/deptflag") != ""){
- if (model.getValue("/root/send/srchdata/deptflag").indexOf("W") >-1 ){
- if(model.getValue("/root/send/srchdata/prcpkindcd") =="") {
- //messageBox("구분2 를 ","C001");
- model.setValue("/root/send/srchdata/prcpkindcd" ,"A");
- return;
- }
- rdo_prcp.visible=true;
- bool_ptpall.visible=true; // 20130405_병동 선택시만 보이도록 수정
- caption12.visible=true;
- } else {
- rdo_prcp.visible=false;
-
- model.setValue("/root/send/srchdata/prcpkindcd","");
- model.setValue("/root/send/srchdata/ptpall", "");
- bool_ptpall.visible=false;
- caption12.visible=false;
- }
- var drugcd = model.getValue("/root/send/srchdata/drugcd");
- model.setValue("/root/send/srchdata/drugcd", drugcd.toUpperCase());
- submit("TRADT10321");
- }else{
- model.removeNodeset("/root/init/orddept");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption2" class="search_name" style="left:5px; top:11px; width:60px; height:17px; ">대상:</caption>
- <caption id="caption1" class="search_name" style="left:5px; top:36px; width:150px; height:17px; ">적용일자(실시일자) :</caption>
- <caption id="caption4" class="search_name" style="left:535px; top:10px; width:70px; height:17px; ">구분1:</caption>
- <caption id="caption5" class="search_name" style="left:805px; top:10px; width:70px; height:17px; ">구분2 :</caption>
- <input id="input1" ref="/root/send/srchdata/srchfromtm" class="input_search" visibility="hidden" format="hh:nn" style="left:590px; top:45px; width:45px; height:19px; "/>
- <input id="input2" ref="/root/send/srchdata/srchtotm" class="input_search" visibility="hidden" format="hh:nn" style="left:590px; top:25px; width:45px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1132px; y1:11px; x2:1132px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1135px; top:26px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- chk_deptflag.dispatch("xforms-value-changed");
- //submit("TRADT10324");
- ]]>
- </script>
- </button>
- <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:158px; top:36px; width:90px; height:19px; "/>
- <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:261px; top:36px; width:90px; height:19px; "/>
- <caption id="caption32" style="left:248px; top:36px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <select id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" visibility="hidden" overflow="visible" appearance="full" cellspacing="5" cols="6" style="left:875px; top:10px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>Admission</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/srchdata/prcpkindcd") =="") {
- return;
- } else {
- submit("TRADT10322");
- }
- ]]>
- </script>
- </select>
- <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:595px; top:7px; width:50px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>UDS</label>
- <value>U</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio1.value == 'N'){
- chk_drugflag2.value = "";
- chk_drugflag2.disabled = true;
- chk_drugflag1.value = "1 2";
- chk_drugflag1.disabled = false;
- }else if(radio1.value == 'U'){
- chk_drugflag1.value = "";
- chk_drugflag1.disabled = true;
- chk_drugflag2.value = "";
- chk_drugflag2.disabled = false;
- }
- submit("TRADT10322");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:805px; top:36px; width:90px; height:17px; ">등록번호 :</caption>
- <input id="input4" ref="/root/send/srchdata/pid" autonext="false" maxlength="10" format="9999999999" style="left:890px; top:36px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("chk_deptflag","xforms-value-changed");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:970px; top:36px; width:90px; height:17px; ">약품코드 :</caption>
- <input id="input5" ref="/root/send/srchdata/drugcd" style="left:1055px; top:36px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("chk_deptflag","xforms-value-changed");
- ]]>
- </script>
- </input>
- <select id="chk_drugflag1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:638px; top:10px; width:82px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>1</value>
- </item>
- <item>
- <label>주사</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <select id="chk_drugflag2" ref="/root/send/srchdata/drugflag" class="checkbox_search" disabled="true" overflow="visible" appearance="full" cols="3" style="left:638px; top:31px; width:160px; height:34px; border-style:none; ">
- <choices>
- <item>
- <label>PTP</label>
- <value>3</value>
- </item>
- <item>
- <label>주사</label>
- <value>4</value>
- </item>
- <item>
- <label>외용,수제</label>
- <value>5</value>
- </item>
- <item>
- <label>내복약</label>
- <value>6</value>
- </item>
- </choices>
- </select>
- <input id="ipt_bcno1" ref="/root/send/srchbcinfo/srchbcno1" class="input_search" imemode="alpha" style="left:485px; top:36px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var barcode = "";
- var drugdd = "";
- var drugno = "";
- var ioflag = "";
-
- if(event.keyCode == "13") {
- // 바코드
- setInputNodeCurText();
- barcode = model.getValue("/root/send/srchbcinfo/srchbcno1");
- if (barcode.length > 9) {
- ioflag = barcode.substr(0,1);
- drugdd = barcode.substr(1,8);
- drugno = barcode.substr(9,barcode.length-9);
- model.setValue("/root/send/srchbcinfo/srchbcno1","");
-
- //if (ioflag.toUpperCase() != "I") {
- // messageBox("입원처방이 아니므로 처리","E001");
- // model.refresh();
- // return;
- //}
- } else {
- return;
- }
-
- // 조회
- model.setValue("/root/send/srchbcinfo/srchdrugdd" ,drugdd);
- model.setValue("/root/send/srchbcinfo/srchdrugno" ,drugno);
- model.setValue("/root/send/srchbcinfo/srchioflag" ,"I");
-
- model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
- model.setValue("/root/send/srchdata/userid",getUserId());
- model.setValue("/root/send/srchdata/instcd","");
- model.setValue("/root/send/srchdata/srchprcpcd","");
-
- model.removeNodeset("/root/send/deptdata/deptinfo");
- //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd","-");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag","W");
- model.refresh();
-
- submit("TXADT10321");
- submit("TRADT10336");
- group6.visible=true;
- model.setValue("/root/send/srchbcinfo/srchdrugdd" ,"-");
- model.setValue("/root/send/srchbcinfo/srchdrugno" ,"0");
- model.setValue("/root/send/srchbcinfo/srchioflag" ,"");
- model.refresh();
- if ( datagrid2.rows == 1 ){
- messageBox("선불출할 데이터가 없습니다. ", "C999");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:360px; top:36px; width:124px; height:17px; ">바코드(선불출) :</caption>
- <group id="group7" visibility="hidden" style="left:1045px; top:5px; width:60px; height:50px; ">
- <object id="CommAX" clsid="{B721F534-D025-466B-8A28-7CF40E700ACD}" style="left:5px; top:0px; width:45px; height:45px; "/>
- </group>
- <bool id="bool_ptpall" visibility="hidden" checkvalue="Y,N" overflow="visible" ref="/root/send/srchdata/ptpall" style="left:727px; top:8px; width:25px; height:20px; border-style:none; "/>
- <caption id="caption12" visibility="hidden" style="left:751px; top:11px; width:45px; height:15px; ">PTP만</caption>
- </group>
- <datagrid id="grd_sumdeptlist" nodeset="/root/init/sumorddept/dept" visibility="hidden" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:360px; top:175px; width:375px; height:85px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10305");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10307");
- ]]>
- </script>
- </datagrid>
- <button id="button12" class="btn4_letter3" visibility="hidden" style="left:1055px; top:90px; width:68px; height:22px; ">
- <caption>구집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue ("/root/send/srchdata/sumver","old");
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode==121){
- button12.visible=true;
- button13.visible=true;
- }
- ]]>
- </script>
- <button id="button13" class="btn4_letter3" visibility="hidden" style="left:1126px; top:90px; width:68px; height:22px; ">
- <caption>신집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue ("/root/send/srchdata/sumver","new");
- ]]>
- </script>
- </button>
- <group id="grp_allsumdeptlist" visibility="hidden" style="left:745px; top:175px; width:385px; height:325px; ">
- <button id="button14" class="btn6_letter8" style="left:195px; top:295px; width:128px; height:22px; ">
- <caption>환자별검수지출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sCurPid = "";
- var sBfPid = "";
- var iRowNumber = 1;
- var sBfSumDeptCd = "";
- var sAfSumDeptCd = "";
- var sBfSumDT = "";
-
- sBfSumDT = model.getValue("/root/send/srchdata/sumdt");
- sBfSumDeptCd = model.getValue("/root/send/srchdata/srchorddeptcd");
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/init/allsumorddept/dept") ; iNo++) {
-
- sCurPid = "";
- sBfPid = "";
- iRowNumber = 1;
-
- if(model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/chk") == "Y") {
-
- //if(sAfSumDeptCd == "") {
- // sAfSumDeptCd = model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/deptcd");
- //} else {
- // sAfSumDeptCd += "|" + model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/deptcd");
- //}
- sAfSumDeptCd = model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/deptcd");
-
- model.makeValue("/root/send/srchdata/sumdt", sAfAllSumDt);
- model.makeValue("/root/send/srchdata/srchorddeptcd", sAfSumDeptCd);
- submit("TRADT10333");
- model.makeValue("/root/send/srchdata/sumdt", sBfSumDT);
- model.makeValue("/root/send/srchdata/srchorddeptcd", sBfSumDeptCd);
-
- //---------------------------------------------------------------------------------------------------
- //등록번호 별로 구분 하여 출력 한다.
- model.removenode("/root/temp/tempprntpatprcp");
- model.makeNode("/root/temp/tempprntpatprcp");
- model.copyNode("/root/temp/tempprntpatprcp", "/root/temp/prntpatprcp");
- model.removenode("/root/temp/prntpatprcp");
-
- for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/temp/tempprntpatprcp/prcpdrug") ; iRowNo++) {
- sCurPid = model.getValue("/root/temp/tempprntpatprcp/prcpdrug["+ iRowNo +"]/pid");
- if(sCurPid != sBfPid) {
-
- iRowNumber = 1;
- model.removenode("/root/temp/prntpatprcp");
-
- for(var iRNo = 1 ; iRNo <= getNodesetCount("/root/temp/tempprntpatprcp/prcpdrug") ; iRNo++) {
- if(sCurPid == model.getValue("/root/temp/tempprntpatprcp/prcpdrug["+ iRNo +"]/pid")) {
- model.makeNode("/root/temp/prntpatprcp/prcpdrug["+ iRowNumber +"]");
- model.copyNode("/root/temp/prntpatprcp/prcpdrug["+ iRowNumber +"]", "/root/temp/tempprntpatprcp/prcpdrug["+ iRNo +"]");
- iRowNumber++;
- }
- }
- iRowNumber1 = 1;
- for(var iRNo = 1 ; iRNo <= getNodesetCount("/root/temp/tempprntpatprcp/resn") ; iRNo++) {
- if(sCurPid == model.getValue("/root/temp/tempprntpatprcp/resn["+ iRNo +"]/pid")) {
- model.makeNode("/root/temp/prntpatprcp/resn["+ iRowNumber1 +"]");
- model.copyNode("/root/temp/prntpatprcp/resn["+ iRowNumber1 +"]", "/root/temp/tempprntpatprcp/resn["+ iRNo +"]");
- iRowNumber1++;
- }
- }
- var chkresn = model.getValue("/root/temp/prntpatprcp/resn/pid");
- //alert(chkresn);
- //출력
- if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
- if(isNull(chkresn)){
- exeReportPreview("RPADT10305", "XMLSTR", "", "", "true","","","","","true");
- }
- else{
- exeReportPreview("RPADT10311", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- }
- sBfPid = sCurPid;
- }
- //---------------------------------------------------------------------------------------------------
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:325px; top:295px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grp_allsumdeptlist.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button15" class="btn6_letter6" style="left:89px; top:295px; width:104px; height:22px; ">
- <caption>네임카드출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sBfSumDeptCd = "";
- var sAfSumDeptCd = "";
- var sBfSumDT = "";
-
- sBfSumDT = model.getValue("/root/send/srchdata/sumdt");
- sBfSumDeptCd = model.getValue("/root/send/srchdata/srchorddeptcd");
-
- var oRptViewer = "";
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/init/allsumorddept/dept") ; iNo++) {
- if(model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/chk") == "Y") {
-
- //if(sAfSumDeptCd == "") {
- // sAfSumDeptCd = model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/deptcd");
- //} else {
- // sAfSumDeptCd += "|" + model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/deptcd");
- //}
- sAfSumDeptCd = model.getValue("/root/init/allsumorddept/dept["+ iNo +"]/deptcd");
-
- model.makeValue("/root/send/srchdata/sumdt", sAfAllSumDt);
- model.makeValue("/root/send/srchdata/srchorddeptcd", sAfSumDeptCd);
- submit("TRADT10337");
- model.makeValue("/root/send/srchdata/sumdt", sBfSumDT);
- model.makeValue("/root/send/srchdata/srchorddeptcd", sBfSumDeptCd);
-
- // 20101221 wify 경북대병원 라벨출력방식을 rexpert로 변경
- //fLBLPrint();
- oRptViewer += "report_"+iNo+"|"; //출력을 위해 생성한 IViewer 삭제용
- fLBLPrintR( "report_"+iNo); //기존 함수에 iViewer이름을 추가함.
- //
-
- }
- }
-
- //cleanIViewer(oRptViewer);//생성된 임시 iViewer삭제
- ]]>
- </script>
- </button>
- <datagrid id="datagrid3" nodeset="/root/init/allsumorddept/dept" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:375px; height:285px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- </datagrid>
- </group>
- <group id="grp_dept" visibility="hidden" style="left:285px; top:555px; width:630px; height:190px; background-color:#fffbf2; border-color:#ffd799; border-width:1px; border-style:solid; ">
- <select id="chk_deptcd" ref="/root/send/srchdept/deptcd" overflow="visible" appearance="full" cols="3" sep="|" style="left:135px; top:8px; width:100px; height:20px; background-color:#f8f8f8; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/sumdept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select>
- <button id="btn_print" class="btn4_letter2" style="left:5px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- messageBox("선택한 병동으로 출력합니다", "I000");
- fPrtCheckedFillList(chk_deptcd.choices.itemset.attribute("nodeset"));
- grp_dept.visible = false;
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- //grp_dept.visible = false;
- ]]>
- </script>
- <button id="button16" class="btn4_letter2" style="left:63px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grp_dept.visible = false;
- //model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|