1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>의뢰환자 회신현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <search>
- <fromdd/>
- <todd/>
- <hospgrade/>
- <coophospnm/>
- <drnm/>
- <orddeptcd/>
- <areacd/>
- <repltype/>
- <cptype/>
- <clsmatyn/>
- <titl/>
- <cnts/>
- <replflag/>
- </search>
- <viewcond>
- <pid/>
- <replseqno/>
- </viewcond>
- <maindata>
- <bcno/>
- <testmdlcd/>
- <lastreptdd/>
- <examgubun/>
- <level/>
- <srchpid/>
- <dutplceinstcd/>
- <prcpdd/>
- <execprcpuniqno/>
- </maindata>
- <reqdata>
- <srchfromdd/>
- <srchtodd/>
- <hospgrade/>
- <coophospnm/>
- <drnm/>
- <coophospcd/>
- <coopdrcd/>
- <hospflag/>
- <printyn/>
- <pid/>
- <replflag/>
- <printvlaue>D</printvlaue>
- </reqdata>
- </send>
- <main>
- <list>
- <repllist>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <sex/>
- <age/>
- <pid/>
- <rgstdd/>
- <reqdd/>
- <orddd/>
- <orddeptnm/>
- <orddrnm/>
- <repldd/>
- <diagnm/>
- <areacd/>
- <coophospnm/>
- <drnm/>
- <clsmatyn/>
- <cc/>
- <replflag/>
- <repltype/>
- <reqpath/>
- <chospath/>
- <rsrvdd/>
- <cptype/>
- <inyn/>
- <roomcd/>
- <hospgrade/>
- <cretno/>
- <acptseqno/>
- <formrecseq/>
- </repllist>
- </list>
- <previewinfo>
- <baseinfo>
- <instcdnm/>
- </baseinfo>
- <patientinfo>
- <pid/>
- <hngnm/>
- <age/>
- <sex/>
- <brthdd/>
- <rrgstno1/>
- <rrgstno2/>
- </patientinfo>
- <reqhospinfo>
- <reqdd/>
- <coophospcd/>
- <coophospnm/>
- <coopdrcd/>
- <coopdrnm/>
- <clsmatyn/>
- <gradyear/>
- <telno/>
- <coopflag/>
- <mpphontel/>
- <emailid/>
- <emailaddr/>
- <reqorddd/>
- <reqcretno/>
- <reqseqno/>
- <addr/>
- <detladdr/>
- <zipcd1/>
- <zipcd2/>
- <drflag/>
- </reqhospinfo>
- <replinfo>
- <pid/>
- <replseqno/>
- <replflag/>
- <writflag/>
- <recdd/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- <reqorddd/>
- <reqcretno/>
- <reqseqno/>
- <rsrvdd/>
- <rsrvtm/>
- <rsrvorddeptcd/>
- <rsrvorddrid/>
- <rsrvorddeptnm/>
- <rsrvorddrnm/>
- <rsrvcretno/>
- <diagnm/>
- <curecnts/>
- <delivefact/>
- <reqagnkindcd/>
- <reqagnkindnm/>
- <saverid/>
- <savernm/>
- <savedd/>
- <aprvrid/>
- <aprvrnm/>
- <aprvdd/>
- <saveflag/>
- <footflag/>
- </replinfo>
- <rsltinfo>
- <prcpdd/>
- <examnm/>
- <spcnm/>
- <examgubun/>
- <lastreptdd/>
- <bcno/>
- <testmdlcd/>
- <execprcpuniqno/>
- <pid/>
- <depth/>
- <replseqno/>
- <seqno/>
- </rsltinfo>
- <prcpinfo>
- <prcpdd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcpqtyunitnm/>
- <prcptims/>
- <prcpdayno/>
- <prcpno/>
- <prcphistno/>
- <pid/>
- <replseqno/>
- <seqno/>
- <prcpqtyunitflag/>
- </prcpinfo>
- <opinfo>
- <opdd/>
- <opnm/>
- <perfdeptnm/>
- <perfdrnm/>
- <opstatcd/>
- <pid/>
- <replseqno/>
- <seqno/>
- <oprsrvno/>
- <ophistno/>
- <opcd/>
- <perfdrid/>
- <perfdeptcd/>
- </opinfo>
- <dschinfo>
- <indd/>
- <orddeptnm/>
- <orddrnm/>
- <dschdd/>
- <roomcd/>
- <formrecseq/>
- <orddeptcd/>
- <orddrid/>
- <pid/>
- <replseqno/>
- <seqno/>
- </dschinfo>
- </previewinfo>
- <subordlist1>
- <subresultdetail1>
- <check/>
- <reptrslt/>
- <judgmark/>
- <judgmark2/>
- <prcpcd/>
- <prcpnm/>
- <img/>
- <imgcnts/>
- </subresultdetail1>
- </subordlist1>
- <unreplinfo>
- <unrepllist>
- <pid/>
- <hngnm/>
- <rgstdd/>
- <reqdd/>
- <orddd/>
- <orddeptnm/>
- <orddrnm/>
- <coophospnm/>
- <drnm/>
- <replseqno/>
- <orddrid/>
- <orddeptcd/>
- <maindeptnm/>
- <hospgradenm/>
- <instcd/>
- </unrepllist>
- </unreplinfo>
- <patinfo>
- <patinfolist>
- <chk/>
- <pid/>
- <hngnm/>
- <depthngnm/>
- <medispclnm/>
- <rgstdd/>
- <coophospnm/>
- <drnm/>
- <indd/>
- <dschdd/>
- <replmthd/>
- <recyn/>
- <insdchprntdt/>
- <printyn/>
- <orddd/>
- <cretno/>
- <instcdnm/>
- <zipcd1/>
- <zipcd2/>
- <addr1/>
- <addr2/>
- <brthdd/>
- <sex/>
- <age/>
- </patinfolist>
- </patinfo>
- </main>
- <init>
- <hospgrade>
- <A0429>
- </A0429>
- </hospgrade>
- <hospgrade1>
- <A0429>
- </A0429>
- </hospgrade1>
- <areacd>
- <A0426/>
- </areacd>
- <replflag>
- <A0636/>
- </replflag>
- <repltype>
- <A0423/>
- </repltype>
- <cptype>
- <A0420/>
- </cptype>
- <dept>
- <dept>
- </dept>
- </dept>
- <reqpath>
- <A0421/>
- </reqpath>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRAER00850" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/maindata" replace="instance" resultref="/root/main/subordlist1"/>
- <submission id="TRARC02507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/viewcond" resultref="/root/main/previewinfo"/>
- <submission id="TRARC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- <submission id="TRMMR01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inout" resultref="/root/main/reclist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRARC01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/unreplinfo"/>
- <submission id="TRARC02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/inoutrepllist"/>
- <submission id="TRARC02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fstreqlist"/>
- </model>
- </xhtml:head>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
- <script src="../../../ast/healcarecoopweb/js/ARCCommon.js" type="javascript"/>
- <script type="javascript">
- <![CDATA[
- // 최초값 셋팅
- function fInit()
- {
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- // 진료과
- //var instcd = "012";
- var instcd = getUserInfo("dutplceinstcd");
- //var standard_yn = "orduseyn";
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- sort_field = "depthngnm"
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0429", "A0423", "A0420", "A0421", "A0429", "A0636"),
- new Array("/root/init/hospgrade", "/root/init/repltype", "/root/init/cptype", "/root/init/reqpath", "/root/init/hospgrade1", "/root/init/replflag") , true);
-
- // 유형코드
- zbcfGetKindCodeList(
- new Array("A0014"), //업무규칙
- new Array("A0426"), //코드군
- new Array("/root/init/areacd"), //노드
- true, //minimum : true TRZBC00105
- new Array(""), //sorting 항목
- new Array("")
- );
-
- addComboItem("cmb_orddeptcd", "", "", "above");
- addComboItem("cmb_repltype", "", "-", "above");
- addComboItem("cmb_cptype", "", "-", "above");
- addComboItem("cmb_areacd", "", "-", "above");
- addComboItem("cmb_replflag", "", "-", "above");
-
- addComboItem("cmb_hospgrade", "협력병의원", "CA", "above");
-
- addComboItem("cmb_hospgrade", "", "", "above");
-
- cmb_hospgrade.select(0);
- cmb_orddeptcd.select(0);
- cmb_repltype.select(0);
- cmb_cptype.select(0);
- cmb_areacd.select(0);
- cmb_replflag.select(0);
-
- model.removeNodeset("/root/main/list/repllist");
- model.refresh();
- }
-
- // 조회시 필수 체크
- function fCheckDate()
- {
- var fromdd = model.getValue("/root/send/search/fromdd");
- var todd = model.getValue("/root/send/search/todd");
-
- if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
- messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
- }
-
- /*
- if( getDateInterval(fromdd, todd) > 31 ){
- messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
- }
- */
-
- if( getDateInterval(fromdd, todd) < 0 ){
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
- }
-
- // 날짜 계산
- var daycnt = getDateInterval(fromdd, todd);
-
- /*
- // 1일이 아닌 경우는 조건을 타야 함
- if (daycnt != 0)
- {
- // 진료과 체크
- if (model.getValue("/root/send/search/orddeptcd") == "")
- {
- messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
- //messageBox("진료과를 ","C002");
- return false;
- }
-
- //alert(ipt_hngnm.currentText.length);
- if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
- messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_coophospnm");
- return false;
- }
-
- if (ipt_drnm.currentText.length > 0 && ipt_drnm.currentText.length < 2) {
- messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_drnm");
- return false;
- }
- }
- */
-
-
- //alert(ipt_hngnm.currentText.length);
- if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
- messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_coophospnm");
- return false;
- }
-
- if (ipt_drnm.currentText.length > 0 && ipt_drnm.currentText.length < 2) {
- messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_drnm");
- return false;
- }
- return true;
- }
-
- // 조회
- function fSearch()
- {
- // 출력창 숨기기
- fCancel();
-
- // SQL 보완 필요
- // getReplPatList
- if (submit("TRARC01001", false) == true)
- {
- }
- else
- {
- messageBox("조회를", "E009");
- }
-
- }
-
- // 초기화
- function fAllClear()
- {
- // 출력창 숨기기
- fCancel();
-
- model.resetInstanceNode("/root/send/search");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
- cmb_hospgrade.select(0);
- cmb_orddeptcd.select(0);
- cmb_repltype.select(0);
- cmb_cptype.select(0);
- cmb_areacd.select(0);
- cmb_replflag.select(0);
-
- model.removeNodeset("/root/main/list/repllist");
- model.refresh();
- }
-
- // 리스트 엑셀 파일로 저장
- function fExcel()
- {
- // 출력창 숨기기
- fCancel();
-
- if (grd_list.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "의뢰환자 회신형황 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_list.saveExcel(fileName, "의뢰환자 회신현황", false, false, "", "", false);
- }
- }
-
- // 더블클릭시 상단정보 올리고 의뢰환자등록 팝업 호출
- function fOpen()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
- {
- }
- else
- {
- return;
- }
- var idxRow = grd_list.row; //그리드에서 해당 환자 선택
-
- var pid = model.getValue("/root/main/list/repllist["+idxRow+"]/pid");
- var orddd = model.getValue("/root/main/list/repllist["+idxRow+"]/orddd");
- var cretno = model.getValue("/root/main/list/repllist["+idxRow+"]/cretno");
- //var cretno = "1";
- var acptseqno = model.getValue("/root/main/list/repllist["+idxRow+"]/acptseqno");
- //var acptseqno = "1";
-
- var instcd = getUserInfo("dutplceinstcd");
- //alert(instcd);
- //var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + acptseqno + "▦" + orddd;
- var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + getCurrentDate();
- setParameter("condparam", condparam);
- //alert (condparam);
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- open("SPARC00100",1,1,1);
- }
-
- // 서식 팝업 로드
- function fIVewLoad()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
- if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
- {
- }
- else
- {
- return;
- }
- var idxRow = grd_list.row; //그리드에서 해당 환자 선택
- var reqformrecseq = model.getValue("/root/main/list/repllist["+idxRow+"]/formrecseq");
-
- if (reqformrecseq != 0)
- {
- // 미리보기
- fPreview();
- /*
- setParameter("openmode", "recform"); //오픈모드는 "recform"
- setParameter("formrecseq", reqformrecseq); //서식기록테이블의 formrecseq(기록순번)
- open("../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw", 1, 0, 0 ,"", "", "");
- */
-
- }
- }
-
- // 미리보기
- function fPreview()
- {
- var idxRow = grd_list.row; //그리드에서 해당 환자 선택
-
- model.resetInstanceNode("/root/send/viewcond");
- model.resetInstanceNode("/root/main/previewinfo");
- var pid = model.getValue("/root/main/list/repllist["+idxRow+"]/pid");
- var replseqno = model.getValue("/root/main/list/repllist["+idxRow+"]/formrecseq");
- var replflag = "P";
-
- fComPreview(pid, replseqno, replflag);
-
- //model.setValue("/root/send/viewcond/pid", model.getValue("/root/main/list/repllist["+idxRow+"]/pid"));
- //model.setValue("/root/send/viewcond/replseqno", model.getValue("/root/main/list/repllist["+idxRow+"]/formrecseq"));
-
- //if (submit("TRARC02507") == true)
- //{
- /*
- model.setValue("/root/main/previewinfo/reqhospinfo/coophospnm", model.getValue("/root/main/req_pat_info/patinfo/coophospnm"));
- model.setValue("/root/main/previewinfo/reqhospinfo/coopdrnm", model.getValue("/root/main/req_pat_info/patinfo/coopdrnm"));
- model.setValue("/root/main/previewinfo/reqhospinfo/addr", model.getValue("/root/main/req_pat_info/patinfo/addr"));
- model.setValue("/root/main/previewinfo/reqhospinfo/detladdr", model.getValue("/root/main/req_pat_info/patinfo/detladdr"));
- model.setValue("/root/main/previewinfo/reqhospinfo/zipcd1", model.getValue("/root/main/req_pat_info/patinfo/zipcd1"));
- model.setValue("/root/main/previewinfo/reqhospinfo/zipcd2", model.getValue("/root/main/req_pat_info/patinfo/zipcd2"));
- model.setValue("/root/main/previewinfo/reqhospinfo/drflag", model.getValue("/root/main/req_pat_info/patinfo/drflag"));
- */
- //}
- //exeReportPreview("RPARC02500", "XMLSTR");
- }
-
- // 미작성회신 회람문 출력
- function fUnReplPreview()
- {
- // reqGetUnReplInfo
- // getUnReplInfo
- if (submit("TRARC01002", false) == true)
- {
- //exeReportPreview("RPARC02500", "XMLSTR");
-
- var rid = "RPARC01000"; // 레포트명
- var dataType = "XMLSTR"; // 연계방법(XMLSTR/ XMLFILE/ XML)
- var paramsXPath = ""; // 매개변수필드 XPath
- var submitId = ""; // SubmitID
- var print = ""; // 출력여부(true, false)
- var printDialog = ""; // 인쇄 창 보임 여부(true, false)
- var fileType = ""; // 저장타입(xls/ pdf/ hml/rtf/ html/ bmp/ txt/ xml )
- var fileName = ""; // 파일명(c:\report\레포트명.저장타입)
- var fileDialog = ""; // 파일 저장 창 보임여부(0 : 숨김[기본]/1 : 보임)
- var closeYn = ""; // 미리보기창닫기여부(출력 후 true로 설정한 경우 미리보기 화면 닫기)
- var monNo = ""; // 모니터 번호
- var parentObjId = ""; // 부모객체명(미리 생성한 부모 객체명, 해당 부모 객체에 레포트 데이터를 생성한다.)
- var printPaperBin = ""; // 트레이번호
- var userService = ""; // 데이터 소스
- var showButton = ""; // 툴바버튼보임여부(visible, hidden)
- var printCount = ""; // 프린트장수(1, 2,..)
- var zoomRate = ""; // 미리보기뷰어 비율(0, 50,...)
- var printOption = ""; // 출력시 선택 옵션
- var dataXPath = ""; // 데이터 XPath
- var mainDataXPath = ""; // 메인리포트 반복XPath
- var subDataXPath = ""; // 서브리포트1 반복Xpath
-
- exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath);
-
-
- swt_prnt.visible = false;
-
- }
- else
- {
- messageBox("조회를", "E009");
- }
-
- }
-
- // 미회신회람출력 버튼 클릭
- function fPreviewGroup()
- {
- model.resetInstanceNode("/root/send/search/titl");
- model.resetInstanceNode("/root/send/search/cnts");
-
- swt_prnt.visible = true;
-
- model.setFocus("ipt_titl");
- }
-
- // 취소 버튼 클릭
- function fCancel()
- {
- model.resetInstanceNode("/root/send/search/titl");
- model.resetInstanceNode("/root/send/search/cnts");
- swt_prnt.visible = false;
- }
-
- // 입퇴원요약회신서 미리보기
- function fInoutPreview()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- var vInoutRow = grd_list.row;
-
- // 입퇴원요약회신서 조회
- model.resetInstanceNode("/root/send/reqdata");
- model.setValue("/root/send/reqdata/srchfromdd", model.getValue("/root/send/search/fromdd"));
- model.setValue("/root/send/reqdata/srchtodd", model.getValue("/root/send/search/todd"));
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/list/repllist[" + vInoutRow + "]/pid"));
-
- submit("TRARC02401");
-
- // model.alert("존재하는지 여부 체크 : " + model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[1]/pid"));
- if (model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[1]/pid") == null || model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[1]/pid") == "") {
- messageBox("입퇴원요약회신서 내역이 존재하지", "I011"); // "I011": " 않습니다."
- return;
- }
-
- var formrecseq = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[1]/formrecseq");
- model.removeNodeset("/root/main/medireccnts");
- model.makeValue("/root/send/inout/condflag", "keyval");
- model.makeValue("/root/send/inout/keyval", formrecseq);
- if(submit("TRMMR01201")){}
- var nodeList = instance1.selectNodes("/root/main/inoutrepllist/inoutrepllistinfo[1]");
- var rCSV = getNodeListCSV(nodeList); // alert(rCSV);
- model.removeNodeset("/root/main/patinfo/list");
- model.setValue("/root/main/patinfo", rCSV);
- var CSV = model.getValue("/root/main/patinfo");
- setCSVToNode("/root/main/patinfo", CSV);
-
- var rid = "RPARC02401"; // 레포트명
- var dataType = "XMLSTR"; // 연계방법(XMLSTR/ XMLFILE/ XML)
- var paramsXPath = ""; // 매개변수필드 XPath
- var submitId = ""; // SubmitID
- var print = ""; // 출력여부(true, false)
- var printDialog = ""; // 인쇄 창 보임 여부(true, false)
- var fileType = ""; // 저장타입(xls/ pdf/ hml/rtf/ html/ bmp/ txt/ xml )
- var fileName = ""; // 파일명(c:\report\레포트명.저장타입)
- var fileDialog = ""; // 파일 저장 창 보임여부(0 : 숨김[기본]/1 : 보임)
- var closeYn = ""; // 미리보기창닫기여부(출력 후 true로 설정한 경우 미리보기 화면 닫기)
- var monNo = ""; // 모니터 번호
- var parentObjId = ""; // 부모객체명(미리 생성한 부모 객체명, 해당 부모 객체에 레포트 데이터를 생성한다.)
- var printPaperBin = ""; // 트레이번호
- var userService = ""; // 데이터 소스
- //var showButton = "hidden"; // 툴바버튼보임여부(visible, hidden)
- var showButton = "hidden"; // 툴바버튼보임여부(visible, hidden)
-
- var printCount = ""; // 프린트장수(1, 2,..)
- var zoomRate = ""; // 미리보기뷰어 비율(0, 50,...)
- var printOption = ""; // 출력시 선택 옵션
- var dataXPath = ""; // 데이터 XPath
- var mainDataXPath = ""; // 메인리포트 반복XPath
- var subDataXPath = ""; // 서브리포트1 반복Xpath
-
- exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath);
-
- }
-
- // 1차회신서 미리보기
- function fFstPreview()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- var vFstRow = grd_list.row;
-
- //1차 회신서 조회
- model.resetInstanceNode("/root/send/reqdata");
- model.setValue("/root/send/reqdata/srchfromdd", model.getValue("/root/send/search/fromdd"));
- model.setValue("/root/send/reqdata/srchtodd", model.getValue("/root/send/search/todd"));
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/list/repllist[" + vFstRow + "]/pid"));
- model.setValue("/root/send/reqdata/replflag", "-");
-
- submit("TRARC02301");
-
- model.removeNodeset("/root/main/printinfo/printlist");
- model.makeNode("/root/main/printinfo/printlist");
- copyNodesetType("/root/main/printinfo/printlist", "/root/main/fstreqlist/fstreqlistinfo[1]");
-
- var rid = "RPARC02301"; // 레포트명
- var dataType = "XMLSTR"; // 연계방법(XMLSTR/ XMLFILE/ XML)
- var paramsXPath = "/root/main/printinfo/printlist"; // 매개변수필드 XPath
- var submitId = ""; // SubmitID
- var print = ""; // 출력여부(true, false)
- var printDialog = ""; // 인쇄 창 보임 여부(true, false)
- var fileType = ""; // 저장타입(xls/ pdf/ hml/rtf/ html/ bmp/ txt/ xml )
- var fileName = ""; // 파일명(c:\report\레포트명.저장타입)
- var fileDialog = ""; // 파일 저장 창 보임여부(0 : 숨김[기본]/1 : 보임)
- var closeYn = ""; // 미리보기창닫기여부(출력 후 true로 설정한 경우 미리보기 화면 닫기)
- var monNo = ""; // 모니터 번호
- var parentObjId = ""; // 부모객체명(미리 생성한 부모 객체명, 해당 부모 객체에 레포트 데이터를 생성한다.)
- var printPaperBin = ""; // 트레이번호
- var userService = ""; // 데이터 소스
- var showButton = "hidden"; // 툴바버튼보임여부(visible, hidden)
- var printCount = ""; // 프린트장수(1, 2,..)
- var zoomRate = ""; // 미리보기뷰어 비율(0, 50,...)
- var printOption = ""; // 출력시 선택 옵션
- var dataXPath = ""; // 데이터 XPath
- var mainDataXPath = ""; // 메인리포트 반복XPath
- var subDataXPath = ""; // 서브리포트1 반복Xpath
-
- exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath);
- }
-
- ]]>
- </script>
- <xhtml:body guideline="1,2;1,1195;1,1195;" style="font-family:굴림체; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
- <group id="group1" style="left:0px; top:10px; width:1194px; height:95px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:90px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:88px; "/>
- <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">등록일자 :</caption>
- <caption id="caption11" class="search_name" style="left:385px; top:35px; width:94px; height:17px; ">진료과 :</caption>
- <caption id="caption13" class="search_name" style="left:385px; top:10px; width:91px; height:17px; ">병원구분 :</caption>
- <caption id="caption5" class="search_no_b" style="left:219px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption12" class="search_name" style="left:20px; top:61px; width:94px; height:17px; ">회신유형 :</caption>
- <caption id="caption1" class="search_name" style="left:695px; top:35px; width:91px; height:17px; ">지역 :</caption>
- <caption id="caption4" class="search_name" style="left:20px; top:35px; width:94px; height:17px; ">의뢰의사 :</caption>
- <caption id="caption3" class="search_name" style="left:695px; top:10px; width:99px; height:17px; ">의뢰병원명 :</caption>
- <select1 id="cmb_cptype" ref="/root/send/search/cptype" class="combo_search" appearance="minimal" style="left:500px; top:60px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cptype/A0420">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption17" class="search_name" style="left:385px; top:61px; width:127px; height:17px; ">One-Stop :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:36px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDate() ) return; //필수 저장여부 체크
- fSearch();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:115px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:235px; top:10px; width:100px; height:19px; "/>
- <select1 id="cmb_hospgrade" ref="/root/send/search/hospgrade" class="combo_search" appearance="minimal" style="left:500px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hospgrade/A0429">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_coophospnm" ref="/root/send/search/coophospnm" class="input_search" style="left:865px; top:10px; width:140px; height:19px; "/>
- <input id="ipt_drnm" ref="/root/send/search/drnm" class="input_search" style="left:115px; top:35px; width:100px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:500px; top:35px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_areacd" ref="/root/send/search/areacd" class="combo_search" appearance="minimal" style="left:865px; top:35px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/areacd/A0014A0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_repltype" ref="/root/send/search/repltype" class="combo_search" appearance="minimal" style="left:115px; top:60px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/repltype/A0423">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_clsmatyn" ref="/root/send/search/clsmatyn" overflow="visible" appearance="full" style="left:1015px; top:60px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>동문</label>
- <value>E</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_replflag" ref="/root/send/search/replflag" class="combo_search" appearance="minimal" style="left:865px; top:60px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:695px; top:61px; width:164px; height:17px; ">진료정보공개동의여부 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:129px; x2:1194px; y2:129px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:108px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption8" class="tit_2" style="left:5px; top:112px; width:139px; height:14px; ">의뢰환자 리스트</caption>
- <datagrid id="grd_list" nodeset="/root/main/list/repllist" autoresize="true" caption="환자명^주민번호^주민번호^성별^나이^등록번호^의뢰등록일자^의뢰일자^진료일자^진료과^진료의사^회신일자^입퇴원요약회신일자^1차회신서출력일자^상병명^지역^의뢰병원명^의뢰의사^동문^주호소^동의여부^회신유형^의뢰경로^내원경로^진료예약일^One-Stop^입원여부^병실^병원구분^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23" colsep="^" colwidth="100, 70, 70, 40, 35, 80, 90, 90, 90, 100, 100, 90, 115, 115, 289, 110, 120, 100, 50, 150, 100, 100, 100, 80, 90, 100, 70, 80, 100, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:3px; top:133px; width:1189px; height:597px; vertical-align:middle; ">
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno1" style="text-align:center; "/>
- <col ref="rrgstno2" secretstartposition="1" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:right; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="repldd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="indschprntdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fstprntdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col disabled="true" ref="areacd" type="combo">
- <choices>
- <itemset nodeset="/root/init/areacd/A0014A0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="coophospnm"/>
- <col ref="drnm" style="text-align:center; "/>
- <col ref="clsmatyn" style="text-align:center; "/>
- <col ref="cc"/>
- <col disabled="true" ref="replflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="repltype" type="combo">
- <choices>
- <itemset nodeset="/root/init/repltype/A0423">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="reqpath" type="combo" style="left:1615px; top:23px; width:100px; height:13px; ">
- <choices>
- <itemset nodeset="/root/init/reqpath/A0421">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="chospath" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cptype" type="combo">
- <choices>
- <itemset nodeset="/root/init/cptype/A0420">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="inyn" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col disabled="true" ref="hospgrade" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/hospgrade1/A0429">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cretno" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="formresseq" visibility="hidden"/>
- <col ref="instcdnm" visibility="hidden"/>
- <col ref="maindeptnm" visibility="hidden"/>
- <col ref="url" visibility="hidden"/>
- <col ref="telno1" visibility="hidden"/>
- <col ref="talno2" visibility="hidden"/>
- <col ref="faxno" visibility="hidden"/>
- <col ref="addr1" visibility="hidden"/>
- <col ref="addr2" visibility="hidden"/>
- <col ref="drflag" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="srchfromdd" visibility="hidden"/>
- <col ref="srchfodd" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="depthngnm" visibility="hidden"/>
- <col ref="usernm" visibility="hidden"/>
- <col ref="replnm" visibility="hidden"/>
- <col ref="afterplan" visibility="hidden"/>
- <col ref="recnm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //fOpen();
- fIVewLoad();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_unreplinfo" class="btn2_letter7" visibility="visible" style="left:1050px; top:108px; width:97px; height:19px; ">
- <caption>미회신회람출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPreviewGroup();
- //fUnReplPreview();
- model.refresh();
- ]]>
- </script>
- </button>
- <switch id="swt_prnt" visibility="hidden" style="left:350px; top:275px; width:510px; height:255px; ">
- <case id="case1">
- <caption id="caption6" class="search_name" style="left:10px; top:40px; width:94px; height:17px; ">제 목 :</caption>
- <caption id="caption7" class="search_name" style="left:10px; top:70px; width:94px; height:17px; ">내 용 :</caption>
- <caption id="caption10" class="tit_2" style="left:10px; top:15px; width:139px; height:14px; ">출력내용</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:30px; x2:505px; y2:30px; "/>
- <button id="btn_cancel" class="btn4_letter2" style="left:450px; top:225px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCancel();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_confirm" class="btn4_letter2" style="left:390px; top:225px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUnReplPreview();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_titl" ref="/root/send/search/titl" class="input_default" imemode="hangul" style="left:95px; top:40px; width:410px; height:19px; "/>
- <textarea id="tar_cnts" ref="/root/send/search/cnts" imemode="hangul" style="left:95px; top:70px; width:410px; height:150px; "/>
- </case>
- </switch>
- <button id="button1" class="btn2_letter9" visibility="visible" style="left:926px; top:108px; width:119px; height:19px; ">
- <caption>1차회신서 미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fFstPreview();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter12" visibility="visible" style="left:769px; top:108px; width:152px; height:19px; ">
- <caption>입퇴원요약회신서 미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInoutPreview();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">의뢰환자 회신현황</caption>
- </group>
- <group id="group6" style="left:0px; top:755px; width:1195px; height:27px; ">
- <button id="btn_allclear" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllClear();
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|