1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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/>
- <depthngnm/>
- <roomcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </prcplist>
- <sumterm>
- <suminfo>
- <sumflag/>
- <sumdt/>
- <sumfromdd/>
- <sumfromtm/>
- <sumtodd/>
- <sumtotm/>
- <sumnm/>
- </suminfo>
- </sumterm>
- <barcdprntsetup/>
- </main>
- <send>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchtodd/>
- <srchorddeptcd/>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd/>
- <sumdt/>
- <srchorddeptflag/>
- <sumdeptcd/>
- <srchflag>T</srchflag>
- <srchdeptcd/>
- </srchdata>
- <scrnid/>
- </send>
- <init>
- <orddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- <sumkind/>
- </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>fAllCheck</func>
- </menu>
- <menu>
- <label>전체선택해제</label>
- <func>fAllCheckDel</func>
- </menu>
- </popupmenu>
- </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/>
- </prntinfo>
- <prntprcpinfo>
- <suminfo>
- <wardnm/>
- <prcpcd/>
- <prcpnm/>
- <prcpflag/>
- <sumqty/>
- <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>
- </prntpatprcp>
- <deptcd/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- 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());
- //rdo_srchflag.dispatch("xforms-value-changed")
- model.refresh();
-
- if ( model.getValue("/root/temp/deptcd") !=""){
- grd_deptlist.visible=false;
- }
-
-
- //집계표 출력시 고가, 향정 단독 출력물 출력여부 조회
- submit("TRADT10342");
-
- //바코드프린터설정 초기화
- 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");
- }
- model.refresh();
-
-
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = grdBaseColHidn("D");
- //1회 기준
- if( colHidnValue == "C") {
- grd_prcplist.colHidden(grd_prcplist.colRef("prcpqty")) = true;
- } else {
- grd_prcplist.colHidden(grd_prcplist.colRef("prcpqty2")) = true;
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var sBfAllSumDt = "";
- var sAfAllSumDt = "";
-
- var gv_deptflag="";
-
- function fSelDeptflag(){
- // 진료과
- chk_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- submit("TRADT10321");
-
- //model.setValue("/root/send/srchdata/srchdeptcd", "");
-
- var srchdeptcd = model.GetValue("/root/send/srchdata/srchdeptcd");
-
- var tmp_deptflag = deptflag.split(" ");
-
- for(i=0; i < tmp_deptflag.length; i++){
- if(!isSearchString(gv_deptflag, tmp_deptflag[i])){
- if(srchdeptcd != "" ) srchdeptcd += "|"; // 데이터 연결을 위한 구분자 삽입
- for(var j = 1; j <= getNodesetCount("/root/init/orddept/dept"); j++){
- if(model.getValue("/root/init/orddept/dept["+j+"]/orddeptflag") == tmp_deptflag[i]){ // 부서구분이 같은 상세부서만..
- srchdeptcd += model.getValue("/root/init/orddept/dept["+j+"]/deptcd")+"|";
- //if(j != getNodesetCount("/root/init/orddept/dept")+1) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+j+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
-
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
- }
- model.refresh();
- }
-
- function fAllCheck(){
-
- model.setValue("/root/send/srchdata/srchdeptcd", "");
-
- var srchdeptcd = "";
-
- for(var i = 1; i <= getNodesetCount("/root/init/orddept/dept"); i++){
- srchdeptcd += model.getValue("/root/init/orddept/dept["+i+"]/deptcd")+"|";
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
-
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- model.refresh();
- }
-
- function fAllCheckDel(){
-
- model.setValue("/root/send/srchdata/srchdeptcd", "");
- model.refresh();
- }
-
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- /**
- * 라벨출력
- */
- 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 fSleep(numberMillis) {
- var now = new Date();
- var exitTime = now.getTime() + numberMillis;
- while (true) {
- now = new Date();
- if (now.getTime() > exitTime)
- return;
- }
- }
-
- ]]>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.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="TRADT10324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
- <submission id="TRADT10325" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT10329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TRADT10330" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/init/sumorddept"/>
- <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/srchdata" 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/srchdata" 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="TRADT10337" 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="TRADT10342" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumprntyn"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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; ">약국 집계 조회/출력</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1194px; height:742px; ">
- <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^집계자" colsep="^" colwidth="241, 116, 68, 34, 68, 34, 66" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:609px; top:0px; width:584px; height:160px; ">
- <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"/>
- <col ref="sumtotm" format="hh:nn"/>
- <col ref="sumnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- 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/sumorddept/dept[1]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/sumorddept/dept[1]/orddeptflag"));
- //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("TRADT10325");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10327");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_drugsum.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_deptlist" nodeset="/root/init/sumorddept/dept" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:170px; width:375px; height:245px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- //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"));
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/sumorddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10325");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10327");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:162px; x2:1194px; y2:162px; "/>
- <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" class="datagrid2" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="89, 89, 120, 49" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:420px; width:375px; height:320px; ">
- <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;
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
- submit("TRADT10327");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_sumlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" caption="구분^구분^구분^등록번호^환자명^진료과코드^진료과^병실^Group코드^처방코드^처방명^1일수량^1회수량^횟수^일수^불출수량^처방일자^반환일시" colsep="^" colwidth="38, 48, 36, 73, 45, 60, 100, 41, 82, 90, 201, 49, 49, 36, 33, 59, 81, 101" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:380px; top:170px; width:814px; height:570px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="groupcd" visibility="visible" style="text-align:center; "/>
- <col ref="prcpcd" style="text-align:center; "/>
- <col ref="prcpnm"/>
- <col ref="prcpqty" style="text-align:right; "/>
- <col ref="prcpqty2" style="text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="text-align:right; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rtndd"/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:27px; ">
- <button id="button1" class="btn6_letter5" style="left:280px; top:5px; width:92px; height:22px; ">
- <caption>집계표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- 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_deptlist.fixedRows; i < grd_deptlist.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");
- 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);
- }else{
- model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", "-");
- }
- }
- 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");
- }
- }
- //exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
- //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter4" visibility="hidden" style="left:105px; top:5px; width:80px; height:22px; ">
- <caption>약국집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMADT10310",0,20,150,"SMADT10310","","");
-
- submit("TRADT10324"); //집계리스트 조회
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter6" style="left:375px; top:5px; width:104px; height:22px; ">
- <caption>Fill List출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- /* 20120725 UDS외 일반 집계도 출력가능하도록 개선요청, 수정 정창혁 */
- //UDS로 집계된 사항만 Fill List로 출력 가능
- //if(model.getValue("/root/init/sumorddept/dept["+i+"]/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");
- // 주사제 fill list 출력
- if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
- exeReportPreview("RPADT10302", "XMLSTR", "", "", "true","","","","","true");
- }
- // 수액
- if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
- exeReportPreview("RPADT10303", "XMLSTR", "", "", "true","","","","","true");
- }
- // PTP
- if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
- exeReportPreview("RPADT10304", "XMLSTR", "", "", "true","","","","","true");
- }
- /*
- }else{
-
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- */
- }
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
- <caption>수액집계조회</caption>
- </button>
- <button id="button6" class="btn6_letter6" style="left:482px; top:5px; width:104px; height:22px; ">
- <caption>환자별검수지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sBfSumDT = "";
- var sAfSumDT = "";
-
- 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") = 485;
- 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();
- }
- ]]>
- </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 = "";
-
- 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();
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter4" visibility="hidden" style="left:1110px; top:5px; width:80px; height:22px; ">
- <caption>집계취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("집계취소를 ","Q004")==6 ) {
- submit("TXADT10302");
- submit("TRADT10324");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:185px; top:5px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:40px; width:605px; height:160px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:605px; height:154px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:36px; width:60px; height:17px; ">대상 :</caption>
- <caption id="caption1" class="search_name" style="left:5px; top:11px; width:90px; height:17px; ">조회구간 :</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:58px; width:70px; height:17px; ">구분1 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:104px; width:70px; height:17px; ">구분2 :</caption>
- <select id="checkbox1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:150px; top:58px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>1</value>
- </item>
- <item>
- <label>주사</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send/srchdata/prcpflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:98px; top:129px; width:200px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>선처치</label>
- <value>2</value>
- </item>
- <item>
- <label>Set처방</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <line id="line13" class="line_4" style="x1:525px; y1:70px; x2:525px; y2:148px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:535px; top:95px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/deptcd"));
- chk_deptcd.visible = false;
- var srchdeptcd = new Array();
- var chkcnt = 0;
- var chkrow = new Array();
- var srchflag = model.getValue("/root/send/srchdata/srchflag");
- if(srchflag == "T"){
- // 조회시 대상에 대한 전체 부서 체크박스 선택
- if(model.getValue("/root/send/srchdata/deptflag") != "" && model.getValue("/root/send/srchdata/srchdeptcd") == ""){
- //fSelDeptflag();
- messageBox("대상의 상세부서를","C002");
- chk_deptcd.visible=true;
- return;
- }
- submit("TRADT10324");
- }else if(srchflag == "P"){
-
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:98px; top:11px; width:95px; height:19px; "/>
- <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:210px; top:11px; width:95px; height:19px; "/>
- <caption id="caption32" style="left:197px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:98px; top:55px; width:50px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>UDS</label>
- <value>U</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox4" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:150px; top:83px; width:175px; height:20px; 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>
- </choices>
- </select>
- <caption id="caption3" class="search_name" style="left:5px; top:129px; width:70px; height:17px; ">구분3 :</caption>
- <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" overflow="visible" appearance="full" cols="8" style="left:100px; top:36px; width:500px; 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-select">
- <![CDATA[
- //fSelDeptflag();
-
- // 진료과
- chk_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- submit("TRADT10321");
-
- //model.setValue("/root/send/srchdata/srchdeptcd", "");
-
- var srchdeptcd = model.GetValue("/root/send/srchdata/srchdeptcd");
-
- var tmp_deptflag = deptflag.split(" ");
- /*
- for(i=0; i < tmp_deptflag.length; i++){
- if(!isSearchString(gv_deptflag, tmp_deptflag[i])){
- if(srchdeptcd != "" ) srchdeptcd += "|"; // 데이터 연결을 위한 구분자 삽입
- for(var j = 1; j <= getNodesetCount("/root/init/orddept/dept"); j++){
- if(model.getValue("/root/init/orddept/dept["+j+"]/orddeptflag") == tmp_deptflag[i]){ // 부서구분이 같은 상세부서만..
- srchdeptcd += model.getValue("/root/init/orddept/dept["+j+"]/deptcd")+"|";
- //if(j != getNodesetCount("/root/init/orddept/dept")+1) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+j+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
- */
- //model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- //gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
- }
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- // 진료과
- chk_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- submit("TRADT10321");
-
- // 체크박스 해제한 항목을 조회조건에서 제외 - 그외 기존 체크항목 유지
- var srchdeptcd = "";
- var tmp_srchdeptcd = model.getValue("/root/send/srchdata/srchdeptcd").split("|"); //기존 선택한 [상세부서]목록 설정
- for(var i = 1; i <= getNodesetCount("/root/init/orddept/dept"); i++){ // 새로조회된 [상세부서]목록만큼.. * 인스턴스배열은 1부터..
- if(isSearchString(deptflag, model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"))){ // 새로 조회된 부서 중 이전 선택한 항목에 대해서만.. [부서구분]으로 비교
- for(j = 0; j < tmp_srchdeptcd.length; j++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/deptcd") == tmp_srchdeptcd[j]){ // 신/구 [상세부서] 비교
- srchdeptcd += tmp_srchdeptcd[j]+"|";
- //if(i != (getNodesetCount("/root/init/orddept/dept")+1)) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+i+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
-
- }else{
- // 선택한 대상부서가 없을시 부서 조회조건 초기화
- model.resetInstanceNode("/root/init/orddept/dept");
- model.setValue("/root/send/srchdata/srchdeptcd", "");
- gv_deptflag = "";
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- chk_deptcd.visible=true;
- ]]>
- </script>
- </select>
- <select1 id="rdo_srchflag" ref="/root/send/srchdata/srchflag" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:407px; top:11px; width:183px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>시간별</label>
- <value>T</value>
- </item>
- <item>
- <label>선불출</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchflag = model.getValue("/root/send/srchdata/srchflag");
- if(srchflag == "T"){
- //group5.visible = false;
- //group6.visible = false;
- grd_drugsum.visible = true;
- chk_deptflag.disabled = false;
- //model.resetInstanceNode("/root/init/orddept");
- }else if(srchflag == "D"){
- group5.visible = true;
- group6.visible = true;
- chk_deptflag.disabled = false;
- //model.resetInstanceNode("/root/init/orddept");
- }else if(srchflag == "P"){
- //group5.visible = false;
- //group6.visible = false;
- grd_drugsum.visible = false;
- chk_deptflag.disabled = true;
- model.resetInstanceNode("/root/init/orddept");
- model.setValue("/root/send/srchdata/deptflag", "");
- model.setValue("/root/send/srchdata/srchdeptcd","");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:315px; top:10px; width:90px; height:17px; ">조회구분 :</caption>
- <select id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" visibility="hidden" overflow="visible" appearance="full" cellspacing="5" cols="6" style="left:100px; top:105px; 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>
- </select>
- </group>
- <select id="chk_deptcd" ref="/root/send/srchdata/srchdeptcd" visibility="visible" overflow="visible" appearance="full" cols="3" sep="|" style="left:100px; top:95px; width:100px; height:20px; background-color:#f8f8f8; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- chk_deptcd.visible=true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- chk_deptcd.visible=false;
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("chk_deptcd", false , "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </select>
- <group id="group7" visibility="hidden" style="left:430px; top:130px; width:60px; height:50px; ">
- <object id="CommAX" clsid="{B721F534-D025-466B-8A28-7CF40E700ACD}" style="left:5px; top:0px; width:45px; height:45px; "/>
- </group>
- <group id="grp_allsumdeptlist" visibility="hidden" style="left:635px; top:390px; width:385px; height:325px; ">
- <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>
- <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++) {
- 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");
- }
- }
- }
-
- 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 iNo = 1 ; iNo <= getNodesetCount("/root/temp/tempprntpatprcp/prcpdrug") ; iNo++) {
- if(sCurPid == model.getValue("/root/temp/tempprntpatprcp/prcpdrug["+ iNo +"]/pid")) {
- model.makeNode("/root/temp/prntpatprcp/prcpdrug["+ iRowNumber +"]");
- model.copyNode("/root/temp/prntpatprcp/prcpdrug["+ iRowNumber +"]", "/root/temp/tempprntpatprcp/prcpdrug["+ iNo +"]");
- iRowNumber++;
- }
- }
-
- //출력
- if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
- exeReportPreview("RPADT10305", "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");
- 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");
- }
- }
- }
-
- 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);
-
- fLBLPrint();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|