SMCSN00300_업무별Email전송통계.xrw 13 KB

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