SMRTH00110_전공의연락망.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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>SMRTH_00200전공의연락망</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <phonelist>
  11. <phone/>
  12. </phonelist>
  13. <apprtcdrlist/>
  14. </main>
  15. <send>
  16. <emplno/>
  17. <emplnm/>
  18. <instcd/>
  19. <joblncd/>
  20. <deptcd/>
  21. <anual/>
  22. <req>
  23. <emplno/>
  24. </req>
  25. <replytelno/>
  26. <apprtcdrlist/>
  27. <emailreq>
  28. <fromaddress/>
  29. <fromname/>
  30. <toaddress/>
  31. <ccaddress/>
  32. <subject/>
  33. <contentmsg/>
  34. </emailreq>
  35. </send>
  36. <init>
  37. </init>
  38. <temp/>
  39. <hidden>
  40. <freemessage/>
  41. <bytecnt>0</bytecnt>
  42. </hidden>
  43. </root>
  44. </instance>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  52. <script type="javascript" src="../../../com/emailsenderweb/js/ZME001.js"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. misfGridInit(grd_apprtcdrlist);
  56. misfComboComCdList("R0305", cmb_instcd, "Y");
  57. misfComboComCdList("R0281", cmb_anual, "Y");
  58. submit("TRRTS00602");
  59. addComboItem( "cmb_deptcd", "전체", "", "above");
  60. ]]>
  61. </script>
  62. <submission id="TRRTH00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  63. <submission id="TRRTH00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/apprtcdrlist"/>
  64. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
  65. <submission id="TRRTH00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emailreq" resultref="/root/temp"/>
  66. </model>
  67. <script type="javascript">
  68. <![CDATA[
  69. String.prototype.cut = function(len) {
  70. var str = this;
  71. var l = 0;
  72. for (var i=0; i<str.length; i++) {
  73. l += (str.charCodeAt(i) > 128) ? 2 : 1;
  74. if (l > len) return str.substring(0,i);
  75. }
  76. return str;
  77. }
  78. ]]>
  79. </script>
  80. </xhtml:head>
  81. <xhtml:body guideline="2,764;2,764;" style="margin-left:8; margin-right:8; ">
  82. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  83. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전공의 연락망</caption>
  84. </group>
  85. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  86. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40; background-color:#fffbf2; border-color:#ffd799; "/>
  87. <line id="line207" class="line_1" style="x1:0px; y1:125; x2:1195px; y2:125; "/>
  88. <caption id="caption13" class="search_name" style="left:5px; top:20px; width:75px; height:17px; ">사 번 :</caption>
  89. <line id="line14" class="line_4" style="x1:1100px; y1:18px; x2:1100px; y2:45; border-color:#ffe4bb; border-left-style:solid; "/>
  90. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
  91. <caption>조회</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. submit("TRRTH00202");
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="button12" class="btn2_letter4" style="left:994px; top:105; width:64px; height:19px; ">
  99. <caption>전체선택</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
  103. grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn")) = 'Y';
  104. grd_apprtcdrlist.rowStatus(i) = 2;
  105. }
  106. ]]>
  107. </script>
  108. </button>
  109. <select1 id="cmb_joblncd" ref="/root/send/joblncd" class="combo_s_essential" navindex="4" appearance="minimal" style="left:600px; top:19px; width:105px; height:19px; ">
  110. <choices>
  111. <item>
  112. <label>전체</label>
  113. <value/>
  114. </item>
  115. <item>
  116. <label>인턴</label>
  117. <value>0601</value>
  118. </item>
  119. <item>
  120. <label>레지던트</label>
  121. <value>0501</value>
  122. </item>
  123. </choices>
  124. </select1>
  125. <caption id="cap_trngflag" class="search_name" style="left:499px; top:20px; width:110px; height:17px; ">전공의구분 :</caption>
  126. <button id="button1" class="btn2_letter4" style="left:1060px; top:105; width:64px; height:19px; ">
  127. <caption>전체취소</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
  131. grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn")) = 'N';
  132. }
  133. grd_apprtcdrlist.clearStatus();
  134. ]]>
  135. </script>
  136. </button>
  137. <caption id="caption9" class="tit_2" style="left:0px; top:110; width:117px; height:13px; ">전공의 목록</caption>
  138. <select1 id="cmb_anual" ref="/root/send/anual" class="combo_search" appearance="minimal" style="left:1020px; top:19px; width:60px; height:19px; ">
  139. <choices>
  140. <itemset>
  141. <label/>
  142. <value/>
  143. </itemset>
  144. </choices>
  145. </select1>
  146. <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_search" appearance="minimal" style="left:820px; top:19px; width:100px; height:19px; ">
  147. <choices>
  148. <itemset nodeset="/root/main/tisorddeptcdlist">
  149. <label ref="deptnm"/>
  150. <value ref="deptcd"/>
  151. </itemset>
  152. </choices>
  153. </select1>
  154. <caption id="cap_anual" class="search_name" style="left:955px; top:20px; width:65px; height:17px; ">년 차 :</caption>
  155. <caption id="cap_deptcd" class="search_name" style="left:735px; top:20px; width:86px; height:17px; ">부 서 :</caption>
  156. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:372px; top:19px; width:100px; height:19px; ">
  157. <choices>
  158. <itemset>
  159. <label/>
  160. <value/>
  161. </itemset>
  162. </choices>
  163. </select1>
  164. <caption id="cap_instcd" class="search_name" style="left:285px; top:20px; width:86px; height:17px; ">근무병원 :</caption>
  165. <button id="btn_helppsn" class="icon_search" style="left:151px; top:20px; width:16px; height:16px; ">
  166. <caption/>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
  170. ipt_emplno.refresh();
  171. ipt_emplnm.refresh();
  172. ]]>
  173. </script>
  174. </button>
  175. <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" style="left:169px; top:19px; width:100px; height:19px; "/>
  176. <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" style="left:70px; top:19px; width:80px; height:19px; "/>
  177. <button id="button3" class="btn2_letter4" style="left:1126px; top:105; width:64px; height:19px; ">
  178. <caption>엑셀저장</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  182. if (fileName != "")
  183. {
  184. grd_apprtcdrlist.saveExcel(fileName, "sheetname:sheet1;exportfalsecols:1;");
  185. }
  186. ]]>
  187. </script>
  188. </button>
  189. <datagrid id="grd_apprtcdrlist" nodeset="/root/main/apprtcdrlist" caption="선택^사번^성명^I/O^임상과^년차^근무병원^집전화^휴대폰^전송메세지^이메일^발신자번호" colsep="^" colwidth="38, 100, 100, 100, 140, 40, 150, 135, 150, 100, 230, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:130px; width:1195px; height:610px; ">
  190. <col checkvalue="Y,N" ref="selyn" type="checkbox"/>
  191. <col ref="emplno"/>
  192. <col ref="name"/>
  193. <col ref="joblncd"/>
  194. <col ref="orddeptcd"/>
  195. <col ref="residentanual"/>
  196. <col ref="dutplceinst"/>
  197. <col ref="cntctel"/>
  198. <col ref="mpphonno" type="input"/>
  199. <col ref="freemessage" visibility="hidden"/>
  200. <col ref="email"/>
  201. <col ref="replytelno"/>
  202. </datagrid>
  203. <caption id="cap_replytelno" class="cell_1" style="left:955px; top:75; width:95px; height:23px; text-align:center; vertical-align:middle; ">발신자 번호</caption>
  204. <input id="ipt_freemessage" ref="/root/hidden/freemessage" class="input_search" visibility="visible" imemode="hangul" maxlength="80" style="left:100px; top:76px; width:725px; height:19px; ">
  205. <script type="javascript" ev:event="onkeyup">
  206. <![CDATA[
  207. var opt_bytesValue = ipt_freemessage.currentText.getByteLength();
  208. var contents = ipt_freemessage.currentText;
  209. if (parseInt(opt_bytesValue) > 80)
  210. {
  211. messageBox("단문메시지는 80bytes 를 넘을 수 없습니다.", "I999");
  212. model.setValue("/root/hidden/freemessage",contents.cut(80));
  213. ipt_freemessage.refresh();
  214. return;
  215. }
  216. model.setValue("/root/hidden/bytecnt", opt_bytesValue);
  217. opt_bytes.refresh();
  218. ]]>
  219. </script>
  220. </input>
  221. <caption id="cap_messageconcd" class="cell_1" style="left:0px; top:75; width:95px; height:23px; text-align:center; vertical-align:middle; ">메시지 설정</caption>
  222. <input id="ipt_replytelno" ref="/root/send/replytelno" maxlength="11" style="left:1055px; top:76; width:135px; height:19px; "/>
  223. <caption id="cap_bytes" visibility="visible" style="left:880px; top:77; width:65px; height:15px; ">/80 bytes</caption>
  224. <caption id="caption11" class="tit_2" style="left:0px; top:55; width:122px; height:13px; ">SMS 메시지 설정</caption>
  225. <line id="line3" class="line_1" style="x1:-0; y1:70; x2:1190; y2:70; "/>
  226. <button id="button9" class="btn2_letter4" style="left:928; top:105px; width:64px; height:19px; ">
  227. <caption>문자발송</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. var sCheckFlag = false;
  231. for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
  232. if( grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn")) == 'Y')
  233. {
  234. sCheckFlag = true;
  235. }
  236. }
  237. if(!sCheckFlag)
  238. {
  239. messageBox("문자 받을 사람을 ","C002");
  240. return;
  241. }
  242. if(!isRequiredControls("cmb_messagecd", "ipt_replytelno"))return;
  243. if(ipt_freemessage.value==""){
  244. messageBox("메시지 내용은","I003");
  245. return;
  246. }
  247. for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
  248. selyn = grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn"));
  249. if(selyn =='Y'){
  250. grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("replytelno")) = ipt_replytelno.value;
  251. grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("freemessage")) = ipt_freemessage.value;
  252. }
  253. }
  254. model.setValue("/root/send/apprtcdrlist", grd_apprtcdrlist.getUpdateData());
  255. submit("TRRTH00201");
  256. messageBox("문자발송이 ","I002");
  257. grd_apprtcdrlist.clearStatus();
  258. button1.dispatch("DOMActivate");
  259. ]]>
  260. </script>
  261. </button>
  262. <output id="opt_bytes" ref="/root/hidden/bytecnt" visibility="visible" style="left:840px; top:75px; width:35px; height:19px; text-align:right; "/>
  263. <line id="line31" class="line_3" style="x1:0px; y1:98px; x2:1190; y2:98px; "/>
  264. <button id="button5" class="btn2_letter4" visibility="visible" style="left:863; top:105px; width:64px; height:19px; ">
  265. <caption>메일발송</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. var toaddress="";
  269. for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
  270. selyn = grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn"));
  271. email = grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("email"));
  272. if(selyn =='Y'){
  273. toaddress = toaddress+ email+';';
  274. }
  275. }
  276. if(toaddress == ""){
  277. messageBox("선택된 사람이 없거나 E-mail 주소가 ", "I004");
  278. return;
  279. }
  280. model.resetInstanceNode("/root/send/emailreq");
  281. model.setValue("/root/send/emailreq/toaddress", toaddress);
  282. ipt_toaddress.refresh();
  283. group2.disabled = true;
  284. group3.visible = true;
  285. ]]>
  286. </script>
  287. </button>
  288. </group>
  289. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  290. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  291. </group>
  292. <group id="group3" visibility="hidden" style="left:675px; top:215px; width:515px; height:450px; ">
  293. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:510; height:450px; "/>
  294. <group id="grp_biz" scroll="auto" style="left:5px; top:5px; width:501px; height:415px; ">
  295. <line id="line5" class="line_2" style="x1:0px; y1:100px; x2:500px; y2:100px; "/>
  296. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">이메일전송</caption>
  297. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
  298. <caption id="cap_contentmsg" class="cell_1" style="left:0px; top:150px; width:90px; height:255px; vertical-align:middle; ">내용</caption>
  299. <caption id="caption47" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
  300. <textarea id="tar_msg" ref="/root/send/emailreq/contentmsg" class="text_essential" navindex="6" style="left:93px; top:151px; width:407px; height:254px; "/>
  301. <line id="line24" class="line_2" style="x1:0px; y1:52px; x2:500px; y2:52px; "/>
  302. <input id="ipt_fromaddress" ref="/root/send/emailreq/fromaddress" class="input_essential" navindex="1" style="left:93px; top:31px; width:202px; height:19px; "/>
  303. <caption id="cap_fromaddress" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
  304. <line id="line2" class="line_2" style="x1:0px; y1:148px; x2:500px; y2:148px; "/>
  305. <caption id="cap_subject" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">제목</caption>
  306. <input id="ipt_subject" ref="/root/send/emailreq/subject" class="input_essential" navindex="5" style="left:93px; top:127px; width:407px; height:19px; "/>
  307. <line id="line4" class="line_2" style="x1:0px; y1:76px; x2:500px; y2:76px; "/>
  308. <caption id="cap_toaddress" class="cell_1" style="left:0px; top:54px; width:90px; height:23px; vertical-align:middle; ">받는이</caption>
  309. <input id="ipt_toaddress" ref="/root/send/emailreq/toaddress" class="input_essential" disabled="true" navindex="3" style="left:93px; top:55px; width:407px; height:19px; "/>
  310. <caption id="caption3" class="hand" style="left:95px; top:103px; width:390px; height:15px; vertical-align:middle; ">수신자가 여러명일 경우 ";" 를 구분자로 하여 입력합니다.</caption>
  311. <caption id="cap_ccaddress" class="cell_1" style="left:0px; top:78px; width:90px; height:23px; vertical-align:middle; ">참조</caption>
  312. <input id="ipt_ccaddress" ref="/root/send/emailreq/ccaddress" class="input_default" navindex="4" style="left:93px; top:79px; width:407px; height:19px; "/>
  313. <caption id="cap_fromname" class="cell_1" style="left:298px; top:30px; width:67px; height:23px; vertical-align:middle; ">이름</caption>
  314. <input id="ipt_fromname" ref="/root/send/emailreq/fromname" class="input_essential" navindex="2" style="left:368px; top:31px; width:129px; height:19px; "/>
  315. </group>
  316. <group id="group4" scroll="auto" style="left:5px; top:420px; width:501px; height:27px; ">
  317. <button id="btn_confirm" class="btn4_letter2" style="left:385px; top:3; width:56px; height:22px; ">
  318. <caption>확인</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. if(!isRequiredControls("ipt_fromaddress"))return;
  322. if(!isRequiredControls("ipt_fromname"))return;
  323. if(!isRequiredControls("ipt_subject"))return;
  324. if(!isRequiredControls("tar_msg"))return;
  325. submit("TRRTH00203");
  326. messageBox("메일발송이 ","I002");
  327. group2.disabled = false;
  328. group3.visible = false;
  329. ]]>
  330. </script>
  331. </button>
  332. <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:3; width:56px; height:22px; ">
  333. <caption>취소</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. group2.disabled = false;
  337. group3.visible = false;
  338. ]]>
  339. </script>
  340. </button>
  341. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
  342. </group>
  343. </group>
  344. </xhtml:body>
  345. </xhtml:html>