123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAYA04000_원목의뢰환자조회.xrw
- * 설 명 : 원목의뢰환자조회
- * 작 성 자 : 김다영
- * 작 성 일 : 2008.01.07
- * 수정이력 :
- * 기 타 :
- -->
- <?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="">
- <main>
- <fthreqpatlist>
- <fthreqpatlistinfo>
- <pid/>
- <pidnm/>
- <roomcd/>
- <reqdeptcd/>
- <requserid/>
- <reqdd/>
- <recvuserid/>
- <recvdd/>
- <repldd/>
- <repluserid/>
- <minvisitdd/>
- <maxvisitdd/>
- <visitcnt/>
- <mincnstdd/>
- <maxcnstdd/>
- <cnstcnt/>
- <asesrecdd/>
- <enddd/>
- <hngnm/>
- <reqdeptnm/>
- <requsernm/>
- <replusernm/>
- <recvusernm/>
- <formrecseq/>
- <indd/>
- <cretno/>
- <instcd/>
- <dschdd/>
- <reqkind/>
- <seqno/>
- </fthreqpatlistinfo>
- </fthreqpatlist>
- <cond>
- <srchfromdd/>
- <srchtodd/>
- <pidnm/>
- <cnststat/>
- <pid/>
- <reqdd/>
- <formrecseq/>
- <req>-</req>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- cmb_cnststat.select(0);
- ]]>
- </script>
- <submission id="TRAYA04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fthreqpatlist"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- if(getGlobalVariable("paminfo").length > 0){
- delPatientInfos();
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.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="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 화면 오픈시
- =========================================================================================================================================*/
- function fInit() {
- //그리드 초기화
- cmb_cnststat.disabled = true;
- model.removeNodeset("/root/main/fthreqpatlist/fthreqpatlistinfo");
- grd_fthreqpatlist.refresh();
-
- //의뢰일자를 현재일자로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/cond/srchfromdd" , CurrentDate);
- model.setValue("/root/main/cond/srchtodd" , CurrentDate);
-
- model.removeNodeset(grd_fthreqpatlist.nodeset);
- model.refresh();
- }
- /**========================================================================================================================================
- * 원목의뢰환자조회
- =========================================================================================================================================*/
- function fGetFthReqPatList(){
-
- var CurrentDate = getCurrentDate();
- var srchfromdd = model.getValue("/root/main/cond/srchfromdd");
- var srchtodd = model.getValue("/root/main/cond/srchtodd");
- var dateintval = getDateInterval(srchfromdd,srchtodd);
-
- if(dateintval>31)
- {
- messageBox("조회기간은 최대1달까지 할 수 있습니다.","I");
- model.setValue("/root/main/cond/srchfromdd" , CurrentDate);
- model.setValue("/root/main/cond/srchtodd" , CurrentDate);
- return;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- if (submit("TRAYA04001")) {
- for (var idx = grd_fthreqpatlist.fixedRows; idx < grd_fthreqpatlist.rows; idx++) {
- var reqdeptnm = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idx+"]/reqdeptnm");
- var formrecseq = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idx+"]/formrecseq");
-
- if (reqdeptnm == "" && formrecseq == "") {
- grd_fthreqpatlist.cellAttribute("disabled", idx, grd_fthreqpatlist.colRef("btn")) = true;
- }
- }
- }
- }
-
- /**========================================================================================================================================
- * 원목상담현황 초기화
- =========================================================================================================================================*/
- function fInitialize()
- {
- // 그리드초기화
- model.removeNodeset("/root/main/fthreqpatlist/fthreqpatlistinfo");
- cmb_cnststat.select(0);
- // 오늘 날짜로 세팅
- var curDt = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
- model.setValue(ipt_srchtodd.attribute("ref") , curDt);
-
- model.removeNodeset(grd_fthreqpatlist.nodeset);
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 서식 팝업
- =========================================================================================================================================*/
- function fCnstPopUp() {
-
- if (cmb_req.value == '-'){
- var idxRow = grd_fthreqpatlist.row - 1;
- var reqdeptnm = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idxRow+"]/reqdeptnm");
- var formrecseq = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idxRow+"]/formrecseq");
-
- //타과의뢰
- if (formrecseq != '' && reqdeptnm !=''){
- var xEdupatlistPath = '/root/main/fthreqpatlist/fthreqpatlistinfo';
- var curRow = (grd_fthreqpatlist.row) - 1;
- var formrecseq = model.getValue(xEdupatlistPath + "[" + curRow + "]/formrecseq");
- setParameter("openmode", "reccnstform");
- setParameter("userdeptcd", "4050400000");
- setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
-
- modal("../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw", 1, 0, 0 ,"", "", "");
- }
- //간호정보조사지
- else if(formrecseq == '' && reqdeptnm !=''){
- setParameter("deptcd", "4050400000");
- modal("SMMNW03100",1,100,100);
-
- }
- //기타의뢰
- else if(formrecseq == '' && reqdeptnm ==''){
- fSoulCareChrtRegtopener();
- }
- //원목자선정
- else if(formrecseq == '' && reqdeptnm ==''){
- fSoulCareChrtRegtopener();
- }
- }
-
- //타과의뢰
- if (cmb_req.value == 'A'){
- var xEdupatlistPath = '/root/main/fthreqpatlist/fthreqpatlistinfo';
- var curRow = (grd_fthreqpatlist.row) - 1;
- var formrecseq = model.getValue(xEdupatlistPath + "[" + curRow + "]/formrecseq");
- setParameter("openmode", "reccnstform");
- setParameter("deptcd", "4050400000");
- setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
-
- modal("../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw", 1, 0, 0 ,"", "", "");
- }
- //간호정보조사지
- else if(cmb_req.value == 'B' ){
- modal("SMMNW03100",1,100,100);
- setParameter("deptcd", "4050400000");
- }
- //기타의뢰
- else if(cmb_req.value == 'C' ){
- fSoulCareChrtRegtopener();
- }
- //원목자선정
- else if(cmb_req.value == 'D' ){
- fSoulCareChrtRegtopener();
- }
-
- }
- /**========================================================================================================================================
- * 상단에 환자정보 올리기
- =========================================================================================================================================*/
- function fUpPatInfo()
- {
- delPatientInfos();
-
- if (grd_fthreqpatlist.rows <= 2) return;
- if (grd_fthreqpatlist.row < 2) return;
-
- if(grd_fthreqpatlist.isCell(event.target) && grd_fthreqpatlist.mouseRow >= grd_fthreqpatlist.fixedrows)
- {
-
- }
- else
- {
- return;
- }
- var idxRow = grd_fthreqpatlist.row - 1; //그리드에서 해당 환자 선택
-
- //alert(idxRow);
-
- var instcd = getUserInfo("dutplceinstcd");
- var pid = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idxRow+"]/pid");
- var indd = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idxRow+"]/indd");
- var cretno = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idxRow+"]/cretno");
- var dschdd = model.getValue("/root/main/fthreqpatlist/fthreqpatlistinfo["+idxRow+"]/dschdd");
- var CurrentDate = getCurrentDate();
-
- //재원자 - 현재일자
- if(dschdd == "99991231"){
- var condparam1 = "I▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + CurrentDate;
- setParameter("condparam", condparam1);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
-
- //퇴원자 - 퇴원일자
- else if(dschdd != "99991231"){
- var condparam2 = "I▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + dschdd;
- //alert(dschdd);
- setParameter("condparam", condparam2);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- //modal("SPMMO08900");
-
-
- }
- /**========================================================================================================================================
- * 영적돌봄의뢰유형 구분에 따른 버튼
- =========================================================================================================================================*/
- function fChangeRdo()
- {
- var idx = grd_fthreqpatlist.row;
- //타과의뢰
- if (cmb_req.value == '-'){
- grd_fthreqpatlist.colHidden(7) = false;
- model.refresh();
-
- }
- else if (cmb_req.value == 'A'){
- grd_fthreqpatlist.colHidden(7) = false;
- model.refresh();
-
- }
- //간호정보조사지
- else if (cmb_req.value == 'B' ){
- grd_fthreqpatlist.colHidden(7) = false;
- model.refresh();
-
- }
- //기타의뢰
- else if (cmb_req.value == 'C' ){
- grd_fthreqpatlist.colHidden(7) = true;
- model.refresh();
-
- }
- //원목자선정
- else if (cmb_req.value == 'D' ){
- grd_fthreqpatlist.colHidden(7) = true;
- model.refresh();
-
- }
- model.refresh();
- }
- /**========================================================================================================================================
- * 영적돌봄기록지 팝업
- =========================================================================================================================================*/
- function fSoulCareChrtRegtopener(){
- if (grd_fthreqpatlist.rows <= 1) return;
- if (grd_fthreqpatlist.row < 1) return;
-
- if(grd_fthreqpatlist.isCell(event.target) && grd_fthreqpatlist.mouseRow >= grd_fthreqpatlist.fixedrows)
- {
-
- }
- else
- {
- return;
- }
-
- var xPath="/root/main/fthreqpatlist/fthreqpatlistinfo";
-
- var idxRow = grd_fthreqpatlist.row- 1 ;
- var pid=model.getValue(xPath+"["+idxRow+"]/pid");
- var instcd=model.getValue(xPath+"["+idxRow+"]/instcd");
- var seqno=model.getValue(xPath+"["+idxRow+"]/seqno");
- var cretno=model.getValue(xPath+"["+idxRow+"]/cretno");
- var indd=model.getValue(xPath+"["+idxRow+"]/indd");
-
- //2008.10.14 재원환자,퇴원환자 구분-수정 dykim
- var dschdd = model.getValue(xPath+"["+idxRow+"]/dschdd");
- var CurrentDate = getCurrentDate();
-
- /*var condparam = "I"+ "▦" + model.getValue(xPath+"["+grd_soulcarechrtwrtelist.row+"]/pid")
- + "▦" + model.getValue(xPath+"["+grd_soulcarechrtwrtelist.row+"]/indd")
- + "▦" + model.getValue(xPath+"["+grd_soulcarechrtwrtelist.row+"]/cretno")
- + "▦" + model.getValue(xPath+"["+grd_soulcarechrtwrtelist.row+"]/instcd")
- + indd(); */
-
- //재원자 - 현재일자
- if(dschdd == "99991231"){
- var condparam1 = "I▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + CurrentDate;
- setParameter("condparam", condparam1);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- modal("SMAYA04200",1,1,1);
- model.refresh();
- }
-
-
- //퇴원자 - 퇴원일자
- else if(dschdd != "99991231"){
- var condparam2 = "I▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + dschdd;
- setParameter("condparam", condparam2);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- modal("SMAYA04200",1,1,1);
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:147px; height:14px; ">원목의뢰환자조회</caption>
- </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="button38" class="btn4_letter3" style="left:1115px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:70px; width:222px; height:13px; ">영적돌봄현황 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:89px; "/>
- <datagrid id="grd_fthreqpatlist" nodeset="/root/main/fthreqpatlist/fthreqpatlistinfo" caption="등록번호^성명^병실^의뢰유형^의뢰정보^의뢰정보^의뢰정보^의뢰정보^수신정보^수신정보^회신정보^회신정보^환자돌봄정보^환자돌봄정보^환자돌봄정보^환자돌봄정보^환자돌봄정보^환자돌봄정보^영적돌봄기록^영적돌봄기록^hngnm^caption1^caption2^caption3^caption4^caption5|등록번호^성명^병실^의뢰유형^의뢰과^의뢰자^의뢰일시^의뢰일시^수신자^수신일시^회신일시^회신자^최초방문일^최근방문일^방문횟수^최초상담일^최근상담일^상담횟수^영적사정일^종결일^hngnm^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="70, 83, 83, 100, 146, 78, 158, 18, 82, 159, 162, 84, 92, 86, 54, 89, 91, 54, 85, 95, 28, 13, 36, 29, 25, 29, 18, 22, 29, 22" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:93px; width:1195px; height:647px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="pidnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="reqkind" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:center; "/>
- <col ref="requsernm" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="btn" type="inputbutton" visibility="hidden"/>
- <col ref="recvusernm" style="text-align:center; "/>
- <col ref="recvdd" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="repldd" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="replusernm" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="minvisitdd" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="maxvisitdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="visitcnt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="mincnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="maxcnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnstcnt" style="text-align:center; "/>
- <col ref="asesrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="hngnm" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="dschdd" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="requserid" visibility="hidden"/>
- <col ref="recvuserid" visibility="hidden"/>
- <col ref="repluserid" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fthreqpatlist.gridToInstance(); // sorting시 데이터 순서 그대로 가져갈 수 있도록
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fUpPatInfo();
- fCnstPopUp();
- ]]>
- </script>
- </datagrid>
- <group id="group4" style="left:0px; top:5px; width:1194px; height:62px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
- <caption id="caption25" class="search_name" style="left:20px; top:20px; width:138px; height:17px; ">영적돌봄의뢰유형 :</caption>
- <caption id="caption26" class="search_name" style="left:345px; top:10px; width:83px; height:17px; ">의 뢰 일 :</caption>
- <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_default" navindex="13" inputtype="date" style="left:440px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_default" navindex="13" inputtype="date" style="left:560px; top:10px; width:90px; height:19px; "/>
- <caption id="caption9" class="search_no_b" style="left:545px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:695px; top:10px; width:86px; height:17px; ">회신구분 :</caption>
- <select1 id="cmb_cnststat" ref="/root/main/cond/cnststat" class="combo_search" appearance="minimal" style="left:790px; top:10px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeRdo();
- fGetFthReqPatList();
- if(getGlobalVariable("paminfo").length > 0){
- delPatientInfos();
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
- <caption id="caption2" class="search_name" style="left:345px; top:35px; width:83px; height:17px; ">환 자 명 :</caption>
- <input id="ipt_hngnm" ref="/root/main/cond/pidnm" imemode="hangul" maxlength="10" appearance="input" style="left:440px; top:35px; width:100px; height:19px; "/>
- <select1 id="cmb_req" ref="/root/main/cond/req" class="combo_search" appearance="minimal" style="left:165px; top:20px; width:140px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>타과의뢰</label>
- <value>A</value>
- </item>
- <item>
- <label>간호정보지</label>
- <value>B</value>
- </item>
- <item>
- <label>기타의뢰</label>
- <value>C</value>
- </item>
- <item>
- <label>원목자선정</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_req.value =='-' || cmb_req.value == 'B' || cmb_req.value == 'C' || cmb_req.value == 'D'){
- cmb_cnststat.select(0);
- cmb_cnststat.disabled = true;
-
- }
- else{
- cmb_cnststat.disabled = false;
- cmb_cnststat.select(0);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|