123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>타병원진료의뢰서조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <search>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <pid/>
- <hngnm/>
- <stat/>
- </search>
- <doctor/>
- <iemr/>
- </send>
- <main>
- <list>
- <reqlist>
- <stat/>
- <orddd/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <orddeptnm/>
- <orddrnm/>
- <formnm/>
- <cretno/>
- <acptseqno/>
- <ioflag/>
- <orddeptcd/>
- <formcd/>
- <ordtype/>
- <dschdd/>
- <indschacptstat/>
- </reqlist>
- </list>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <init>
- <dept>
- <dept>
- </dept>
- </dept>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- <atdoct>
- <doctid/>
- <doctnm/>
- </atdoct>
- </doctlist>
- </init>
- <temp/>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRARC01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- </model>
- </xhtml:head>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- // 초기값 셋팅
- function fInit()
- {
-
- mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/aformcd", 1310); //타병원
- mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/bformcd", 5561); //개인정보
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- // 진료과
- //var instcd = "012";
- var instcd = getUserInfo("dutplceinstcd");
- //var standard_yn = "orduseyn";
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- sort_field = "depthngnm"
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
-
- addComboItem("cmb_orddeptcd", "", "", "above");
- // 공통코드 목록 가져오기
- //zbcfGetCodeList(new Array("A0420"), new Array("/root/init/cptype") , true);
-
- model.removeNodeset("/root/main/list/reqlist");
- fDoctSerach();
-
- model.refresh();
-
- }
-
- // 진료의사 조회
- function fDoctSerach()
- {
- // 진료의사
- 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 fCheckDate()
- {
- 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;
- }
-
- /* 기간조건 삭제(20100217)
- if( getDateInterval(fromdd, todd) > 31 ){
- messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
- }
- */
-
- if( getDateInterval(fromdd, todd) < 0 ){
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
- }
-
- // 날짜 계산
- var daycnt = getDateInterval(fromdd, todd);
-
- /* 기간조건 삭제(20100217)
- // 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_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
- messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
- }
- return true;
- }
-
- // 조회
- function fSearch()
- {
- // reqGetReqDocuList
- // getReqDocuList
- if (submit("TRARC01901", false) == true)
- {
- if (model.getValue("/root/send/search/stat") == "Y")
- {
- grd_list.nodeset = "/root/main/list/reqlist[stat='Y']";
- }
- else if (model.getValue("/root/send/search/stat") == "N")
- {
- grd_list.nodeset ="/root/main/list/reqlist[stat='N']";
- }
- }
- else
- {
- messageBox("조회를", "E009");
- }
- model.refresh();
- }
-
- // 초기화
- function fAllClear()
- {
- model.resetInstanceNode("/root/send/search");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- fDoctSerach();
- model.removeNodeset("/root/main/list/reqlist");
- model.refresh();
- }
-
- // 등록번호 조회 팝업
- function fPatPopUp()
- {
- if (ipt_pid.currentText.length> 0)
- {
- 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();
-
- }
-
- // OCR 기록보기
- // OCRVIEW
- function fOCRView(flag)
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- var row = grd_list.row;
-
- if ( flag == "A") {
- formcd = model.getValue("/root/init/aformcd/hardcd/hardcd"); //타병원
- }
- else if ( flag == "B" ) {
- formcd = model.getValue("/root/init/bformcd/hardcd/hardcd"); //개인정보
- }
-
-
- model.resetInstanceNode("/root/send/iemr");
-
- model.makeValue("/root/send/iemr/pid", grd_list.textmatrix(row, grd_list.colRef("pid")));
- model.makeValue("/root/send/iemr/docucd", formcd);
-
- if(window.children.item("imgemrviewer") == null)
- {
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }
- else
- {
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
- }
-
- // function fOCRView()
- // {
- // if (grd_list.rows <= 1) return;
- // if (grd_list.row < 1) return;
- //
- //
- // var row = grd_list.row;
- //
- // model.resetInstanceNode("/root/send/iemr");
- //
- // model.makeValue("/root/send/iemr/pid", grd_list.textmatrix(row, grd_list.colRef("pid")));
- // model.makeValue("/root/send/iemr/docucd", grd_list.textmatrix(row, grd_list.colRef("formcd")));
- // model.makeValue("/root/send/iemr/ocrcode", grd_list.textmatrix(row, grd_list.colRef("ocrtag")));
- //
- //
- // if(window.children.item("imgemrviewer") == null)
- // {
- // window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- // }
- // else
- // {
- // var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- // window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // window.children.item("imgemrviewer").modelesstopmost = true;
- // window.children.item("imgemrviewer").modelesstopmost = false;
- //
- // }
- // }
-
- // 더블클릭시 상단정보 올리고 의뢰환자등록 팝업 호출
- function fOpen()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
- {
- //fBiztrgtClick();
- }
- else
- {
- return;
- }
- var idxRow = grd_list.row; //그리드에서 해당 환자 선택
-
- var ordtype = model.getValue("/root/main/list/reqlist["+idxRow+"]/ordtype");
- var pid = model.getValue("/root/main/list/reqlist["+idxRow+"]/pid");
- var orddd = model.getValue("/root/main/list/reqlist["+idxRow+"]/orddd");
- var cretno = model.getValue("/root/main/list/reqlist["+idxRow+"]/cretno");
- //var cretno = "1";
- var acptseqno = model.getValue("/root/main/list/reqlist["+idxRow+"]/acptseqno");
-
- var dschdd = model.getValue("/root/main/list/reqlist["+idxRow+"]/dschdd");
- var indschacptstat = model.getValue("/root/main/list/reqlist["+idxRow+"]/indschacptstat");
-
- //var acptseqno = "1";
- var instcd = getUserInfo("dutplceinstcd");
-
- var curdate = getCurrentDate();
-
- if (ordtype == "E")
- {
- curdate = orddd;
- }
- else if (ordtype == "I")
- {
- if (indschacptstat == "D")
- {
- curdate = dschdd;
- }
- else if (indschacptstat == "T")
- {
- if (dschdd != "99991231")
- {
- curdate = dschdd;
- }
- }
- }
- else if (ordtype == "O")
- {
- curdate = orddd;
- }
- else
- {
- ordtype = "I";
- if (indschacptstat == "D")
- {
- curdate = dschdd;
- }
- }
-
- //var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + acptseqno + "▦" + orddd;
- //var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + getCurrentDate();
- var condparam = ordtype + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + '▦' + curdate;
-
- setParameter("condparam", condparam);
- //alert (condparam);
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- curEmrRecObj = getOpenWindow("SPARC00100"); //활성화된 진료기록 화면 object loading
-
- //curCpObj = mainObj.javascript.getOpenWindow("SPARC00100"); //활성화된 CP Main 화면 object loading
-
- if (curEmrRecObj != null)
- {
- curEmrRecObj.javascript.fInit();
- }
- else
- {
- //open("SPARC00100",1,1,1);
- open("SPARC00100",1,1,1, "SPARC00100", "", "", "", false);
- }
- //open("SPARC00100",1,1,1);
- }
-
- // 리스트 엑셀 파일로 저장
- function fExcel()
- {
- if (grd_list.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "타병원 진료의뢰서 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_list.saveExcel(fileName, "타병원진료의뢰서", false, false, "", "", false);
- }
- }
- ]]>
- </script>
- <xhtml:body guideline="1,2;1,1195;1,1195;" 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:60px; "/>
- <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">조회일자 :</caption>
- <caption id="caption11" class="search_name" style="left:435px; top:10px; width:94px; height:17px; ">진료과 :</caption>
- <caption id="caption5" class="search_no_b" style="left:219px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:755px; top:10px; width:94px; height:17px; ">진료의사 :</caption>
- <caption id="caption15" class="search_name" style="left:20px; top:36px; width:95px; height:17px; ">등록번호 :</caption>
- <caption id="caption3" class="search_name" style="left:755px; top:36px; width:94px; height:17px; ">등록상태 :</caption>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:115px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:235px; top:10px; width:100px; height:19px; "/>
- <caption id="caption6" class="search_name" style="left:435px; top:36px; width:80px; height:17px; ">환자명 :</caption>
- <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:850px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/doctlist/medispcl/">
- <label ref="doctnm"/>
- <value ref="doctid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:515px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fDoctSerach();
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" style="left:115px; top:36px; width:100px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" imemode="hangul" style="left:516px; top:36px; width:140px; height:19px; "/>
- <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>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDate() ) return; //필수 저장여부 체크
-
- fSearch();
- ]]>
- </script>
- </button>
- <select1 id="cmb_stat" ref="/root/send/search/stat" class="combo_search" appearance="minimal" style="left:850px; top:36px; width:140px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value/>
- </item>
- <item>
- <label>등록</label>
- <value>Y</value>
- </item>
- <item>
- <label>미등록</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <datagrid id="grd_list" nodeset="/root/main/list/reqlist" caption="등록상태^진료일자^등록번호^환자명^주민번호^주민번호^진료과^진료의사^출력부서^출력자^OCR기록지명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="90, 100, 90, 90, 80, 80, 120, 90, 120, 90, 132, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:108px; width:1189px; height:622px; vertical-align:middle; ">
- <col disabled="true" ref="stat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>등록</label>
- <value>Y</value>
- </item>
- <item>
- <label>미등록</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno1" style="text-align:center; "/>
- <col ref="rrgstno2" secretstartposition="1" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="prntdeptnm"/>
- <col ref="prntusernm"/>
- <col ref="formnm"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="formcd" visibility="hidden"/>
- <col ref="ordtype" visibility="hidden"/>
- <col ref="dschdd" visibility="hidden"/>
- <col ref="indschacptstat" visibility="hidden"/>
- <col ref="ioclass" visibility="hidden"/>
- <col ref="ocrtag" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fOpen();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:84px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="tit_2" style="left:5px; top:87px; width:235px; height:14px; ">타병원진료의뢰서 리스트</caption>
- </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:225px; 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>
- <button id="btn_ocrview" class="btn3_letter9" style="left:2px; top:3px; width:140px; height:22px; ">
- <caption>타병원진료의뢰</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOCRView("A");
- ]]>
- </script>
- </button>
- <button id="button13" class="btn3_letter10" style="left:145px; top:2px; width:152px; height:22px; ">
- <caption>개인정보이용동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOCRView("B");
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|