SMMNO01100_SMS전송.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <item>
  10. </item>
  11. <main>
  12. <opatlist>
  13. <opatlist>
  14. <acptyn/>
  15. <prcsflag/>
  16. <orddd/>
  17. <ordtm/>
  18. <pid/>
  19. <hngnm/>
  20. <sexage/>
  21. <mpphontel/>
  22. <fsexamflag/>
  23. <calcyn/>
  24. <rsrvflag/>
  25. <insukind/>
  26. <telrsrvrem/>
  27. <orddeptcd/>
  28. <orddrid/>
  29. <fstacptdd/>
  30. <nursacptyn/>
  31. <dracptyn/>
  32. <prcpgenryn/>
  33. <elbulbodstat/>
  34. <ordtype/>
  35. <cretno/>
  36. <instcd/>
  37. <acptseqno/>
  38. <orgorddd/>
  39. <sendyn/>
  40. <smsyn/>
  41. <cntctel/>
  42. <remfact/>
  43. </opatlist>
  44. </opatlist>
  45. <basecodelist>
  46. <basecodelistinfo>
  47. <basetypecd/>
  48. <baseclsflag/>
  49. <supbasetypecd/>
  50. <cdcls/>
  51. <typenm/>
  52. <refseq/>
  53. <basetypenm/>
  54. </basecodelistinfo>
  55. </basecodelist>
  56. <smscodelist>
  57. <smscodelistinfo>
  58. <basetypecd/>
  59. <baseclsflag/>
  60. <supbasetypecd/>
  61. <cdcls/>
  62. <typenm/>
  63. <refseq/>
  64. </smscodelistinfo>
  65. </smscodelist>
  66. <doctlist>
  67. <doctlistinfo>
  68. <orddrid/>
  69. <usernm/>
  70. <orddeptcd/>
  71. <fstexamrem/>
  72. <reexamrem/>
  73. </doctlistinfo>
  74. </doctlist>
  75. <cond>
  76. <orddeptcd/>
  77. <orddrid/>
  78. <orddd/>
  79. <ampmflag>A</ampmflag>
  80. <basetypecd/>
  81. <baseclsflag/>
  82. <supbasetypecd/>
  83. <ordclsdeptflag/>
  84. <supdeptcd/>
  85. <prcpspecflag>A</prcpspecflag>
  86. <cntctel/>
  87. </cond>
  88. </main>
  89. <send>
  90. <req>
  91. <orddeptcd/>
  92. <orddrid/>
  93. <orddd/>
  94. <ampmflag/>
  95. <msgparam/>
  96. <supbasetypecd/>
  97. </req>
  98. <opatinfo/>
  99. </send>
  100. <init/>
  101. <hidden>
  102. <orddeptlist>
  103. <dept>
  104. <depthngnm/>
  105. <deptcd/>
  106. </dept>
  107. </orddeptlist>
  108. <zsd>
  109. <resultref/>
  110. </zsd>
  111. <orddr>
  112. <orddr>
  113. <usernm/>
  114. <userid/>
  115. </orddr>
  116. </orddr>
  117. <msgcnt/>
  118. </hidden>
  119. <temp>
  120. <basecodelist/>
  121. </temp>
  122. </root>
  123. </instance>
  124. <script type="javascript" ev:event="xforms-ready">
  125. <![CDATA[
  126. fInitialize();
  127. // 전화 예약 화면에서 팝업으로 호출시 해당 환자 자동 설정
  128. if (isPopup()) {
  129. var pid = opener.javascript.getParameter("SMPMO00200_SMS_pid");
  130. if (pid != "") {
  131. var orddd = opener.javascript.getParameter("SMPMO00200_SMS_orddd");
  132. var orddeptcd = opener.javascript.getParameter("SMPMO00200_SMS_orddeptcd");
  133. var orddrid = opener.javascript.getParameter("SMPMO00200_SMS_orddrid");
  134. model.setValue("/root/main/cond/orddd", orddd);
  135. model.setValue("/root/main/cond/orddeptcd", orddeptcd);
  136. cmb_orddept.dispatch("xforms-value-changed");
  137. model.setValue("/root/main/cond/orddrid", orddrid);
  138. model.setValue("/root/main/cond/ampmflag", "D");
  139. button1.dispatch("DOMActivate");
  140. var cnt = instance1.selectNodes("/root/main/opatlist/opatlist").length;
  141. for (var i = 1; i <= cnt; i++) {
  142. if (pid == model.getValue("/root/main/opatlist/opatlist[" + i + "]/pid")) {
  143. model.setValue("/root/main/opatlist/opatlist[" + i + "]/acptyn", "true");
  144. grd_opatmngt.rowStatus(i) = 2;
  145. model.setFocus("grd_opatmngt");
  146. grd_opatmngt.row = i;
  147. break;
  148. }
  149. }
  150. model.setValue("/root/item", opener.javascript.getParameter("SMPMO00200_SMS_msg"));
  151. textarea1.refresh();
  152. }
  153. }
  154. ]]>
  155. </script>
  156. <submission id="TRMNO01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/opatlist"/>
  157. <submission id="TRMNO00800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/basecodelist"/>
  158. <submission id="TRMNO00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/smscodelist"/>
  159. <submission id="TRMNO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/orddr"/>
  160. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/orddeptlist/dept"/>
  161. <submission id="TXMNO01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opatlist"/>
  162. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  163. </model>
  164. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  165. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  167. <script type="javascript" src="../../../emr/outcareweb/js/SMMNO01100.js"/>
  168. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  169. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  170. </xhtml:head>
  171. <xhtml:body guideline="1,1195;1,5;1,1194;1,611;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  172. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  173. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  174. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  175. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" disabled="false" appearance="minimal" style="left:285px; top:8px; width:150px; height:19px; ">
  176. <choices>
  177. <itemset nodeset="/root/hidden/orddeptlist/dept">
  178. <label ref="depthngnm"/>
  179. <value ref="deptcd"/>
  180. </itemset>
  181. </choices>
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. fDeptChanged();
  185. fBaseCodeSearch("B"); // 전송구분 조회
  186. model.removeNodeset("/root/main/opatlist/opatlist");
  187. model.refresh();
  188. ]]>
  189. </script>
  190. </select1>
  191. <select1 id="cmb_orddr" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:545px; top:8px; width:115px; height:19px; ">
  192. <choices>
  193. <itemset nodeset="/root/hidden/orddr/orddr">
  194. <label ref="userdepthngnm"/>
  195. <value ref="userid"/>
  196. </itemset>
  197. </choices>
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. fBtnRefClicked();
  201. ]]>
  202. </script>
  203. </select1>
  204. <caption id="caption5" class="search_name" style="left:206px; top:9px; width:81px; height:17px; ">진료과 :</caption>
  205. <caption id="caption2" class="search_name" style="left:450px; top:9px; width:86px; height:17px; ">진료의사 :</caption>
  206. <select1 id="radio2" ref="/root/main/cond/prcpspecflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:670px; top:10px; width:255px; height:15px; background-color:transparent; border-style:none; ">
  207. <choices>
  208. <item>
  209. <label>진료일정의사</label>
  210. <value>A</value>
  211. </item>
  212. <item>
  213. <label>진료의전체</label>
  214. <value>Y</value>
  215. </item>
  216. <item>
  217. <label>퇴직의사</label>
  218. <value>R</value>
  219. </item>
  220. </choices>
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. //추가. 20081103
  224. /*
  225. if(model.getValue("/root/main/cond/prcpspecflag") == "Y")
  226. {
  227. model.setValue("/root/main/cond/prcpspecflag", "N");
  228. } else
  229. {
  230. model.setValue("/root/main/cond/prcpspecflag", "Y");
  231. }
  232. */
  233. fDeptChanged();
  234. ]]>
  235. </script>
  236. </select1>
  237. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  238. <caption>조회</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. fBtnRefClicked();
  242. ]]>
  243. </script>
  244. </button>
  245. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  246. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:91px; height:17px; ">진료일자 :</caption>
  247. <select1 id="radio1" ref="/root/main/cond/ampmflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:950px; top:9px; width:135px; height:15px; background-color:transparent; border-style:none; ">
  248. <choices>
  249. <item>
  250. <label>오전</label>
  251. <value>A</value>
  252. </item>
  253. <item>
  254. <label>오후</label>
  255. <value>P</value>
  256. </item>
  257. <item>
  258. <label>전일</label>
  259. <value>D</value>
  260. </item>
  261. </choices>
  262. </select1>
  263. <input id="ipt_orddd" ref="/root/main/cond/orddd" class="input_search" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; ">
  264. <script type="javascript" ev:event="xforms-value-changed">
  265. <![CDATA[
  266. fBtnRefClicked();
  267. ]]>
  268. </script>
  269. </input>
  270. </group>
  271. <caption id="caption1" class="tit_2" style="left:459px; top:56px; width:118px; height:13px; ">전송 대상자 조회</caption>
  272. <line id="line1" class="line_1" style="x1:454px; y1:71px; x2:1194px; y2:71px; "/>
  273. <button id="button2" class="btn2_letter2" style="left:1152px; top:51px; width:42px; height:19px; ">
  274. <caption>전송</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fCallMngtInfo();
  278. ]]>
  279. </script>
  280. </button>
  281. <button id="button3" class="btn2_letter6" style="left:1064px; top:51px; width:86px; height:19px; ">
  282. <caption>전송결과조회</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. modal("SMMNO01200","1","15","128");
  286. ]]>
  287. </script>
  288. </button>
  289. <caption id="caption4" class="tit_2" style="left:8px; top:56px; width:118px; height:13px; ">메시지 작성</caption>
  290. <caption id="caption13" class="cell_1" style="left:0px; top:76px; width:85px; height:23px; text-align:center; vertical-align:middle; ">전송구분</caption>
  291. <line id="line2" class="line_1" style="x1:0px; y1:71px; x2:450px; y2:71px; "/>
  292. <caption id="caption7" class="tit_2" style="left:8px; top:260px; width:118px; height:13px; ">전송내역 리스트</caption>
  293. <textarea id="textarea1" ref="/root/item" maxlength="40" style="left:0px; top:100px; width:450px; height:134px; text-align:left; vertical-align:middle; padding-left:10; ">
  294. <script type="javascript" ev:event="onkeyup">
  295. <![CDATA[
  296. model.makeValue("/root/hidden/msgcnt",(textarea1.currentText).length);
  297. opt_msgcnt.refresh();
  298. ]]>
  299. </script>
  300. </textarea>
  301. <line id="line3" class="line_2" style="x1:0px; y1:98px; x2:450px; y2:98px; "/>
  302. <line id="line4" class="line_3" style="x1:0px; y1:236px; x2:450px; y2:236px; "/>
  303. <line id="line5" class="line_1" style="x1:0px; y1:275px; x2:450px; y2:275px; "/>
  304. <datagrid id="grd_baselist" nodeset="/root/main/basecodelist/basecodelistinfo" autoresize="true" caption="전송구분^상용문구" colsep="^" colwidth="79, 346" mergecellsfixedrows="bycolrec" rowheight="28" rowsep="|" style="left:0px; top:280px; width:450px; height:463px; ">
  305. <col ref="basetypenm" style="text-align:center; "/>
  306. <col ref="typenm" style="text-align:left; "/>
  307. <script type="javascript" ev:event="onclick">
  308. <![CDATA[
  309. var iRow = grd_baselist.row;
  310. if(iRow < 1) return;
  311. model.setValue("/root/item", model.getValue("/root/main/basecodelist/basecodelistinfo["+iRow+"]/typenm"));
  312. model.makeValue("/root/hidden/msgcnt",(model.getValue("/root/main/basecodelist/basecodelistinfo["+iRow+"]/typenm")).length);
  313. model.refresh();
  314. ]]>
  315. </script>
  316. </datagrid>
  317. <datagrid id="grd_opatmngt" nodeset="/root/main/opatlist/opatlist" caption="^진행상태^예약시간^등록번호^성명^S/A^초/재^수납^예약구분^의뢰^보험유형^간호기록^Remark^전송^휴대전화번호^진료일자^진료과코드^진료의사^생성번호^회신자 전화번호" colsep="^" colwidth="26, 0, 60, 70, 70, 45, 40, 30, 57, 0, 0, 0, 175, 31, 97, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:454px; top:75px; width:740px; height:668px; ">
  318. <col ref="acptyn" type="checkbox"/>
  319. <col ref="prcsflag"/>
  320. <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
  321. <col ref="pid"/>
  322. <col ref="hngnm" style="text-align:center; "/>
  323. <col ref="sexage" style="text-align:center; "/>
  324. <col ref="fsexamflag" style="text-align:center; "/>
  325. <col ref="calcyn" style="text-align:center; "/>
  326. <col ref="rsrvflag" style="text-align:center; "/>
  327. <col style="text-align:center; "/>
  328. <col ref="insukind" style="text-align:center; "/>
  329. <col/>
  330. <col ref="remfact"/>
  331. <col ref="smsyn" style="text-align:center; "/>
  332. <col ref="mpphontel" style="text-align:center; "/>
  333. <col ref="orddd"/>
  334. <col ref="orddeptcd"/>
  335. <col ref="orddrid"/>
  336. <col ref="cretno"/>
  337. <col ref="cntctel"/>
  338. <script type="javascript" ev:event="onclick">
  339. <![CDATA[
  340. fClickedGridRow();
  341. ]]>
  342. </script>
  343. </datagrid>
  344. <button id="button4" class="btn2_letter6" style="left:975px; top:50px; width:86px; height:19px; ">
  345. <caption>상용문구관리</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. var sParam_Data = "O";
  349. setParameter("SMMNO00800_Param",sParam_Data);
  350. modal("SMMNO00800","1","15","128");
  351. //modal("SMMNO00800");
  352. ]]>
  353. </script>
  354. </button>
  355. <select1 id="cmb_sendgb" ref="/root/main/cond/supbasetypecd" class="combo_default" appearance="minimal" style="left:88px; top:77px; width:100px; height:19px; ">
  356. <choices>
  357. <itemset nodeset="/root/main/smscodelist/smscodelistinfo">
  358. <label ref="typenm"/>
  359. <value ref="basetypecd"/>
  360. </itemset>
  361. </choices>
  362. <script type="javascript" ev:event="xforms-value-changed">
  363. <![CDATA[
  364. fGubnChanged();
  365. ]]>
  366. </script>
  367. </select1>
  368. <input id="ipt_cntctel" ref="/root/main/cond/cntctel" class="input_default" validateformat="true" style="left:274px; top:77px; width:100px; height:19px; "/>
  369. <caption id="cap_bfrecuser" class="cell_1" style="left:191px; top:76px; width:80px; height:23px; text-align:center; vertical-align:middle; ">발신번호</caption>
  370. <caption id="caption120" style="left:415px; top:74px; width:35px; height:25px; vertical-align:middle; ">/40자</caption>
  371. <output id="opt_msgcnt" ref="/root/hidden/msgcnt" validateformat="true" style="left:379px; top:77px; width:36px; height:19px; text-align:right; "/>
  372. </group>
  373. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">SMS 전송</caption>
  374. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  375. <line id="line6" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  376. </group>
  377. </xhtml:body>
  378. </xhtml:html>