SMCFA00700_건진결과상담예약현황.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCFA00700_건진결과상담예약현황
  4. * Summary : 건진결과상담예약현황
  5. * Programmer : 차재훈
  6. * Date Written : 2008.08.29
  7. * History :
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>건진결과상담 예약 현황</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <rsrvlist>
  20. <update/>
  21. <rsltcnstrsrvdd/>
  22. <rsltcnstrsrvtm/>
  23. <orddrnm/>
  24. <pid/>
  25. <hngnm/>
  26. <mpphontel/>
  27. <trsmstat/>
  28. <smsmsg/>
  29. <rsrvdd/>
  30. <rsrvno/>
  31. <healexamflag/>
  32. </rsrvlist>
  33. </list>
  34. </main>
  35. <send>
  36. <srch>
  37. <infromdd/>
  38. <intodd/>
  39. <orddept/>
  40. <orddr/>
  41. <rsltcnstflag/>
  42. <pid/>
  43. <patnm/>
  44. <assgward/>
  45. <trsmstat/>
  46. </srch>
  47. <rsrvlist/>
  48. <rsrvrule>
  49. <rsrvflag>4</rsrvflag>
  50. <itemflag>S</itemflag>
  51. </rsrvrule>
  52. </send>
  53. <init>
  54. <comncdlist>
  55. <P0017list/>
  56. <P0039list/>
  57. <C0019list/>
  58. </comncdlist>
  59. <basecdlist>
  60. <orddeptlist/>
  61. <wardlist/>
  62. <orddrlist>
  63. <usercombo/>
  64. </orddrlist>
  65. </basecdlist>
  66. <rsrvrule>
  67. <delivedd/>
  68. <delivetm/>
  69. <msglrgcd/>
  70. <msgmdlcd/>
  71. <msgsmlcd/>
  72. <msgcnts/>
  73. </rsrvrule>
  74. </init>
  75. <temp>
  76. <result/>
  77. <trsmstat/>
  78. </temp>
  79. </root>
  80. </instance>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. // P0017: 입원예약상태, P0039: 입원구분, C0019: 전송상태
  84. zbcfGetCodeList(new Array("P0017","P0039","C0019"),
  85. new Array("/root/init/comncdlist/P0017list","/root/init/comncdlist/P0039list","/root/init/comncdlist/C0019list"));
  86. var instcd = getUserInfo("dutplceinstcd");
  87. var standard_yn = "orduseyn";
  88. var ord_deptflag = "D"; // 외래진료과
  89. var rslt_ref = "/root/init/basecdlist/orddeptlist";
  90. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  91. var ord_deptflag = "W"; // 병동
  92. var rslt_ref = "/root/init/basecdlist/wardlist";
  93. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  94. submit("TRCFA00102"); // 예약주기관리(발송일, 발송 메시지)
  95. var delive_dd = model.getValue("/root/init/rsrvrule/delivedd");
  96. var rsrv_dd = getCurrentDate().toDate().getAddDate(parseInt(delive_dd), "D").getDateFormat("YYYYMMDD");
  97. model.setValue("/root/send/srch/infromdd", rsrv_dd);
  98. model.setValue("/root/send/srch/intodd", rsrv_dd);
  99. addComboItemAll( "cmb_rsrvflag|cmb_trsmstat");
  100. fCheckAuth();
  101. fInitRsrvList();
  102. model.refresh();
  103. ]]>
  104. </script>
  105. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  106. <!--submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/-->
  107. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  108. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  109. <submission id="TRCFA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list/rsrvlist"/>
  110. <submission id="TXCFA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvlist" resultref="/root/temp/result"/>
  111. <submission id="TRCFA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvrule" resultref="/root/init/rsrvrule"/>
  112. </model>
  113. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  114. <script type="javascript" src="../../../crm/reserveweb/js/CFZ001.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  119. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  120. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  121. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  122. <script type="javascript">
  123. <![CDATA[
  124. function fCheckAuth() {
  125. // 권한체크
  126. if (!checkAuth("r")) {
  127. btn_search.disabled=true;
  128. }
  129. if (!checkAuth("x")) {
  130. btn_save.disabled=true;
  131. btn_trsmstat.disabled=true;
  132. btn_sms.disabled=true;
  133. btn_email.disabled=true;
  134. btn_cmpn.disabled=true;
  135. }
  136. if (!checkAuth("p")) {
  137. btn_saveexcel.disabled = true;
  138. }
  139. }
  140. function fInitRsrvList() {
  141. // 그리드 초기화
  142. model.removeNodeset("/root/main/list/rsrvlist");
  143. //grd_rsrvlist.clearStatus();
  144. //grd_rsrvlist.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  145. //model.refresh();
  146. }
  147. function fSaveRsrvList() {
  148. // 예약메시지 전송에서 제외한 목록 저장
  149. var grid = grd_rsrvlist;
  150. var updt_list = getGridUpdateData(grid);
  151. if (updt_list != "") {
  152. model.setValue("/root/send/rsrvlist", grid.getUpdateData());
  153. }
  154. if (submit("TXCFA00701")) {
  155. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  156. grid.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  157. //model.setValue("/root/send/rsrvlist","");
  158. messageBox("전송상태 저장이","I002");
  159. }
  160. }
  161. ]]>
  162. </script>
  163. </xhtml:head>
  164. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  165. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  166. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">건진결과상담예약 전송관리</caption>
  167. </group>
  168. <group id="group2" style="left:0px; top:23px; width:1194px; height:60px; vertical-align:top; ">
  169. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  170. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">예약일자 :</caption>
  171. <input id="ipt_ordfromdd" ref="/root/send/srch/infromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:120px; height:19px; "/>
  172. <caption id="caption4" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
  173. <input id="ipt_ordtodd" ref="/root/send/srch/intodd" class="input_search" inputtype="date" style="left:248px; top:8px; width:120px; height:19px; "/>
  174. <caption id="caption7" class="search_name" style="left:875px; top:10px; width:86px; height:17px; ">예약상태 :</caption>
  175. <select1 id="cmb_rsrvflag" ref="/root/send/srch/rsltcnstflag" class="combo_search" appearance="minimal" style="left:965px; top:8px; width:110px; height:19px; ">
  176. <choices>
  177. <itemset nodeset="/root/init/comncdlist/P0017list/P0017">
  178. <label ref="cdnm"/>
  179. <value ref="cdid"/>
  180. </itemset>
  181. </choices>
  182. </select1>
  183. <caption id="caption8" class="search_name" style="left:16px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
  184. <input id="ipt_pid" ref="/root/send/srch/pid" class="input_search" maxlength="10" style="left:108px; top:32px; width:120px; height:19px; "/>
  185. <button id="btn_pid_srch" class="icon_search" style="left:233px; top:33px; width:16px; height:16px; ">
  186. <caption/>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. var search_condition = "pid";
  190. var search_term = model.getValue("/root/send/srch/pid");
  191. var receive_pid_path = "/root/send/srch/pid";
  192. var receive_patnm_path = "/root/send/srch/patnm";
  193. cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
  194. ]]>
  195. </script>
  196. </button>
  197. <caption id="caption9" class="search_name" style="left:501px; top:10px; width:86px; height:17px; ">환자명 :</caption>
  198. <input id="ipt_patnm" ref="/root/send/srch/patnm" class="input_search" maxlength="50" style="left:580px; top:8px; width:120px; height:19px; "/>
  199. <button id="btn_patnm_srch" class="icon_search" style="left:705px; top:10px; width:16px; height:16px; ">
  200. <caption/>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. var search_condition = "patnm";
  204. var search_term = model.getValue("/root/send/srch/patnm");
  205. var receive_pid_path = "/root/send/srch/pid";
  206. var receive_patnm_path = "/root/send/srch/patnm";
  207. cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
  208. ]]>
  209. </script>
  210. </button>
  211. <caption id="caption11" class="search_name" style="left:875px; top:33px; width:86px; height:17px; ">전송상태 :</caption>
  212. <select1 id="cmb_trsmstat" ref="/root/send/srch/trsmstat" class="combo_search" appearance="minimal" style="left:965px; top:32px; width:110px; height:19px; ">
  213. <choices>
  214. <itemset nodeset="/root/init/comncdlist/C0019list/C0019">
  215. <label ref="cdnm"/>
  216. <value ref="cdid"/>
  217. </itemset>
  218. </choices>
  219. </select1>
  220. <line id="line1" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:53px; border-left-style:solid; "/>
  221. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
  222. <caption>조회</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. submit("TRCFA00701");
  226. ]]>
  227. </script>
  228. </button>
  229. </group>
  230. <group id="group3" scroll="auto" style="left:0px; top:83px; width:1195px; height:668px; ">
  231. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:136px; height:14px; ">예약 전송 목록</caption>
  232. <button id="btn_trsmstat" class="btn2_letter4" style="left:1063px; top:5px; width:64px; height:19px; ">
  233. <caption>전송제외</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. // 전송상태(trsmstat)를 '전송대기(0)'인 데이터만 '전송제외(2)'로 변경
  237. var grid = grd_rsrvlist;
  238. var trsmstat_col = 2;
  239. cfzfChangeTrsmStat(grid, trsmstat_col);
  240. ]]>
  241. </script>
  242. </button>
  243. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:5px; width:64px; height:19px; ">
  244. <caption>엑셀저장</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  248. if (file_nm != "") {
  249. grd_rsrvlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  255. <datagrid id="grd_rsrvlist" nodeset="/root/main/list/rsrvlist" class="text_center" caption="^전송상태^예약일자^시간^등록번호^환자명^휴대전화번호^결과상담의^예약 메시지^^^" colwidth="20, 90, 100, 56, 90, 120, 110, 100, 450, 0, 0, 0" ellipsis="true" explorerbar="sortshowmove" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" tooltip="true" style="left:0px; top:25px; width:1194px; height:630px; ">
  256. <col class="update_n" ref="update"/>
  257. <col disabled="true" ref="trsmstat" type="combo">
  258. <choices>
  259. <itemset nodeset="/root/init/comncdlist/C0019list/C0019">
  260. <label ref="cdnm"/>
  261. <value ref="cdid"/>
  262. </itemset>
  263. </choices>
  264. </col>
  265. <col ref="rsltcnstrsrvdd" format="yyyy-mm-dd"/>
  266. <col ref="rsltcnstrsrvtm" format="hh:nn"/>
  267. <col ref="pid"/>
  268. <col ref="hngnm"/>
  269. <col ref="mpphontel"/>
  270. <col ref="orddrnm"/>
  271. <col ref="smsmsg"/>
  272. <col ref="rsrvdd" visibility="hidden"/>
  273. <col ref="rsrvno" visibility="hidden"/>
  274. <col ref="healexamflag" visibility="hidden"/>
  275. <script type="javascript" ev:event="xforms-value-changed">
  276. <![CDATA[
  277. // 그리드의 변경 상태값을 변경
  278. // var grid = grd_rsrvlist;
  279. // var trsmstat_col = 2;
  280. // cfzfChangeRowStatus(grid, trsmstat_col);
  281. ]]>
  282. </script>
  283. <script type="javascript" ev:event="onclick">
  284. <![CDATA[
  285. // 그리드의 변경 상태 가능여부를 체크하고, 변경 이전 값을 저장
  286. // var grid = grd_rsrvlist;
  287. // var trsmstat_col = 2;
  288. // cfzfCheckSaveBfTrsm(grid, trsmstat_col);
  289. ]]>
  290. </script>
  291. </datagrid>
  292. </group>
  293. <group id="group4" style="left:0px; top:751px; width:1195px; height:29px; vertical-align:top; ">
  294. <button id="btn_sms" class="btn3_letter5" style="left:0px; top:0px; width:92px; height:22px; ">
  295. <caption>SMS전송</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. cczfSMSTrsmOpen("grid",grd_rsrvlist,4,11,"","");
  299. ]]>
  300. </script>
  301. </button>
  302. <button id="btn_email" class="btn3_letter5" style="left:94px; top:0px; width:92px; height:22px; ">
  303. <caption>이메일발송</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. cczfEmailTrsmOpen("grid",grd_rsrvlist,15,"");
  307. ]]>
  308. </script>
  309. </button>
  310. <!--<button id="btn_cmpn" class="btn3_letter5" style="left:188px; top:0px; width:92px; height:22px; ">
  311. <caption>캠페인등록</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. cczfOpenInsertCmpn(grd_rsrvlist, "00");
  315. ]]>
  316. </script>
  317. </button>-->
  318. <button id="btn_save" class="btn4_letter2" _auth="X" style="left:1068px; top:0px; width:56px; height:22px; ">
  319. <caption>저장</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. fSaveRsrvList();
  323. ]]>
  324. </script>
  325. </button>
  326. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:0px; width:68px; height:22px; ">
  327. <caption>초기화</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. fInitRsrvList();
  331. model.refresh();
  332. ]]>
  333. </script>
  334. </button>
  335. </group>
  336. </xhtml:body>
  337. </xhtml:html>