SMCSN00400_기간별Email전송통계.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCSN00400_기간별Email전송통계
  4. * Summary : 기간별 Email 전송통계
  5. * Programmer : 김준규
  6. * Date Written : 2007.09.14
  7. * History : 2008/07/17,박원희: 오류사항 수정, 사용자추가요구사항 없으므로 종결 처리함
  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>기간별 Email 전송통계</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main/>
  18. <send>
  19. <data>
  20. <srchyear1/>
  21. <srchyear2/>
  22. <srchmonth/>
  23. <srchbizflag/>
  24. <srchbizdetlcd/>
  25. <srchdeptcd/>
  26. <srchdeptnm/>
  27. <allyn>Y</allyn>
  28. <ptype>Y</ptype>
  29. <logo_pic/>
  30. </data>
  31. </send>
  32. <hidden>
  33. <itemset>
  34. <item>
  35. <lbl/>
  36. <val/>
  37. </item>
  38. </itemset>
  39. <comcd/>
  40. </hidden>
  41. <init>
  42. <comcd>
  43. </comcd>
  44. </init>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. var currentYear = getNewDate().getFullYear();
  50. var currentMonth= getNewDate().getMonth() + 1;
  51. var currentMonth = (("" + currentMonth).length == 1) ? "0" + currentMonth : "" + currentMonth;
  52. var piclogo = getLogoImageURL();
  53. zbcfGetCodeList( new Array("C0028"), new Array("/root/init/comcd"));
  54. fInsertInstance("C0028", "전체", "");
  55. makeSrchYearItem();
  56. model.setValue("/root/send/data/srchyear1", currentYear);
  57. model.setValue("/root/send/data/srchyear2", currentYear);
  58. model.setValue("/root/send/data/srchmonth", currentMonth);
  59. model.setValue("/root/send/data/logo_pic", piclogo);
  60. model.refresh();
  61. // btn_save.disabled = !checkAuth("X");
  62. makeReportPreview(0,112,1195,630);
  63. ]]>
  64. </script>
  65. <script type="javascript">
  66. <![CDATA[
  67. function makeSrchYearItem() {
  68. // item 초기화
  69. model.removeNodeset("/root/hidden/itemset/item");
  70. // Temp Item Node 생성
  71. var tmpItemNode = instance1.createNode("element", "item", "");
  72. var tmpLabelNode = instance1.createNode("element", "lbl", "");
  73. var tmpValueNode = instance1.createNode("element", "val", "");
  74. tmpItemNode.appendChild(tmpLabelNode);
  75. tmpItemNode.appendChild(tmpValueNode);
  76. // 현재 Year
  77. var curYear = getNewDate().getFullYear();
  78. // 초기 데이타가 2007년부터 있으므로
  79. var minYear = "2007"
  80. // Item Node
  81. var itemNode = null;
  82. for( var i = curYear; i >= minYear; i-- ) {
  83. tmpItemNode.lbl.text = i;
  84. tmpItemNode.val.text = i;
  85. // Temp Item Node 복사
  86. itemNode = tmpItemNode.cloneNode(true);
  87. model.duplicate("/root/hidden/itemset", itemNode);
  88. }
  89. cmb_SrchYear1.refresh();
  90. cmb_SrchYear2.refresh();
  91. }
  92. function fInsertInstance(cdGroupID, codeName, codeID) {
  93. //model.refresh();
  94. model.copyNode("/root/hidden/comcd","/root/init/comcd");
  95. var nodelist = instance1.selectNodes("/root/hidden/comcd/"+cdGroupID);
  96. var newNode = instance1.createNode("element", cdGroupID, "");
  97. var childnode1 = instance1.createNode("element", "cdid", "");
  98. var childnode2 = instance1.createNode("element", "cdnm", "");
  99. newNode.appendChild(childnode1);
  100. newNode.appendChild(childnode2);
  101. if (nodelist.length > 0)
  102. {
  103. var currNode = root.hidden.comcd.insertBefore(newNode, nodelist.item(0));
  104. model.setValue("/root/hidden/comcd/"+cdGroupID+"[1]/cdnm", codeName);
  105. model.setValue("/root/hidden/comcd/"+cdGroupID+"[1]/cdid", codeID);
  106. }
  107. }
  108. ]]>
  109. </script>
  110. <submission id="TRCSN00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  111. <submission id="TRCSN00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  112. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  113. </model>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  117. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  118. </xhtml:head>
  119. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  121. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:160px; height:13px; ">기간별 Email 전송통계</caption>
  122. </group>
  123. <group id="grp_johe" style="left:0px; top:23px; width:1194px; height:59px; vertical-align:top; ">
  124. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  125. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:95px; height:17px; ">전송일자 :</caption>
  126. <select1 id="cmb_PType2" ref="/root/send/data/ptype" appearance="full" overflow="visible" style="left:104px; top:9px; width:50px; height:17px; font-weight:bold; background-color:transparent; border-style:none; ">
  127. <choices>
  128. <item>
  129. <label>연도</label>
  130. <value>Y</value>
  131. </item>
  132. </choices>
  133. <script type="javascript" ev:event="xforms-select">
  134. <![CDATA[
  135. cmb_SrchYear1.disabled = "false";
  136. cmb_SrchYear2.disabled = "true";
  137. cmb_SrchMonth.disabled = "true";
  138. ]]>
  139. </script>
  140. </select1>
  141. <select1 id="cmb_SrchYear1" ref="/root/send/data/srchyear1" class="input_s_essential" disabled="true" appearance="minimal" style="left:162px; top:8px; width:85px; height:19px; text-align:center; ">
  142. <choices>
  143. <itemset nodeset="/root/hidden/itemset/item">
  144. <label ref="lbl"/>
  145. <value ref="val"/>
  146. </itemset>
  147. </choices>
  148. </select1>
  149. <caption id="caption4" class="search_no_b" style="left:469px; top:9px; width:20px; height:17px; ">년</caption>
  150. <select1 id="cmb_PType3" ref="/root/send/data/ptype" appearance="full" overflow="visible" style="left:304px; top:9px; width:70px; height:17px; font-weight:bold; background-color:transparent; border-style:none; ">
  151. <choices>
  152. <item>
  153. <label>연도/월</label>
  154. <value>M</value>
  155. </item>
  156. </choices>
  157. <script type="javascript" ev:event="xforms-select">
  158. <![CDATA[
  159. cmb_SrchYear1.disabled = "true";
  160. cmb_SrchYear2.disabled = "false";
  161. cmb_SrchMonth.disabled = "false";
  162. ]]>
  163. </script>
  164. </select1>
  165. <select1 id="cmb_SrchYear2" ref="/root/send/data/srchyear2" class="input_s_essential" disabled="true" appearance="minimal" style="left:382px; top:8px; width:85px; height:19px; text-align:center; ">
  166. <choices>
  167. <itemset nodeset="/root/hidden/itemset/item">
  168. <label ref="lbl"/>
  169. <value ref="val"/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <caption id="caption5" class="search_no_b" style="left:249px; top:9px; width:20px; height:17px; ">년</caption>
  174. <select1 id="cmb_SrchMonth" ref="/root/send/data/srchmonth" class="input_s_essential" disabled="true" appearance="minimal" style="left:492px; top:8px; width:65px; height:19px; text-align:center; ">
  175. <choices>
  176. <item>
  177. <label>1</label>
  178. <value>01</value>
  179. </item>
  180. <item>
  181. <label>2</label>
  182. <value>02</value>
  183. </item>
  184. <item>
  185. <label>3</label>
  186. <value>03</value>
  187. </item>
  188. <item>
  189. <label>4</label>
  190. <value>04</value>
  191. </item>
  192. <item>
  193. <label>5</label>
  194. <value>05</value>
  195. </item>
  196. <item>
  197. <label>6</label>
  198. <value>06</value>
  199. </item>
  200. <item>
  201. <label>7</label>
  202. <value>07</value>
  203. </item>
  204. <item>
  205. <label>8</label>
  206. <value>08</value>
  207. </item>
  208. <item>
  209. <label>9</label>
  210. <value>09</value>
  211. </item>
  212. <item>
  213. <label>10</label>
  214. <value>10</value>
  215. </item>
  216. <item>
  217. <label>11</label>
  218. <value>11</value>
  219. </item>
  220. <item>
  221. <label>12</label>
  222. <value>12</value>
  223. </item>
  224. </choices>
  225. </select1>
  226. <caption id="caption6" class="search_no_b" style="left:559px; top:9px; width:20px; height:17px; ">월</caption>
  227. <caption id="caption7" class="search_name" style="left:409px; top:33px; width:87px; height:17px; ">해당부서 :</caption>
  228. <output id="ipt_SrchDeptCd" ref="/root/send/data/srchdeptcd" class="output_fix" style="left:499px; top:32px; width:85px; height:19px; "/>
  229. <button id="btnicon_search1" class="icon_search" style="left:589px; top:32px; width:16px; height:16px; ">
  230. <caption/>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. var search_term = model.getValue("/root/send/data/srchdeptcd");
  234. if (search_term != "") {
  235. var search_condition = "deptcd";
  236. } else {
  237. var search_condition = "deptnm";
  238. }
  239. var receive_deptcd_path = "/root/send/data/srchdeptcd";
  240. var receive_deptnm_path = "/root/send/data/srchdeptnm";
  241. setParameter("search_condition", search_condition);
  242. setParameter("search_term", search_term);
  243. setParameter("receive_deptcd_path", receive_deptcd_path);
  244. setParameter("receive_deptnm_path", receive_deptnm_path);
  245. modal("SPCCM00300")
  246. clearParameter("search_condition");
  247. clearParameter("search_term");
  248. clearParameter("receive_deptcd_path");
  249. clearParameter("receive_deptnm_path");
  250. model.setValue("/root/send/data/allyn", "");
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </button>
  255. <input id="ipt_SrchDeptNm" ref="/root/send/data/srchdeptnm" class="input_search" style="left:609px; top:32px; width:145px; height:19px; "/>
  256. <select id="chk_all" ref="/root/send/data/allyn" overflow="visible" appearance="full" style="left:759px; top:33px; width:80px; height:19px; font-weight:bold; border-style:none; ">
  257. <choices>
  258. <item>
  259. <label>전체 부서</label>
  260. <value>Y</value>
  261. </item>
  262. </choices>
  263. <script type="javascript" ev:event="xforms-select">
  264. <![CDATA[
  265. model.setValue("/root/send/data/srchdeptcd", "");
  266. model.setValue("/root/send/data/srchdeptnm", "");
  267. model.refresh();
  268. ]]>
  269. </script>
  270. </select>
  271. <caption id="caption9" class="search_name" style="left:15px; top:33px; width:87px; height:17px; ">업무구분 :</caption>
  272. <select1 id="cmb_BizFlag" ref="/root/send/data/srchbizflag" class="combo_search" appearance="minimal" style="left:105px; top:32px; width:130px; height:19px; ">
  273. <choices>
  274. <itemset nodeset="/root/hidden/comcd/C0028">
  275. <label ref="cdnm"/>
  276. <value ref="cdid"/>
  277. </itemset>
  278. </choices>
  279. <script type="javascript" ev:event="xforms-select">
  280. <![CDATA[
  281. if ( model.getValue("/root/send/data/srchbizflag") == "3" ) {
  282. cmb_BizDetlCd.disabled = "false";
  283. } else {
  284. cmb_BizDetlCd.disabled = "true";
  285. model.setValue("/root/send/data/srchbizdetlcd", "");
  286. model.refresh();
  287. }
  288. ]]>
  289. </script>
  290. </select1>
  291. <select1 id="cmb_BizDetlCd" ref="/root/send/data/srchbizdetlcd" class="combo_search" disabled="true" appearance="minimal" style="left:239px; top:32px; width:140px; height:19px; ">
  292. <choices>
  293. <item>
  294. <label>전체</label>
  295. <value/>
  296. </item>
  297. <item>
  298. <label>외래예약</label>
  299. <value>01</value>
  300. </item>
  301. <item>
  302. <label>검사예약</label>
  303. <value>03</value>
  304. </item>
  305. <item>
  306. <label>건진예약</label>
  307. <value>04</value>
  308. </item>
  309. <item>
  310. <label>가예약</label>
  311. <value>02</value>
  312. </item>
  313. </choices>
  314. </select1>
  315. <line id="line1" class="line_4" style="x1:1106px; y1:12px; x2:1106px; y2:50px; "/>
  316. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
  317. <caption>조회</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. var strType = model.getValue("/root/send/data/ptype");
  321. if ( strType == 'Y') {
  322. if (isRequiredControls("cmb_SrchYear1") ){
  323. exeReportPreview("RPCSN00400", "XMLFILE", "/root/send/data", "TRCSN00401");
  324. }
  325. } else if ( strType == 'M') {
  326. if (isRequiredControls("cmb_SrchYear2", "cmb_SrchMonth") ){
  327. exeReportPreview("RPCSN00401", "XMLFILE", "/root/send/data", "TRCSN00402");
  328. }
  329. }
  330. ]]>
  331. </script>
  332. </button>
  333. </group>
  334. <group id="grp_statistic" style="left:0px; top:82px; width:1194px; height:645px; ">
  335. <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:160px; height:13px; ">기간별 Email 전송통계</caption>
  336. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  337. </group>
  338. </xhtml:body>
  339. </xhtml:html>