SMCFA00600_일반건진예약현황.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCFA00600_일반건진예약현황
  4. * Summary : 일반건진예약현황
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.07.10
  7. * History : 2007.07.10
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. </list>
  21. </main>
  22. <send>
  23. <srch>
  24. <rsrvfromdd/>
  25. <rsrvtodd/>
  26. <cmpynm/>
  27. <cmpycd/>
  28. <pkgnm/>
  29. <pkgcd/>
  30. <healexamdetlflag/>
  31. <pid/>
  32. <rrgstno1/>
  33. <rrgstno2/>
  34. <patnm/>
  35. <trsmstat/>
  36. <healexamflag>G</healexamflag>
  37. </srch>
  38. <rsrvlist/>
  39. <rsrvrule>
  40. <rsrvflag>4</rsrvflag>
  41. </rsrvrule>
  42. </send>
  43. <init>
  44. <comncdlist>
  45. <A0070list/>
  46. <A0107list/>
  47. <A0118list/>
  48. <C0019list/>
  49. </comncdlist>
  50. <rsrvrule>
  51. <delivedd/>
  52. <delivetm/>
  53. <msglrgcd/>
  54. <msgmdlcd/>
  55. <msgsmlcd/>
  56. <msgcnts/>
  57. </rsrvrule>
  58. </init>
  59. <temp>
  60. <result/>
  61. <trsmstat/>
  62. </temp>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. // A0068: 건진구분1, A0069: 건진구분2, A0070: 건진구분3, A0107: 건진상태구분, A0118: 종합건진고객등급, C0019: 전송상태
  68. zbcfGetCodeList(new Array("A0070","A0107","A0118","C0019"),
  69. new Array("/root/init/comncdlist/A0070list","/root/init/comncdlist/A0107list","/root/init/comncdlist/A0118list","/root/init/comncdlist/C0019list"));
  70. //zbcfGetCodeList(new Array("A0068","A0069","A0070","A0107","A0118","C0019"),
  71. // new Array("/root/init/comncdlist/A0068list","/root/init/comncdlist/A0069list","/root/init/comncdlist/A0070list",
  72. // "/root/init/comncdlist/A0107list","/root/init/comncdlist/A0118list","/root/init/comncdlist/C0019list"));
  73. submit("TRCFA00102"); // 예약주기관리(발송일, 발송 메시지)
  74. var delive_dd = model.getValue("/root/init/rsrvrule/delivedd");
  75. var rsrv_dd = getCurrentDate().toDate().getAddDate(parseInt(delive_dd), "D").getDateFormat("YYYYMMDD");
  76. model.setValue("/root/send/srch/rsrvfromdd", rsrv_dd);
  77. model.setValue("/root/send/srch/rsrvtodd", rsrv_dd);
  78. addComboItemAll( "cmb_trsmstat|cmb_rsrvflag");
  79. fCheckAuth();
  80. fInitRsrvList();
  81. model.refresh();
  82. ]]>
  83. </script>
  84. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  85. <!--submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/-->
  86. <submission id="TRCFA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list/rsrvlist"/>
  87. <submission id="TXCFA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvlist" resultref="/root/temp/result"/>
  88. <submission id="TRCFA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvrule" resultref="/root/init/rsrvrule"/>
  89. </model>
  90. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  91. <script type="javascript" src="../../../crm/reserveweb/js/CFZ001.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  96. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  97. <script type="javascript">
  98. <![CDATA[
  99. function fCheckAuth() {
  100. // 권한체크
  101. if (!checkAuth("r")) {
  102. btn_search.disabled=true;
  103. }
  104. if (!checkAuth("x")) {
  105. btn_save.disabled=true;
  106. btn_trsmstat.disabled=true;
  107. btn_sms.disabled=true;
  108. btn_email.disabled=true;
  109. btn_cmpn.disabled=true;
  110. }
  111. if (!checkAuth("p")) {
  112. btn_saveexcel.disabled = true;
  113. }
  114. }
  115. function fInitRsrvList() {
  116. // 그리드 초기화
  117. model.removeNodeset("/root/main/list/rsrvlist");
  118. //grd_rsrvlist.clearStatus();
  119. //grd_rsrvlist.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  120. //model.refresh();
  121. }
  122. function fSaveRsrvList() {
  123. // 예약메시지 전송에서 제외한 목록 저장
  124. var grid = grd_rsrvlist;
  125. var updt_list = getGridUpdateData(grid);
  126. if (updt_list != "") {
  127. model.setValue("/root/send/rsrvlist", grid.getUpdateData());
  128. }
  129. if (submit("TXCFA00401")) {
  130. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  131. grid.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  132. model.setValue("/root/send/rsrvlist","");
  133. messageBox("전송상태 저장이","I002");
  134. }
  135. }
  136. function fCmpyCodeList(receive_cmpycd_path, receive_cmpynm_path){
  137. // 사업장검색 팝업창 호출
  138. setParameter("receive_cmpycd_path", receive_cmpycd_path);
  139. setParameter("receive_cmpynm_path", receive_cmpynm_path);
  140. modal("SPCHI00200");
  141. clearParameter("receive_cmpycd_path");
  142. clearParameter("receive_cmpynm_path");
  143. }
  144. function fPkgCodeList(receive_pkgcd_path, receive_pkgnm_path){
  145. // 패키지검색 팝업창 호출
  146. setParameter("receive_pkgcd_path", receive_pkgcd_path);
  147. setParameter("receive_pkgnm_path", receive_pkgnm_path);
  148. modal("SPCHI00700");
  149. clearParameter("receive_pkgcd_path");
  150. clearParameter("receive_pkgnm_path");
  151. }
  152. ]]>
  153. </script>
  154. </xhtml:head>
  155. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  156. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  157. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">일반건진예약 전송관리</caption>
  158. </group>
  159. <group id="group2" style="left:0px; top:23px; width:1194px; height:60px; vertical-align:top; ">
  160. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  161. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">예약일자 :</caption>
  162. <input id="ipt_ordfromdd" ref="/root/send/srch/rsrvfromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:120px; height:19px; "/>
  163. <caption id="caption4" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
  164. <input id="ipt_ordtodd" ref="/root/send/srch/rsrvtodd" class="input_search" inputtype="date" style="left:248px; top:8px; width:120px; height:19px; "/>
  165. <caption id="caption5" class="search_name" style="left:406px; top:9px; width:86px; height:17px; ">사업체 :</caption>
  166. <input id="ipt_cmpycd" ref="/root/send/srch/cmpynm" class="input_search" maxlength="50" style="left:485px; top:8px; width:100px; height:19px; "/>
  167. <button id="btn_cmpy_srch" class="icon_search" style="left:590px; top:9px; width:16px; height:16px; ">
  168. <caption/>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var receive_cmpynm_path = "/root/send/srch/cmpynm";
  172. var receive_cmpycd_path = "/root/send/srch/cmpycd";
  173. fCmpyCodeList(receive_cmpycd_path, receive_cmpynm_path);
  174. ]]>
  175. </script>
  176. </button>
  177. <caption id="caption6" class="search_name" style="left:641px; top:9px; width:86px; height:17px; ">패키지 :</caption>
  178. <input id="ipt_pkgcd" ref="/root/send/srch/pkgnm" class="input_search" maxlength="50" style="left:720px; top:8px; width:100px; height:19px; "/>
  179. <button id="btn_pkg_srch" class="icon_search" style="left:825px; top:9px; width:16px; height:16px; ">
  180. <caption/>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var receive_pkgnm_path = "/root/send/srch/pkgnm";
  184. var receive_pkgcd_path = "/root/send/srch/pkgcd";
  185. fPkgCodeList(receive_pkgcd_path, receive_pkgnm_path);
  186. ]]>
  187. </script>
  188. </button>
  189. <caption id="caption7" class="search_name" style="left:875px; top:10px; width:86px; height:17px; ">건진분류 :</caption>
  190. <select1 id="cmb_rsrvflag" ref="/root/send/srch/healexamdetlflag" class="combo_search" appearance="minimal" style="left:965px; top:8px; width:110px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/init/comncdlist/A0070list/A0070">
  193. <label ref="cdnm"/>
  194. <value ref="cdid"/>
  195. </itemset>
  196. </choices>
  197. </select1>
  198. <caption id="caption8" class="search_name" style="left:16px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
  199. <input id="ipt_pid" ref="/root/send/srch/pid" class="input_search" maxlength="10" style="left:108px; top:32px; width:120px; height:19px; "/>
  200. <button id="btn_pid_srch" class="icon_search" style="left:233px; top:33px; width:16px; height:16px; ">
  201. <caption/>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. var search_condition = "pid";
  205. var search_term = model.getValue("/root/send/srch/pid");
  206. var receive_pid_path = "/root/send/srch/pid";
  207. var receive_patnm_path = "";
  208. cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
  209. ]]>
  210. </script>
  211. </button>
  212. <caption id="caption9" class="search_name" style="left:296px; top:33px; width:114px; height:17px; ">주민등록번호 :</caption>
  213. <input id="ipt_rrgst1" ref="/root/send/srch/rrgstno1" class="input_search" imemode="disabled" maxlength="6" format="999999" style="left:415px; top:32px; width:70px; height:19px; "/>
  214. <caption id="caption10" class="search_no_b" style="left:490px; top:33px; width:12px; height:17px; ">-</caption>
  215. <input id="ipt_rrgst2" ref="/root/send/srch/rrgstno2" class="input_search" imemode="disabled" maxlength="7" format="9999999" style="left:505px; top:32px; width:80px; height:19px; "/>
  216. <caption id="caption11" class="search_name" style="left:641px; top:33px; width:86px; height:17px; ">환자명 :</caption>
  217. <input id="ipt_patnm" ref="/root/send/srch/patnm" class="input_search" maxlength="50" style="left:720px; top:32px; width:100px; height:19px; "/>
  218. <caption id="caption12" class="search_name" style="left:875px; top:33px; width:86px; height:17px; ">전송상태 :</caption>
  219. <select1 id="cmb_trsmstat" ref="/root/send/srch/trsmstat" class="combo_search" appearance="minimal" style="left:965px; top:32px; width:110px; height:19px; ">
  220. <choices>
  221. <itemset nodeset="/root/init/comncdlist/C0019list/C0019">
  222. <label ref="cdnm"/>
  223. <value ref="cdid"/>
  224. </itemset>
  225. </choices>
  226. </select1>
  227. <line id="line1" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:53px; border-left-style:solid; "/>
  228. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
  229. <caption>조회</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. submit("TRCFA00401");
  233. ]]>
  234. </script>
  235. </button>
  236. </group>
  237. <group id="group3" scroll="auto" style="left:0px; top:83px; width:1195px; height:668px; ">
  238. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:105px; height:14px; ">예약 전송 목록</caption>
  239. <button id="btn_trsmstat" class="btn2_letter4" style="left:1063px; top:5px; width:64px; height:19px; ">
  240. <caption>전송제외</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. // 전송상태(trsmstat)를 '전송대기(0)'인 데이터만 '전송제외(2)'로 변경
  244. var grid = grd_rsrvlist;
  245. var trsmstat_col = 2;
  246. cfzfChangeTrsmStat(grid, trsmstat_col);
  247. ]]>
  248. </script>
  249. </button>
  250. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:5px; width:64px; height:19px; ">
  251. <caption>엑셀저장</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  255. if (file_nm != "") {
  256. grd_rsrvlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  262. <datagrid id="grd_rsrvlist" nodeset="/root/main/list/rsrvlist" class="text_center" caption="^전송상태^예약일자^시간^등록번호^환자명^주민등록번호^휴대전화번호^패키지^예약상태^고객등급^단체^사업체^건진분류^예약 메시지^^^^^" colwidth="25, 100, 100, 55, 90, 120, 110, 110, 110, 80, 80, 70, 110, 110, 450, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshowmove" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" tooltip="true" style="left:0px; top:30px; width:1194px; height:630px; ">
  263. <col class="update_n" ref="update"/>
  264. <col disabled="true" ref="trsmstat" type="combo">
  265. <choices>
  266. <itemset nodeset="/root/init/comncdlist/C0019list/C0019">
  267. <label ref="cdnm"/>
  268. <value ref="cdid"/>
  269. </itemset>
  270. </choices>
  271. </col>
  272. <col ref="hopedd" format="yyyy-mm-dd"/>
  273. <col ref="rsrvtm" format="hh:nn"/>
  274. <col ref="pid"/>
  275. <col ref="hngnm"/>
  276. <col ref="rrgstno" secretendposition="14" secretmark="*" secretstartposition="8"/>
  277. <col ref="mpphontel"/>
  278. <col ref="pkgcd"/>
  279. <col disabled="true" ref="statflag" type="combo">
  280. <choices>
  281. <itemset nodeset="/root/init/comncdlist/A0107list/A0107">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col disabled="true" ref="clntgrde" type="combo">
  288. <choices>
  289. <itemset nodeset="/root/init/comncdlist/A0118list/A0118">
  290. <label ref="cdnm"/>
  291. <value ref="cdid"/>
  292. </itemset>
  293. </choices>
  294. </col>
  295. <col ref="cmpyflag"/>
  296. <col ref="cmpycd"/>
  297. <col disabled="true" ref="healexamdetlflag" type="combo">
  298. <choices>
  299. <itemset nodeset="/root/init/comncdlist/A0070list/A0070">
  300. <label ref="cdnm"/>
  301. <value ref="cdid"/>
  302. </itemset>
  303. </choices>
  304. </col>
  305. <col ref="smsmsg" style="text-align:left; "/>
  306. <col ref="healexamflag" visibility="hidden"/>
  307. <col ref="rsrvdd" visibility="hidden"/>
  308. <col ref="rsrvno" visibility="hidden"/>
  309. <col ref="email" visibility="hidden"/>
  310. <col ref="lastchosdt" visibility="hidden"/>
  311. <script type="javascript" ev:event="xforms-value-changed">
  312. <![CDATA[
  313. // 그리드의 변경 상태값을 변경
  314. // var grid = grd_rsrvlist;
  315. // var trsmstat_col = 2;
  316. // cfzfChangeRowStatus(grid, trsmstat_col);
  317. ]]>
  318. </script>
  319. <script type="javascript" ev:event="onclick">
  320. <![CDATA[
  321. // 그리드의 변경 상태 가능여부를 체크하고, 변경 이전 값을 저장
  322. // var grid = grd_rsrvlist;
  323. // var trsmstat_col = 2;
  324. // cfzfCheckSaveBfTrsm(grid, trsmstat_col);
  325. ]]>
  326. </script>
  327. </datagrid>
  328. </group>
  329. <group id="group4" style="left:0px; top:751px; width:1195px; height:29px; vertical-align:top; ">
  330. <button id="btn_sms" class="btn3_letter5" style="left:0px; top:0px; width:92px; height:22px; ">
  331. <caption>SMS전송</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. cczfSMSTrsmOpen("grid",grd_rsrvlist,5,14,"","");
  335. ]]>
  336. </script>
  337. </button>
  338. <button id="btn_email" class="btn3_letter5" style="left:94px; top:0px; width:92px; height:22px; ">
  339. <caption>이메일발송</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. cczfEmailTrsmOpen("grid",grd_rsrvlist,19,"");
  343. ]]>
  344. </script>
  345. </button>
  346. <!--<button id="btn_cmpn" class="btn3_letter5" style="left:188px; top:0px; width:92px; height:22px; ">
  347. <caption>캠페인등록</caption>
  348. <script type="javascript" ev:event="DOMActivate">
  349. <![CDATA[
  350. cczfOpenInsertCmpn(grd_rsrvlist, "00");
  351. ]]>
  352. </script>
  353. </button>-->
  354. <button id="btn_save" class="btn4_letter2" _auth="X" style="left:1068px; top:0px; width:56px; height:22px; ">
  355. <caption>저장</caption>
  356. <script type="javascript" ev:event="DOMActivate">
  357. <![CDATA[
  358. fSaveRsrvList();
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:0px; width:68px; height:22px; ">
  363. <caption>초기화</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. fInitRsrvList();
  367. model.refresh();
  368. ]]>
  369. </script>
  370. </button>
  371. </group>
  372. </xhtml:body>
  373. </xhtml:html>