SPMMB00300_SMS전송.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>SMS전송</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <tree>
  11. <dept>
  12. <depttree>
  13. </depttree>
  14. </dept>
  15. <emrdept>
  16. <depttree/>
  17. <orddept/>
  18. </emrdept>
  19. </tree>
  20. <list>
  21. <userlist>
  22. <umsguserlist>
  23. <seq/>
  24. <grp1/>
  25. <grp2/>
  26. <usernm/>
  27. <mpphonno/>
  28. <dutuserid/>
  29. </umsguserlist>
  30. </userlist>
  31. <recvrlist>
  32. <recvr>
  33. <usernm/>
  34. <mpphonno/>
  35. </recvr>
  36. </recvrlist>
  37. <mainlist>
  38. <umsguserlist>
  39. <seq/>
  40. <grp1/>
  41. <grp2/>
  42. <usernm/>
  43. <mpphonno/>
  44. <dutuserid/>
  45. </umsguserlist>
  46. </mainlist>
  47. </list>
  48. <recvmsg/>
  49. <sentmsg/>
  50. <trashmsg/>
  51. <callmsg/>
  52. <cleartrash>
  53. <succnt/>
  54. </cleartrash>
  55. <recvnum/>
  56. <recvnm/>
  57. </main>
  58. <send>
  59. <writemsg>
  60. <umsg>
  61. <stype>1</stype>
  62. <inputvalue/>
  63. <treevalue/>
  64. <value/>
  65. <key/>
  66. </umsg>
  67. <send>
  68. <calltype>msg</calltype>
  69. <calltelno/>
  70. <insuflag/>
  71. <msgcnts/>
  72. <recvrid/>
  73. </send>
  74. <pmsg>
  75. <stype>1</stype>
  76. <svalue/>
  77. <wardcd/>
  78. <roomcd/>
  79. <key/>
  80. <orddeptcd/>
  81. <treevalue/>
  82. </pmsg>
  83. <nurslist>
  84. <pid/>
  85. </nurslist>
  86. </writemsg>
  87. <srchinfo>
  88. <smslist/>
  89. <tabflag>1</tabflag>
  90. </srchinfo>
  91. </send>
  92. <temp>
  93. <userlist/>
  94. </temp>
  95. <init>
  96. <cbizabbr>
  97. <label>전체</label>
  98. <value>all</value>
  99. </cbizabbr>
  100. <cbizabbr>
  101. <label>수신인</label>
  102. <value>recvr</value>
  103. </cbizabbr>
  104. <cbizabbr>
  105. <label>호출번호</label>
  106. <value>tel</value>
  107. </cbizabbr>
  108. <cbizabbr>
  109. <label>호출날짜</label>
  110. <value>cdate</value>
  111. </cbizabbr>
  112. <tbizabbr>
  113. <label>전체</label>
  114. <value>all</value>
  115. </tbizabbr>
  116. <tbizabbr>
  117. <label>받는사람</label>
  118. <value>recvr</value>
  119. </tbizabbr>
  120. <tbizabbr>
  121. <label>보낸사람</label>
  122. <value>sender</value>
  123. </tbizabbr>
  124. <tbizabbr>
  125. <label>날짜</label>
  126. <value>date</value>
  127. </tbizabbr>
  128. <rbizabbr>
  129. <label>전체</label>
  130. <value>all</value>
  131. </rbizabbr>
  132. <rbizabbr>
  133. <label>보낸사람</label>
  134. <value>sender</value>
  135. </rbizabbr>
  136. <rbizabbr>
  137. <label>메세지 내용</label>
  138. <value>msg</value>
  139. </rbizabbr>
  140. <rbizabbr>
  141. <label>도착일</label>
  142. <value>rdate</value>
  143. </rbizabbr>
  144. <rbizabbr>
  145. <label>환자명</label>
  146. <value>pnm</value>
  147. </rbizabbr>
  148. <rbizabbr>
  149. <label>환자ID</label>
  150. <value>pid</value>
  151. </rbizabbr>
  152. <msgrank>
  153. <label>전체</label>
  154. <value>0</value>
  155. </msgrank>
  156. <msgrank>
  157. <label>응급</label>
  158. <value>1</value>
  159. </msgrank>
  160. <msgrank>
  161. <label>일반</label>
  162. <value>3</value>
  163. </msgrank>
  164. <msgrank>
  165. <label>보험</label>
  166. <value>2</value>
  167. </msgrank>
  168. <sbizabbr>
  169. <label>전체</label>
  170. <value>all</value>
  171. </sbizabbr>
  172. <sbizabbr>
  173. <label>받는이</label>
  174. <value>recvr</value>
  175. </sbizabbr>
  176. <sbizabbr>
  177. <label>메세지 내용</label>
  178. <value>msg</value>
  179. </sbizabbr>
  180. <sbizabbr>
  181. <label>보낸일</label>
  182. <value>sdate</value>
  183. </sbizabbr>
  184. <sbizabbr>
  185. <label>환자명</label>
  186. <value>pnm</value>
  187. </sbizabbr>
  188. <sbizabbr>
  189. <label>환자ID</label>
  190. <value>pid</value>
  191. </sbizabbr>
  192. <calltype>
  193. <label>메시지만</label>
  194. <value>msg</value>
  195. </calltype>
  196. <calltype>
  197. <label>호출만</label>
  198. <value>call</value>
  199. </calltype>
  200. <calltype>
  201. <label>메시지+호출</label>
  202. <value>msgcall</value>
  203. </calltype>
  204. <pmsgsearchitem>
  205. <label>환자명</label>
  206. <value>1</value>
  207. </pmsgsearchitem>
  208. <pmsgsearchitem>
  209. <label>등록번호</label>
  210. <value>2</value>
  211. </pmsgsearchitem>
  212. <umsgsearchitem>
  213. <label>이름</label>
  214. <value>1</value>
  215. </umsgsearchitem>
  216. <umsgsearchitem>
  217. <label>번호</label>
  218. <value>3</value>
  219. </umsgsearchitem>
  220. <param/>
  221. </init>
  222. </root>
  223. </instance>
  224. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  225. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  226. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  227. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  228. <script type="javascript" ev:event="xforms-ready">
  229. <![CDATA[
  230. //grid 초기화
  231. model.removeNodeset("/root/main/list/recvrlist");
  232. //메세지창 초기화(?)
  233. model.setValue("/root/send/writemsg/send/msgcnts","");
  234. //발신번호 세팅
  235. model.setValue("/root/send/writemsg/send/calltelno","");
  236. model.refresh();
  237. grd_receiver.focusColor ="#ff9900";
  238. var hngnm = opener.javascript.getParameter("SPMMB00300_name");
  239. var mpphontel0= opener.javascript.getParameter("SPMMB00300_hpnum");
  240. var mpphontel = mpphontel0.split("-").join("");
  241. mpphontel = mpphontel.split(" ").join("");
  242. if(mpphontel != ""){
  243. model.setValue("/root/main/recvnm",hngnm);
  244. model.setValue("/root/main/recvnum",mpphontel);
  245. fAddRecieveRows();
  246. }
  247. model.setFocus("tar_msgcnts");
  248. ]]>
  249. </script>
  250. <submission id="TXMMB00300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg" replace="instance" resultref="/root/temp"/>
  251. </model>
  252. <script type="javascript">
  253. <![CDATA[
  254. function fAddRecieveRows(){
  255. var recvnum = model.getValue("/root/main/recvnum");
  256. var recvnm = model.getValue("/root/main/recvnm");
  257. //recvnm check
  258. if (recvnm=="") {
  259. alert("이름을 입력하세요");
  260. model.setFocus("input6");
  261. return;
  262. }
  263. //recvnum check 후에 addrow
  264. if (recvnum=="") {
  265. alert("메세지 전송할 번호를 입력하세요");
  266. model.setFocus("input5");
  267. return;
  268. }
  269. grd_receiver.addRow();
  270. var curRow = grd_receiver.row;
  271. model.setValue("/root/main/list/recvrlist/recvr["+ curRow +"]/mpphonno", recvnum);
  272. model.setValue("/root/main/list/recvrlist/recvr["+ curRow +"]/usernm", recvnm);
  273. model.setValue("/root/main/recvnum", "");
  274. model.setValue("/root/main/recvnm", "");
  275. model.refresh();
  276. grd_receiver.refresh();
  277. }
  278. ]]>
  279. </script>
  280. </xhtml:head>
  281. <xhtml:body pagewidth="355" pageheight="530" guideline="1,714;2,527;" style="vertical-align:middle; ">
  282. <group id="group6" style="left:5px; top:15px; width:345px; height:475px; border-color:#33cccc; border-width:1px; border-style:solid; ">
  283. <shape id="roundrect10" appearance="roundrect" style="left:9px; top:154px; width:320px; height:300px; "/>
  284. <caption id="caption22" style="left:104px; top:124px; width:225px; height:20px; text-align:right; ">메시지는 최대 40자까지 입력가능합니다.</caption>
  285. <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; "/>
  286. </group>
  287. <caption id="caption6" class="tit_2" style="left:0px; top:0px; width:143px; height:14px; vertical-align:middle; ">SMS 전송</caption>
  288. <button id="btn_close" class="btn4_letter2" disabled="false" style="left:280px; top:500px; width:56px; height:22px; ">
  289. <caption>닫기</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. model.close();
  293. ]]>
  294. </script>
  295. </button>
  296. <button id="btn_msgsend" class="btn4_letter7" navindex="6" visibility="visible" style="left:155px; top:500px; width:116px; height:22px; ">
  297. <caption>메세지 보내기</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. // 필수 입력 확인
  301. if (tar_msgcnts.value == "" ) {
  302. messageBox("메시지는", "I003");
  303. return;
  304. }
  305. if (grd_receiver.rows <= 1) {
  306. messageBox("받는이는", "I003");
  307. return;
  308. }
  309. // 메시지 크기 확인
  310. //var msglen = fGetMessageByteLen(model.getValue("/root/send/writemsg/send/msgcnts"));
  311. var msgcnts = new String(model.getValue("/root/send/writemsg/send/msgcnts"));
  312. var msglen = msgcnts.getByteLength();
  313. var calltype = model.getValue("/root/send/writemsg/send/calltype");
  314. if (calltype == "msg" && msglen > 200) {
  315. messageBox("한글 100글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
  316. return;
  317. } else if (calltype != "msg" && msglen > 80) {
  318. messageBox("한글 40글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
  319. return;
  320. }
  321. // 받는이 목록 인코딩
  322. var recvrs = grd_receiver.getUpdateData();
  323. model.makeValue("/root/send/writemsg/send/recvrid",recvrs);
  324. if (submit("TXMMB00300") ) {
  325. messageBox("메시지 전송이 ", "I002");
  326. model.removeNodeset("/root/main/list/recvrlist");
  327. model.setValue("/root/send/writemsg/send/msgcnts","");
  328. }
  329. model.refresh();
  330. ]]>
  331. </script>
  332. </button>
  333. <button id="btn_writeinit" class="btn4_letter3" visibility="hidden" style="left:80px; top:500px; width:68px; height:22px; ">
  334. <caption>초기화</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. model.setValue("/root/send/writemsg/msgcnts", "");
  338. model.setValue("/root/send/writemsg/recvrid", "");
  339. model.refresh();
  340. ]]>
  341. </script>
  342. </button>
  343. <caption id="caption20" class="search_name" style="left:152px; top:175px; width:64px; height:17px; ">번호</caption>
  344. <caption id="caption21" class="search_name" style="left:19px; top:175px; width:64px; height:17px; ">이름</caption>
  345. <button id="button8" class="btn1_letter2" style="left:260px; top:205px; width:56px; height:22px; ">
  346. <caption>삭제</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. deleteSelectedRows(grd_receiver, true);
  350. ]]>
  351. </script>
  352. </button>
  353. <caption id="caption13" class="search_name" style="left:25px; top:439px; width:99px; height:17px; ">발신 번호 :</caption>
  354. <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; ">
  355. <col ref="usernm"/>
  356. <col ref="mpphonno"/>
  357. </datagrid>
  358. <button id="button10" class="btn1_letter2" navindex="3" style="left:200px; top:205px; width:56px; height:22px; ">
  359. <caption>추가</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. fAddRecieveRows();
  363. ]]>
  364. </script>
  365. </button>
  366. <input id="input4" ref="/root/send/writemsg/send/calltelno" navindex="4" visibility="visible" format="99999999999" style="left:120px; top:439px; width:200px; height:19px; "/>
  367. <input id="input5" ref="/root/main/recvnum" navindex="2" format="99999999999" style="left:205px; top:175px; width:110px; height:19px; "/>
  368. <input id="input6" ref="/root/main/recvnm" navindex="1" style="left:72px; top:175px; width:76px; height:19px; "/>
  369. </xhtml:body>
  370. </xhtml:html>