12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412 |
- <?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/>
- <orddeptcd/>
- <orddrid>%</orddrid>
- <stat>%</stat>
- <pid/>
- <hngnm/>
- <coophospnm/>
- </search>
- <savedata/>
- <doctor/>
- <cond>
- <pid/>
- <orddd/>
- <cretno/>
- <seqno/>
- <replseqno/>
- <orddeptcd/>
- <orddrid/>
- </cond>
- <viewcond>
- <pid/>
- <replseqno/>
- </viewcond>
- </send>
- <main>
- <req_info>
- <req_pat_list>
- <stat/>
- <formrecdd/>
- <pid/>
- <hngnm/>
- <orddeptnm/>
- <orddrnm/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- <seqno/>
- <orddeptcd/>
- <orddrid/>
- <replseqno/>
- <age/>
- <sex/>
- <coophospnm/>
- <coophospcd/>
- <rsltcd/>
- <areacd/>
- <telno/>
- <faxno/>
- <resncd/>
- <enddd/>
- <reqcoophospnm/>
- <reqdrnm/>
- <reqcoophospcd/>
- <reqcoopdrcd/>
- <reqfromdd/>
- <reqdd/>
- <reqorddeptnm/>
- <reqorddrnm/>
- <reqorddd/>
- <reqcretno/>
- <reqacptseqno/>
- <reqseqno/>
- <reqflag/>
- <remfact/>
- <coopdrcd/>
- <fromdd/>
- <status/>
- <coopdrnm/>
- <aprvflag/>
- </req_pat_list>
- </req_info>
- <req_pat_info>
- <patinfo>
- <stat/>
- <formrecdd/>
- <pid/>
- <hngnm/>
- <orddeptnm/>
- <orddrnm/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- <seqno/>
- <orddeptcd/>
- <orddrid/>
- <replseqno/>
- <age/>
- <sex/>
- <coophospnm/>
- <coophospcd/>
- <coopdrcd/>
- <fromdd/>
- <rsltcd/>
- <areacd/>
- <telno/>
- <faxno/>
- <resncd/>
- <enddd/>
- <reqcoophospnm/>
- <reqdrnm/>
- <reqcoophospcd/>
- <reqcoopdrcd/>
- <reqfromdd/>
- <reqdd/>
- <reqorddeptnm/>
- <reqorddrnm/>
- <reqorddd/>
- <reqcretno/>
- <reqacptseqno/>
- <reqseqno/>
- <reqflag/>
- <remfact/>
- <status/>
- <coopdrnm/>
- <aprvflag/>
- <addr/>
- <detladdr/>
- <zipcd1/>
- <zipcd2/>
- <drflag/>
- <reqagnkindcd/>
- <reqagnkindnm/>
- <oldreqseqno/>
- <delivefact/>
- </patinfo>
- </req_pat_info>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <hospinfo>
- <hospinfolist/>
- </hospinfo>
- <hospflag/>
- <reqpopupflag/>
- <reqpopup>
- <reqpopuplist/>
- </reqpopup>
- <previewinfo>
- <baseinfo>
- <instcdnm/>
- <ordfromdd/>
- <ordtodd/>
- <telno1/>
- <telno2/>
- <faxno/>
- <url/>
- </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/>
- <faxno/>
- </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/>
- <replseqno/>
- <orddeptcd/>
- <orddrid/>
- <pid/>
- <replseqno/>
- <seqno/>
- </dschinfo>
- </previewinfo>
- </main>
- <init>
- <dept>
- </dept>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- <atdoct>
- <doctid/>
- <doctnm/>
- </atdoct>
- </doctlist>
- <areacd>
- <A0426/>
- </areacd>
- <resncd>
- <A0437/>
- </resncd>
- <rsltcd>
- <A0438/>
- </rsltcd>
- <reqagnkindcd>
- <A0556/>
- </reqagnkindcd>
- <replflag>
- <A0557/>
- </replflag>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(575,350,610,395);
- //fPreviewSetting();
-
- fInit();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="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="TRMRF02001" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMR01301" mediatype="application/x-www-form-urlencoded" method="post"/>
- <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="TRARC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/req_info"/>
- <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
- <submission id="TRARC01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_info"/>
- <submission id="TXARC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <submission id="TXARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- </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 src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
- <script src="../../../ast/healcarecoopweb/js/ARCCommon.js" type="javascript"/>
- <script type="javascript">
- <![CDATA[
- // 미리보기 셋팅
- function fPreviewSetting()
- {
- model.resetInstanceNode("/root/main/previewinfo");
- //var srch = model.getValue("/root/main/aaa/printname");
- //exeReportPreview(srch, "XML", "/root/main/aaa");
- //exeReportPreview(srch, "XML");
- var rid = "RPARC02500"; // 레포트명
- var dataType = "XML"; // 연계방법(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 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);
- }
- // 초기값
- function fInit()
- {
- /*
- 완료 : 완료일자가 있는거
- 진행중 : 출력은 했지만 완료일자는 없는거
- 미해결 : 완료일자 및 출력일자 둘다 없는거
- */
-
- //iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")));
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0437", "A0438", "A0556", "A0557"), new Array("/root/init/resncd", "/root/init/rsltcd", "/root/init/reqagnkindcd", "/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("")
- );
- // 진료과
- //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);
-
- addComboItem("cmb_orddeptcd", "", "", "above");
-
- //진료의사조회
- fDoctSearch();
-
- model.removeNodeset("/root/main/req_info/req_pat_list");
- model.resetInstanceNode("/root/main/req_pat_info");
-
- model.refresh();
- }
-
- // 진료의사 조회
- function fDoctSearch()
- {
- // 진료의사
- model.removenode("/root/send/doctor");
- model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
- model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
-
- submit("TRARC01302", false);
- cmb_orddrid.select(0);
- //model.setValue("/root/main/patient/orddrid", orddrid);
- }
- // 조회전 필수 체크
- function fCheckDateSend()
- {
- var fromdd = model.getValue("/root/send/search/fromdd");
- var todd = model.getValue("/root/send/search/todd");
- var pid = model.getValue("/root/send/search/pid");
-
- if (isNull(pid) == true)
- {
- 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;
- }
- */
-
- if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
- messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
-
- if (ipt_rumint.currentText.length > 0 && ipt_rumint.currentText.length < 2) {
- messageBox("되의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_rumint");
- return false;
- }
-
- }
- }
- return true;
- }
-
-
- //조회(되의뢰내역)
- function fSearch()
- {
- model.resetInstanceNode("/root/main/req_pat_info/patinfo");
- var formcd = "0000001542";
- //iviewer1.window.javascript.fLoadNewForm(formcd)
-
- if (submit("TRARC01301", false) == true)
- {
- // 미리보기 셋팅
- //fPreviewSetting();
-
- }
- else
- {
- messageBox("조회를", "E009");
- }
- }
-
- function fCheckDate()
- {
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("저장하고자 하는 환자를", "C002");
- return false;
- }
-
- var reqagnkindcd = model.getValue("/root/main/req_pat_info/patinfo/reqagnkindcd");
-
- // 의뢰병원으로 되의뢰
- if (reqagnkindcd == "2")
- {
- var reqcoophospcd = model.getValue("/root/main/req_pat_info/patinfo/reqcoophospcd");
- var reqcoopdrcd = model.getValue("/root/main/req_pat_info/patinfo/reqcoopdrcd");
- var reqfromdd = model.getValue("/root/main/req_pat_info/patinfo/reqfromdd");
-
- var coophospcd = model.getValue("/root/main/req_pat_info/patinfo/coophospcd");
- var coopdrcd = model.getValue("/root/main/req_pat_info/patinfo/coopdrcd");
- var fromdd = model.getValue("/root/main/req_pat_info/patinfo/fromdd");
-
- if (reqcoophospcd != coophospcd || reqcoopdrcd != coopdrcd || reqfromdd != fromdd)
- {
- // 실행 하시겠습니까?
- var btn = messageBox("의뢰병원정보와 되의뢰병원정보가 다릅니다. 저장을 하시겠습니까?", "Q999");
-
- if (btn == '6')
- {
- return true;
- }
- else
- {
- return false;
- }
- }
-
- }
-
- /*
- if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
- messageBox("완료일자를 ","C001");
- model.setFocus("ipt_enddd");
-
- return false;
- }
- */
- return true;
- }
-
- // 저장
- function fSave()
- {
- var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
-
- if (enddd == "")
- {
- model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
- }
- model.setValue("/root/main/req_pat_info/patinfo/reqflag", "A");
-
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo")
-
- if (submit("TXARC01301", false) == true)
- {
- //var formcd = "0000001542";
- //iviewer1.window.javascript.fLoadNewForm(formcd);
- //resetReportPreview();
- fSearch();
- }
- else
- {
- messageBox("저장에", "E009");
- }
- }
-
- // 삭제
- function fDelete()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- // 데이터 삭제시
- if(messageBox("해당 데이터를", "Q001")== "6")
- {
- if (isNull(cmb_confflag.value) == true)
- {
- messageBox("구분", "C001");
- model.setFocus("cmb_flag");
- return;
- }
-
- if (isNull(ipt_confdd.value) == true)
- {
- messageBox("등록일자를", "C001");
- model.setFocus("ipt_confdd");
- return;
- }
-
- model.setValue("/root/send/savedata/status", "d");
-
- if (submit("TXARC01301") == true)
- {
- fSearch();
- }
- else
- {
- messageBox("삭제에", "E009");
- }
-
- }
- else
- {
- return;
- }
- }
-
- // 병원 팝업
- function fHospPopup()
- {
- model.setValue("/root/main/hospflag", "N");
- //modal("SPARH00200",1,1,1);
- modal("SPARH00200", 1,10, 10, "SPARH00200", "", "");
- /*
- var flag = getParameter("flag")
- if (flag == "Y")
- {
- model.setValue("/root/main/req_pat_info/coophospnm", getParameter("coophospnm"));
- model.setValue("/root/main/req_pat_info/coophospcd", getParameter("coophospcd"));
- model.setValue("/root/main/req_pat_info/telno", getParameter("telno1"));
- model.setValue("/root/main/req_pat_info/faxno", getParameter("faxno"));
- model.setValue("/root/main/req_pat_info/areacd", getParameter("areacd"));
- model.refresh();
- }
- */
-
- if( model.getValue("/root/main/hospflag") == "Y" )
- {
- model.setValue("/root/main/req_pat_info/patinfo/coophospnm", model.getValue("/root/main/hospinfo/hospinfolist/coophospnm"));
- model.setValue("/root/main/req_pat_info/patinfo/coophospcd", model.getValue("/root/main/hospinfo/hospinfolist/coophospcd"));
- model.setValue("/root/main/req_pat_info/patinfo/coopdrnm", model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
- model.setValue("/root/main/req_pat_info/patinfo/coopdrcd", model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
- model.setValue("/root/main/req_pat_info/patinfo/areacd", model.getValue("/root/main/hospinfo/hospinfolist/areacd"));
- model.setValue("/root/main/req_pat_info/patinfo/telno", model.getValue("/root/main/hospinfo/hospinfolist/telno"));
- model.setValue("/root/main/req_pat_info/patinfo/faxno", model.getValue("/root/main/hospinfo/hospinfolist/faxno"));
- model.setValue("/root/main/req_pat_info/patinfo/fromdd", model.getValue("/root/main/hospinfo/hospinfolist/fromdd"));
-
- }
-
- model.refresh();
-
- }
-
-
- // 의뢰환자 정보 Popup
- function fReqPatPopup()
- {
- var pid = setParameter("pid", model.getValue("/root/main/req_pat_info/patinfo/pid")); //팝업 등록화면의 교육명에 값 가져가기
- var hngnm = setParameter("hngnm", model.getValue("/root/main/req_pat_info/patinfo/hngnm")); //팝업 등록화면의 교육명에 값 가져가기
-
- if (isNull(opt_pid.value) == true)
- {
- messageBox("등록번호를", "C001");
- model.setFocus("opt_pid");
- return;
- }
-
- model.setValue("/root/main/reqpopupflag", "N");
- modal("SPARC02100", 1,10, 10, "SPARC02100", "", "");
-
- if( model.getValue("/root/main/reqpopupflag") == "Y" )
- {
- //alert(model.getValue("/root/main/reqpopupflag"));
- model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", model.getValue("/root/main/reqpopup/reqpopuplist/coophospnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", model.getValue("/root/main/reqpopup/reqpopuplist/drnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqdd", model.getValue("/root/main/reqpopup/reqpopuplist/reqdd"));
- model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddeptnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddrnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqorddd", model.getValue("/root/main/reqpopup/reqpopuplist/orddd"));
- model.setValue("/root/main/req_pat_info/patinfo/reqcretno", model.getValue("/root/main/reqpopup/reqpopuplist/cretno"));
- model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", model.getValue("/root/main/reqpopup/reqpopuplist/acptseqno"));
- model.setValue("/root/main/req_pat_info/patinfo/reqseqno", model.getValue("/root/main/reqpopup/reqpopuplist/seqno"));
-
- model.setValue("/root/main/req_pat_info/patinfo/reqcoophospcd", model.getValue("/root/main/reqpopup/reqpopuplist/coophospcd"));
- model.setValue("/root/main/req_pat_info/patinfo/reqcoopdrcd", model.getValue("/root/main/reqpopup/reqpopuplist/coopdrcd"));
- model.setValue("/root/main/req_pat_info/patinfo/reqfromdd", model.getValue("/root/main/reqpopup/reqpopuplist/fromdd"));
-
-
-
- model.refresh();
- }
- }
-
- function fReqAgnInfo()
- {
- if (grd_list.rows <= 0) return;
- if (grd_list.row < 0) return;
- //그리드에서 해당 환자 선택
- var idxRow = grd_list.row;
- var pid = model.getValue("/root/main/req_pat_list["+idxRow+"]/pid");
- var hngnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/hngnm");
- var orddd = model.getValue("/root/main/req_pat_list["+idxRow+"]/orddd");
- var deptnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/deptnm");
- var atdoctnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/atdoctnm");
-
- model.setValue("/root/main/req_pat_info/patinfo/pid", pid);
- model.setValue("/root/main/req_pat_info/patinfo/hngnm", hngnm);
- model.setValue("/root/main/req_pat_info/patinfo/orddd", orddd);
- model.setValue("/root/main/req_pat_info/patinfo/deptnm", deptnm);
- model.setValue("/root/main/req_pat_info/patinfo/atdoctnm", atdoctnm);
-
- model.refresh();
- }
-
- // 등록번호 조회 팝업
- function fPatPopUp()
- {
- // model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
- // model.makeValue("/root/temp/srchcond","1");
- // model.makeValue("/root/temp/autoflag","Y");
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
-
- //model.resetInstanceNode("/root/main/patinfo/patinfolist");
- //model.resetInstanceNode("/root/send/cond");
- model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
-
- //fHistSearch();
-
- model.refresh();
-
- }
-
- // 되의뢰 리스트 선택
- function fGrdClick()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- var lrow = grd_list.row;
- if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
- {
- //fBiztrgtClick();
- }
- else
- {
- return;
- }
-
- /*
- model.copyNode("/root/main/req_pat_info/patinfo", "/root/main/req_info/req_pat_list[" + lrow + "]");
- //model.setValue("/root/main/req_pat_into/reqflag", "A");
- */
-
- model.resetInstanceNode("/root/send/cond");
-
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecdd"));
- model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
- model.setValue("/root/send/cond/replseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno"));
- model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
-
- if (submit("TRARC01303", false) == true)
- {
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
- {
- model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
- model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
- model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
- model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
- model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
- model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
- model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
-
- model.setValue("/root/main/req_pat_info/patinfo/replseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno"));
- model.setValue("/root/main/req_pat_info/patinfo/status", "i");
- }
-
- // 회신내용 미리보기
- //fPreview();
-
- // 공통 function 으로 대체
- var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
- var replseqno = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno");
- var replflag = "A";
-
- fComPreview(pid, replseqno, replflag);
-
-
- }
-
- //model.copyNode("/root/main/req_pat_info", "/root/main/req_info/req_pat_list[" + lrow + "]");
- //model.setValue("/root/main/req_pat_into/reqflag", "A");
-
- // 서식 로드
- //var formrecseq = model.getValue("/root/send/cond/formrecseq");
- //iviewer1.window.javascript.fLoadRecForm(formrecseq);
- /*
- model.setValue("/root/main/req_pat_info/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/main/req_pat_info/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
- model.setValue("/root/main/req_pat_info/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
- model.setValue("/root/main/req_pat_info/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
- model.setValue("/root/main/req_pat_info/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/odrdd"));
- model.setValue("/root/main/req_pat_info/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
- model.setValue("/root/main/req_pat_info/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
- model.setValue("/root/main/req_pat_info/coophospnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/coophospnm"));
- model.setValue("/root/main/req_pat_info/areacd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/areacd"));
- model.setValue("/root/main/req_pat_info/telno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/telno"));
- model.setValue("/root/main/req_pat_info/faxno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/faxno"));
- model.setValue("/root/main/req_pat_info/resncd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/resncd"));
- model.setValue("/root/main/req_pat_info/enddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/enddd"));
- model.setValue("/root/main/req_pat_info/rsltcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/rsltcd"));
- model.setValue("/root/main/req_pat_info/reqorddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqorddd"));
- model.setValue("/root/main/req_pat_info/reqcretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqcretno"));
- model.setValue("/root/main/req_pat_info/reqacptseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqacptseqno"));
- model.setValue("/root/main/req_pat_info/reqseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqseqno"));
- model.setValue("/root/main/req_pat_info/reqcoophospnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqcoophospnm"));
- model.setValue("/root/main/req_pat_info/reqdrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqdrnm"));
- model.setValue("/root/main/req_pat_info/reqorddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqorddeptnm"));
- model.setValue("/root/main/req_pat_info/reqorddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqorddrnm"));
- model.setValue("/root/main/req_pat_info/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/main/req_pat_info/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
- model.setValue("/root/main/req_pat_info/coophospcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/coophospcd"));
- model.setValue("/root/main/req_pat_info/reqflag", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/reqflag"));
- model.setValue("/root/main/req_pat_info/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
- model.setValue("/root/main/req_pat_info/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/main/req_pat_info/acptseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/acptseqno"));
- model.setValue("/root/main/req_pat_info/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
-
- model.setValue("/root/main/req_pat_info/status", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/status"));
- */
- model.refresh();
-
- }
-
- // 미리보기
- function fPreview()
- {
- var lrow = grd_list.row;
-
- model.resetInstanceNode("/root/send/viewcond");
- model.resetInstanceNode("/root/main/previewinfo");
-
- model.setValue("/root/send/viewcond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/send/viewcond/replseqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/replseqno"));
-
- 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");
-
- var rid = "RPARC02500"; // 레포트명
- 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 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);
- //exeReportPreview(rid, dataType);
-
- }
-
- // 의뢰정보 삭제
- function fReqDel()
- {
- /*
- opt_reqcoophospnm.value = "";
- opt_reqdrnm.value = "";
- opt_reqdd.value = "";
- opt_reqorddeptnm.value = "";
- opt_reqorddrnm.value = "";
- */
- var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
-
- model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqdd", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqorddd", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqcretno", "0");
- model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", "0");
- model.setValue("/root/main/req_pat_info/patinfo/reqseqno", "0");
-
- model.refresh();
-
- }
-
- // 되의뢰 정보 삭제
- function fReqAgnDel()
- {
- var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
-
- model.setValue("/root/main/req_pat_info/coophospnm", "");
- model.setValue("/root/main/req_pat_info/rsltcd", "");
- model.setValue("/root/main/req_pat_info/areacd", "");
- model.setValue("/root/main/req_pat_info/telno", "");
- model.setValue("/root/main/req_pat_info/faxno", "");
- model.setValue("/root/main/req_pat_info/resncd", "");
- model.setValue("/root/main/req_pat_info/enddd", "");
- model.setValue("/root/main/req_pat_info/coophospcd", "");
- model.refresh();
-
- }
-
- // 출력
- function fReplcheck()
- {
- var currow = grd_list.row;
- var sREPLDOCULIST_PATH = "/root/main/req_pat_info/patinfo";
- var formrecseq = model.getValue(sREPLDOCULIST_PATH+"/replseqno")
- var pid = model.getValue(sREPLDOCULIST_PATH+"/pid")
- // var irow = grd_list.rows;
- // var cnt = 0;
- // var savedata = getNodeListCSV(instance1.selectNodes(sREPLDOCULIST_PATH));
-
- if (pid == "")
- {
- messageBox("출력하고자 하는 환자를", "C002");
- return;
- }
-
- //getFormData("0000001542", formrecseq);
- //setParameter("reportprintyn", "");
- //exeReportPreview("RPARC02500", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
-
- var rid = "RPARC02500"; // 레포트명
- var dataType = "XMLSTR"; // 연계방법(XMLSTR/ XMLFILE/ XML)
- var paramsXPath = ""; // 매개변수필드 XPath
- var submitId = ""; // SubmitID
- var print = "true"; // 출력여부(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);
- //if (getParameter("reportprintyn") == "Y"){
-
- model.resetInstanceNode("/root/send/savedata");
-
- /*
- model.makeValue("/root/send/savedata/instcd" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/instcd"));
- model.makeValue("/root/send/savedata/formrecseq" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/formrecseq"));
- model.makeValue("/root/send/savedata/pid" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/pid"));
- model.makeValue("/root/send/savedata/orddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/orddd"));
- model.makeValue("/root/send/savedata/cretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/cretno"));
- model.makeValue("/root/send/savedata/reqorddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/orddd"));
- model.makeValue("/root/send/savedata/reqcretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/cretno"));
- model.makeValue("/root/send/savedata/reqseqno" ,model.getValue(sREPLDOCULIST_PATH+"["+ currow +"]/seqno"));
- */
-
- model.setValue("/root/main/req_pat_info/patinfo/reqflag", "A");
-
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo")
-
- if(submit("TXARC01302",false)==true){
- fSearch();
- //messageBox("출력저장", "I001");
- }
- //}
- /*
- //alert(formrecseq);
- getFormData("0000001542", formrecseq);
-
- exeReportPreview("RFM0154200", "XMLSTR");
-
- //alert(getParameter("reportprintyn"));
-
- if (getParameter("reportprintyn") == "Y")
- {
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo")
-
- if(submit("TXARC01302", false)==true){
- messageBox("출력이", "I002");
- }
- }
- */
- /*
- for(var i=1; i < irow; i++){
- var chk = model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/chk")
-
- if (chk == "true"){
-
- model.makeValue("/root/send/savedata/instcd" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/instcd"));
- model.makeValue("/root/send/savedata/formrecseq" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/formrecseq"));
- model.makeValue("/root/send/savedata/pid" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/pid"));
- model.makeValue("/root/send/savedata/orddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/orddd"));
- model.makeValue("/root/send/savedata/cretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/cretno"));
- model.makeValue("/root/send/savedata/reqorddd" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/orddd"));
- model.makeValue("/root/send/savedata/reqcretno" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/cretno"));
- model.makeValue("/root/send/savedata/reqseqno" ,model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/seqno"));
-
- getFormData("0000001536", model.getValue(sREPLDOCULIST_PATH+"["+ i +"]/formrecseq"));
-
- setParameter("reportprintyn", "");
- exeReportPreview("RFM0153600", "XMLSTR");
- // alert(getParameter('reportprintyn'));
- if (getParameter("reportprintyn") == "Y"){
- if(submit("TXARC02001",false)==true){
- messageBox("출력저장", "I001");
- }
- }
- cnt++;
- model.resetInstanceNode("/root/send/savedata");
- }
- }
-
-
- if(cnt == 0){
- messageBox("출력할 정보가", "I004");
- return;
- }
-
-
- fSearch();
- model.refresh();
-
- */
-
- }
- ]]>
- </script>
- <xhtml:body 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:111px; height:14px; ">되의뢰관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:570px; top:10px; width:620px; height:730px; ">
- <line id="line72" class="line_1" style="x1:5px; y1:18px; x2:620px; y2:17px; "/>
- <caption id="caption112" class="tit_2" style="left:5px; top:1px; width:116px; height:13px; ">환자기본정보</caption>
- <caption id="caption96" class="cell_1" style="left:210px; top:20px; width:90px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption76" class="cell_1" style="left:5px; top:21px; width:90px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption77" class="cell_1" style="left:415px; top:21px; width:90px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption12" class="cell_1" style="left:210px; top:46px; width:90px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption4" class="cell_1" style="left:5px; top:46px; width:90px; height:23px; vertical-align:middle; ">진료일자</caption>
- <caption id="caption16" class="cell_1" style="left:415px; top:46px; width:90px; height:23px; vertical-align:middle; ">주치의</caption>
- <line id="line44" class="line_2" style="x1:5px; y1:44px; x2:620px; y2:44px; "/>
- <line id="line47" class="line_2" style="x1:5px; y1:223px; x2:620px; y2:223px; "/>
- <line id="line2" class="line_2" style="x1:5px; y1:248px; x2:620px; y2:248px; "/>
- <button id="button5" class="icon_search" navindex="14" style="left:396px; top:205px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHospPopup();
- ]]>
- </script>
- </button>
- <caption id="caption20" class="cell_1" style="left:5px; top:200px; width:90px; height:23px; vertical-align:middle; ">되의뢰 병원명</caption>
- <caption id="caption45" class="cell_1" style="left:5px; top:225px; width:90px; height:23px; vertical-align:middle; ">지역구분</caption>
- <caption id="caption50" class="cell_1" style="left:415px; top:250px; width:90px; height:23px; vertical-align:middle; ">팩스번호</caption>
- <caption id="caption52" class="cell_1" style="left:210px; top:225px; width:90px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:250px; width:90px; height:23px; vertical-align:middle; ">되의뢰사유</caption>
- <caption id="caption8" class="cell_1" style="left:415px; top:275px; width:90px; height:23px; vertical-align:middle; ">되의뢰완료일</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:326px; x2:620px; y2:325px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:308px; width:116px; height:13px; ">되의뢰서</caption>
- <line id="line17" class="line_3" style="x1:5px; y1:299px; x2:620px; y2:299px; "/>
- <select1 id="cmb_areacd" ref="/root/main/req_pat_info/patinfo/areacd" class="combo_default" disabled="true" navindex="15" appearance="minimal" style="left:97px; top:227px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/areacd/A0014A0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line5" class="line_1" style="x1:5px; y1:95px; x2:620px; y2:94px; "/>
- <caption id="caption13" class="tit_2" style="left:5px; top:78px; width:116px; height:13px; ">의뢰정보</caption>
- <line id="line6" class="line_3" style="x1:5px; y1:70px; x2:620px; y2:70px; "/>
- <caption id="caption14" class="cell_1" style="left:5px; top:98px; width:90px; height:23px; vertical-align:middle; ">의뢰병원</caption>
- <caption id="caption15" class="cell_1" style="left:415px; top:98px; width:90px; height:23px; vertical-align:middle; ">의뢰의사</caption>
- <caption id="caption17" class="cell_1" style="left:210px; top:123px; width:90px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption18" class="cell_1" style="left:5px; top:123px; width:90px; height:23px; vertical-align:middle; ">의뢰일자</caption>
- <caption id="caption19" class="cell_1" style="left:415px; top:123px; width:90px; height:23px; vertical-align:middle; ">주치의</caption>
- <button id="button1" class="icon_search" navindex="13" style="left:395px; top:100px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqPatPopup();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_3" style="x1:5px; y1:147px; x2:620px; y2:147px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:121px; x2:615px; y2:121px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:155px; width:116px; height:13px; ">되의뢰정보</caption>
- <line id="line9" class="line_1" style="x1:5px; y1:172px; x2:620px; y2:171px; "/>
- <output id="opt_pid" ref="/root/main/req_pat_info/patinfo/pid" class="output_fix" appearance="output" style="left:97px; top:22px; width:110px; height:19px; "/>
- <output id="opt_hngnm" ref="/root/main/req_pat_info/patinfo/hngnm" class="output_fix" appearance="output" style="left:302px; top:22px; width:110px; height:19px; "/>
- <select1 id="cmb_sex" ref="/root/main/req_pat_info/patinfo/sex" disabled="true" navindex="11" appearance="minimal" style="left:507px; top:22px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <output id="opt_age" ref="/root/main/req_pat_info/patinfo/age" class="output_fix" appearance="output" style="left:565px; top:22px; width:50px; height:19px; text-align:right; "/>
- <output id="opt_orddd" ref="/root/main/req_pat_info/patinfo/orddd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:97px; top:48px; width:110px; height:19px; text-align:center; "/>
- <output id="opt_orddeptnm" ref="/root/main/req_pat_info/patinfo/orddeptnm" class="output_fix" appearance="output" style="left:302px; top:48px; width:110px; height:19px; "/>
- <output id="opt_orddrnm" ref="/root/main/req_pat_info/patinfo/orddrnm" class="output_fix" appearance="output" style="left:507px; top:48px; width:110px; height:19px; "/>
- <output id="opt_reqcoophospnm" ref="/root/main/req_pat_info/patinfo/reqcoophospnm" class="output_fix" inputtype="date" appearance="output" style="left:97px; top:100px; width:293px; height:19px; "/>
- <output id="opt_reqdrnm" ref="/root/main/req_pat_info/patinfo/reqdrnm" class="output_fix" appearance="output" style="left:507px; top:100px; width:110px; height:19px; "/>
- <output id="opt_reqdd" ref="/root/main/req_pat_info/patinfo/reqdd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:97px; top:125px; width:110px; height:19px; text-align:center; "/>
- <output id="opt_reqorddeptnm" ref="/root/main/req_pat_info/patinfo/reqorddeptnm" class="output_fix" appearance="output" style="left:302px; top:125px; width:110px; height:19px; "/>
- <output id="opt_reqorddrnm" ref="/root/main/req_pat_info/patinfo/reqorddrnm" class="output_fix" appearance="output" style="left:507px; top:125px; width:110px; height:19px; "/>
- <output id="opt_coophospnm" ref="/root/main/req_pat_info/patinfo/coophospnm" class="output_fix" appearance="output" style="left:97px; top:201px; width:293px; height:19px; "/>
- <output id="opt_telno" ref="/root/main/req_pat_info/patinfo/telno" class="output_fix" disabled="true" appearance="output" style="left:302px; top:227px; width:110px; height:19px; "/>
- <output id="opt_faxno" ref="/root/main/req_pat_info/patinfo/faxno" class="output_fix" disabled="true" appearance="output" style="left:507px; top:252px; width:110px; height:19px; "/>
- <select1 id="cmb_resncd" ref="/root/main/req_pat_info/patinfo/resncd" navindex="17" appearance="minimal" style="left:97px; top:252px; width:313px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/A0437">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_enddd" ref="/root/main/req_pat_info/patinfo/enddd" class="input_essential" navindex="19" inputtype="date" style="left:507px; top:277px; width:110px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:415px; top:225px; width:90px; height:23px; vertical-align:middle; ">되의뢰결과</caption>
- <button id="btn_reqdel" class="btn2_letter3" navindex="12" style="left:565px; top:74px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqDel();
- ]]>
- </script>
- </button>
- <select1 id="cmb_rsltcd" ref="/root/main/req_pat_info/patinfo/rsltcd" navindex="16" appearance="minimal" style="left:507px; top:227px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rsltcd/A0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption26" class="cell_1" style="left:415px; top:200px; width:90px; height:23px; vertical-align:middle; ">되의뢰의사</caption>
- <output id="opt_rumint" ref="/root/main/req_pat_info/patinfo/coopdrnm" class="output_fix" appearance="output" style="left:507px; top:201px; width:110px; height:19px; "/>
- <select1 id="cmb_replflag" ref="/root/main/req_pat_info/patinfo/aprvflag" class="input" navindex="18" appearance="minimal" style="left:97px; top:277px; width:135px; height:19px; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- <item>
- <label>누락</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption69" class="cell_1" style="left:5px; top:275px; width:90px; height:23px; vertical-align:middle; ">동의여부</caption>
- <caption id="caption28" class="cell_1" style="left:5px; top:175px; width:90px; height:23px; vertical-align:middle; ">되의뢰유형</caption>
- <select1 id="combo1" ref="/root/main/req_pat_info/patinfo/reqagnkindcd" class="combo_default" disabled="true" navindex="15" appearance="minimal" style="left:97px; top:177px; width:208px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqagnkindcd/A0556">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line10" class="line_2" style="x1:5px; y1:198px; x2:620px; y2:198px; "/>
- <output id="output1" ref="/root/main/req_pat_info/patinfo/reqagnkindnm" class="output_fix" appearance="output" style="left:310px; top:177px; width:307px; height:19px; "/>
- <line id="line11" class="line_2" style="x1:5px; y1:273px; x2:620px; y2:273px; "/>
- </group>
- <group id="group4" style="left:0px; top:0px; width:565px; height:740px; ">
- <datagrid id="grd_list" nodeset="/root/main/req_info/req_pat_list" caption="상태^작성일^환자번호^환자명^진료과^진료의사" colsep="^" colwidth="63, 80, 80, 100, 110, 110" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" navindex="10" style="left:0px; top:175px; width:565px; height:375px; ">
- <col disabled="true" ref="stat" type="combo">
- <choices>
- <item>
- <label>미해결</label>
- <value>1</value>
- </item>
- <item>
- <label>진행중</label>
- <value>2</value>
- </item>
- <item>
- <label>완료</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGrdClick();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:156px; width:126px; height:13px; ">되의뢰환자 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:171px; x2:565px; y2:171px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:565px; height:140px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:565px; height:140px; "/>
- <line id="line13" class="line_4" style="x1:497px; y1:103px; x2:497px; y2:126px; "/>
- <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" navindex="6" appearance="minimal" style="left:390px; top:57px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/doctlist/medispcl/">
- <label ref="doctnm"/>
- <value ref="doctid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_stat" ref="/root/send/search/stat" navindex="8" overflow="visible" appearance="full" cols="4" rows="1" style="left:125px; top:110px; width:210px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>미해결</label>
- <value>1</value>
- </item>
- <item>
- <label>진행중</label>
- <value>2</value>
- </item>
- <item>
- <label>완료</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" navindex="3" maxlength="10" style="left:125px; top:30px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
- {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" style="left:285px; top:57px; width:91px; height:17px; ">담당의사 :</caption>
- <caption id="caption11" class="search_name" style="left:10px; top:109px; width:91px; height:17px; ">상태구분 :</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:57px; width:91px; height:17px; ">진료과 :</caption>
- <caption id="caption3" class="search_name" style="left:10px; top:5px; width:91px; height:17px; ">조회기간 :</caption>
- <caption id="caption23" class="search_name" style="left:10px; top:31px; width:95px; height:17px; ">등록번호 :</caption>
- <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" navindex="4" imemode="hangul" style="left:390px; top:30px; width:120px; height:19px; "/>
- <caption id="caption24" class="search_name" style="left:285px; top:31px; width:80px; height:17px; ">환자명 :</caption>
- <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" navindex="2" inputtype="date" style="left:245px; top:5px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption5" class="search_no_b" style="left:230px; top:5px; width:12px; height:17px; ">~</caption>
- <caption id="caption25" class="search_name" style="left:10px; top:83px; width:126px; height:17px; ">되의뢰병원 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" navindex="5" appearance="minimal" style="left:125px; top:57px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDoctSearch();
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_rumint" ref="/root/send/search/coophospnm" class="input_search" navindex="7" imemode="hangul" style="left:125px; top:83px; width:120px; height:19px; "/>
- <button id="btn_pat" class="icon_search" style="left:249px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatPopUp();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" navindex="9" style="left:502px; top:105px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDateSend() ) return; //필수 저장여부 체크
- fSearch();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" navindex="1" inputtype="date" style="left:125px; top:5px; width:100px; height:19px; text-align:center; "/>
- </group>
- <caption id="caption27" class="tit_2" style="left:5px; top:635px; width:126px; height:13px; ">참고사항</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:650px; x2:565px; y2:650px; "/>
- <textarea id="tar_remfact" ref="/root/main/req_pat_info/patinfo/remfact" imemode="hangul" maxlength="1000" style="left:0px; top:655px; width:565px; height:80px; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:575px; x2:565px; y2:575px; "/>
- <caption id="caption29" class="tit_2" style="left:5px; top:560px; width:126px; height:13px; ">의료협력 전달사항</caption>
- <textarea id="tar_delivefact" ref="/root/main/req_pat_info/patinfo/delivefact" imemode="hangul" maxlength="1000" style="left:0px; top:580px; width:565px; height:50px; "/>
- </group>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="21" style="left:1131px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDate() ) return; //필수 저장여부 체크
- fSave();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" navindex="20" style="left:0px; top:3px; width:75px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReplcheck();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|