123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526 |
- <?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="">
- <main>
- <list>
- <req_pat_list>
- <formrecdd/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <sex/>
- <age/>
- <rgstdd/>
- <reqdd/>
- <orddd/>
- <orddeptnm/>
- <orddrnm/>
- <licnsno/>
- <reqareacd/>
- <reqcoophospnm/>
- <reqdrnm/>
- <enddd/>
- <reqagnareacd/>
- <reqagncoophospnm/>
- <reqagntelno/>
- <rsltcd/>
- <resncd/>
- </req_pat_list>
- </list>
- </main>
- <send>
- <search>
- <condflag>1</condflag>
- <fromdd/>
- <todd/>
- <coophospnm/>
- <rsltcd/>
- <orddeptcd/>
- <orddrid/>
- <resncd/>
- <cutflag/>
- </search>
- <doctor/>
- </send>
- <init>
- <dept/>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- <atdoct>
- <doctid/>
- <doctnm/>
- </atdoct>
- </doctlist>
- <areacd>
- <A0426>
- </A0426>
- </areacd>
- <rsltcd>
- <A0438/>
- </rsltcd>
- <resncd>
- <A0439/>
- </resncd>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- 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="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
- <submission id="TRARC01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- </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">
- <![CDATA[
- // 초기값
- function fInit()
- {
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
-
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- // 진료과
- //var instcd = "012";
- var instcd = getUserInfo("dutplceinstcd");
- //var standard_yn = "orduseyn";
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- sort_field = "depthngnm"
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0439", "A0438"), new Array("/root/init/resncd", "/root/init/rsltcd") , true);
-
- // 유형코드
- zbcfGetKindCodeList(
- new Array("A0014"), //업무규칙
- new Array("A0426"), //코드군
- new Array("/root/init/areacd"), //노드
- true, //minimum : true TRZBC00105
- new Array(""), //sorting 항목
- new Array("")
- );
-
-
- // 진료과
- addComboItem("cmb_orddeptcd", "", "", "above");
-
- // 전원결과
- addComboItem("cmb_rsltcd", "", "", "above");
-
- // 전원사유
- addComboItem("cmb_resncd", "", "", "above");
-
- fDoctSerach();
-
- model.removeNodeset("/root/main/list/req_pat_list");
-
- model.setValue("/root/send/search/cutflag", "N");
- fChngGridCol();
-
- 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");
-
- 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_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
- messageBox("전원의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_coophospnm");
- return false;
- }
- }
- */
-
- if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
- messageBox("전원의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_coophospnm");
- return false;
- }
-
- return true;
- }
-
-
- //조회
- function fSearch()
- {
- if (submit("TRARC01601", false) == true)
- {
-
- }
- else
- {
- messageBox("조회를", "E009");
- }
-
- fChngGridCol();
- model.refresh();
-
- }
-
- // 리스트 엑셀 파일로 저장
- function fExcel()
- {
- if (grd_list.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "전원의뢰현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_list.saveExcel(fileName, "전원의뢰리스트", false, false, "", "", false);
- }
- }
-
- // 초기화
- function fAllClear()
- {
- model.resetInstanceNode("/root/send/search");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
-
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- cmb_condflag.select(0);
- cmb_orddeptcd.select(0);
- cmb_resncd.select(0);
- cmb_rsltcd.select(0);
- fDoctSerach();
- model.removeNodeset("/root/main/list/req_pat_list");
- model.setValue("/root/send/search/cutflag", "N");
- fChngGridCol();
-
- model.refresh();
- }
-
- //전원소견서 뷰어
- function fLoadForm()
- {
- 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){}
- else{ return; }
-
- // var pid = model.getValue("/root/main/list/req_pat_list["+lrow+"]/pid");
- // var patnm = model.getValue("/root/main/list/req_pat_list["+lrow+"]/hngnm");
- // var sexage = model.getValue("/root/main/list/req_pat_list["+lrow+"]/age");
- // var orddeptnm = model.getValue("/root/main/list/req_pat_list["+lrow+"]/dept");
- // var roomcd = model.getValue("/root/main/list/req_pat_list["+lrow+"]/roomcd");
- // var patParamStr = pid + "▦" + patnm + "▦" + sexage + "▦" + orddeptnm + "▦" + roomcd;
- var formrecseq = model.getValue("/root/main/list/req_pat_list["+lrow+"]/formrecseq");
- setParameter("openmode", "recform");
- setParameter("formrecseq", formrecseq);
- // setParameter("disppatinfo", patParamStr);
- var wndobj = getOpenWindow("SPARC03000");
- if ( wndobj == null ) {
- open("SPARC03000", 1, 0, 0 ,"", "", "");
- } else {
- wndobj.javascript.fLoadForm();
- }
- }
-
- //간략히보기 클릭[컬럼 설정]
- function fChngGridCol()
- {
- var vCutFlag = model.getValue("/root/send/search/cutflag");
- if (vCutFlag =="Y") {
- grd_list.colHidden(grd_list.colRef("rrgstno1")) = true;
- grd_list.colHidden(grd_list.colRef("rrgstno2")) = true;
- grd_list.colHidden(grd_list.colRef("rgstdd")) = true;
- grd_list.colHidden(grd_list.colRef("reqdd")) = true;
- grd_list.colHidden(grd_list.colRef("orddd")) = true;
- grd_list.colHidden(grd_list.colRef("licnsno")) = true;
- grd_list.colHidden(grd_list.colRef("reqareacd")) = true;
- grd_list.colHidden(grd_list.colRef("reqcoophospnm")) = true;
- grd_list.colHidden(grd_list.colRef("reqdrnm")) = true;
- grd_list.colHidden(grd_list.colRef("reqagnareacd")) = true;
- grd_list.colHidden(grd_list.colRef("reqagntelno")) = true;
- grd_list.colHidden(grd_list.colRef("rsltcd")) = true;
- grd_list.colHidden(grd_list.colRef("roomcd")) = false;
- } else {
- grd_list.colHidden(grd_list.colRef("rrgstno1")) = false;
- grd_list.colHidden(grd_list.colRef("rrgstno2")) = false;
- grd_list.colHidden(grd_list.colRef("rgstdd")) = false;
- grd_list.colHidden(grd_list.colRef("reqdd")) = false;
- grd_list.colHidden(grd_list.colRef("orddd")) = false;
- grd_list.colHidden(grd_list.colRef("licnsno")) = false;
- grd_list.colHidden(grd_list.colRef("reqareacd")) = false;
- grd_list.colHidden(grd_list.colRef("reqcoophospnm")) = false;
- grd_list.colHidden(grd_list.colRef("reqdrnm")) = false;
- grd_list.colHidden(grd_list.colRef("reqagnareacd")) = false;
- grd_list.colHidden(grd_list.colRef("reqagntelno")) = false;
- grd_list.colHidden(grd_list.colRef("rsltcd")) = false;
- grd_list.colHidden(grd_list.colRef("roomcd")) = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <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; "/>
- <button id="button5" class="btn1_letter2" style="left:1126px; top:26px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDate() ) return; //필수 저장여부 체크
-
- fSearch();
- ]]>
- </script>
- </button>
- <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:20px; top:35px; width:94px; height:17px; ">진료과 :</caption>
- <caption id="caption13" class="search_name" style="left:810px; top:10px; width:112px; height:17px; ">전원결과별 :</caption>
- <caption id="caption5" class="search_no_b" style="left:337px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:275px; top:35px; width:94px; height:17px; ">진료의사 :</caption>
- <caption id="caption3" class="search_name" style="left:510px; top:10px; width:125px; height:17px; ">전원의뢰병원명 :</caption>
- <caption id="caption1" class="search_name" style="left:510px; top:40px; width:112px; height:17px; ">전원의뢰사유 :</caption>
- <select1 id="cmb_resncd" ref="/root/send/search/resncd" class="combo_search" appearance="minimal" style="left:640px; top:40px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/A0439">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_rsltcd" ref="/root/send/search/rsltcd" class="combo_search" appearance="minimal" style="left:930px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rsltcd/A0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:110px; top:35px; 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>
- <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:370px; top:35px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/doctlist/medispcl/">
- <label ref="doctnm"/>
- <value ref="doctid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_condflag" ref="/root/send/search/condflag" class="combo_search" appearance="minimal" style="left:110px; top:10px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>접수일자</label>
- <value>1</value>
- </item>
- <item>
- <label>완료일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:220px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:360px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_coophospnm" ref="/root/send/search/coophospnm" class="input_search" style="left:640px; top:10px; width:140px; height:19px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/search/cutflag" style="left:980px; top:39px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngGridCol();
- model.refresh();
- ]]>
- </script>
- </bool>
- <caption id="caption6" style="left:1005px; top:40px; width:65px; height:20px; ">
- <![CDATA[간략히보기]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cutflag = model.getValue("/root/send/search/cutflag");
- if (cutflag =="Y") {
- model.setValue("/root/send/search/cutflag", "N");
- } else {
- model.setValue("/root/send/search/cutflag", "Y");
- }
- fChngGridCol();
- model.refresh();
- ]]>
- </script>
- </caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1190px; y2:104px; "/>
- <button id="btn_excel" class="btn2_letter4" style="left:1122px; 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:139px; height:14px; ">전원의뢰환자 리스트</caption>
- <datagrid id="grd_list" nodeset="/root/main/list/req_pat_list" caption="전원접수일자^등록번호^환자명^주민번호^주민번호^성별^나이^등록일자^병실^의뢰일자^진료일자^진료과^진료의사^면허번호^의뢰지역^의뢰병원^의뢰의사^전원 완료일자^전원의뢰지역^전원의뢰병원^전원병원 전화번호^전원의뢰결과^전원의뢰사유^서식 일련번호" colsep="^" colwidth="100, 100, 100, 70, 70, 35, 35, 100, 120, 100, 100, 120, 100, 100, 100, 130, 100, 100, 100, 160, 120, 110, 120, 80" dataheight="25" extendlastcol="scroll" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:108px; width:1189px; height:627px; vertical-align:middle; ">
- <col 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="rrgstno1" style="text-align:center; "/>
- <col ref="rrgstno2" secretstartposition="1" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:right; "/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="roomcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="licnsno" style="text-align:right; "/>
- <col disabled="true" ref="reqareacd" type="combo">
- <choices>
- <itemset nodeset="/root/init/areacd/A0014A0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="reqcoophospnm"/>
- <col ref="reqdrnm"/>
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="reqagnareacd" type="combo">
- <choices>
- <itemset nodeset="/root/init/areacd/A0014A0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="reqagncoophospnm"/>
- <col ref="reqagntelno"/>
- <col disabled="true" ref="rsltcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/rsltcd/A0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="resncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/A0439">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="formrecseq" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fLoadForm();
- ]]>
- </script>
- </datagrid>
- </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="button10" 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>
|