123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMARC02400_입퇴원요약지회신조회.xrw
- * 설 명 : 입퇴원요약지회신조회
- * 작 성 자 : 김다영
- * 작 성 일 : 2007.12.12
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>입퇴원요약지회신조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <inoutrepllist>
- <inoutrepllistinfo>
- <chk/>
- <pid/>
- <hngnm/>
- <depthngnm/>
- <medispclnm/>
- <rgstdd/>
- <coophospnm/>
- <drnm/>
- <indd/>
- <dschdd/>
- <replmthd/>
- <recyn/>
- <fstprint/>
- <insdchprntdt/>
- <seqno/>
- <orddd/>
- <cretno/>
- <printyn/>
- <instcdnm/>
- <zipcd1/>
- <zipcd2/>
- <addr1/>
- <addr2/>
- <brthdd/>
- <sex/>
- <age/>
- <formrecseq/>
- <reccnts/>
- <viewcnts/>
- <reftelno1/>
- <reftelno2/>
- <reffax/>
- <refurl/>
- <drflag/>
- <mainemail/>
- <maindeptnm/>
- <replflag/>
- <medispclid/>
- <telno/>
- <faxno/>
- </inoutrepllistinfo>
- <chk_add/>
- </inoutrepllist>
- <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>
- <popupendflag/>
- </main>
- <send>
- <reqdata>
- <srchfromdd/>
- <srchtodd/>
- <orddeptcd/>
- <medispclid/>
- <hngnm/>
- <pid/>
- <recyn/>
- <replflag/>
- <dayflag/>
- <fstprint/>
- </reqdata>
- <doctor/>
- <savedata/>
- </send>
- <init>
- <comcodelist>
- <replmthd>
- <A0422/>
- </replmthd>
- <replflag>
- <A0636/>
- </replflag>
- </comcodelist>
- <dept>
- <dept>
- </dept>
- </dept>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- </doctlist>
- </init>
- <temp>
- <srchfromdd/>
- <srcdtodd/>
- <orddrid/>
- <pid/>
- <seqno/>
- <orddd/>
- <cretno/>
- <chk/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_inoutrepllist.fixedcellcheckbox(0, 1) = true;
- fInit();
- ]]>
- </script>
- <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
- <submission id="TRARC02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/inoutrepllist"/>
- <submission id="TXARC02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root"/>
- <submission id="TRMRF02001" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMR01301" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMR01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reclist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 공통코드조회(항목구분)
- =========================================================================================================================================*/
- function fInit(){
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0422", "A0636"), new Array("/root/init/comcodelist/replmthd", "/root/init/comcodelist/replflag") , true);
- model.refresh();
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
-
- model.setValue("/root/send/reqdata/srchfromdd" , CurrentDate);
- model.setValue("/root/send/reqdata/srchtodd" , 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);
-
- addComboItem("cmb_orddeptcd", "", "", "above");
- addComboItem("cmb_replflag", "", "-", "above");
- fDoctSerach();
- // 그리드초기화
- model.removeNodeset("/root/main/inoutrepllist/inoutrepllistinfo");
-
- cmb_replflag.select(0);
- cmb_dayflag.select(0);
- checkbox1.select(0);
- model.refresh();
- }
- /**========================================================================================================================================
- * 진료의사조회
- =========================================================================================================================================*/
- function fDoctSerach()
- {
- // 진료의사
- model.resetInstanceNode("/root/init/doctlist");
- model.removenode("/root/send/doctor");
- model.makeValue("/root/send/doctor/orddd" , model.getValue("/root/send/reqdata/srchfromdd"));
- model.makeValue("/root/send/doctor/orddeptcd" , model.getValue("/root/send/reqdata/orddeptcd"));
-
- submit("TRARC01302");
- cmd_orddrid.select(0);
- //model.setValue("/root/main/patient/orddrid", orddrid);
- }
-
- /**========================================================================================================================================
- * 조회
- =========================================================================================================================================*/
- // 조회전 필수 체크
- function fCheckDate()
- {
- var fromdd = model.getValue("/root/send/reqdata/srchfromdd");
- var todd = model.getValue("/root/send/reqdata/srchtodd");
- var pid = model.getValue("/root/send/reqdata/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/reqdata/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;
- }
- }
- }
-
- return true;
- }
- function fSearch()
- {
- submit("TRARC02401");
- }
-
- /**========================================================================================================================================
- * 등록번호 조회 팝업
- =========================================================================================================================================*/
- function fPatPopUp()
- {
- /**= if (ipt_pid.currentText.length> 0)
- {
- model.makeValue("/root/temp/pid", model.getValue("/root/send/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");
- if (model.getValue("/root/main/popupendflag") == "ok"){
- model.setValue("/root/send/reqdata/pid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/reqdata/hngnm" ,model.getValue("/root/main/patinfo/patinfolist/hngnm"));
-
- }
- //fHistSearch();
-
- model.refresh();
- }
- /**========================================================================================================================================
- * 초기화 버튼
- =========================================================================================================================================*/
- // 초기화
- function fAllClear()
- {
- model.resetInstanceNode("/root/send/search");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
-
- model.setValue("/root/send/reqdata/srchfromdd", CurrentDate);
- model.setValue("/root/send/reqdata/srchtodd" , CurrentDate);
-
- model.resetInstanceNode("/root/init/doctlist");
- model.removeNodeset("/root/main/inoutrepllist/inoutrepllistinfo");
-
- model.resetInstanceNode("/root/send/reqdata/orddeptcd");
- model.resetInstanceNode("/root/send/reqdata/orddrid");
- model.resetInstanceNode("/root/send/reqdata/hngnm");
- model.resetInstanceNode("/root/send/reqdata/pid");
-
- fDoctSerach();
- cmb_replflag.select(0);
- cmb_fstprint.select(0);
- checkbox1.select(0);
- model.refresh();
- }
- /**========================================================================================================================================
- * 출력상태구분 update
- =========================================================================================================================================*/
- function fUpdateData(){
- model.resetInstanceNode("/root/send/savedata");
-
- var savedata = grd_inoutrepllist.getUpdateDataAll("u");
- model.setValue("/root/send/savedata", savedata);
-
- if(submit("TXARC02401",false )== true){
- fSearch();
- }
- /*
- model.removeNodeset("/root/send/savedata");
-
- model.makeNode("/root/send/savedata/replinfo");
- model.copyNode("/root/send/savedata/replinfo", "/root/main/previewinfo/replinfo");
-
- model.makeValue("/root/send/savedata/replinfo/hngnm", model.getValue("/root/main/previewinfo/patientinfo/hngnm"));
-
- // 대표 메일
- model.makeValue("/root/send/savedata/replinfo/mainemail", "hjsong@catholic.ac.kr");
-
- //var nodeList = instance1.selectNodes("/root/main/ordlist1/maindailylist["+row+"]");
- var nodeList = instance1.selectNodes("/root/main/previewinfo/reqhospinfo");
- var reqhospinfo = getNodeListCSV(nodeList);
-
- model.makeValue("/root/send/savedata/reqhospinfo", reqhospinfo);
-
- // 회송방법
- var replmthd = model.getValue("/root/main/previewinfo/replinfo/replmthd");
-
- // e-mail일 경우만 파일 첨부
- if (replmthd == "4")
- {
- var emailid = model.getValue("/root/main/previewinfo/reqhospinfo/emailid");
- var emailaddr = model.getValue("/root/main/previewinfo/reqhospinfo/emailaddr");
-
- model.makeValue("/root/send/savedata/replinfo/emailid", emailid);
- model.makeValue("/root/send/savedata/replinfo/emailaddr", emailaddr);
-
- var pos;
- var filename;
- var n;
-
- model.removeNodeset("/root/send/savedata/attach");
-
- //files = window.fileDialog("open", "|", true);
- files = "C:\\report\\report.pdf";
-
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- if(filelist[i] != "")
- {
- model.makeValue("/root/send/savedata/attach/file", filelist[i]);
-
- pos=filelist[i].lastIndexOf("\\");
- filename=filelist[i].substring(pos+1);
- model.makeValue("/root/send/savedata/attach/filename", filename);
- model.makeValue("/root/send/savedata/attach/filesize", upload_attach.getFileSize(filelist[i]));
- }
- }
- }
-
- if(submit("TXARC02001",false )== true){
- //fSearch();
- }
- */
-
- }
- /**========================================================================================================================================
- * 진료의사 refresh
- =========================================================================================================================================*/
-
- function fFocusOut(){
- model.setValue("/root/send/reqdata/medispclid","");
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 입퇴원환자리스트 출력
- =========================================================================================================================================*/
- function fInOutPrntList(){
- var irow = grd_inoutrepllist.rows;
-
- var nodeList = instance1.selectNodes(grd_inoutrepllist.nodeset + "[chk='Y']");
- if( (nodeList == null) || (nodeList.length < 1) ) {
- messageBox("출력할 내역이 ", "I004");
- return ;
- }
- else
- {
- if(messageBox("선택한 환자의 입퇴원요약기록지를 출력하시겠습니까?", "Q999")== "6")
- {
- for(j=1; j < irow; j++){
- if (model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/chk") == "Y")
- {
-
- //fSave(); -- 사용안함
-
- //서식본문내용
- var formrecseq = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/formrecseq");
-
- model.removeNodeset("/root/main/medireccnts");
- model.makeValue("/root/send/condflag", "keyval");
- model.makeValue("/root/send/keyval", formrecseq);
-
- if(submit("TRMMR01201"))
- {
-
- }
-
- var nodeList = instance1.selectNodes(grd_inoutrepllist.nodeset + "[" + j + "]");
-
- var rCSV = getNodeListCSV(nodeList);
-
- model.removeNodeset("/root/main/patinfo/list");
- model.setValue("/root/main/patinfo", rCSV);
-
- var CSV = model.getValue("/root/main/patinfo");
-
- setCSVToNode("/root/main/patinfo", CSV);
-
- //setParameter("reportprintyn", "");
- //exeReportPreview("RPARC02401", "XMLSTR", "/root/main/patinfo/patinfolist");
-
- var rid = "RPARC02401"; // 레포트명
- 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"; // 미리보기창닫기여부(출력 후 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"){
- fUpdateData();
- }
- */
- }
- }
-
- fUpdateData();
-
- }
- else
- {
- return;
- }
-
- }
-
-
-
- /*
- for(j=1; j < irow; j++){
- //서식본문내용
- //var formrecseq = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + grd_inoutrepllist.row + "]/formrecseq");
- var formrecseq = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/formrecseq");
- //alert("j +++++++++> " + formrecseq);
-
- model.removeNodeset("/root/main/medireccnts");
- model.makeValue("/root/send/condflag", "keyval");
- model.makeValue("/root/send/keyval", formrecseq);
-
- var reccnts = "";
-
- if(submit("TRMMR01201"))
- {
- var reccnt = "";
-
- var nodeList = model.instances(0).selectNodes("/root/main/medireccnts");
- for(var i = 0; i <= nodeList.length; i++)
- {
- reccnt = model.getValue("/root/main/medireccnts[" + i + "]/viewcnts");
- reccnts += reccnt + "\n";
- }
-
- // alert(reccnts);
- }
- //alert(reccnts);
- //model.setValue(grd_inoutrepllist.nodeset+'['+ grd_inoutrepllist.row +']/reccnts', reccnts);
- model.setValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/reccnts", reccnts);
- }
-
- var nodeList = instance1.selectNodes(grd_inoutrepllist.nodeset + "[chk='Y']");
- var rCSV = getNodeListCSV(nodeList);
- if( (nodeList == null) || (nodeList.length < 1) ) {
- messageBox("출력할 내역이 ", "I004");
- return ;
- }
-
- model.removeNodeset("/root/main/patinfo/list");
- model.setValue("/root/main/patinfo", rCSV);
-
- var CSV = model.getValue("/root/main/patinfo");
-
- setCSVToNode("/root/main/patinfo", CSV);
-
- setParameter("reportprintyn", "");
- exeReportPreview("RPARC02401", "XMLSTR", "/root/main/patinfo/patinfolist");
- if (getParameter("reportprintyn") == "Y"){
- fUpdateData();
- }
- */
-
- }
-
- // 미리보기
- function fPreview()
- {
- if (grd_inoutrepllist.rows <= 1) return;
- if (grd_inoutrepllist.row < 1) return;
-
- var j = grd_inoutrepllist.row;
-
- var formrecseq = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/formrecseq");
-
- model.removeNodeset("/root/main/medireccnts");
- model.makeValue("/root/send/condflag", "keyval");
- model.makeValue("/root/send/keyval", formrecseq);
-
- //var reccnts = "";
-
- if(submit("TRMMR01201"))
- {
- }
- var nodeList = instance1.selectNodes(grd_inoutrepllist.nodeset + "[" + j + "]");
-
- 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);
-
- //setParameter("reportprintyn", "");
- //exeReportPreview("RPARC02401", "XMLSTR", "/root/main/patinfo/patinfolist");
- //exeReportPreview("RPARC02401", "XMLSTR", "/root/main");
-
- 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 = ""; // 툴바버튼보임여부(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"){
- fUpdateData();
- }
- */
-
- }
-
- //회신서 작성(사용안함)
- function fSave()
- {
- var pid = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/pid");
- var hngnm = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/hngnm");
- var orddeptcd = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/orddeptcd");
- var orddrid = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/orddrid");
- var orddeptnm = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/orddrid");
- var orddrnm = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/medispclnm");
- var orddd = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/indd");
-
- var replseqno = "0";
- var replflag = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/replflag");
- var recdd = getCurrentDate();
-
- // 의뢰등록 정보
- var reqorddd = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/orddd");
- var reqcretno = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/cretno");
- var reqseqno = model.getValue("/root/main/inoutrepllist/inoutrepllistinfo[" + j + "]/seqno");
- var curecnts = "[퇴원요약지 참조]";
-
- var writflag = "R";
-
- model.makeValue("/root/send/savedata/replinfo/pid", pid);
- model.makeValue("/root/send/savedata/replinfo/hngnm", hngnm);
- model.makeValue("/root/send/savedata/replinfo/replseqno", replseqno);
- model.makeValue("/root/send/savedata/replinfo/replflag", replflag);
- model.makeValue("/root/send/savedata/replinfo/writflag", writflag);
- model.makeValue("/root/send/savedata/replinfo/recdd", recdd);
- model.makeValue("/root/send/savedata/replinfo/orddeptcd", orddeptcd);
- model.makeValue("/root/send/savedata/replinfo/orddrid", orddrid);
- model.makeValue("/root/send/savedata/replinfo/orddeptnm", orddeptnm);
- model.makeValue("/root/send/savedata/replinfo/orddrnm", orddrnm);
- model.makeValue("/root/send/savedata/replinfo/orddd", orddd);
- model.makeValue("/root/send/savedata/replinfo/reqorddd", reqorddd);
- model.makeValue("/root/send/savedata/replinfo/reqcretno", reqcretno);
- model.makeValue("/root/send/savedata/replinfo/reqseqno", reqseqno);
- del.makeValue("/root/send/savedata/replinfo/curecnts", curecnts);
-
- var aprvdeptcd = getUserInfo("dutplcecd");
- var aprvrid = getUserInfo("userid");
- var aprvdd = getCurrentDate();
- var prntpsnid = getUserInfo("userid");
- var prntdt = getCurrentDate()+ getCurrentTime();
-
- model.makeValue("/root/send/savedata/replinfo/aprvdeptcd", aprvdeptcd);
- model.makeValue("/root/send/savedata/replinfo/aprvrid", aprvrid);
- model.makeValue("/root/send/savedata/replinfo/aprvdd", aprvdd);
- model.makeValue("/root/send/savedata/replinfo/prntpsnid", prntpsnid);
- model.makeValue("/root/send/savedata/replinfo/prntdt", prntdt);
-
- if (submit("TXARC02501", false) == true)
- {
- }
- else
- {
- return;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,2;" style="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:70px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:60; "/>
- <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">조회일자 :</caption>
- <caption id="caption11" class="search_name" style="left:465px; top:10px; width:94px; height:17px; ">진료과 :</caption>
- <caption id="caption5" class="search_no_b" style="left:327px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:685px; top:10px; width:94px; height:17px; ">진료의사 :</caption>
- <caption id="caption1" class="search_name" style="left:260px; top:35px; width:94px; height:17px; ">환자명 :</caption>
- <caption id="caption3" class="search_name" style="left:20px; top:35px; width:94px; height:17px; ">등록번호 :</caption>
- <button id="btn_pat" class="icon_search" style="left:219px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatPopUp();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/reqdata/srchfromdd" class="input_search" inputtype="date" style="left:225px; top:10px; width:95px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/reqdata/srchtodd" class="input_search" inputtype="date" style="left:345px; top:10px; width:95px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/reqdata/orddeptcd" class="combo_search" appearance="minimal" style="left:545px; top:10px; width:100px; 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[
- fDoctSerach();
- ]]>
- </script>
- </select1>
- <select1 id="cmd_orddrid" ref="/root/send/reqdata/medispclid" class="combo_search" appearance="minimal" style="left:782px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/doctlist/medispcl">
- <label ref="doctnm"/>
- <value ref="doctid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/send/reqdata/pid" appearance="input" style="left:115px; top:35px; width:100; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/send/reqdata/hngnm" imemode="hangul" appearance="input" style="left:345px; top:35px; width:95px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:26px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //if ( !fCheckDate() ) return; //필수 저장여부 체크
-
- //출력상태를 업데이트 하기 위한 srchfromdd, srchtodd 값을 temp필드에 임시저장한다.
- model.removenode('/root/temp/srchfromdd');
- model.removenode('/root/temp/srcdtodd');
- model.removenode('/root/temp/orddrid');
- model.removenode('/root/temp/pid');
- model.removenode('/root/temp/seqno');
- model.removenode('/root/temp/orddd');
- model.removenode('/root/temp/cretno');
-
- model.makeNode('/root/temp/srchfromdd');
- model.makeNode('/root/temp/srcdtodd');
- model.makeNode('/root/temp/orddrid');
- model.makeNode('/root/temp/pid');
- model.makeNode('/root/temp/seqno');
- model.makeNode('/root/temp/orddd');
- model.makeNode('/root/temp/cretno');
-
- model.setValue('/root/temp/srchfromdd', model.getValue('/root/send/reqdata/srchfromdd'));
- model.setValue('/root/temp/srcdtodd', model.getValue('/root/send/reqdata/srchtodd'));
- model.setValue('/root/temp/orddrid', model.getValue('/root/send/reqdata/orddrid'));
- model.setValue('/root/temp/pid', model.getValue('/root/send/reqdata/pid'));
- model.setValue('/root/temp/seqno', model.getValue('/root/send/reqdata/seqno'));
- model.setValue('/root/temp/orddd', model.getValue('/root/send/reqdata/orddd'));
- model.setValue('/root/temp/cretno', model.getValue('/root/send/reqdata/cretno'));
-
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption6" class="search_name" style="left:915px; top:10px; width:133px; height:17px; ">입퇴원기록지유무:</caption>
- <select id="checkbox1" ref="/root/send/reqdata/recyn" overflow="visible" appearance="full" style="left:1052px; top:11px; width:18px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption7" class="search_name" style="left:465px; top:35px; width:169px; height:17px; ">진료정보공개동의여부 :</caption>
- <select1 id="cmb_replflag" ref="/root/send/reqdata/replflag" class="combo_search" appearance="minimal" style="left:637px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_dayflag" ref="/root/send/reqdata/dayflag" class="combo_search" appearance="minimal" style="left:115px; top:10px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>퇴원일자</label>
- <value>1</value>
- </item>
- <item>
- <label>등록일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:775px; top:35px; width:94px; height:17px; ">출력상태 :</caption>
- <select1 id="cmb_fstprint" ref="/root/send/reqdata/fstprint" class="combo_search" appearance="minimal" style="left:872px; top:35px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>- 전체 -</label>
- <value/>
- </item>
- <item>
- <label>미출력</label>
- <value>N</value>
- </item>
- <item>
- <label>기출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_inoutrepllist" nodeset="/root/main/inoutrepllist/inoutrepllistinfo" visibility="visible" autoresize="true" caption="^등록번호^환자명^진료과^진료의^등록일자^병원명^의뢰의사명^입원일자^퇴원일자^발송방법^기록지유무^출력상태구분^동의여부^^caption1^caption2" colsep="^" colwidth="30, 87, 74, 100, 74, 93, 131, 80, 88, 84, 78, 71, 85, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:108px; width:1195px; height:630px; text-align:center; vertical-align:middle; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid"/>
- <col ref="hngnm" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="depthngnm"/>
- <col ref="medispclnm" style="text-align:center; "/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="left:400px; top:23px; width:80px; height:23px; text-align:center; "/>
- <col ref="coophospnm" style="text-align:left; "/>
- <col ref="drnm" style="left:400px; top:23px; width:80px; height:23px; "/>
- <col ref="indd" format="yyyy-mm-dd" style="left:400px; top:23px; width:80px; height:23px; "/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="replmthd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/replmthd/A0422">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="recyn"/>
- <col ref="fstprint"/>
- <col disabled="true" ref="replflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="insdchprntdt" visibility="hidden" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="printyn" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="reccnts" visibility="hidden"/>
- <col ref="medispclid" visibility="hidden"/>
- <col ref="telno" visibility="hidden"/>
- <col ref="faxno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fPreview();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:87px; width:147px; height:14px; ">입퇴원환자리스트</caption>
- <button id="button18" class="btn2_letter10" style="left:1063px; top:84px; width:130px; height:19px; ">
- <caption>입퇴원환자리스트출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInOutPrntList();
- ]]>
- </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:163px; 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>
|