SMCSN00200_기간별SMS전송통계.xrw 14 KB

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