SMCPC00200_캠페인응답.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCPC00200_캠페인응답
  4. * Summary : 캠페인응답관리
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.07.18
  7. * History : 2007.07.18
  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. <choslist/>
  20. </list>
  21. </main>
  22. <send>
  23. <srch>
  24. <chosfromdd/>
  25. <chostodd/>
  26. <orddept/>
  27. <pid/>
  28. <cmpnfromdd/>
  29. <cmpntodd/>
  30. <cmpnnm/>
  31. </srch>
  32. <choslist/>
  33. </send>
  34. <init>
  35. <comncdlist>
  36. <P0001list/>
  37. <C0017list/>
  38. </comncdlist>
  39. <basecdlist>
  40. <orddeptlist/>
  41. </basecdlist>
  42. <menuid>SMCPC00200</menuid>
  43. </init>
  44. <temp>
  45. <result/>
  46. </temp>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. // P0001: 입원/외래, C0017: 캠페인응답
  52. zbcfGetCodeList(new Array("P0001", "C0017"), new Array("/root/init/comncdlist/P0001list", "/root/init/comncdlist/C0017list"));
  53. var instcd = getUserInfo("dutplceinstcd");
  54. var standard_yn = "orduseyn";
  55. var ord_deptflag = "D"; // 외래진료과
  56. var rslt_ref = "/root/init/basecdlist/orddeptlist";
  57. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  58. var ord_dd = getCurrentDate();
  59. model.setValue("/root/send/srch/chosfromdd", ord_dd);
  60. model.setValue("/root/send/srch/chostodd", ord_dd);
  61. addComboItem("cmb_orddept");
  62. fCheckAuth();
  63. fInitChosList();
  64. model.refresh();
  65. ]]>
  66. </script>
  67. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  68. <!--submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/-->
  69. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  70. <submission id="TRCPC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list/choslist"/>
  71. <submission id="TXCPC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/choslist" resultref="/root/temp/result"/>
  72. </model>
  73. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  74. <script type="javascript" src="../../../crm/campainweb/js/CPZ001.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  79. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  80. <script type="javascript">
  81. <![CDATA[
  82. function fCheckAuth() {
  83. // 권한체크
  84. if (!checkAuth("r")) {
  85. btn_search.disabled=true;
  86. }
  87. if (!checkAuth("x")) {
  88. btn_save.disabled=true;
  89. btn_choscnfm.disabled=true;
  90. btn_chosdel.disabled=true;
  91. }
  92. if (!checkAuth("p")) {
  93. btn_saveexcel.disabled = true;
  94. }
  95. }
  96. function fInitChosList() {
  97. // 그리드 초기화
  98. model.removeNodeset("/root/main/list/choslist");
  99. //grd_choslist.clearStatus();
  100. //model.refresh();
  101. }
  102. function fSaveChosList() {
  103. // 응답확인 목록 저장
  104. var grid = grd_choslist;
  105. var updt_list = getGridUpdateData(grid);
  106. if (updt_list != "") {
  107. model.setValue("/root/send/choslist", grid.getUpdateData());
  108. }
  109. if (submit("TXCPC00201")) {
  110. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  111. model.setValue("/root/send/choslist","");
  112. messageBox("응답확인 저장이","I002");
  113. submit("TRCPC00201");
  114. }
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  121. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">캠페인 응답관리</caption>
  122. </group>
  123. <group id="group2" style="left:0px; top:23px; width:215px; height:757px; ">
  124. <caption id="caption2" class="tit_2" style="left:0px; top:0px; width:215px; height:13px; ">캠페인 분류</caption>
  125. <import id="import1" src="SSCPC00300_캠페인그룹트리.xrw" style="left:0px; top:13px; width:215px; height:744px; "/>
  126. </group>
  127. <group id="group3" style="left:225px; top:23px; width:970px; height:60px; vertical-align:top; ">
  128. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:970px; height:59px; "/>
  129. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">내원일자 :</caption>
  130. <input id="ipt_chosfromdd" ref="/root/send/srch/chosfromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:120px; height:19px; "/>
  131. <caption id="caption4" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
  132. <input id="ipt_chostodd" ref="/root/send/srch/chostodd" class="input_search" inputtype="date" style="left:248px; top:8px; width:120px; height:19px; "/>
  133. <caption id="caption5" class="search_name" style="left:391px; top:9px; width:86px; height:17px; ">진료과 :</caption>
  134. <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:470px; top:8px; width:140px; height:19px; ">
  135. <choices>
  136. <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
  137. <label ref="depthngnm"/>
  138. <value ref="deptcd"/>
  139. </itemset>
  140. </choices>
  141. </select1>
  142. <caption id="caption6" class="search_name" style="left:631px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  143. <input id="ipt_pid" ref="/root/send/srch/pid" class="input_search" maxlength="10" style="left:723px; top:8px; width:120px; height:19px; ">
  144. <script type="javascript" ev:event="onkeyup">
  145. <![CDATA[
  146. inputEnterKey("btn_pidsrch", "DOMActivate");
  147. ]]>
  148. </script>
  149. </input>
  150. <button id="btn_pidsrch" class="icon_search" style="left:848px; top:9px; width:16px; height:16px; ">
  151. <caption/>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. var search_condition = "pid";
  155. var search_term = model.getValue("/root/send/srch/pid");
  156. var receive_pid_path = "/root/send/srch/pid";
  157. var receive_patnm_path = "";
  158. cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
  159. ]]>
  160. </script>
  161. </button>
  162. <caption id="caption7" class="search_name" style="left:16px; top:33px; width:86px; height:17px; ">실행일자 :</caption>
  163. <input id="ipt_cmpnfromdd" ref="/root/send/srch/cmpntodd" class="input_search" inputtype="date" style="left:248px; top:32px; width:120px; height:19px; "/>
  164. <caption id="caption8" class="search_no_b" style="left:233px; top:33px; width:12px; height:17px; ">~</caption>
  165. <input id="ipt_cmpntodd" ref="/root/send/srch/cmpnfromdd" class="input_search" inputtype="date" style="left:108px; top:32px; width:120px; height:19px; "/>
  166. <caption id="caption9" class="search_name" style="left:631px; top:33px; width:95px; height:17px; ">캠페인명 :</caption>
  167. <input id="ipt_cmpnnm" ref="/root/send/srch/cmpnnm" class="input_search" maxlength="30" style="left:723px; top:32px; width:120px; height:19px; ">
  168. <script type="javascript" ev:event="onkeyup">
  169. <![CDATA[
  170. inputEnterKey("btn_cmpnsrch", "DOMActivate");
  171. ]]>
  172. </script>
  173. </input>
  174. <button id="btn_cmpnsrch" class="icon_search" style="left:848px; top:32px; width:16px; height:16px; ">
  175. <caption/>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var send_cmpn_cd = "";
  179. var send_cmpn_nm = model.getValue("/root/send/srch/cmpnnm");
  180. var recv_cmpn_cd_path = "";
  181. var recv_cmpn_nm_path = "/root/send/srch/cmpnnm";
  182. cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
  183. ]]>
  184. </script>
  185. </button>
  186. <line id="line1" class="line_4" style="x1:883px; y1:7px; x2:883px; y2:53px; border-left-style:solid; "/>
  187. <button id="btn_search" class="btn1_letter2" style="left:898px; top:19px; width:56px; height:22px; ">
  188. <caption>조회</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. submit("TRCPC00201");
  192. ]]>
  193. </script>
  194. </button>
  195. </group>
  196. <group id="group4" scroll="auto" style="left:225px; top:83px; width:970px; height:670px; ">
  197. <caption id="caption10" class="tit_2" style="left:5px; top:10px; width:188px; height:14px; ">캠페인실행 및 고객내원 목록</caption>
  198. <button id="btn_choscnfm" class="btn2_letter4" style="left:705px; top:5px; width:64px; height:19px; ">
  199. <caption>응답확인</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var grid = grd_choslist;
  203. for (var i= 0; i<grid.selectedRows; i++) {
  204. model.setValue("/root/main/list/choslist["+grid.selectedRow(i)+"]/choscnfmyn", "Y");
  205. grid.addStatus(grid.selectedRow(i), "update");
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="btn_choscncl" class="btn2_letter4" style="left:772px; top:5px; width:64px; height:19px; ">
  211. <caption>응답제외</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var grid = grd_choslist;
  215. for (var i= 0; i<grid.selectedRows; i++) {
  216. model.setValue("/root/main/list/choslist["+grid.selectedRow(i)+"]/choscnfmyn", "N");
  217. grid.addStatus(grid.selectedRow(i), "update");
  218. }
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="btn_chosdel" class="btn2_letter4" style="left:839px; top:5px; width:64px; height:19px; ">
  223. <caption>선택삭제</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. deleteSelectedRows(grd_choslist, true); // 선택행 삭제
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="btn_saveexcel" class="btn2_letter4" style="left:906px; top:5px; width:64px; height:19px; ">
  231. <caption>엑셀저장</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  235. if (file_nm != "") {
  236. grd_choslist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
  237. }
  238. ]]>
  239. </script>
  240. </button>
  241. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:970px; y2:25px; "/>
  242. <datagrid id="grd_choslist" nodeset="/root/main/list/choslist" class="text_center" scroll="auto" caption="캠페인명^캠페인 실행부서^내원 진료과^캠페인 실행일^내원일^등록번호^고객명^입원/외래^응답확인" colwidth="140, 120, 120, 100, 100, 100, 110, 70, 70, 0, 0, 0, 0, 0" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" style="left:0px; top:30px; width:970px; height:637px; ">
  243. <col ref="cmpnnm" style="text-align:left; "/>
  244. <col ref="rgstdeptnm"/>
  245. <col ref="orddeptnm"/>
  246. <col ref="cmpnexecdd" format="yyyy-mm-dd"/>
  247. <col ref="orddd" format="yyyy-mm-dd"/>
  248. <col ref="pid"/>
  249. <col ref="hngnm"/>
  250. <col disabled="true" ref="outinflag" type="combo">
  251. <choices>
  252. <itemset nodeset="/root/init/comncdlist/P0001list/P0001">
  253. <label ref="cdnm"/>
  254. <value ref="cdid"/>
  255. </itemset>
  256. </choices>
  257. </col>
  258. <col ref="choscnfmyn" type="combo">
  259. <choices>
  260. <itemset nodeset="/root/init/comncdlist/C0017list/C0017">
  261. <label ref="cdnm"/>
  262. <value ref="cdid"/>
  263. </itemset>
  264. </choices>
  265. </col>
  266. <col ref="cretno" visibility="hidden"/>
  267. <col ref="acptseqno" visibility="hidden"/>
  268. <col ref="cmpncd" visibility="hidden"/>
  269. <col ref="cmpnrgstdt" visibility="hidden"/>
  270. <col ref="rgstseq" visibility="hidden"/>
  271. </datagrid>
  272. </group>
  273. <group id="group5" style="left:225px; top:753px; width:970px; height:27px; vertical-align:top; ">
  274. <button id="btn_setup" class="btn3_letter6" style="left:0px; top:0px; width:104px; height:22px; ">
  275. <caption>응답기준설정</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. modal("SPCPC00600");
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="btn_save" class="btn4_letter2" _auth="X" style="left:843px; top:0px; width:56px; height:22px; ">
  283. <caption>저장</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. fSaveChosList();
  287. ]]>
  288. </script>
  289. </button>
  290. <button id="btn_init" class="btn4_letter3" style="left:902px; top:0px; width:68px; height:22px; ">
  291. <caption>초기화</caption>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. fInitChosList();
  295. model.refresh();
  296. ]]>
  297. </script>
  298. </button>
  299. </group>
  300. </xhtml:body>
  301. </xhtml:html>