12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>메시지함</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tree>
- <dept>
- <depttree>
- </depttree>
- </dept>
- <emrdept>
- <depttree/>
- <orddept/>
- </emrdept>
- </tree>
- <list>
- <userlist>
- <umsguserlist>
- <chk/>
- <usernm/>
- <deptnm/>
- <telno/>
- <pdano/>
- <mpphonno/>
- <deptcd/>
- </umsguserlist>
- </userlist>
- <recvrlist>
- <recvr>
- <usernm/>
- <userid/>
- <mpphonno/>
- <pid/>
- <deptcd/>
- </recvr>
- </recvrlist>
- <recvmsglist>
- <msglist>
- <check/>
- <recvcnfmyn/>
- <msgrank/>
- <trsmrnm/>
- <trsmrid/>
- <mpphonno/>
- <deptnm/>
- <msgcnts/>
- <patnm/>
- <pid/>
- <trsmreqdt/>
- </msglist>
- </recvmsglist>
- <sendmsglist>
- <msglist/>
- </sendmsglist>
- <trashmsglist>
- <msglist/>
- </trashmsglist>
- <callmsglist>
- <msglist/>
- </callmsglist>
- <patlist>
- <pmsgpatlist/>
- </patlist>
- <nurslist/>
- <bookmarklist>
- <bookmark>
- <check/>
- <usernm/>
- <userid/>
- <deptnm/>
- <mpphonno/>
- <deptcd/>
- </bookmark>
- </bookmarklist>
- </list>
- <recvmsg/>
- <sentmsg/>
- <trashmsg/>
- <callmsg/>
- <cleartrash>
- <succnt/>
- </cleartrash>
- </main>
- <send>
- <recivemsg>
- <value/>
- <date/>
- <stype>all</stype>
- <srank>0</srank>
- </recivemsg>
- <sentmsg>
- <value/>
- <stype>all</stype>
- <date/>
- <srank>0</srank>
- </sentmsg>
- <writemsg>
- <umsg>
- <stype>1</stype>
- <inputvalue/>
- <treevalue/>
- <value/>
- <key/>
- <instcds/>
- </umsg>
- <send>
- <calltype>msg</calltype>
- <calltelno/>
- <insuflag/>
- <msgcnts/>
- <recvrid/>
- <systemnm/>
- <instcd/>
- </send>
- <pmsg>
- <stype>1</stype>
- <svalue/>
- <wardcd/>
- <roomcd/>
- <key/>
- <orddeptcd/>
- <treevalue/>
- </pmsg>
- <nurslist>
- <pid/>
- </nurslist>
- </writemsg>
- <trashmsg>
- <value/>
- <stype>all</stype>
- <date/>
- <srank>0</srank>
- </trashmsg>
- <cleartrash>
- <value/>
- </cleartrash>
- <callmsg>
- <stype>all</stype>
- <value/>
- <date/>
- <fstrgstrid/>
- <fstrgstdt/>
- <recvrnm/>
- <bizabbr/>
- <recvrtelno/>
- <fstgrstdt/>
- <msgstate/>
- </callmsg>
- <delmsg>
- <delflag/>
- <msgs/>
- </delmsg>
- <favorites/>
- <delfavorite/>
- <config>
- <msgpopupflag/>
- <msginsuflag/>
- <msgnewpopupflag/>
- </config>
- <delcalllist>
- <msgkeylist/>
- <delgbn/>
- </delcalllist>
- </send>
- <temp/>
- <init>
- <cbizabbr>
- <label>전체</label>
- <value>all</value>
- </cbizabbr>
- <cbizabbr>
- <label>수신인</label>
- <value>recvr</value>
- </cbizabbr>
- <cbizabbr>
- <label>호출번호</label>
- <value>tel</value>
- </cbizabbr>
- <cbizabbr>
- <label>호출날짜</label>
- <value>cdate</value>
- </cbizabbr>
- <tbizabbr>
- <label>전체</label>
- <value>all</value>
- </tbizabbr>
- <tbizabbr>
- <label>받는사람</label>
- <value>recvr</value>
- </tbizabbr>
- <tbizabbr>
- <label>보낸사람</label>
- <value>sender</value>
- </tbizabbr>
- <tbizabbr>
- <label>날짜</label>
- <value>date</value>
- </tbizabbr>
- <rbizabbr>
- <label>전체</label>
- <value>all</value>
- </rbizabbr>
- <rbizabbr>
- <label>보낸사람</label>
- <value>sender</value>
- </rbizabbr>
- <rbizabbr>
- <label>메세지 내용</label>
- <value>msg</value>
- </rbizabbr>
- <rbizabbr>
- <label>도착일</label>
- <value>rdate</value>
- </rbizabbr>
- <rbizabbr>
- <label>환자명</label>
- <value>pnm</value>
- </rbizabbr>
- <rbizabbr>
- <label>환자ID</label>
- <value>pid</value>
- </rbizabbr>
- <msgrank>
- <label>전체</label>
- <value>0</value>
- </msgrank>
- <msgrank>
- <label>응급</label>
- <value>1</value>
- </msgrank>
- <msgrank>
- <label>일반</label>
- <value>3</value>
- </msgrank>
- <msgrank>
- <label>보험</label>
- <value>2</value>
- </msgrank>
- <sbizabbr>
- <label>전체</label>
- <value>all</value>
- </sbizabbr>
- <sbizabbr>
- <label>받는이</label>
- <value>recvr</value>
- </sbizabbr>
- <sbizabbr>
- <label>메세지 내용</label>
- <value>msg</value>
- </sbizabbr>
- <sbizabbr>
- <label>보낸일</label>
- <value>sdate</value>
- </sbizabbr>
- <sbizabbr>
- <label>환자명</label>
- <value>pnm</value>
- </sbizabbr>
- <sbizabbr>
- <label>환자ID</label>
- <value>pid</value>
- </sbizabbr>
- <calltype>
- <label>메시지만</label>
- <value>msg</value>
- </calltype>
- <calltype>
- <label>호출만</label>
- <value>call</value>
- </calltype>
- <calltype>
- <label>메시지+호출</label>
- <value>msgcall</value>
- </calltype>
- <pmsgsearchitem>
- <label>환자명</label>
- <value>1</value>
- </pmsgsearchitem>
- <pmsgsearchitem>
- <label>등록번호</label>
- <value>2</value>
- </pmsgsearchitem>
- <umsgsearchitem>
- <label>이름</label>
- <value>1</value>
- </umsgsearchitem>
- <umsgsearchitem>
- <label>근무지</label>
- <value>2</value>
- </umsgsearchitem>
- <umsgsearchitem>
- <label>최근보낸사람</label>
- <value>3</value>
- </umsgsearchitem>
- <param/>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- switch2.selectedindex= 1; // 메시지 쓰기의 초기 탭을 사용자로 설정
- model.removeNodeset("/root/main/list/recvrlist");
- model.removeNodeset("/root/main/list/userlist/umsguserlist");
- model.removeNodeSet("/root/main/list/patlist/pmsgpatlist");
- model.removeNodeset("/root/main/list/recvmsglist/msglist");
- model.removeNodeset("/root/main/list/sendmsglist/msglist");
- model.removeNodeset("/root/main/list/trashmsglist/msglist");
- model.removeNodeset("/root/main/list/callmsglist/msglist");
-
- model.setValue("/root/send/recivemsg/date",getCurrentDate());
- model.setValue("/root/send/sentmsg/date",getCurrentDate());
- model.setValue("/root/send/trashmsg/date",getCurrentDate());
- model.setValue("/root/send/callmsg/date",getCurrentDate());
-
- model.setValue("/root/send/writemsg/send/calltelno",getUserInfo("mpphonno"));
-
- // 환경설정값 읽어와 설정하기
- model.setValue("/root/send/writemsg/send/insuflag",fGetInsuFlagConfig());
- model.setValue("/root/send/config/msginsuflag",fGetInsuFlagConfig());
- model.setValue("/root/send/config/msgpopupflag",fGetPopupFlagConfig());
- model.setValue("/root/send/config/msgnewpopupflag",fGetNewPopupFlagConfig());
-
- grd_receive.fixedcellcheckbox(0,1) = true;
- grd_sent.fixedcellcheckbox(0,1) = true;
- grd_trashlist.fixedcellcheckbox(0, 1) = true;
-
- // 즐겨찾기에 체크박스 및 일괄추가 버튼 추가
- grd_bookmark.fixedcellcheckbox(0, 1) = true;
- grd_bookmark.fixedcellischeck(0, 1) = true;
- // 전달된 파라메터에 따른 동작 처리
- // opentab : setting, receivemsg,sentmsg,trash,calllist,pmsg,umsg,bookmark
- var opentab = model.getValue("/root/init/param/opentab");
- if (opentab == "pmsg") {
- btn_msgwrite.selected = true;
- btn_msgwrite.dispatch("DOMActivate");
- btn_pmsg.selected = true;
- btn_pmsg.dispatch("DOMActivate");
- // 환자 목록 조회
- fGetPatientList();
- } else if (opentab == "umsg") {
- btn_msgwrite.selected = true;
- btn_msgwrite.dispatch("DOMActivate");
- btn_umsg.selected = true;
- btn_umsg.dispatch("DOMActivate");
- // 사용자 목록 조회
- fGetUserList();
- } else if (opentab == "bookmark") {
- btn_msgwrite.selected = true;
- btn_msgwrite.dispatch("DOMActivate");
- btn_bookmark.selected = true;
- btn_bookmark.dispatch("DOMActivate");
- } else if (opentab == "setting") {
- btn_msgsetting.selected = true;
- btn_msgsetting.dispatch("DOMActivate");
- } else if (opentab == "sentmsg") {
- btn_msgsent.selected = true;
- btn_msgsent.dispatch("DOMActivate");
- // 보낸 메시지 조회
- fGetSentMessages();
- } else if (opentab == "trash") {
- btn_trash.selected = true;
- btn_trash.dispatch("DOMActivate");
- // 휴지통 조회
- fGetTrashList();
- } else if (opentab == "calllist") {
- btn_calllist.selected = true;
- btn_calllist.dispatch("DOMActivate");
- // 호출 내역 조회
- fGetCallList();
- } else {
- // 최초 받은메세지함으로 표시
- btn_msgreceive.selected = true;
- btn_msgreceive.dispatch("DOMActivate");
- // 받은 메시지 조회
- fGetReceivedMessages();
- }
-
- fInitWriteMsgInstcd();
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZMI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recivemsg" replace="instance" resultref="/root/main/list/recvmsglist"/>
- <submission id="TRZMI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recivemsg" replace="instance" resultref="/root/main/list/recvmsglist"/>
- <submission id="TRZMI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sentmsg" replace="instance" resultref="/root/main/list/sendmsglist"/>
- <submission id="TRZMI03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sentmsg" replace="instance" resultref="/root/main/list/sendmsglist"/>
- <!-- <submission id="TRZMI00105" ref="/root/send/setting" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/setting"/> -->
- <submission id="TXZMI00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delmsg" resultref="/root/temp"/>
- <submission id="TRZMI00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trashmsg" resultref="/root/main/list/trashmsglist"/>
- <submission id="TXZMI00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cleartrash" resultref="/root/main/cleartrash"/>
- <submission id="TXZMI00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/send" replace="instance" resultref="/root/temp"/>
- <submission id="TRZMI00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/callmsg" resultref="/root/main/list/callmsglist"/>
- <submission id="TRZMI00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tree/dept"/>
- <submission id="TRZMI00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tree/emrdept"/>
- <submission id="TRZMI00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/umsg" resultref="/root/main/list/userlist"/>
- <submission id="TXZMI00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/recvmsg/msgno" resultref="/root/temp"/>
- <submission id="TRZMI00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/pmsg" resultref="/root/main/list/patlist"/>
- <submission id="TRZMI00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/nurslist" resultref="/root/main/list/nurslist"/>
- <submission id="TXZMI00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/favorites" resultref="/root/main/list/bookmarklist"/>
- <submission id="TRZMI00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" resultref="/root/main/list/bookmarklist"/>
- <submission id="TXZMI00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delfavorite" resultref="/root/main/list/bookmarklist"/>
- <submission id="TXZMI00208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/config" resultref="/root/temp"/>
- <submission id="TXZMI00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delcalllist" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- gvDeptTreeLoaded = false; // 사용자 메시지 용 부서트리 데이터 로딩 여부
- gvEmrDeptTreeLoaded = false; // 환자 메시지 용 진료부서트리 데이터 로딩 여부
-
- // 확인 여부 값
- gv_comboread = "Y"; //읽음
- gv_combounread = "N"; //읽지않음
-
- var lgv_instcds = "";
-
- var sMisyn = getSystemCd().substring(0,3).toLowerCase();
-
- function fInitWriteMsgInstcd() {
- // 메시지 수신 기관 세팅
- var systeminstnm = getUserInfo("systeminstnm");
- if(systeminstnm.indexOf("치과") >= 0) { // 치과, 치과MIS일때
- rdo_031032.visible = false;
- rdo_033.visible = true;
-
- var systemcd =getUserInfo("systemcd");
- if(systemcd == "MIS033") {
- systemcd = "MIS030";
- } else if(systemcd == "CRM033") {
- systemcd = "CRM030";
- } else {
- systemcd = "HIS031";
- }
-
- model.setValue("/root/send/writemsg/send/instcd", systemcd);
-
- rdo_033.disabled = true;
-
- lgv_instcds = "033";
-
- rdo_033.refresh();
- rdo_031032.refresh();
- } else { // 본원, 칠곡, MIS, CRM 일때
- rdo_031032.visible = true;
- rdo_033.visible = false;
-
- model.setValue("/root/send/writemsg/send/instcd", getUserInfo("systemcd"));
-
- lgv_instcds = "031^032";
-
- rdo_033.refresh();
- rdo_031032.refresh();
- }
- }
-
- function fDeleteCheckedRows(grd,colname) {
- var rows = grd.rows;
- var checkcol = grd.colref(colname);
- var checkflag = "";
- for(var idx=rows-1;idx>= grd.fixedRows;idx--) {
- checkflag = grd.valueMatrix(idx,checkcol);
- if (checkflag == "true") {
- grd.deleterow(idx,false);
- }
- }
- }
-
- // 그리드에 체크된 메시지의 삭제 플래그를 변경하는 submit을 실행한다.
- function fSubmitDeleteMsg(grd,delflag) {
- var delmsg = "";
- if(delflag == "T") {
- delmsg = "삭제";
- } else if (delflag == "Y") {
- delmsg = "완전삭제";
- } else if (delflag = "N") {
- delmsg = "복원";
- } else {
- alert("잘못된 삭제 플래그입니다.");
- return;
- }
-
- // 삭제할 메시지 노드 선택
- var nodeset = grd.nodeset;
- var selectedNodeList = instance1.selectNodes(nodeset+"[check='true']/msgno");
- var length = selectedNodeList.length;
-
- if (length == 0) {
- messageBox(delmsg+"할 메세지를 선택하지", "E007");
- return;
- }
-
- // 삭제할 메시지 번호를 모은다.
- var selectedMsgNo = "";
- for(var idx=0;idx<length;idx++) {
- selectedMsgNo = selectedMsgNo + selectedNodeList.item(idx).text + "|";
- }
-
- // instance에 설정하고 submit 한다.
- model.setValue("/root/send/delmsg/delflag",delflag); // 삭제 플래그
- model.setValue("/root/send/delmsg/msgs",selectedMsgNo);
-
- if (submit("TXZMI00201") ) {
- // 그리드에서 체크된 row 를 삭제한다.
- fDeleteCheckedRows(grd,"check");
- grd.refresh();
- }
- }
-
- // 근무부서 트리 생성(최초 한번만)
- function fLoadDeptTree() {
- if (!gvDeptTreeLoaded) {
- if (copyFromCache("SPZMI00101_depttree","/root/main/tree/dept")) {
- model.refresh();
- gvDeptTreeLoaded = true;
- } else {
- if (submit("TRZMI00109")) {
- storeIntoCache("SPZMI00101_depttree","/root/main/tree/dept");
- gvDeptTreeLoaded = true;
- }
-
- }
- }
- }
-
- // 주어진 pid 값으로 환자기준메시지 전송 탬의 조회 조건을 설정하고
- // 설정이 되었으면 true를 설정되지 않았으면 false를 반환한다.
- function fSetPatientID(pid) {
- // pid를 지정하지 않았으면 환자상단정보의 환자번호로 세팅한다.
- if (pid == null || pid == "" ) {
- pid = getPatientId();
- }
- if (pid != "" && pid != null ) {
- // 환자 선택됨
- model.setValue("/root/send/writemsg/pmsg/stype","2"); // 환자번호로 조회
- model.setValue("/root/send/writemsg/pmsg/svalue",pid);
- return true;
- } else {
- return false;
- }
- }
-
- function fLoadBookmark() {
- submit("TRZMI00114");
- }
- // 진료 부서/병동 트리 생성(최초 한번만)
- function fLoadEmrDeptTree() {
- if (!gvEmrDeptTreeLoaded) {
- if (copyFromCache("SPZMI00101_emrdepttree","/root/main/tree/emrdept")) {
- model.refresh();
- gvEmrDeptTreeLoaded = true;
- } else {
- if (submit("TRZMI00110")) {
- storeIntoCache("SPZMI00101_emrdepttree","/root/main/tree/emrdept");
- gvEmrDeptTreeLoaded = true;
- }
- }
- }
- }
-
- // 받은 메시지 함 조회
- function fGetReceivedMessages() {
- initGridStyle("grd_receive");
- if (sMisyn != "mis"){
- submit("TRZMI00101");
- }else if( sMisyn == "mis"){
- submit("TRZMI03101");
- }
-
- setRowStyle("grd_receive" , "2" , gv_combounread, "recvcnfmyn");
-
- // 메시지함 조회 시 사용자 확인 메시지 뿌리고, 메시지함 아이콘 바꾸기 by 손병은. 2012-05-04
- var viewerObj = getViewer("sysMessage");
- if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
- viewerObj.window.javascript.fMsgsvrUserNotify();
- }
-
- }
-
- // 보낸 메시지 함 조회
- function fGetSentMessages() {
- initGridStyle("grd_sent");
-
- if (sMisyn != "mis"){
- submit("TRZMI00102");
- }else if( sMisyn == "mis"){
- submit("TRZMI03102");
- }
-
- setRowStyle("grd_sent" , "1" , gv_combounread , "recvcnfmyn" );
- }
-
- // 사용자 목록 조회
- function fGetUserList() {
- var sdata = model.getValue("/root/send/writemsg/umsg/inputvalue");
- if (sdata == "") {
- return;
- }
- model.setValue("/root/send/writemsg/umsg/value",
- model.getValue("/root/send/writemsg/umsg/inputvalue"));
- model.setValue("/root/send/writemsg/umsg/key",
- model.getValue("/root/send/writemsg/umsg/stype"));
- model.setValue("/root/send/writemsg/umsg/instcds", lgv_instcds);
- submit("TRZMI00111");
- }
-
- // 환자 목록 조회
- function fGetPatientList() {
- var pid = model.getValue("/root/send/writemsg/pmsg/svalue");
- if (pid == "") {
- return;
- }
-
- model.setValue("/root/send/writemsg/pmsg/key",
- model.getValue("/root/send/writemsg/pmsg/stype"));
- submit("TRZMI00112");
- fSetNurseCellComboNodeSet();
- }
-
- function fGetTrashList() {
- submit("TRZMI00107");
- }
-
- function fGetCallList() {
- model.setValue("/root/send/callmsg/fstrgstrid", getUserId());
- model.setValue("/root/send/callmsg/bizabbr","ZMI");
- model.setValue("/root/send/callmsg/msgstate","-");
- model.setValue("/root/send/callmsg/recvrtelno", "");
- model.setValue("/root/send/callmsg/recvrnm", "");
- model.setValue("/root/send/callmsg/fstrgstdt", "");
-
- var stype = model.getValue("/root/send/callmsg/stype");
- if (stype == "recvr") {
- model.setValue("/root/send/callmsg/recvrnm",
- model.getValue("/root/send/callmsg/value"));
- } else if (stype == "tel") {
- model.setValue("/root/send/callmsg/recvrtelno",
- model.getValue("/root/send/callmsg/value"));
- } else if (stype == "cdate") {
- model.setValue("/root/send/callmsg/fstrgstdt",
- model.getValue("/root/send/callmsg/date"));
- }
-
- submit("TRZMI00108");
- }
-
- // 환자 정보 목록의 담당 간호사 콤보의 nodeset을 설정한다.
- function fSetNurseCellComboNodeSet() {
- var pid = "";
- var pidnursepath = "";
- var pid_col = 0;
- var nurse_col = 8;
- for(var i=grd_pmsgsearch.fixedRows;i<grd_pmsgsearch.rows;i++) {
- pid = grd_pmsgsearch.valueMatrix(i,pid_col);
- pidnursepath = "/root/main/list/patlist/pid"+pid;
- grd_pmsgsearch.cellComboNodeset(i,nurse_col) = pidnursepath;
- }
- }
-
- function fSetRowValue(node, destinationelement, sourceelement, row) {
- model.setValue(node + "[" + row + "]/" + destinationelement, sourceelement);
- }
-
- // 받는이 목록에 하나의 항목을 추가한다.
- function fAddReceiver(usernm, userid, mpphonno, deptcd, pid) {
- grd_receiver.addrow(false);
- var recv_row = grd_receiver.rows-1;
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",usernm);
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",userid);
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",mpphonno);
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",deptcd);
- if (pid != null) {
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pid",pid);
- }
- }
-
- // 받은 메시지 함에서 답장 버튼 눌렀을때 메시지 작성 탭으로 이동
- function fReplyMessage() {
- // 선택한 메시지 있는 지 확인
- var cur_row = grd_receive.row;
- //alert(cur_row);
- if (cur_row < grd_receive.fixedRows) {
- alert("답장할 메시지를 선택하세요.");
- return;
- }
-
- // 답장할 정보 생성
- model.removeNodeset("/root/main/list/recvrlist");
- model.refresh();
- grd_receiver.addrow(false);
- var recv_row = grd_receiver.rows-1;
- //alert(recv_row);
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
- model.getValue("/root/main/recvmsg/trsmrnm"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
- model.getValue("/root/main/recvmsg/trsmrid"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
- model.getValue("/root/main/recvmsg/mpphonno"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
- model.getValue("/root/main/recvmsg/deptcd"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pid",
- model.getValue("/root/main/recvmsg/pid"));
- model.setValue("/root/send/writemsg/send/msgcnts",
- model.getValue("/root/main/recvmsg/msgcnts"));
- model.refresh();
- // 메시지 쓰기 텝으로 토글
- btn_msgwrite.selected = true;
- btn_msgwrite.dispatch("DOMActivate");
- model.setFocus("tar_msgcnts");
- /*
- model.toggle("writemsg");
- model.setFocus("tar_msgcnts");
-
- btn_msgsend.visible = true;
- btn_close.visible = true;
- btn_writeinit.visible = false;
- */
-
- }
-
- // 휴지통 메시지 상세 보기
- function fShowTrashMsg() {
- var cur_row = grd_trashlist.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/trashmsg","/root/main/list/trashmsglist/msglist["+cur_row+"]");
- model.refresh();
- }
- }
-
- // 호출내역 메시지 상세 보기
- function fShowCallMsg() {
- var cur_row = grd_calllist.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/callmsg","/root/main/list/callmsglist/msglist["+cur_row+"]");
- model.refresh();
- }
- }
-
- // 받은 메시지 보기
- function fShowReceiveMsg() {
- var cur_row = grd_receive.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/recvmsg","/root/main/list/recvmsglist/msglist["+cur_row+"]");
- model.refresh();
-
- // 확인 여부를 서버에 Y 로 저장한다.
- var confirmyn = model.getValue("/root/main/recvmsg/recvcnfmyn");
- if (confirmyn == "N") {
- submit("TXZMI00205");
- }
- /**
- modal("SPZMI00201", "", "400", "400" ,"SPZMI00201", "/root/main/item", "/root/main");
-
- if (model.getValue("/root/temp") != null && model.getValue("/root/temp") != "") {
- btn_msgwrite.selected = true;
- }
- **/
- }
- }
- // 보낸 메시지 보기
- function fShowSendMsg() {
- var cur_row = grd_sent.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/sentmsg","/root/main/list/sendmsglist/msglist["+cur_row+"]");
- model.refresh();
- /**
- modal("SPZMI00201", "", "400", "400" ,"SPZMI00201", "/root/main/item", "/root/main");
-
- if (model.getValue("/root/temp") != null && model.getValue("/root/temp") != "") {
- btn_msgwrite.selected = true;
- }
- **/
- }
- }
- /*
- * 보낸 메시지 popup으로 메시지 보기
- */
- function sFetchFromGrid() {
- var cur_row = grd_sent.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/item","/root/main/list_send/sentlist["+cur_row+"]");
- model.refresh();
-
- modal("SPZMI00401", "", "400", "400" ,"SPZMI00401", "/root/main/item", "/root/main");
- }
- }
-
- function fReconnectMsgServer() {
- var viewerObj = getViewer("sysMessage");
- if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
- viewerObj.window.javascript.fConnectMsgsvr();
- }
- }
-
- // 환경설정값 가져오기/저장하기
- function fGetInsuFlagConfig() {
- return fGetUserConfig("msginsuflag");
- }
- function fGetPopupFlagConfig() {
- return fGetUserConfig("msgpopupflag");
- }
- function fGetNewPopupFlagConfig() {
- return fGetUserConfig("msgnewpopupflag");
- }
- function fGetUserConfig(cfgname) {
- var viewerObj = getViewer("sysMessage");
- if (viewerObj != null && viewerObj.window.javascript.fGetUserConfig != undefined) {
- return viewerObj.window.javascript.fGetUserConfig(cfgname);
- } else {
- return "";
- }
- }
-
- function fSetInsuFlagConfig(value) {
- fSetUserConfig("msginsuflag",value);
- }
- function fSetPopupFlagConfig(value) {
- fSetUserConfig("msgpopupflag",value);
- }
- function fSetNewPopupFlagConfig(value) {
- fSetUserConfig("msgnewpopupflag",value);
- }
- function fSetUserConfig(cfgname,cfgvalue) {
- var viewerObj = getViewer("sysMessage");
- if (viewerObj != null && viewerObj.window.javascript.fSetUserConfig != undefined) {
- viewerObj.window.javascript.fSetUserConfig(cfgname,cfgvalue);
- }
- }
-
- //
- function delcalllist(delgbn) {
-
- var grdSize = grd_calllist.rows;
-
- var chkFlag = false;
-
- var msgkeylist = "";
-
- for (i = 1; i < grdSize; i++) {
-
- if (model.getValue("/root/main/list/callmsglist/msglist[" + i + "]/selectmsg") == "true") {
- msgkeylist += model.getValue("/root/main/list/callmsglist/msglist[" + i + "]/msgkey") + ":";
- chkFlag = true;
- }
- }
-
- //alert(getGridUpdateData(grd_deqreq));
-
- model.setValue("/root/send/delcalllist/msgkeylist", msgkeylist);
- model.setValue("/root/send/delcalllist/delgbn", delgbn);
-
- if (chkFlag) {
-
- submit("TXZMI00210");
-
- btn_callsearch.dispatch("onclick");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="720" pageheight="560" guideline="1,7;1,713;2,525;" style="vertical-align:middle; ">
- <switch id="switch1" style="left:7px; top:47px; width:708px; height:478px; ">
- <case id="setting">
- <shape id="roundrect4" appearance="roundrect" style="left:8px; top:30px; width:690px; height:100px; "/>
- <caption id="caption1" class="tit_2" style="left:10px; top:8px; width:131px; height:14px; ">메시지 환경 설정</caption>
- <caption id="caption16" class="tit_2" style="left:11px; top:140px; width:131px; height:13px; ">메세지 서버 설정</caption>
- <shape id="roundrect5" appearance="roundrect" style="left:8px; top:160px; width:690px; height:40px; "/>
- <caption id="caption5" class="search_name" style="left:20px; top:170px; width:148px; height:17px; ">메시징 서버 재접속</caption>
- <button id="btn_msgconnect" class="btn4_letter2" disabled="false" style="left:630px; top:170px; width:56px; height:22px; ">
- <caption>연결</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 메시징 서버 재접속
- fReconnectMsgServer();
- ]]>
- </script>
- </button>
- <button id="btn_saveconfig" class="btn4_letter2" disabled="false" style="left:630px; top:100px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TXZMI00208")) {
- fSetInsuFlagConfig(model.getValue("/root/send/config/msginsuflag"));
- fSetPopupFlagConfig(model.getValue("/root/send/config/msgpopupflag"));
- fSetNewPopupFlagConfig(model.getValue("/root/send/config/msgnewpopupflag"));
- }
- ]]>
- </script>
- </button>
- <select id="chk_msginsuyn" ref="/root/send/config/msginsuflag" overflow="visible" appearance="full" style="left:25px; top:60px; width:305px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>메시지 작성 시 기본으로 보험 체크되기</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="chk_msgpopupyn" ref="/root/send/config/msgpopupflag" overflow="visible" appearance="full" style="left:25px; top:40px; width:305px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>로그인 시 메시지 창 띄우기</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="checkbox1" ref="/root/send/config/msgnewpopupflag" overflow="visible" appearance="full" style="left:25px; top:80px; width:305px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>새 메시지 도착시 팝업창 알림</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </case>
- <case id="receivemsg" selected="true">
- <datagrid id="grd_receive" nodeset="/root/main/list/recvmsglist/msglist" caption="^확인^종류^발신인^발신인ID^연락처^근무지^환자명^메시지^환자 ID^받은날짜^msgno" colsep="^" colwidth="22, 30, 32, 50, 63, 71, 62, 47, 230, 52, 95, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:256px; ">
- <col ref="check" type="checkbox"/>
- <col ref="recvcnfmyn" type="output" style="text-align:center; "/>
- <col ref="msgrank" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="trsmrnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="trsmrid" visibility="hidden"/>
- <col ref="mpphonno" secretmark="*" secretstartposition="5" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="deptnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="patnm" style="text-align:center; vertical-align:middle; "/>
- <col ref="msgcnts"/>
- <col ref="pid" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col ref="trsmreqdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
- <col ref="msgno" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fShowReceiveMsg();
- ]]>
- </script>
- </datagrid>
- <group id="group1" style="left:0px; top:5px; width:694px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:5px; top:0px; width:689px; height:35px; "/>
- <caption id="caption7" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
- <line id="line13" class="line_4" style="x1:595px; y1:5px; x2:595px; y2:32px; "/>
- <button id="btn_recivesearch" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetReceivedMessages();
- ]]>
- </script>
- </button>
- <input id="ipt_rsrctxt" ref="/root/send/recivemsg/value" visibility="hidden" style="left:215px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // 엔터키인경우만
- model.setFocus("btn_recivesearch");
- btn_recivesearch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rdate" ref="/root/send/recivemsg/date" visibility="hidden" inputtype="date" style="left:215px; top:8px; width:100px; height:19px; "/>
- <!--
- <select1 id="rdo_recvmsgrank" ref="/root/send/recivemsg/srank" appearance="full" cols="4" overflow="visible" style="left:350px; top:9px; width:185px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/msgrank">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- -->
- <select1 id="cmb_rmsgcond" ref="/root/send/recivemsg/stype" navindex="4" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rbizabbr">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_rmsgcond.value == "rdate") {
- ipt_rsrctxt.visible = false;
- ipt_rdate.visible = true;
- } else if (cmb_rmsgcond.value == "all") {
- ipt_rsrctxt.visible = false;
- ipt_rdate.visible = false;
- }
- else {
- ipt_rsrctxt.visible = true;
- ipt_rdate.visible = false;
- }
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:10px; top:51px; width:87px; height:13px; ">받은 메세지</caption>
- <button id="btn_delrmsg" class="btn5_letter2" visibility="visible" style="left:652px; top:48px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitDeleteMsg(grd_receive,"T");
- ]]>
- </script>
- </button>
- <textarea id="tar_recvmsg" ref="/root/main/recvmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
- <button id="btn_reply" class="btn5_letter2" visibility="visible" style="left:605px; top:48px; width:42px; height:19px; ">
- <caption>답장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReplyMessage();
- ]]>
- </script>
- </button>
- </case>
- <case id="sentmsg">
- <group id="group2" style="left:0px; top:5px; width:692px; height:35px; ">
- <shape id="roundrect2" appearance="roundrect" style="left:5px; top:0px; width:687px; height:35px; "/>
- <caption id="caption8" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
- <line id="line1" class="line_4" style="x1:595px; y1:5px; x2:595px; y2:27px; "/>
- <button id="btn_sentsearch" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSentMessages();
- ]]>
- </script>
- </button>
- <input id="ipt_ssrctxt" ref="/root/send/sentmsg/value" visibility="hidden" style="left:215px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if("13" == event.keyCode){
- model.setFocus("btn_sentsearch");
- btn_sentsearch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_sdate" ref="/root/send/sentmsg/date" visibility="hidden" inputtype="date" style="left:215px; top:8px; width:100px; height:19px; "/>
- <!--
- <select1 id="rdo_sendmsgrank" ref="/root/send/sentmsg/srank" appearance="full" cols="4" overflow="visible" style="left:350px; top:9px; width:185px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/msgrank">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- -->
- <select1 id="cmb_smsgcond" ref="/root/send/sentmsg/stype" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sbizabbr">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_smsgcond.value == "sdate") {
- ipt_ssrctxt.visible = false;
- ipt_sdate.visible = true;
- } else if (cmb_smsgcond.value == "all") {
- ipt_ssrctxt.visible = false;
- ipt_sdate.visible = false;
- } else {
- ipt_ssrctxt.visible = true;
- ipt_sdate.visible = false;
- }
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:10px; top:51px; width:87px; height:13px; ">보낸 메세지</caption>
- <datagrid id="grd_sent" nodeset="/root/main/list/sendmsglist/msglist" caption="^확인^종류^수신인^수신인ID^연락처^근무부서^환자명^메시지^환자 ID^보낸날짜^msgno" colsep="^" colwidth="22, 30, 32, 50, 63, 71, 62, 50, 230, 52, 88, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:257px; ">
- <col ref="check" type="checkbox"/>
- <col ref="recvcnfmyn" type="output" style="text-align:center; "/>
- <col ref="msgrank" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="recvrnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="recvrid" visibility="hidden"/>
- <col ref="mpphonno" secretmark="*" secretstartposition="5" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="deptnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
- <col ref="patnm" style="text-align:center; vertical-align:middle; "/>
- <col ref="msgcnts"/>
- <col ref="pid" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col ref="trsmreqdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
- <col ref="msgno" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fShowSendMsg();
- ]]>
- </script>
- </datagrid>
- <textarea id="tar_sentmsg" ref="/root/main/sentmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
- <button id="btn_delsmsg" class="btn5_letter2" visibility="visible" style="left:652px; top:48px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitDeleteMsg(grd_sent,"T");
- ]]>
- </script>
- </button>
- </case>
- <case id="writemsg">
- <textarea id="tar_msgcnts" ref="/root/send/writemsg/send/msgcnts" navindex="7" style="left:380px; top:350px; width:315px; height:114px; vertical-align:top; "/>
- <group id="group3" style="left:380px; top:10px; width:315px; height:315px; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:315px; height:315px; "/>
- <caption id="caption4" class="search_name" style="left:6px; top:5px; width:91px; height:17px; ">받는이</caption>
- <select1 id="rdo_calltype" ref="/root/send/writemsg/send/calltype" navindex="1" overflow="visible" appearance="full" cols="3" style="left:99px; top:245px; width:85px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/calltype">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:6px; top:244px; width:95px; height:17px; ">호출 형태 :</caption>
- <caption id="caption12" class="search_name" style="left:6px; top:267px; width:99px; height:17px; ">발신 번호 :</caption>
- <input id="ipt_replytelno" ref="/root/send/writemsg/send/calltelno" visibility="visible" style="left:100px; top:267px; width:130px; height:19px; "/>
- <button id="btn_delrecv" class="btn2_letter2" style="left:264px; top:7px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srows = grd_receiver.selectedRows;
- var selectedRows = new Array();
-
- for (var i = 0; i < srows; i++) {
- selectedRows[i] = grd_receiver.selectedRow(i);
- }
- for (var i = selectedRows.length - 1; i >= 0; i--) {
- grd_receiver.deleteRow(selectedRows[i], false);
- }
- grd_receiver.refresh();
- ]]>
- </script>
- </button>
- <!--
- <select id="checkbox1" ref="/root/send/writemsg/send/insuflag" overflow="visible" appearance="full" style="left:255px; top:280px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>보험</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- -->
- <datagrid id="grd_receiver" nodeset="/root/main/list/recvrlist/recvr" visibility="visible" caption="이름^사번^호출 번호^N존^등록번호^부서병동코드" colsep="^" colwidth="72, 49, 90, 56, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" selectionmode="byrow" style="left:10px; top:30px; width:295px; height:210px; ">
- <col ref="usernm"/>
- <col ref="userid" secretmark="*" secretstartposition="4"/>
- <!-- <col ref="mpphonno" secretmark="*" secretstartposition="6"/> -->
- <col ref="mpphonno"/>
- <col ref="pdano"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- </datagrid>
- <button id="btn_addbookmark" class="btn2_letter6" style="left:175px; top:7px; width:86px; height:19px; ">
- <caption>즐겨찾기추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srows = getNodesetCount("/root/main/list/recvrlist/recvr");
- if (srows <= 0) {
- alert("즐겨 찾기에 추가할 수신자를 선택하세요");
- return;
- }
-
- model.removeNodeset("/root/send/favorites");
-
- var selectedRows = grd_receiver.selectedRows;
-
- var index = 0;
- for (var i = 0; i < selectedRows; i++) {
- var selectedRow = grd_receiver.selectedRow(i);
-
- var userid = model.getValue("/root/main/list/recvrlist/recvr[" + selectedRow + "]/userid");
- var deptcd = model.getValue("/root/main/list/recvrlist/recvr[" + selectedRow + "]/deptcd");
- // 이미 즐겨 찾기 목록에 있다면 저장할 노드에 추가 하지 않는다.
- if(getNodesetCount("/root/main/list/bookmarklist/bookmark[recvrid=" + userid + " and deptcd=" + deptcd + "]") > 0)
- continue;
-
- index++;
- model.makeNode("/root/send/favorites[" + index + "]");
- model.copyNode("/root/send/favorites[" + index + "]", "/root/main/list/recvrlist/recvr[" + selectedRow + "]");
- }
- model.refresh();
-
- submit("TXZMI00206"); // 저장 후 재조회까지 함
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" style="left:6px; top:290px; width:117px; height:17px; ">메시지 수신분류 :</caption>
- <select1 id="rdo_031032" ref="/root/send/writemsg/send/instcd" overflow="visible" appearance="full" cols="4" style="left:130px; top:292px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>본원</label>
- <value>HIS031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>HIS032</value>
- </item>
- <item>
- <label>MIS</label>
- <value>MIS030</value>
- </item>
- <item>
- <label>CRM</label>
- <value>CRM030</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_033" ref="/root/send/writemsg/send/instcd" visibility="hidden" overflow="visible" appearance="full" cols="4" style="left:130px; top:292px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>치과</label>
- <value>HIS031</value>
- </item>
- <item>
- <label>치과MIS</label>
- <value>MIS030</value>
- </item>
- <item>
- <label>치과CRM</label>
- <value>CRM030</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption14" style="left:380px; top:330px; width:310px; height:20px; text-align:right; ">메시지는 최대 100자(호출시 40자)까지 입력가능합니다.</caption>
- <switch id="switch2" style="left:10px; top:30px; width:360px; height:434px; ">
- <case id="pmsg">
- <button id="button6" class="btn1_letter2" style="left:286px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- </button>
- <shape id="roundrect9" appearance="roundrect" style="left:5px; top:7px; width:345px; height:58px; "/>
- <line id="line5" class="line_4" style="x1:280px; y1:12px; x2:280px; y2:37px; "/>
- <select1 id="rdo_pmsgsearch" ref="/root/send/writemsg/pmsg/stype" navindex="1" overflow="visible" appearance="full" cols="3" style="left:15px; top:16px; width:85px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/pmsgsearchitem">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_pmsgsearch" ref="/root/send/writemsg/pmsg/svalue" style="left:205px; top:15px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // 엔터키인경우만
- model.setFocus("btn_callsearch");
- btn_pmsgsearch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_pmsgsearch" class="btn1_letter2" style="left:286px; top:14px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatientList();
- ]]>
- </script>
- </button>
- <treeview id="trv_pmsgdept" ref="/root/send/writemsg/pmsg/treevalue" itemsettype="depth" style="left:5px; top:70px; width:345px; height:170px; ">
- <itemset nodeset="/root/main/tree/emrdept/depttree">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- <depth ref="level"/>
- </itemset>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var selected = model.getValue("/root/send/writemsg/pmsg/treevalue");
- var idx = trv_pmsgdept.focusIndex;
- var treeitem = trv_pmsgdept.item(idx);
- var parentidx = treeitem.parentindex+1;
- if (parentidx > 0) { // 병실 선택
- model.setValue("/root/send/writemsg/pmsg/wardcd",
- model.getValue("/root/main/tree/emrdept/depttree["+parentidx+"]/deptcd"));
- model.setValue("/root/send/writemsg/pmsg/roomcd",selected);
- } else { // 병동 선택
- model.setValue("/root/send/writemsg/pmsg/wardcd",selected);
- model.setValue("/root/send/writemsg/pmsg/roomcd","");
- }
- model.setValue("/root/send/writemsg/pmsg/key","3");
- //alert(selected + "," + parentidx);
- model.refresh();
- submit("TRZMI00112");
- fSetNurseCellComboNodeSet();
- ]]>
- </script>
- </treeview>
- <datagrid id="grd_pmsgsearch" nodeset="/root/main/list/patlist/pmsgpatlist" caption="등록번호^환자명^병실^교수^교수^담당의^담당의^담당간호사^교수ID^담당의ID^진료과부서코드^교수 전화번호^담당의전화번호" colsep="^" colwidth="60, 43, 40, 16, 43, 16, 43, 67, 100, 100, 100, 100, 100" mergecellsfixedcols="never" mergecellsfixedrows="byrow" rowsep="|" style="left:5px; top:245px; width:345px; height:180px; ">
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="roomcd"/>
- <col ref="chkmedi" type="checkbox" style="border-right-width:0px; "/>
- <col ref="medispclnm"/>
- <col ref="chkatdoc" type="checkbox" style="border-right-width:0px; "/>
- <col ref="atdoctnm"/>
- <col ref="chknurs" type="checkbox" style="border-right-width:0px; "/>
- <col ref="medispclid" visibility="hidden"/>
- <col ref="atdoctid" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="medispcltel" visibility="hidden"/>
- <col ref="atdocttel" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cur_row = grd_pmsgsearch.row;
- if (cur_row > 0 && isDataCell()) {
- var usernm = "";
- var userid = "";
- var medispclid = "";
- var mpphonno = "";
- var deptcd = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/orddeptcd");
- var pid = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/pid");
- // 담당간호사 체크 확인
- var chknurs = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/chknurs");
- if (chknurs == "true") {
- //alert("true");
- model.setValue("/root/send/writemsg/nurslist/pid",pid);
- submit("TRZMI00113");
- } else {
- model.removeNodeset("/root/main/list/nurslist");
- }
- // 담당교수 체크 확인
- var chkmedi = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/chkmedi");
- if (chkmedi == "true") {
- usernm = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/medispclnm");
- userid = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/medispclid");
- medispclid = userid;
- mpphonno = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/medispcltel");
- if (usernm != "") {
- fAddReceiver(usernm,userid,mpphonno,deptcd,pid);
- }
- }
- // 담당의사 체크 확인
- var chkatdoc = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/chkatdoc");
- if (chkatdoc == "true") {
- usernm = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/atdoctnm");
- userid = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/atdoctid");
- mpphonno = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/atdocttel");
- if (usernm != "" && userid != medispclid) {
- fAddReceiver(usernm,userid,mpphonno,deptcd,pid);
- }
- }
- // 담당간호사 존재시 추가
- var nursnodelist = instance1.selectNodes("/root/main/list/nurslist/nurse");
- for(var i=1;i<=nursnodelist.length;i++) {
- usernm = model.getValue("/root/main/list/nurslist/nurse["+i+"]/nursnm");
- userid = model.getValue("/root/main/list/nurslist/nurse["+i+"]/nursid");
- mpphonno = model.getValue("/root/main/list/nurslist/nurse["+i+"]/nurstel");
-
- var nursdeptcd = model.getValue("/root/send/writemsg/pmsg/wardcd");
- if (usernm != "") {
- fAddReceiver(usernm,userid,mpphonno,nursdeptcd,pid);
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="combo1" ref="/root/send/writemsg/pmsg/orddeptcd" appearance="minimal" style="left:95px; top:42px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tree/emrdept/orddept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:15px; top:43px; width:75px; height:17px; ">진료과 :</caption>
- </case>
- <case id="umsg" selected="true">
- <shape id="roundrect8" appearance="roundrect" style="left:5px; top:7px; width:345px; height:35px; "/>
- <button id="btn_umsgsearch" class="btn1_letter2" style="left:286px; top:14px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetUserList();
- ]]>
- </script>
- </button>
- <input id="ipt_umsgsearch" ref="/root/send/writemsg/umsg/inputvalue" style="left:205px; top:15px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // 엔터키인경우만
- model.setFocus("btn_callsearch");
- btn_umsgsearch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_umsgsearch" ref="/root/send/writemsg/umsg/stype" navindex="1" overflow="visible" appearance="full" cols="3" style="left:10px; top:16px; width:85px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/umsgsearchitem">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (rdo_umsgsearch.value == "3") { // 최근 사용자
- ipt_umsgsearch.visible= false;
- } else { // 그 외
- ipt_umsgsearch.visible=true;
- }
- ]]>
- </script>
- </select1>
- <datagrid id="grd_umsgsearch" nodeset="/root/main/list/userlist/umsguserlist" caption="^기관^이름^근무지부서^휴대폰^N존" colsep="^" colwidth="20, 30, 59, 105, 91, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:260px; width:350px; height:170px; ">
- <col ref="chk" type="checkbox" validateformat="false"/>
- <col ref="dutplceinstcd" type="combo">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- <item>
- <label>치과</label>
- <value>033</value>
- </item>
- </choices>
- </col>
- <col ref="usernm"/>
- <col ref="deptnm"/>
- <!-- <col ref="mpphonno" secretmark="*" secretstartposition="5"/> -->
- <col ref="mpphonno"/>
- <col ref="pdano"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cur_row = grd_umsgsearch.row;
- if (cur_row > 0) {
- grd_receiver.addrow(false);
- var recv_row = grd_receiver.rows-1;
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
- model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/usernm"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
- model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/userid"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
- model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/mpphonno"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pdano",
- model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/pdano"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
- model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/deptcd"));
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_4" style="x1:280px; y1:12px; x2:280px; y2:37px; "/>
- <treeview id="trv_umsgdept" ref="/root/send/writemsg/umsg/treevalue" itemsettype="depth" style="left:5px; top:50px; width:345px; height:180px; ">
- <itemset nodeset="/root/main/tree/dept/depttree">
- <label ref="inorddeptnm"/>
- <value ref="deptcd"/>
- <depth ref="lvl"/>
- </itemset>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var deptcd = model.getValue("/root/send/writemsg/umsg/treevalue");
- if(deptcd == "1000000000") return;
-
- model.setValue("/root/send/writemsg/umsg/value", deptcd);
- model.setValue("/root/send/writemsg/umsg/key","4");
- model.setValue("/root/send/writemsg/umsg/instcds", model.getValue("/root/main/tree/dept/depttree[" + trv_umsgdept.mouseRow + "]/instcd"));
- submit("TRZMI00111");
- ]]>
- </script>
- </treeview>
- <button id="button1" class="btn2_letter6" style="left:265px; top:237px; width:86px; height:19px; ">
- <caption>받는이 추가▶</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset(grd_receiver.nodeset);
- grd_receiver.refresh();
-
- for( var i = 0 ; i < grd_umsgsearch.rows ; i++ ){
- if (model.getValue("/root/main/list/userlist/umsguserlist["+ i +"]/chk") == "true"){
- grd_receiver.addrow(false);
- var recv_row = grd_receiver.rows-1;
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
- model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/usernm"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
- model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/userid"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
- model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/mpphonno"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pdano",
- model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/pdano"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
- model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/deptcd"));
- }
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="bookmark">
- <datagrid id="grd_bookmark" nodeset="/root/main/list/bookmarklist/bookmark" visibility="visible" caption="^이름^사번^근무부서^호출 번호^근무부서코드" colsep="^" colwidth="22, 72, 49, 74, 90, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:10px; top:35px; width:340px; height:385px; ">
- <col ref="check" type="checkbox"/>
- <col ref="recvrnm"/>
- <col ref="recvrid" secretmark="*" secretstartposition="4"/>
- <col ref="deptnm"/>
- <col ref="mpphonno" secretmark="*" secretstartposition="5"/>
- <col ref="deptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cur_row = grd_bookmark.row;
- if (cur_row > 0) {
- grd_receiver.addrow(false);
- var recv_row = grd_receiver.rows-1;
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
- model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/recvrnm"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
- model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/recvrid"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
- model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/mpphonno"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
- model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/deptcd"));
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if ((grd_bookmark.row >= grd_bookmark.fixedRows) && (grd_bookmark.isCell(event.target))) {
- var colidx = grd_bookmark.col;
- var colCheck = grd_bookmark.colRef("check");
-
- if ( grd_bookmark.row > 0){
- for (var i = 0 ; i< grd_bookmark.selectedRows;i++){
- var selectRow = grd_bookmark.selectedRow(i);
-
- if (model.getValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check")== "false" ||
- model.getValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check")== ""){
-
- if( colidx != colCheck)
- model.setValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check", "true");
- } else {
- if( colidx != colCheck)
- model.setValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check", "false");
- }
- }
- grd_bookmark.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_getbookmark" class="btn2_letter2" style="left:309px; top:12px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fLoadBookmark();
- ]]>
- </script>
- </button>
- <button id="btn_delbookmark" class="btn2_letter2" style="left:265px; top:12px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (getNodesetCount("/root/main/list/bookmarklist/bookmark[check='true']") <= 0) {
- alert("삭제할 수신자를 선택하세요");
- return;
- }
-
- if(messageBox("체크되어 있는 즐겨찾기 항목을", "Q001") == 6) {
- for (var i = grd_bookmark.fixedRows ; i < grd_bookmark.rows; i++){
- if(model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/check") != "true") continue;
-
- grd_bookmark.addStatus(i, "delete");
- }
-
- var del_rows = getGridUpdateData(grd_bookmark);
- if (del_rows != "") {
- model.makeValue("/root/send/delfavorite",del_rows);
- submit("TXZMI00207");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter6" style="left:177px; top:12px; width:86px; height:19px; ">
- <caption>선택항목추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_bookmark.fixedRows; i < grd_bookmark.rows ;i++){
- if(model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/check") != "true") continue;
-
- grd_receiver.addrow(false);
-
- var recv_row = grd_receiver.rows - 1;
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
- model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/recvrnm"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
- model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/recvrid"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
- model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/mpphonno"));
- model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
- model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/deptcd"));
- }
-
- grd_receiver.refresh();
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_pmsg" class="btn_sw" group="writemsg" selected="false" style="left:10px; top:9px; width:60px; height:22px; ">
- <caption>환자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("pmsg");
- fSetPatientID();
- fLoadEmrDeptTree();
- fInitWriteMsgInstcd();
-
- rdo_031032.disabled = true;
- rdo_033.disabled = true;
- ]]>
- </script>
- </button>
- <button id="btn_umsg" class="btn_sw" group="writemsg" selected="true" style="left:69px; top:9px; width:60px; height:22px; ">
- <caption>사용자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("umsg");
- fLoadDeptTree();
-
- rdo_031032.disabled = false;
- rdo_033.disabled = false;
- ]]>
- </script>
- </button>
- <button id="btn_bookmark" class="btn_sw" group="writemsg" selected="false" style="left:128px; top:9px; width:72px; height:22px; ">
- <caption>즐겨찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("bookmark");
- fLoadBookmark();
-
- rdo_031032.disabled = false;
- rdo_033.disabled = false;
- ]]>
- </script>
- </button>
- </case>
- <case id="trash" style="left:0px; top:0px; width:706px; height:476px; ">
- <datagrid id="grd_trashlist" nodeset="/root/main/list/trashmsglist/msglist" caption="^확인^종류^발신인^송신자ID^수신인^수신자ID^환자명^메시지^환자 ID^일자^msgno" colsep="^" colwidth="22, 30, 32, 46, 59, 46, 60, 46, 314, 68, 110, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:256px; ">
- <col ref="check" type="checkbox"/>
- <col ref="recvcnfmyn" style="text-align:center; "/>
- <col ref="msgrank" visibility="visible"/>
- <col ref="trsmrnm" visibility="visible"/>
- <col ref="trsmrid" visibility="hidden"/>
- <col ref="recvrnm" visibility="visible"/>
- <col ref="recvrid" visibility="hidden"/>
- <col ref="pathm"/>
- <col ref="msgcnts"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="trsmreqdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="msgno" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fShowTrashMsg();
- ]]>
- </script>
- </datagrid>
- <caption id="caption17" class="tit_2" style="left:10px; top:51px; width:87px; height:13px; ">휴지통</caption>
- <button id="btn_trashdel" class="btn5_letter4" visibility="visible" style="left:495px; top:48px; width:64px; height:19px; ">
- <caption>완전삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitDeleteMsg(grd_trashlist,"Y");
- ]]>
- </script>
- </button>
- <button id="btn_trashrestor" class="btn5_letter2" visibility="visible" style="left:562px; top:48px; width:42px; height:19px; ">
- <caption>복원</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitDeleteMsg(grd_trashlist,"N");
- ]]>
- </script>
- </button>
- <group id="group4" style="left:0px; top:5px; width:694px; height:35px; ">
- <shape id="roundrect6" appearance="roundrect" style="left:5px; top:0px; width:689px; height:35px; "/>
- <caption id="caption15" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
- <line id="line2" class="line_4" style="x1:600px; y1:5px; x2:600px; y2:27px; "/>
- <button id="btn_trashsearch" class="btn1_letter2" style="left:620px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTrashList();
- ]]>
- </script>
- </button>
- <input id="ipt_tdate" ref="/root/send/trashmsg/date" visibility="hidden" inputtype="date" style="left:215px; top:8px; width:100px; height:19px; "/>
- <select1 id="cmb_tmsgcond" ref="/root/send/trashmsg/stype" navindex="4" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tbizabbr">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_tmsgcond.value == "date") {
- ipt_tsrctxt.visible = false;
- ipt_tdate.visible = true;
- } else if (cmb_tmsgcond.value == "all") {
- ipt_tsrctxt.visible = false;
- ipt_tdate.visible = false;
- }
- else {
- ipt_tsrctxt.visible = true;
- ipt_tdate.visible = false;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_tsrctxt" ref="/root/send/trashmsg/value" visibility="hidden" style="left:215px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if("13" == event.keyCode){
- model.setFocus("btn_trashsearch");
- btn_trashsearch.dispatch("DOMActivate");
- //fClicked("search", grd_userbaseinfo, param);
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_trashmsgrank" ref="/root/send/trashmsg/srank" overflow="visible" appearance="full" cols="4" style="left:350px; top:9px; width:185px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/msgrank">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_cleartrash" class="btn5_letter6" style="left:607px; top:48px; width:86px; height:19px; ">
- <caption>휴지통비우기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtnValue = messageBox("화면에 보이는 메세지 뿐 아니라\n휴지통의 전제 메세지가 완전삭제됩니다.\n", "Q003");
-
- // 예. 휴지통을 비웁니다.
- if (rtnValue == 6) {
- //model.resetInstanceNode("/root/main/trashmsg/msgcnts");
- if (submit("TXZMI00203")) {
- alert("모두 "+model.getValue("/root/main/cleartrash/succnt")+"건이 삭제되었습니다.");
- btn_trashsearch.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <textarea id="tar_trashmsg" ref="/root/main/trashmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
- </case>
- <case id="calllist">
- <group id="group5" style="left:0px; top:5px; width:694px; height:35px; ">
- <shape id="roundrect7" appearance="roundrect" style="left:5px; top:0px; width:689px; height:35px; "/>
- <caption id="caption18" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
- <line id="line4" class="line_4" style="x1:620px; y1:5px; x2:620px; y2:27px; "/>
- <button id="btn_callsearch" class="btn1_letter2" style="left:630px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCallList();
- ]]>
- </script>
- </button>
- <input id="ipt_csrctxt" ref="/root/send/callmsg/value" visibility="hidden" style="left:220px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // 엔터키인경우만
- model.setFocus("btn_callsearch");
- btn_callsearch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_cdate" ref="/root/send/callmsg/date" visibility="hidden" inputtype="date" style="left:220px; top:8px; width:100px; height:19px; "/>
- <select1 id="cmb_cmsgcond" ref="/root/send/callmsg/stype" navindex="4" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cbizabbr">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_cmsgcond.value == "cdate") {
- ipt_csrctxt.visible = false;
- ipt_cdate.visible = true;
- } else if (cmb_cmsgcond.value == "all") {
- ipt_csrctxt.visible = false;
- ipt_cdate.visible = false;
- } else {
- ipt_csrctxt.visible = true;
- ipt_cdate.visible = false;
- }
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption19" class="tit_2" style="left:10px; top:51px; width:100px; height:13px; ">호출내역 조회</caption>
- <datagrid id="grd_calllist" nodeset="/root/main/list/callmsglist/msglist" caption="^수신인^호출번호^메시지^호출시간^전송상태^msgkey" colsep="^" colwidth="21, 57, 103, 278, 113, 72, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:256px; ">
- <col ref="selectmsg" type="checkbox"/>
- <col ref="recvrnm" style="text-align:center; "/>
- <col ref="recvrtelno" format="999-9999-9999" style="text-align:center; "/>
- <col ref="msgcnts"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col disabled="true" ref="msgstate" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>전송대기</label>
- <value>ZM00</value>
- </item>
- <item>
- <label>전송중</label>
- <value>ZM01</value>
- </item>
- <item>
- <label>전송실패</label>
- <value>ZM02</value>
- </item>
- <item>
- <label>전송성공</label>
- <value>ZM03</value>
- </item>
- <item>
- <label>전송취소</label>
- <value>ZM04</value>
- </item>
- </choices>
- </col>
- <col ref="msgkey" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fShowCallMsg();
- ]]>
- </script>
- </datagrid>
- <textarea id="tar_callmsg" ref="/root/main/callmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
- <caption id="caption10" style="left:120px; top:48px; width:192px; height:20px; ">(최대 1,000 건 까지만 조회됩니다.)</caption>
- <button id="btn_recall" class="btn5_letter3" visibility="hidden" style="left:580px; top:45px; width:53px; height:19px; ">
- <caption>재호출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("현재 구현 중입니다.");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" visibility="visible" style="left:647px; top:45px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- delcalllist("D");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_msgsent" class="btn_sw" group="tab" selected="false" style="left:191px; top:26px; width:94px; height:22px; ">
- <caption>보낸메세지함</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_msgsend.visible = false;
- btn_writeinit.visible = false;
- model.toggle("sentmsg");
- model.setValue("/root/temp","");
- ]]>
- </script>
- </button>
- <button id="btn_msgwrite" class="btn_sw" group="tab" style="left:104px; top:26px; width:88px; height:22px; ">
- <caption>메세지 쓰기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("writemsg");
- var sid = switch2.children.item(switch2.selectedIndex).attribute("id")
- //alert(sid);
- if (sid == "pmsg") {
- fLoadEmrDeptTree();
- } else if (sid == "umsg") {
- fLoadDeptTree();
- }
-
- btn_msgsend.visible = true;
- grd_umsgsearch.fixedcellcheckbox(0, grd_umsgsearch.colRef("chk")) = true;
- ]]>
- </script>
- </button>
- <button id="btn_msgsetting" class="btn_sw" visibility="visible" group="tab" selected="false" style="left:381px; top:26px; width:98px; height:22px; ">
- <caption>환경 설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("setting");
- btn_msgsend.visible = false;
- btn_writeinit.visible = true;
- btn_writeinit.visible = false;
- model.setValue("/root/temp","");
- ]]>
- </script>
- </button>
- <button id="btn_msgreceive" class="btn_sw" group="tab" selected="true" style="left:7px; top:26px; width:98px; height:22px; ">
- <caption>받은메세지함</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_msgsend.visible = false;
- btn_writeinit.visible = false;
- model.toggle("receivemsg");
- model.setValue("/root/temp","");
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_2" style="left:0px; top:0px; width:143px; height:14px; vertical-align:middle; ">메시지함</caption>
- <button id="btn_close" class="btn4_letter2" disabled="false" style="left:660px; top:530px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_msgsend" class="btn4_letter7" visibility="hidden" style="left:535px; top:530px; width:116px; height:22px; ">
- <caption>메세지 보내기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 필수 입력 확인
- if (tar_msgcnts.value == "" ) {
- messageBox("메시지는", "I003");
- return;
- }
- if (grd_receiver.rows <= 1) {
- messageBox("받는이는", "I003");
- return;
- }
- // 메시지 크기 확인
- //var msglen = fGetMessageByteLen(model.getValue("/root/send/writemsg/send/msgcnts"));
- var msgcnts = new String(model.getValue("/root/send/writemsg/send/msgcnts"));
- var msglen = msgcnts.getByteLength();
-
- var calltype = model.getValue("/root/send/writemsg/send/calltype");
- if (calltype == "msg" && msglen > 200) {
- messageBox("한글 100글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
- return;
- } else if (calltype != "msg" && msglen > 80) {
- messageBox("한글 40글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
- return;
- }
-
- // 받는이 목록 인코딩
- var recvrs = grd_receiver.getUpdateData();
- /**
- var rows = grd_receiver.rows;
- for(var i=1;i<rows;i++) {
- recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("userid"))+"|";
- recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("usernm"))+"|";
- recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("mpphonno"))+"|";
- recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("pid"))+";";
- } **/
- model.makeValue("/root/send/writemsg/send/recvrid",recvrs);
-
- model.setValue("/root/send/writemsg/send/systemnm", model.getValue("/root/send/writemsg/send/instcd"));
- if (submit("TXZMI00202") ) {
- messageBox("메시지 전송이 ", "I002");
- model.removeNodeset("/root/main/list/recvrlist");
- }
- /*
- if (model.getValue("/root/temp/succnt/getV") > 0) {
- messageBox("메시지 전송이 ", "I002");
- model.removeNodeset("/root/main/list/recvrlist");
- tar_recvrid.value = "";
- tar_msgcnts.value = "";
- } else {
- messageBox("메시지 전송이 ","E009");
- } */
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_writeinit" class="btn4_letter3" visibility="hidden" style="left:460px; top:530px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/writemsg/msgcnts", "");
- model.setValue("/root/send/writemsg/recvrid", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_calllist" class="btn_sw" group="tab" selected="false" style="left:284px; top:26px; width:98px; height:22px; ">
- <caption>호출내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- btn_msgsend.visible = false;
- btn_writeinit.visible = false;
- model.toggle("calllist");
- model.setValue("/root/temp","");
- ]]>
- </script>
- </button>
- <!--
- <button id="btn_trash" class="btn_sw" group="tab" selected="false" style="left:381px; top:26px; width:98px; height:22px; ">
- <caption>휴지통</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("trash");
- btn_msgsend.visible = false;
- btn_writeinit.visible = true;
- btn_writeinit.visible = false;
- model.setValue("/root/temp","");
- ]]>
- </script>
- </button>
- -->
- </xhtml:body>
- </xhtml:html>
|