123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389 |
- <?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>SMS전송</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tree>
- <dept>
- <depttree>
- </depttree>
- </dept>
- <emrdept>
- <depttree/>
- <orddept/>
- </emrdept>
- </tree>
- <list>
- <userlist>
- <umsguserlist>
- <seq/>
- <grp1/>
- <grp2/>
- <usernm/>
- <mpphonno/>
- <dutuserid/>
- </umsguserlist>
- </userlist>
- <recvrlist>
- <recvr>
- <usernm/>
- <mpphonno/>
- </recvr>
- </recvrlist>
- <mainlist>
- <umsguserlist>
- <seq/>
- <grp1/>
- <grp2/>
- <usernm/>
- <mpphonno/>
- <dutuserid/>
- </umsguserlist>
- </mainlist>
- </list>
- <recvmsg/>
- <sentmsg/>
- <trashmsg/>
- <callmsg/>
- <cleartrash>
- <succnt/>
- </cleartrash>
- <recvnum/>
- <recvnm/>
- </main>
- <send>
- <writemsg>
- <umsg>
- <stype>1</stype>
- <inputvalue/>
- <treevalue/>
- <value/>
- <key/>
- </umsg>
- <send>
- <calltype>msg</calltype>
- <calltelno/>
- <insuflag/>
- <msgcnts/>
- <recvrid/>
- </send>
- <pmsg>
- <stype>1</stype>
- <svalue/>
- <wardcd/>
- <roomcd/>
- <key/>
- <orddeptcd/>
- <treevalue/>
- </pmsg>
- <nurslist>
- <pid/>
- </nurslist>
- </writemsg>
- <srchinfo>
- <smslist/>
- <tabflag>1</tabflag>
- </srchinfo>
- </send>
- <temp>
- <userlist/>
- </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>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[
-
- //grid 초기화
- model.removeNodeset("/root/main/list/recvrlist");
- //메세지창 초기화(?)
- model.setValue("/root/send/writemsg/send/msgcnts","");
- //발신번호 세팅
- model.setValue("/root/send/writemsg/send/calltelno","");
- model.refresh();
-
- grd_receiver.focusColor ="#ff9900";
-
- var hngnm = opener.javascript.getParameter("SPMMB00300_name");
- var mpphontel0= opener.javascript.getParameter("SPMMB00300_hpnum");
- var mpphontel = mpphontel0.split("-").join("");
- mpphontel = mpphontel.split(" ").join("");
-
- if(mpphontel != ""){
- model.setValue("/root/main/recvnm",hngnm);
- model.setValue("/root/main/recvnum",mpphontel);
- fAddRecieveRows();
- }
-
- model.setFocus("tar_msgcnts");
-
- ]]>
- </script>
- <submission id="TXMMB00300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fAddRecieveRows(){
-
-
- var recvnum = model.getValue("/root/main/recvnum");
- var recvnm = model.getValue("/root/main/recvnm");
-
- //recvnm check
- if (recvnm=="") {
- alert("이름을 입력하세요");
- model.setFocus("input6");
- return;
- }
- //recvnum check 후에 addrow
- if (recvnum=="") {
- alert("메세지 전송할 번호를 입력하세요");
- model.setFocus("input5");
- return;
- }
-
- grd_receiver.addRow();
- var curRow = grd_receiver.row;
- model.setValue("/root/main/list/recvrlist/recvr["+ curRow +"]/mpphonno", recvnum);
- model.setValue("/root/main/list/recvrlist/recvr["+ curRow +"]/usernm", recvnm);
-
- model.setValue("/root/main/recvnum", "");
- model.setValue("/root/main/recvnm", "");
- model.refresh();
- grd_receiver.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="355" pageheight="530" guideline="1,714;2,527;" style="vertical-align:middle; ">
- <group id="group6" style="left:5px; top:15px; width:345px; height:475px; border-color:#33cccc; border-width:1px; border-style:solid; ">
- <shape id="roundrect10" appearance="roundrect" style="left:9px; top:154px; width:320px; height:300px; "/>
- <caption id="caption22" style="left:104px; top:124px; width:225px; height:20px; text-align:right; ">메시지는 최대 40자까지 입력가능합니다.</caption>
- <textarea id="tar_msgcnts" ref="/root/send/writemsg/send/msgcnts" navindex="5" maxbyte="80" style="left:14px; top:9px; width:315px; height:114px; vertical-align:top; "/>
- </group>
- <caption id="caption6" class="tit_2" style="left:0px; top:0px; width:143px; height:14px; vertical-align:middle; ">SMS 전송</caption>
- <button id="btn_close" class="btn4_letter2" disabled="false" style="left:280px; top:500px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_msgsend" class="btn4_letter7" navindex="6" visibility="visible" style="left:155px; top:500px; 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();
-
- model.makeValue("/root/send/writemsg/send/recvrid",recvrs);
- if (submit("TXMMB00300") ) {
- messageBox("메시지 전송이 ", "I002");
- model.removeNodeset("/root/main/list/recvrlist");
- model.setValue("/root/send/writemsg/send/msgcnts","");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_writeinit" class="btn4_letter3" visibility="hidden" style="left:80px; top:500px; 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>
- <caption id="caption20" class="search_name" style="left:152px; top:175px; width:64px; height:17px; ">번호</caption>
- <caption id="caption21" class="search_name" style="left:19px; top:175px; width:64px; height:17px; ">이름</caption>
- <button id="button8" class="btn1_letter2" style="left:260px; top:205px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- deleteSelectedRows(grd_receiver, true);
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" style="left:25px; top:439px; width:99px; height:17px; ">발신 번호 :</caption>
- <datagrid id="grd_receiver" nodeset="/root/main/list/recvrlist/recvr" visibility="visible" caption="이름^호출 번호" colsep="^" colwidth="72, 187" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" selectionmode="byrow" style="left:25px; top:235px; width:295px; height:190px; ">
- <col ref="usernm"/>
- <col ref="mpphonno"/>
- </datagrid>
- <button id="button10" class="btn1_letter2" navindex="3" style="left:200px; top:205px; width:56px; height:22px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRecieveRows();
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/send/writemsg/send/calltelno" navindex="4" visibility="visible" format="99999999999" style="left:120px; top:439px; width:200px; height:19px; "/>
- <input id="input5" ref="/root/main/recvnum" navindex="2" format="99999999999" style="left:205px; top:175px; width:110px; height:19px; "/>
- <input id="input6" ref="/root/main/recvnm" navindex="1" style="left:72px; top:175px; width:76px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|