1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588 |
- <?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>Nurse main</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <wardcd/>
- <orddd/>
- <settingrnid/>
- <orddeptcd/>
- <medispclid/>
- <atdoctid/>
- <indschacptstat/>
- <pid/>
- <userid/>
- <usernm/>
- <prestimportid/>
- <printflag/>
- <sortflag/>
- </cond>
- <wardprntpatinfo>
- <wardpatlist>
- <roomcd/>
- <patnm/>
- <sexage/>
- <orddeptnm/>
- <medispclnm/>
- <indd/>
- <hd/>
- </wardpatlist>
- </wardprntpatinfo>
- <paminfo/>
- <precondlist>
- <blodpreplist/>
- <chngroomaprvlist/>
- <anticncrlist/>
- <unablspclist/>
- </precondlist>
- </main>
- <send>
- </send>
- <init>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- <settingrn>
- <settingrnid/>
- <settingrnnm/>
- </settingrn>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- <atdoct>
- <doctid/>
- <doctnm/>
- </atdoct>
- </doctlist>
- <wardprescondinfo>
- <wardprescond>
- <kind1/>
- <kind2/>
- <kind3/>
- <kind4/>
- <kind5/>
- <kind6/>
- <isolcnt/>
- <inhospcnt/>
- <wardbedcnt/>
- </wardprescond>
- <blodprep>
- <patnm/>
- </blodprep>
- <chngroomaprv>
- <patnm/>
- </chngroomaprv>
- <anticncr>
- <patnm/>
- </anticncr>
- <prcpnotend/>
- <unablspc>
- <patnm/>
- </unablspc>
- <wardisolcnt>
- <isolcnt/>
- <isolcnt2/>
- </wardisolcnt>
- </wardprescondinfo>
- </init>
- <hidden>
- </hidden>
- <dsch_hidden>
- <dsch_cond/>
- </dsch_hidden>
- <code>
- </code>
- <pw/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var erdeptcd, spcldeptcd, partrtndeptcd, testdeptcd, dscdeptcd, babyicudeptcd, babydeptcd, daildeptcd, hospicedeptcd; // 부서코드_간호하드코딩 테이블 조회_20090415(ByJA)
- var hospiceyn="N";
-
- var srchflag = "1"; // 1:메인조회시 2:출력조회시
-
- function fInitialize()
- {
- if(getScreenMenuParameter() == "hp") {
- hospiceyn = "Y";
- }
-
- if(getUserInfo("dutplceinstcd") == "032") {
- model.makeValue("/root/main/cond/sortflag", "2");
- rdo_sortflag.refresh();
- } else {
- model.makeValue("/root/main/cond/sortflag", "1");
- rdo_sortflag.refresh();
- }
-
- // model.setValue("/root/main/cond/prestimportid", getScreenMenuParameter()); // 원본
- // fInitTopInfo();
- if(model.getValue("/root/dsch_hidden/dsch_cond/prestimportid") == "om"){ // 퇴원정리에서 ordermanage를 팝업으로 열 경우 처리로직 추가_20080825(ByJA)
- model.setValue("/root/main/cond/prestimportid", "om");
- }else{
- model.setValue("/root/main/cond/prestimportid", getScreenMenuParameter());
- }
-
- var pCode = "'002', '003', '045', '046', '049', '052', '053', '055', '077','146', '044', '124','S01'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- var uijungbuinstcd="", sunggainstcd="", vincentinstcd=""; // 의정부성모병원, 부천성가병원, 수원빈센트병원 기관코드
- fGetNursHardCdInfo(pCode, pDate);
-
- for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "002": // 응급의료센터
- erdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "003": // 특수주사실
- spcldeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
-
- case "044": // 호스피스병동
- hospicedeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
-
- case "045": // 분만실
- partrtndeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "046": // 영상의학과
- testdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "049": // 통원수술센터
- dscdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "052": // 신생아중환자실
- babyicudeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "053": // 신생아실
- babydeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "055": // 인공신장실
- daildeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
-
- case "077": // 병원별 기관코드
- switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
- case "02": // 의정부성모병원 기관코드
- uijungbuinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "03": // 부천성가병원 기관코드
- sunggainstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "04": // 수원빈센트병원 기관코드
- vincentinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- }
- }
-
- // if (getUserInfo("ipaddr")== "127.0.0.1" ) {
- // model.setValue("/root/main/cond/prestimportid", "om");
- // }
-
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- model.setValue("/root/main/cond/userid", getUserId());
- model.setValue("/root/main/cond/usernm", getUserName());
- model.setValue("/root/main/cond/settingrnid", "");
-
- //if(isNull(getPatientInfoDetail('wardcd'))) {
- if(hospiceyn == "Y") {
- model.setValue("/root/main/cond/wardcd", hospicedeptcd);
- } else {
- model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
- }
- //}
-
- //model.setValue("/root/main/cond/wardcd", ( isNull(getPatientInfoDetail('wardcd')) ? getUserInfo("dutplcecd") : getPatientInfoDetail('wardcd')) );
- model.setValue("/root/main/cond/orddd", getCurrentDate());
- model.setValue("/root/main/cond/orddeptcd", "");
- model.setValue("/root/main/cond/medispclid", "");
- model.setValue("/root/main/cond/atdoctid", "");
- model.setValue("/root/main/cond/indschacptstat", "1");
-
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101");
- // 원본_간호하드코딩 테이블 조회_밑으로 옮김_20090415(ByJA) model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
-
- model.setValue("/root/main/cond/settingrnid", "");
- for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
-
- // 바코드값 설정
- // fGetBarCodeInfo("SMMNR00600");//바코드 라벨 초기 설정값 조회 //0921임시로막음
- // fSettingBarCode("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo"); //0921임시로막음
- // lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- // 간호하드코딩 테이블 조회_20090415(ByJA)
-
- /*
- // 성빈센트병원의 경우 컬럼설정에 TF오류가 빈번히 발생하여 버튼 hidden_20091108
- if(getUserInfo("dutplceinstcd") == vincentinstcd){
- button2.visible = false;
- }else{
- button2.visible = true;
- }
- button2.refresh();
- */
-
- model.removenode("/root/init/ward[wardcd = '"+ erdeptcd +"']"); // 응급의료센터 제외_간호하드코딩 테이블 조회_20090415(ByJA)
- var wardcd = model.getValue("/root/main/cond/wardcd");
- var node = instance1.selectNodes("/root/init/ward[wardcd='" + wardcd + "']");
-
- if(node.length > 0) {
- fInqurySelectedPrgm();
- }
-
- model.makeValue("/root/main/cond/wardnm", combo1.label);
- }
-
- function fGetWardPrescond()
- {
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/webflag", "nm"); // 화면구분추가_20080921(ByJA)
- submit("TRMNW00104");
- var blodpreppatlist = "";
- var chngroomaprvpatlist = "";
- var anticncrlistpatlist = "";
- var unablspclistpatlist = "";
- //혈액준비환자리스트 조합
- for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/blodprep"); i++) {
- if (i == 1) {
- blodpreppatlist += model.getValue("/root/init/wardprescondinfo/blodprep["+ i +"]/patnm");
- } else {
- blodpreppatlist += ", " + model.getValue("/root/init/wardprescondinfo/blodprep["+ i +"]/patnm");
- }
- }
-
- //전실승인환자리스트 조합
- for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/chngroomaprv"); i++) {
- if (i == 1) {
- chngroomaprvpatlist += model.getValue("/root/init/wardprescondinfo/chngroomaprv["+ i +"]/patnm");
- } else {
- chngroomaprvpatlist += ", " + model.getValue("/root/init/wardprescondinfo/chngroomaprv["+ i +"]/patnm");
- }
- }
-
- //항암미승인환자리스트 조합
- for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/anticncr"); i++) {
- if (i == 1) {
- anticncrlistpatlist += model.getValue("/root/init/wardprescondinfo/anticncr["+ i +"]/patnm");
- } else {
- anticncrlistpatlist += ", " + model.getValue("/root/init/wardprescondinfo/anticncr["+ i +"]/patnm");
- }
- }
-
- //부적합검체 리스트 조합.
- for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/unablspc"); i++) {
- if (i == 1) {
- unablspclistpatlist += model.getValue("/root/init/wardprescondinfo/unablspc["+ i +"]/patnm");
- } else {
- unablspclistpatlist += ", " + model.getValue("/root/init/wardprescondinfo/unablspc["+ i +"]/patnm");
- }
- }
-
-
- // tar_chngroomaprv.value = chngroomaprvpatlist;
- // tar_chngroomaprv.value = chngroomaprvpatlist;
- // tar_blodprep.value = blodpreppatlist;
- model.setValue("/root/main/precondlist/blodpreplist", blodpreppatlist);
- model.setValue("/root/main/precondlist/chngroomaprvlist", chngroomaprvpatlist);
- model.setValue("/root/main/precondlist/anticncrlist", anticncrlistpatlist);
- model.setValue("/root/main/precondlist/unablspclist", unablspclistpatlist);
-
-
- var vdate = getCurrentDate();
- var dt = ((vdate.toDate("YYYYMMDD")).getAddDate(7, "D")).getDateFormat("YYYYMMDD") ;
- var dat = ((vdate.toDate("YYYYMMDD")).getAddDate(-7, "D")).getDateFormat("YYYYMMDD") ;
-
- if(model.getValue("/root/main_om/cond/hopedd") ==""){
- model.setValue("/root/main_om/cond/hopedd",'1');
- model.setValue("/root/main_om/cond/hopefmdd", dat);
- model.setValue("/root/main_om/cond/hopetodd", dt);
- }
-
- tar_blodprep.refresh();
- tar_chngroomaprv.refresh();
- tar_anticncrt.refresh();
- tar_unablspc.refresh();
- }
-
- function fInqurySelectedPrgm()
- {
- fGetWardPrescond();
-
- switch(model.getValue("/root/main/cond/prestimportid")) {
-
- case "td" :
- btn_td.selected = true;
- sha_state.visible = true;
- cap_state.visible = true;
- cap_color.visible = false;
- cap_uncnfm.visible = false;
- cap_prcp.visible = false;
- cap_certcpap.visible = false;
- cap_ser.visible = false;
- btn_td.visible = true;
- btn_om.visible = true;
- grp_prcpnotend.visible = false;
- model.toggle("case_td");
- fGetTodoPatList();
- break;
- case "om" :
- btn_om.selected = true;
- sha_state.visible = false;
- cap_state.visible = false;
- cap_color.visible = true;
- cap_uncnfm.visible = true;
- cap_prcp.visible = true;
- cap_certcpap.visible = true;
- cap_ser.visible = false;
- cap_color.attribute("left") = "15px";
- cap_uncnfm.attribute("left") = "35px";
- cap_prcp.attribute("left") = "120px";
- cap_prcp.attribute("color") = "#0000ff";
- btn_td.visible = true;
- btn_om.visible = true;
- model.toggle("case_om");
-
- //20090929 김홍점 model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid"); 가 Y인경우 병동 처방미마감건 블러킹 적용(모든병원 운영만 적용 운영이외의 서버는 N)
- //전일 8AM~당일 8AM 사이에 미마감건 존재시 당일 8AM부터 오더매니지 블로킹
- if ( model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid") == 'Y' &&
- getCurrentTime().substring(0,2) >= "08" &&
- getNodesetCount("/root/init/wardprescondinfo/prcpnotend") > 0 ) {
- btn_cnfmcnt.attribute("text") = "미확인처방 환자수";
- btn_dschcnt.attribute("text") = "퇴원처방 환자수";
-
- model.setValue("/root/main_om/cond/pid", "등록번호");
- model.setValue("/root/main_om/cond/roomcd", "병실");
- model.setValue("/root/main_om/cond/sexage", "S/A");
- model.setValue("/root/main_om/cond/patnm", "환자명");
-
- //그리드 초기화
- model.removeNodeset("/root/main_om/ominfo/ompatinfo/ompatlist");
- model.removeNodeset("/root/main_om/ominfo/prcpddinfo");
- model.removeNodeset("/root/main_om/ominfo/prcpinfo/prcplist");
-
- //처방일자, 미확인처방일자 초기화
- grd_prcpappddlist.allStyle("all", "background-color") = "#ffffff";
- grd_prcpappddlist.attribute("background-color") = "#ffffff";
- grd_uncnfmprcpddlist.attribute("background-color") = "#ffffff";
- grd_uncnfmprcpddlist.allStyle("all", "background-color") = "#ffffff";
- grp_prcpnotend.visible = true;
- //rtnmsg = messageBox("전일 미마감건이 존재합니다. 마감하시기 바랍니다.","Q011");
-
- }else{
- grp_prcpnotend.visible = false;
- fGetOMPatList();
- }
-
- break;
- case "prn" :
- btn_om.selected = true;
- sha_state.visible = false;
- cap_state.visible = false;
- cap_color.visible = false;
- cap_uncnfm.visible = false;
- cap_prcp.visible = true;
- cap_certcpap.visible = true;
- cap_ser.visible = false;
- cap_prcp.attribute("left") = "731px";
- cap_prcp.attribute("color") = "#000000";
- btn_td.visible = true;
- btn_om.visible = true;
- model.toggle("case_om");
- //20090929 김홍점 model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid"); 가 Y인경우 병동 처방미마감건 블러킹 적용(모든병원 운영만 적용 운영이외의 서버는 N)
- if ( model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid") == 'Y' &&
- getNodesetCount("/root/init/wardprescondinfo/prcpnotend") > 0 ) {
- btn_cnfmcnt.attribute("text") = "미확인처방 환자수";
- btn_dschcnt.attribute("text") = "퇴원처방 환자수";
-
- model.setValue("/root/main_om/cond/pid", "등록번호");
- model.setValue("/root/main_om/cond/roomcd", "병실");
- model.setValue("/root/main_om/cond/sexage", "S/A");
- model.setValue("/root/main_om/cond/patnm", "환자명");
-
- //그리드 초기화
- model.removeNodeset("/root/main_om/ominfo/ompatinfo/ompatlist");
- model.removeNodeset("/root/main_om/ominfo/prcpddinfo");
- model.removeNodeset("/root/main_om/ominfo/prcpinfo/prcplist");
-
- //처방일자, 미확인처방일자 초기화
- grd_prcpappddlist.allStyle("all", "background-color") = "#ffffff";
- grd_prcpappddlist.attribute("background-color") = "#ffffff";
- grd_uncnfmprcpddlist.attribute("background-color") = "#ffffff";
- grd_uncnfmprcpddlist.allStyle("all", "background-color") = "#ffffff";
- grp_prcpnotend.visible = true;
- //rtnmsg = messageBox("전일 미마감건이 존재합니다. 마감하시기 바랍니다.","Q011");
-
- }else{
- grp_prcpnotend.visible = false;
- fSetPrnMode();
- fGetOMPatList();
- }
-
- break
- case "N" : // 메뉴파라미터가 "N"일 경우 Nusre Main Tab만 활성화 -> 병동사원메뉴적용하기 위함(변경요청번호:20090331_1325(ByJA))
- btn_nm.selected = true;
- sha_state.visible = true;
- cap_state.visible = true;
- cap_color.visible = false;
- cap_uncnfm.visible = false;
- cap_prcp.visible = true;
- cap_ser.visible = true;
- cap_certcpap.visible = false;
- cap_prcp.attribute("left") = "731px";
- cap_prcp.attribute("color") = "#000000";
- grd_wardpatlist.visible = true;
- btn_td.visible = false;
- btn_om.visible = false;
- grp_prcpnotend.visible = false;
- model.toggle("case_nm");
- fGetWardPatList();
- break;
- default :
- btn_nm.selected = true;
- sha_state.visible = true;
- cap_state.visible = true;
- cap_color.visible = false;
- cap_uncnfm.visible = false;
- cap_prcp.visible = true;
- cap_ser.visible = true;
- cap_certcpap.visible = false;
- cap_prcp.attribute("left") = "731px";
- cap_prcp.attribute("color") = "#000000";
- grd_wardpatlist.visible = true;
- btn_td.visible = true;
- btn_om.visible = true;
- grp_prcpnotend.visible = false;
- model.toggle("case_nm");
- fGetWardPatList();
- break;
- }
- }
-
- function fShowPopupMenu(gridID, menuPath)
- {
- var gridObj = document.controls.item(gridID);
-
- if(event.button == 3) {
- if(gridObj.isCell(event.target) && gridObj.mouseRow >= gridObj.fixedrows){
- window.setPopupMenu(true, menuPath, "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fPrint()
- {
-
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
- //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
- //************************************ 원본_20080908 ****************************************************************************************************//
- // var flag = model.getValue("/root/main/cond/prestimportid"); //nm, td, om
- // if (flag == 'nm') {
- // model.removenode("/root/send");
- // model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- // model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- // model.makeValue("/root/send/indschacptstat", "1");
- // model.makeValue("/root/send/settingrnid", "");
- //
- // submit("TRMNW00103");
- // //send 재구성
- // model.makeNode("/root/send/ipatgroup");
- // model.makeNode("/root/send/ipatgroup/ipat");
- //
- // var wardnm = model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm");
- // model.makeValue("/root/send/ipatgroup/ipat/wardnm", wardnm);
- // model.makeValue("/root/send/ipatgroup/ipat/total", model.getValue("/root/init/wardprescondinfo/wardprescond/inhospcnt"));
- // model.makeValue("/root/send/ipatgroup/ipat/orddd", model.getValue("/root/main/cond/orddd"));
- //
- // //list
- // model.makeNode("/root/send/ipatgroup/ipatlist");
- // for (var i = 1; i <= getNodesetCount("/root/main/wardprntpatinfo/wardpatlist"); i++) {
- // copyNodesetType("/root/send/ipatgroup/ipatlist[" + i + "]", "/root/main/wardprntpatinfo/wardpatlist[" + i + "]", "after");
- // }
- // model.removenode("/root/send/ipatgroup/ipatlist");
- // exeReportPreview("RPMNW00200", "XMLSTR");
- //
- // } else if (flag == 'td') {
- // model.makeValue("/root/send/cond/wardcd", model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm"));
- // model.makeValue("/root/send/cond/orddd", model.getValue("/root/main/cond/orddd"));
- // model.makeValue("/root/send/cond/duty", radio1.value);
- // model.duplicate("/root/send", "root/main_todo/todoinfo");
- // exeReportPreview("RPMNW00400", "XMLSTR");
- //
- // } else {
- // if (model.getValue("/root/main_om/ominfo/prcpinfo/prcplist/flag") != "") {
- // model.makeNode("/root/send/ompatgroup");
- // model.makeNode("/root/send/ompatgroup/ompat");
- // model.copyNode("/root/send/ompatgroup/ompat", "/root/main_om/ominfo/ompatinfo/ompatlist[pid = '" + model.getValue("/root/main_om/cond/pid") + "']");
- //
- // model.makeNode("/root/send/ompatgroup/cnfmprcpdd");
- // var cnfm_color = grd_prcpappddlist.allStyle("all", "background-color");
- // var uncnfm_color = grd_uncnfmprcpddlist.allStyle("all", "background-color");
- // var prcpheader = "";
- // var prcpdd = grd_omprcplist.labelMatrix((grd_omprcplist.rows-1), 24);
- //
- // if (cnfm_color != "#ffffff") {
- // prcpheader = "처방적용일 : ";
- //
- // } else if (uncnfm_color != "#ffffff") {
- // prcpheader = "미확인처방일 : ";
- // }
- // prcpdd = prcpheader.concat(prcpdd);
- // model.makeValue("/root/send/ompatgroup/cnfmprcpdd/cnfmprcpdd", prcpdd);
- // model.makeNode("/root/send/ompatgroup/prcplistinfo");
- // model.copyNode("/root/send/ompatgroup/prcplistinfo", "/root/main_om/ominfo/prcpinfo");
- //
- // exeReportPreview("RPMNW00300", "XMLSTR");
- //
- // } else {
- // messageBox("처방을 조회 후 출력하십시오", "I");
- // }
- // }
- //************************************ 원본_20080908 ****************************************************************************************************//
- //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
- var flag = swt_main.selectedIndex; //nm:0, td:1, om:2
- if (flag == 0) { // nm
- //*****20080915주석처리함***********************************************************************************************************//
- /*
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/indschacptstat", "1");
- model.makeValue("/root/send/settingrnid", "");
-
- submit("TRMNW00103");
- */
- //send 재구성
- model.makeNode("/root/send/ipatgroup");
- model.makeNode("/root/send/ipatgroup/ipat");
-
- var wardnm = model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm");
- model.makeValue("/root/send/ipatgroup/ipat/wardnm", wardnm);
- model.makeValue("/root/send/ipatgroup/ipat/total", model.getValue("/root/init/wardprescondinfo/wardprescond/inhospcnt"));
- model.makeValue("/root/send/ipatgroup/ipat/orddd", model.getValue("/root/main/cond/orddd"));
-
- //추가20080915
- var indschacptstat = model.getValue("/root/main/cond/indschacptstat");
- switch(indschacptstat){
- case "1":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "재원");
- break;
- case "2":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "입원");
- break;
- case "3":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "퇴원진행");
- break;
- case "4":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "퇴원");
- break;
- }
-
- //list
- model.makeNode("/root/send/ipatgroup/ipatlistinfo/ipatlist");
-
- //*****20080915주석처리함***********************************************************************************************************//
- /*
- for (var i = 1; i <= getNodesetCount("/root/main/wardprntpatinfo/wardpatlist"); i++) {
- copyNodesetType("/root/send/ipatgroup/ipatlist[" + i + "]", "/root/main/wardprntpatinfo/wardpatlist[" + i + "]", "after");
- }
- model.removenode("/root/send/ipatgroup/ipatlist");
- */
-
- model.copyNode("/root/send/ipatgroup/ipatlistinfo", "/root/main_nm/wardpatinfo"); // 추가20080915
- exeReportPreview("RPMNW00200", "XMLSTR");
-
- } else if (flag == 1) { // td
- model.makeValue("/root/send/cond/wardcd", model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm"));
- model.makeValue("/root/send/cond/orddd", model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/cond/duty", radio1.value);
- model.duplicate("/root/send", "root/main_todo/todoinfo");
- exeReportPreview("RPMNW00400", "XMLSTR");
-
- } else { // om 20111006_KNUH_Start CareCom.js에 함수로 뺌.(선택한 처방이 있을경우에만 출력)
- fPrtPrcpList();
- }
- //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
-
- }
- ]]>
- </script>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LAZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/ipatmngtweb/js/PMI001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TRMNW00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/doctlist"/>
- <submission id="TRMNW00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/wardprntpatinfo"/>
- <submission id="TRMNW00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/wardprescondinfo"/>
- <submission id="TRMNW00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp1" resultref="/root/temp"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMI00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data17" resultref="/root/hidden/h_receipt"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main_nm/barcdprntsetup"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <submission id="TRMNB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">
- <![CDATA[병동/ICU 메인]]>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- /*
- var pwcnt = model.getValue("/root/pw");
-
- if(event.button == 3)
- {
- pwcnt++;
- model.setValue("/root/pw", pwcnt);
- if(pwcnt == "5"){
- open("SPMNW99900");
- model.setValue("/root/pw", 0);
- }
- }
- */
-
- ]]>
- </script>
- </caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
- <button id="btn_nm" class="btn_sw" group="tab" style="left:0px; top:84px; width:100px; height:22px; ">
- <caption>Nurse Main</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/cond/prestimportid", "nm");
- fInqurySelectedPrgm();
- ]]>
- </script>
- <toggle case="case_nm" ev:event="onclick"/>
- </button>
- <button id="btn_td" class="btn_sw" visibility="hidden" group="tab" style="left:99px; top:84px; width:100px; height:22px; ">
- <caption>To-do List</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/cond/prestimportid", "td");
- fInqurySelectedPrgm();
- ]]>
- </script>
- <toggle case="case_td" ev:event="onclick"/>
- </button>
- <button id="btn_om" class="btn_sw" visibility="hidden" group="tab" style="left:198px; top:84px; width:107px; height:22px; ">
- <caption>Order Manage</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/cond/prestimportid", "om");
- fInqurySelectedPrgm();
- ]]>
- </script>
- <toggle case="case_om" ev:event="onclick"/>
- </button>
- <group id="grp_search1" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1125px; top:23px; width:56px; height:22px; ">
- <caption>조회</caption>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:9px; width:60px; height:17px; ">병동 :</caption>
- <select1 id="combo10" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:78px; top:8px; width:87px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:175px; top:10px; width:107px; height:17px; ">Setting RN :</caption>
- <select1 id="combo11" ref="/root/main/cond/settingrnid" class="combo_s_essential" appearance="minimal" style="left:282px; top:8px; width:48px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/settingrn">
- <label ref="settingrnnm"/>
- <value ref="settingrnid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo13" ref="/root/main/cond/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:690px; top:8px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:525px; top:9px; width:74px; height:17px; ">진료과 :</caption>
- <caption id="caption21" class="search_name" style="left:345px; top:9px; width:90px; height:17px; ">업무일자 :</caption>
- <input id="input3" ref="/root/main/cond/orddd" class="input_s_essential" inputtype="date" style="left:435px; top:8px; width:85px; height:19px; "/>
- <select1 id="combo14" ref="/root/main/cond/atdoctid" class="combo_s_essential" appearance="minimal" style="left:867px; top:8px; width:71px; height:19px; ">
- <choices/>
- </select1>
- <select1 id="combo15" ref="/root/main/cond/medispclid" class="combo_s_essential" appearance="minimal" style="left:92px; top:39px; width:71px; height:19px; ">
- <choices/>
- </select1>
- <!--(20101206) 경북대
- <caption id="caption27" class="search_name" style="left:790px; top:9px; width:74px; height:17px; ">주치의 :</caption>
- <caption id="caption51" class="search_name" style="left:15px; top:40px; width:74px; height:17px; ">담당의 :</caption>
- -->
- <caption id="caption27" class="search_name" style="left:790px; top:9px; width:74px; height:17px; ">주치의 :</caption>
- <caption id="caption51" class="search_name" style="left:15px; top:40px; width:74px; height:17px; ">담당의 :</caption>
- <!--(20101206) 경북대 -->
- <caption id="caption1" class="search_name" style="left:178px; top:40px; width:91px; height:17px; ">재원구분 :</caption>
- <select1 id="radio1" ref="/root/main/cond/indschacptstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:266px; top:41px; width:209px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>재원</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- <item>
- <label>퇴원진행</label>
- <value>3</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:525px; top:40px; width:93px; height:17px; ">등록번호 :</caption>
- <input id="input2" ref="/root/main/cond/pid" class="input_search" style="left:616px; top:37px; width:102px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1027px; y1:22px; x2:1027px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter4" style="left:1041px; top:23px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- </button>
- </group>
- <switch id="swt_main" style="left:0px; top:105px; width:1195px; height:636px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_nm" selected="true" style="left:0px; top:0px; width:1195px; height:709px; ">
- <import id="import1" src="SMMNW00200_Nurse Main.xrw" style="left:0px; top:0px; width:1190px; height:634px; "/>
- </case>
- <case id="case_td">
- <import id="import2" src="SMMNW00400_To-do list.xrw" style="left:0px; top:0px; width:1190px; height:634px; "/>
- </case>
- <case id="case_om">
- <import id="import3" src="SMMNW00300_Order Manage.xrw" style="left:0px; top:0px; width:1190px; height:634px; "/>
- </case>
- </switch>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_save" class="btn1_letter2" style="left:1016px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInqurySelectedPrgm();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">병동:</caption>
- <select1 id="combo1" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:61px; top:8px; width:139px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
-
- model.makeValue("/root/main/cond/orddd", getCurrentDate());
- model.makeValue("/root/main/cond/settingrnid","");
-
- model.makeValue("/root/main/cond/orddeptcd","");
- model.makeValue("/root/main/cond/medispclid","");
- model.makeValue("/root/main/cond/atdoctid","");
- model.makeValue("/root/main/cond/indschacptstat","1");
-
- submit("TRMNW00101");
-
- // 간호하드코딩 테이블 조회_20090415(ByJA)
- //model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
- model.removenode("/root/init/ward[wardcd = '"+ erdeptcd +"']"); // 응급의료센터 제외
- model.setValue("/root/main/cond/settingrnid", "");
- for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.makeValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
-
- model.makeValue("/root/main/cond/wardnm", combo1.label);
- delPatientInfos(); //화면상단정보 삭제
- setGlobalVariable("paminfo", ""); //원무정보 reset
-
- //Order Manage 의 환자정보 변경
- model.makeValue("/root/main_om/cond/pid", "등록번호");
- model.makeValue("/root/main_om/cond/roomcd", "병실");
- model.makeValue("/root/main_om/cond/sexage", "S/A");
- model.makeValue("/root/main_om/cond/patnm", "환자명");
-
- fInqurySelectedPrgm();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:382px; top:9px; width:75px; height:17px; ">내환자:</caption>
- <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:450px; top:8px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/settingrn">
- <label ref="settingrnnm"/>
- <value ref="settingrnid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInqurySelectedPrgm();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_dept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:596px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 2013.04.22 전문의,담당의 조회 조건 콤보리스트 진료 하드코딩테이블에서 가져오도록 수정!!
- // model.removenode("/root/send");
- // model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- // model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- // submit("TRMNW00102");
-
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/medispclid/usercombo");
- model.makeNode("/root/init/userlist/atdoctid/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist/medispclid", cmb_dept.value, "0330", "", "M");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist/atdoctid", cmb_dept.value, "0330", "", "T");
- addComboItem("cmb_medispclnm", "-", "", "above"); //의사콤보 전체항목 추가
- addComboItem("cmb_atdoctnm", "-", "", "above"); //의사콤보 전체항목 추가
- // cmb_medispclnm.select(0);
- // cmb_atdoctnm.select(0);
-
- fInqurySelectedPrgm();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:526px; top:9px; width:74px; height:17px; ">진료과:</caption>
- <caption id="caption12" class="search_name" style="left:203px; top:9px; width:90px; height:17px; ">업무일자:</caption>
- <input id="input4" ref="/root/main/cond/orddd" class="input_s_essential" inputtype="date" style="left:285px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInqurySelectedPrgm();
- ]]>
- </script>
- </input>
- <select1 id="cmb_medispclnm" ref="/root/main/cond/medispclid" class="combo_search" appearance="minimal" style="left:767px; top:8px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/medispclid/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInqurySelectedPrgm();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_atdoctnm" ref="/root/main/cond/atdoctid" class="combo_search" appearance="minimal" style="left:908px; top:9px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/atdoctid/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInqurySelectedPrgm();
- ]]>
- </script>
- </select1>
- <!--(20101206) 경북대
- <caption id="caption13" class="search_name" style="left:698px; top:9px; width:74px; height:17px; ">주치의:</caption>
- <caption id="caption52" class="search_name" style="left:840px; top:9px; width:74px; height:17px; ">담당의:</caption>
- -->
- <caption id="caption13" class="search_name" style="left:698px; top:9px; width:74px; height:17px; ">전문의:</caption>
- <caption id="caption52" class="search_name" style="left:840px; top:9px; width:74px; height:17px; ">담당의:</caption>
- <!--(20101206) 경북대 -->
- <select1 id="radio2" ref="/root/main/cond/indschacptstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:5px; top:30px; width:202px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>재원</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- <item>
- <label>퇴원진행</label>
- <value>3</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInqurySelectedPrgm();
- ]]>
- </script>
- </select1>
- <caption id="caption54" class="search_name" visibility="hidden" style="left:203px; top:40px; width:93px; height:17px; ">등록번호:</caption>
- <input id="input5" ref="/root/main/cond/pid" class="input_search" visibility="hidden" maxlength="10" style="left:280px; top:39px; width:50px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == 13) {
- var i;
-
- for(i=1; i < grd_wardpatlist.rows; i++) {
- if ( input5.currentText == model.getValue("/root/main_nm/wardpatinfo/wardpatlist["+i+"]/pid") ) {
- grd_wardpatlist.topRow = i;
- grd_wardpatlist.select(i,3,i,grd_wardpatlist.cols-1) = true;
- break;;
- }
- }
-
- if (i == grd_wardpatlist.rows) {
- messageBox("등록번호가","I004");
- }
-
- input5.currentText = "";
- model.setValue("/root/main/cond/pid","");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <line id="line25" class="line_4" style="x1:1006px; y1:8px; x2:1006px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line30" class="line_3" style="x1:279px; y1:38px; x2:279px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line29" class="line_3" style="x1:672px; y1:38px; x2:672px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line27" class="line_3" style="x1:279px; y1:38px; x2:672px; y2:38px; "/>
- <line id="line28" class="line_3" style="x1:279px; y1:57px; x2:674px; y2:57px; "/>
- <caption id="caption59" class="cell_1" style="left:280px; top:39px; width:25px; height:18px; vertical-align:middle; ">1군</caption>
- <caption id="caption66" class="cell_1" style="left:324px; top:39px; width:25px; height:18px; vertical-align:middle; ">2군</caption>
- <caption id="caption57" class="cell_1" style="left:368px; top:39px; width:25px; height:18px; vertical-align:middle; ">3군</caption>
- <caption id="caption58" class="cell_1" style="left:412px; top:39px; width:25px; height:18px; vertical-align:middle; ">4군</caption>
- <caption id="caption56" class="cell_1" style="left:456px; top:39px; width:25px; height:18px; vertical-align:middle; ">5군</caption>
- <caption id="caption65" class="cell_1" style="left:500px; top:39px; width:25px; height:18px; vertical-align:middle; ">6군</caption>
- <caption id="caption67" class="cell_1" style="left:544px; top:39px; width:89px; height:18px; vertical-align:middle; ">격리 신청/승인</caption>
- <caption id="caption55" class="cell_1" style="left:676px; top:39px; width:43px; height:18px; vertical-align:middle; ">재원수</caption>
- <output id="output31" ref="/root/init/wardprescondinfo/wardprescond/kind1" style="left:305px; top:38px; width:19px; height:19px; text-align:center; "/>
- <output id="output32" ref="/root/init/wardprescondinfo/wardprescond/kind2" style="left:349px; top:38px; width:19px; height:19px; text-align:center; "/>
- <output id="output33" ref="/root/init/wardprescondinfo/wardprescond/kind3" style="left:393px; top:38px; width:19px; height:19px; text-align:center; "/>
- <output id="output34" ref="/root/init/wardprescondinfo/wardprescond/kind4" style="left:437px; top:38px; width:19px; height:19px; text-align:center; "/>
- <output id="output35" ref="/root/init/wardprescondinfo/wardprescond/kind5" style="left:481px; top:38px; width:19px; height:19px; text-align:center; "/>
- <output id="output36" ref="/root/init/wardprescondinfo/wardprescond/kind6" style="left:525px; top:38px; width:19px; height:19px; text-align:center; "/>
- <output id="output38" ref="/root/init/wardprescondinfo/wardprescond/isolcnt" visibility="hidden" style="left:700px; top:20px; width:31px; height:19px; text-align:center; "/>
- <output id="output37" ref="/root/init/wardprescondinfo/wardprescond/inhospcnt" style="left:719px; top:38px; width:28px; height:19px; font-weight:bold; text-align:center; "/>
- <button id="button4" class="icon_search" disabled="false" visibility="hidden" style="left:332px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("개발중입니다.");
- ]]>
- </script>
- </button>
- <button id="button26" class="btn2_letter7" style="left:849px; top:38px; width:97px; height:19px; ">
- <caption>입원/전과/전실</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var orddd = model.getValue("/root/main/cond/orddd");
- var wardcd = model.getValue("/root/main/cond/wardcd");
- var param = orddd + "▩" + wardcd;
-
- setParameter("SMMNW01100_PARAM1", param);
- modal("SMMNW01100",1,50,250);
- fInqurySelectedPrgm();
-
- ]]>
- </script>
- </button>
- <button id="button23" class="btn2_letter6" disabled="false" style="left:1025px; top:38px; width:86px; height:19px; ">
- <caption>간호ITEM세팅</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMNR04100", 1 , 50, 50);
- ]]>
- </script>
- </button>
- <button id="button24" class="btn2_letter5" style="left:1113px; top:38px; width:75px; height:19px; ">
- <caption>내환자세팅</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
- setParameter("userid", model.getValue("/root/main/cond/userid"));
- setParameter("usernm", model.getValue("/root/main/cond/usernm"));
- modal("SMMNB00400","1" ,"868", "128");
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101");
-
- // 간호하드코딩 테이블 조회_20090415(ByJA)
- //model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
- model.removenode("/root/init/ward[wardcd = '"+ erdeptcd +"']"); // 응급의료센터 제외
-
- model.setValue("/root/main/cond/settingrnid", "");
- for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
-
- fInqurySelectedPrgm();
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn1_letter2" style="left:1074px; top:8px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
- //************************************ 원본_20080908 ****************************************************************************************************//
- // if (fileName != "") {
- // switch(model.getValue("/root/main/cond/prestimportid")) {
- // case "td":
- // grd_todolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- // break;
- // case "om":
- // grd_omprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- // break;
- // case "nm":
- // grd_wardpatlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- // break;
- // default :
- // messageBox("엑셀로 저장할 수 있는 리스트가 선택되지", "E007");
- // }
- //
- // }
- //************************************ 원본_20080908 ****************************************************************************************************//
- //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
- if (fileName != "") {
- var selectindex = swt_main.selectedIndex;
- switch(selectindex) {
- case 0: // nm
- grd_wardpatlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- break;
- case 1: // td
- grd_todolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- break;
- case 2: // om
- grd_omprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- break;
- default :
- messageBox("엑셀로 저장할 수 있는 리스트가 선택되지", "E007");
- }
-
- }
- //************************* model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ************************//
- ]]>
- </script>
- </button>
- <button id="button3" class="btn1_letter2" style="left:1132px; top:8px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var flag = swt_main.selectedIndex; //nm:0, td:1, om:2
- if (flag == 0) { // nm
- group4.visible = true;
- }else{
- fPrint();
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_3" style="x1:673px; y1:38px; x2:673px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="output1" ref="/root/init/wardprescondinfo/wardprescond/wardbedcnt" style="left:815px; top:38px; width:28px; height:19px; font-weight:bold; text-align:center; "/>
- <caption id="caption5" class="cell_1" style="left:747px; top:39px; width:67px; height:18px; vertical-align:middle; ">운영병상수</caption>
- <line id="line2" class="line_3" style="x1:844px; y1:38px; x2:844px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line3" class="line_3" style="x1:676px; y1:38px; x2:844px; y2:38px; "/>
- <line id="line4" class="line_3" style="x1:676px; y1:57px; x2:844px; y2:57px; "/>
- <output id="output2" ref="/root/init/wardprescondinfo/wardisolcnt/isolcnt" style="left:631px; top:38px; width:18px; height:19px; text-align:center; "/>
- <button id="button7" class="btn2_letter5" visibility="hidden" style="left:948px; top:33px; width:75px; height:19px; ">
- <caption>부적합검체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if (tar_unablespc.value == "") {
- // messageBox("부적합검체 환자가 없습니다.", "I");
- // } else {
- // setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
- // modal("SMADB01010",1,50,250);
- modal("SMLLP00700",1,50,250);
- fInqurySelectedPrgm();
- // }
- ]]>
- </script>
- </button>
- <caption id="caption15" style="left:648px; top:38px; width:10px; height:20px; ">/</caption>
- <output id="output3" ref="/root/init/wardprescondinfo/wardisolcnt/isolcnt2" style="left:656px; top:38px; width:16px; height:19px; text-align:center; "/>
- <button id="button8" class="btn2_letter5" visibility="visible" style="left:948px; top:38px; width:75px; height:19px; ">
- <caption>팔찌재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //설정된 상단정보를 불러옴
- model.removeNode("/root/main/paminfo");
- model.makeNode("/root/main/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
- if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
- var pid, indd, cretno, mskind, histstat;
-
- //patinfo 정보 셋팅
- //20080905 추가
- //port정보 가져오기
-
- /*
- // 바코드 라벨 초기 설정값 조회
- //fGetBarCodeInfo(scrnid); // CareCom.js
- var scrnid = "SMMNR00600";
- model.removeNodeset("/root/main_nm/barcdprntsetup");
- model.resetInstanceNode("/root/send/reqdata");
- model.makeValue("/root/send/scrnid", scrnid);
- submit("TRLLC90101");
-
- // 바코드 라벨 환경설정
- // fSettingBarCode(barcdRef); // CareCom.js
- var sSndMsg = "";
- var portOpenTF = ""; //오픈 성공 여부
- var barcdRef = "/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo";
- var sPrntKind = model.getValue(barcdRef + "[1]/prntkind");
- var sCommKind = model.getValue(barcdRef + "[1]/commkind");
-
- if(sCommKind == "01") {
- var sSetUpVal = model.getValue(barcdRef + "[1]/comm01/setupval");
- }else if(sCommKind == "02") {
- var comport = model.getValue(barcdRef + "[1]/comm02/comm");
- var sDataBit = model.getValue(barcdRef + "[1]/comm02/databit");
- var sStopBit = model.getValue(barcdRef + "[1]/comm02/stopbit");
- var sBaudRate = model.getValue(barcdRef + "[1]/comm02/baudrate");
- var sParity = model.getValue(barcdRef + "[1]/comm02/parity");
- var sSetUpVal = model.getValue(barcdRef + "[1]/comm02/setupval"); // 20080802추가(ByJA)
- CommAX.CommPort = sComm;
- CommAX.Settings = sBaudRate + "," + sParity + "," + sDataBit + "," + sStopBit;
- portOpenTF = CommAX.PortOpen(true);
- }else if(sCommKind == "03") {
- var sSetUpVal = model.getValue(barcdRef + "[1]/comm03/setupval");
- }
- */
-
- model.removenode("/root/send");
- model.removenode("/root/main_nm/barcdprntsetup");
- model.makenode("/root/main_nm/barcdprntsetup");
- model.makeValue("/root/send/scrnid", "SMMNR00600");
- var comport = "1";
- if(submit("TRLLC90101")){
- comport = model.getValue("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo[1]/comm02/comm");
- }
-
- // 바코드OCX 생성
- //2. 바코드 라벨 환경설정
- var barcdRef = "/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo";
- lzzfMakeBrcdPrntObjHanDo("CommAX", barcdRef);
-
- // if(document.all("CommAX") == null){
- // lzzfMakeBrcdPrntObjHanDo("CommAX");
- // }
-
- pid = model.getValue("/root/main/paminfo/list/pid");
- indd = model.getValue("/root/main/paminfo/list/indd");
- cretno = model.getValue("/root/main/paminfo/list/cretno");
- mskind = model.getValue("/root/main/paminfo/list/mskind");
- histstat = model.getValue("/root/main/paminfo/list/histstat");
-
- model.makeNode("/root/send/data17");
- model.makeNode("/root/hidden/h_receipt");
- model.makeNode("/root/hidden/h_receipt/receipt");
- // model.removeNodeset("/root/hidden/h_receipt");
- // model.removeNodeset("/root/send/data17");
-
- //원무 메소드 호출
- //fInPatBarCodePrn(pid, indd, cretno, mskind, histstat, comport);
-
- /* 삭제된 파라미터 : pPort - COM Port 지정값
- * 추가된 파라미터 : pSetyn - 프린터설정정보 셋팅여부
- * pScrid - 프린터설정정보 조회용 화면 아이디
- * pBarcdRef - 설정정보 xpath
- */
- //------(20100914) 경북대 s
- model.makevalue("/root/main/barcdprntsetup/macaddr","별도경로설정");
- //------(20100914) 경북대 e
- pmifPrintBarCode(pid, indd, cretno, mskind, histstat, "N", "SMMNR00600", barcdRef); // 20090527 변경됨.
- //------(20100914) 경북대 s
- model.removeNode("/root/main/barcdprntsetup/macaddr");
- //------(20100914) 경북대 e
-
- } else {
- messageBox("환자를 선택 후 출력하십시오", "I");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_sortflag" ref="/root/main/cond/sortflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:5px; top:48px; width:195px; height:12px; border-style:none; ">
- <choices>
- <item>
- <label>환자명순</label>
- <value>1</value>
- </item>
- <item>
- <label>병상순</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption68" class="search_name" style="left:314px; top:81px; width:90px; height:17px; ">혈액준비 :</caption>
- <caption id="caption2" class="search_name" style="left:528px; top:81px; width:86px; height:17px; ">
- <![CDATA[전실승인 :]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(model.getValue("/root/main/precondlist/chngroomaprvlist") !="") { //전실승인된 환자가 존재하면
- var orddd = model.getValue("/root/main/cond/orddd");
- var wardcd = model.getValue("/root/main/cond/wardcd");
- var param = orddd + "▩" + wardcd;
-
- setParameter("SMMNW01100_PARAM1", param);
- modal("SMMNW01100",1,50,250);
- fInqurySelectedPrgm();
- }
- ]]>
- </script>
- </caption>
- <caption id="cap_anticncrt" class="search_name" style="left:740px; top:81px; width:100px; height:17px; ">
- <![CDATA[항암미승인 :]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (tar_anticncrt.value == "") {
- messageBox("항암미승인 환자가 없습니다.", "I");
- } else {
- setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
- modal("SMADB01010",1,50,250);
- fInqurySelectedPrgm();
- }
- ]]>
- </script>
- </caption>
- <caption id="cap_unablspc" class="search_name" visibility="visible" style="left:966px; top:81px; width:100px; height:17px; ">
- <![CDATA[부적합검체 :]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (tar_unablspc.value == "") {
- messageBox("부적합검체 환자가 없습니다.", "I");
- } else {
- // setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
- // modal("SMADB01010",1,50,250);
- modal("SMLLP00700",1,50,250);
- fInqurySelectedPrgm();
- }
- ]]>
- </script>
- </caption>
- <textarea id="tar_chngroomaprv" ref="/root/main/precondlist/chngroomaprvlist" disabled="false" overflow="scroll" scroll="autovscroll" editable="false" style="left:614px; top:76px; width:120px; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
- <textarea id="tar_blodprep" ref="/root/main/precondlist/blodpreplist" disabled="false" overflow="scroll" scroll="autovscroll" editable="false" style="left:402px; top:76px; width:120; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
- <textarea id="tar_anticncrt" ref="/root/main/precondlist/anticncrlist" disabled="false" overflow="scroll" scroll="autovscroll" editable="false" style="left:840px; top:76px; width:120px; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
- <group id="grp_prcpnotend" visibility="hidden" style="left:1px; top:109px; width:1192px; height:630px; ">
- <datagrid id="grd_prcpnotend" nodeset="/root/init/wardprescondinfo/prcpnotend" caption="caption1^병실^환자명" colsep="^" colwidth="0, 84, 79" mergecellsfixedrows="bycolrec" rowsep="|" style="left:530px; top:35px; width:185px; height:250px; ">
- <col/>
- <col ref="roomcd"/>
- <col ref="hngnm"/>
- </datagrid>
- <caption id="caption14" style="left:540px; top:285px; width:165px; height:45px; ">
- <![CDATA[전일 미마감건이 존재합니다.
- 마감하시기 바랍니다.]]>
- </caption>
- <button id="button5" class="btn2_letter2" style="left:590px; top:325px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
- setParameter("fromdd", getDateTime( model.getValue("/root/main/cond/orddd").toDate().getAddDate(-1,"D") ,"D") );
- setParameter("param", "SMMNW00100");
- modal("SPMNR05400", "","","","", "/root/init/wardprescondinfo" ,"/root/main/wardprescondinfo");
- //재조회해서 재귀호출해야함
- fInqurySelectedPrgm();
- ]]>
- </script>
- </button>
- </group>
- <textarea id="tar_unablspc" ref="/root/main/precondlist/unablspclist" disabled="false" visibility="visible" overflow="scroll" scroll="autovscroll" editable="false" style="left:1066px; top:76px; width:120px; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <caption id="cap_prcp" visibility="hidden" style="left:731px; top:4px; width:94px; height:20px; ">
- <![CDATA[*일반/반환/퇴원]]>
- </caption>
- <caption id="cap_certcpap" visibility="hidden" style="left:250px; top:4px; width:260px; height:20px; color:#0000ff; ">
- <![CDATA[*환자이름 파란색 표기 : 제증명/사본발급 확인]]>
- </caption>
- <caption id="cap_ser" visibility="hidden" style="left:828px; top:1px; width:275px; height:25px; ">중증/희귀난치/중증화상 N : 등록전, Y : 등록완료</caption>
- <caption id="cap_color" class="color_6" visibility="hidden" style="left:730px; top:5px; width:15px; height:15px; background-color:#ffcccc; "/>
- <caption id="cap_uncnfm" visibility="hidden" style="left:750px; top:4px; width:38px; height:20px; ">미확인</caption>
- <shape id="sha_state" visibility="hidden" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:3px; width:658px; height:20px; background-color:#fffbf2; border-color:#7cbbdd; "/>
- <caption id="cap_state" visibility="hidden" style="left:7px; top:4px; width:653px; height:20px; ">ⓐ:입원 ⓞ:외출/외박 ⓓ:퇴원예고 ⓖ:예고심사완료 ⓒ:간호사퇴원정리완료 ⓘ:심사중 ⓕ:심사완료 (+):전실옴 (-):전실감</caption>
- <button id="button2" class="btn2_letter4" style="left:1104px; top:4px; width:64px; height:19px; ">
- <caption>컬럼설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sWardCD = getScreenMenuParameter();//model.getValue("/root/main/cond/wardcd") //20080725_메뉴설정에 따른 그리드 동적생성으로 변겅(ByJA)
- var prestimportid = model.getValue("/root/main/cond/prestimportid");
- var compscd = "";
- if(prestimportid == "nm") {
- if (sWardCD == "Partrtn") { // 분만
- compscd = "PA";
- } else if(sWardCD == "NBaby"){ // 신생아
- compscd = "NB";
- } else if(sWardCD == "BMT"){ //BMT
- compscd = "BT";
- } else if(sWardCD == "spclinj"){ // 특수주사실
- compscd = "SJ";
- } else {
- compscd = "NM";
- }
- model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00200");
- model.makeValue("/root/main/colsetinfo/grdid", "grd_wardpatlist");
- } else if (prestimportid == "td") {
- compscd = "TD";
- model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00400");
- model.makeValue("/root/main/colsetinfo/grdid", "grd_todolist");
- } else if (prestimportid =="om") {
- compscd = "OM";
- model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00300");
- model.makeValue("/root/main/colsetinfo/grdid", "grd_omprcplist");
- } else {
- if (sWardCD == "Partrtn") { // 분만
- compscd = "PA";
- } else if(sWardCD == "NBaby"){ // 신생아
- compscd = "NB";
- } else if(sWardCD == "BMT"){ //BMT
- compscd = "BT";
- } else if(sWardCD == "spclinj"){ // 특수주사실
- compscd = "SJ";
- } else {
- compscd = "NM";
- }
- model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00200");
- model.makeValue("/root/main/colsetinfo/grdid", "grd_wardpatlist");
- }
-
- var grdid = model.getValue("/root/main/colsetinfo/grdid");
- var caseid = model.getValue("/root/main/colsetinfo/caseid");
- var scrnid = model.getValue("/root/main/colsetinfo/scrnid");
- setParameter("SPMMB02400_param_scrnid" , scrnid);
- setParameter("SPMMB02400_param_grdid" , grdid);
- setParameter("SPMMB02400_param_caseid" , model.getValue("/root/main/cond/caseid"));
- setParameter("SPMMB02400_param_compscd" , compscd);
- modal("SPMNB02400");
-
- var useyn = getParameter("SPMMB02400_rtn_useyn");
- if(useyn == "Y"){
- model.makeValue("/root/chngcol/chngcolflag", "Y");
- fInqurySelectedPrgm();
- }
- ]]>
- </script>
- </button>
- <caption id="caption16" style="left:1169px; top:5px; width:26px; height:15px; ">
- <![CDATA[[표]]]>
- </caption>
- <button id="button6" class="btn5_letter4" visibility="visible" style="left:664px; top:3px; width:64px; height:19px; ">
- <caption>팔찌Test</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //설정된 상단정보를 불러옴
- model.removeNode("/root/main/paminfo");
- model.makeNode("/root/main/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
- if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
- var pid, indd, cretno, mskind, histstat;
-
- model.removenode("/root/send");
- model.removenode("/root/main_nm/barcdprntsetup");
- model.makenode("/root/main_nm/barcdprntsetup");
- model.makeValue("/root/send/scrnid", "SMMNR00600");
- var comport = "1";
- if(submit("TRLLC90101")){
- comport = model.getValue("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo[1]/comm02/comm");
- }
-
- // 바코드OCX 생성
- //2. 바코드 라벨 환경설정
- var barcdRef = "/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo";
- lzzfMakeBrcdPrntObjHanDo("CommAX", barcdRef);
-
- // if(document.all("CommAX") == null){
- // lzzfMakeBrcdPrntObjHanDo("CommAX");
- // }
-
- pid = model.getValue("/root/main/paminfo/list/pid");
- indd = model.getValue("/root/main/paminfo/list/indd");
- cretno = model.getValue("/root/main/paminfo/list/cretno");
- mskind = model.getValue("/root/main/paminfo/list/mskind");
- histstat = model.getValue("/root/main/paminfo/list/histstat");
-
- model.makeNode("/root/send/data17");
- model.makeNode("/root/hidden/h_receipt");
- model.makeNode("/root/hidden/h_receipt/receipt");
- // model.removeNodeset("/root/hidden/h_receipt");
- // model.removeNodeset("/root/send/data17");
-
- //원무 메소드 호출
- //fInPatBarCodePrn(pid, indd, cretno, mskind, histstat, comport);
-
- /* 삭제된 파라미터 : pPort - COM Port 지정값
- * 추가된 파라미터 : pSetyn - 프린터설정정보 셋팅여부
- * pScrid - 프린터설정정보 조회용 화면 아이디
- * pBarcdRef - 설정정보 xpath
- */
- //------(20100914) 경북대 s
- model.makevalue("/root/main/barcdprntsetup/macaddr","별도경로설정");
- //------(20100914) 경북대 e
- pmifPrintBarCode(pid, indd, cretno, mskind, histstat, "N", "SMMNR00600", "N"); // 20090527 변경됨.
- //------(20100914) 경북대 s
- model.removeNode("/root/main/barcdprntsetup/macaddr");
- //------(20100914) 경북대 e
-
- } else {
- messageBox("환자를 선택 후 출력하십시오", "I");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" visibility="hidden" style="left:895px; top:60px; width:290px; height:65px; background-color:#87CEFA; ">
- <caption id="caption17" class="tit_2" style="left:0px; top:5px; width:275px; height:15px; ">출력 방법을 선택하십시오.</caption>
- <button id="button10" class="btn5_letter2" navindex="22" style="left:195px; top:25px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPrintflag = model.getValue("/root/main/cond/printflag");
- if(sPrintflag == "3"){
- var sOrddd = model.getValue("/root/main/cond/orddd");
- var sWardcd = model.getValue("/root/main/cond/wardcd");
-
- if(sOrddd == "" || sOrddd == null){
- messageBox("업무일자를 선택하세요", "E", "");
- return;
- }
-
- if(sWardcd == "" || sWardcd == null){
- messageBox("병동을 선택하세요", "E", "");
- return;
- }
-
- model.removenode("/root/temp1");
- model.removenode("/root/temp");
- model.makeNode("/root/temp1/infection");
-
- group4.visible = false;
- model.setValue("/root/main/cond/printflag","");
- model.makeValue("/root/temp1/infection/orddd", sOrddd);
- model.makeValue("/root/temp1/infection/wardcd", sWardcd);
-
- submit("TRMNW00106");
-
- exeReportPreview("RPMNW00216", "XMLSTR", "/root/temp"); //미리보기출력
-
-
- } else{
- srchflag = "2";
- fInqurySelectedPrgm();
- group4.visible = false;
- fPrint();
- model.setValue("/root/main/cond/printflag","");
- radio3.refresh();
- srchflag = "1";
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="btn5_letter2" navindex="22" style="left:240px; top:25px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = false;
- ]]>
- </script>
- </button>
- <select1 id="radio3" ref="/root/main/cond/printflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:20px; top:26px; width:170px; height:34px; border-style:none; ">
- <choices>
- <item>
- <label>병실,환자명</label>
- <value>1</value>
- </item>
- <item>
- <label>병실,병상</label>
- <value>2</value>
- </item>
- <item>
- <label>감염정보</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|