SMCFA00300_검사예약현황.xrw 17 KB

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