123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCSN00200_기간별SMS전송통계
- * Summary : 기간별 SMS 전송통계
- * Programmer : 김준규
- * Date Written : 2007.09.14
- * History : 2008/07/17,박원희, 오류수정, 사용자 추가요구사항 없음
- * Remark :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>기간별 SMS 전송통계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main/>
- <send>
- <data>
- <srchyear1/>
- <srchyear2/>
- <srchmonth/>
- <srchbizflag/>
- <srchbizdetlcd/>
- <srchdeptcd/>
- <srchdeptnm/>
- <allyn>Y</allyn>
- <ptype>Y</ptype>
- <logo_pic/>
- <srchvsinstcd/>
- </data>
- </send>
- <hidden>
- <itemset>
- <item>
- <lbl/>
- <val/>
- </item>
- </itemset>
- <comcd/>
- </hidden>
- <init>
- <comcd>
- </comcd>
- </init>
- <temp>
- <result>
- <rsinst>
- <instcd/>
- <instnm>-</instnm>
- </rsinst>
- </result>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var currentYear = getNewDate().getFullYear();
- var currentMonth= getNewDate().getMonth() + 1;
- var currentMonth = (("" + currentMonth).length == 1) ? "0" + currentMonth : "" + currentMonth;
- var piclogo = getLogoImageURL();
-
- zbcfGetCodeList( new Array("C0028"), new Array("/root/init/comcd"));
- fInsertInstance("C0028", "전체", "");
-
- makeSrchYearItem();
- model.setValue("/root/send/data/srchyear1", currentYear);
- model.setValue("/root/send/data/srchyear2", currentYear);
- model.setValue("/root/send/data/srchmonth", currentMonth);
- model.setValue("/root/send/data/logo_pic", piclogo);
- model.refresh();
-
- // btn_save.disabled = !checkAuth("X");
- makeReportPreview(0,112,1195,630);
- submit("TRCSN00102");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function makeSrchYearItem() {
-
- // item 초기화
- model.removeNodeset("/root/hidden/itemset/item");
-
- // Temp Item Node 생성
- var tmpItemNode = instance1.createNode("element", "item", "");
- var tmpLabelNode = instance1.createNode("element", "lbl", "");
- var tmpValueNode = instance1.createNode("element", "val", "");
- tmpItemNode.appendChild(tmpLabelNode);
- tmpItemNode.appendChild(tmpValueNode);
-
- // 현재 Year
- var curYear = getNewDate().getFullYear();
- // 초기 데이타가 2007년부터 있으므로
- var minYear = "2007"
- // Item Node
- var itemNode = null;
-
- for( var i = curYear; i >= minYear; i-- ) {
-
- tmpItemNode.lbl.text = i;
- tmpItemNode.val.text = i;
-
- // Temp Item Node 복사
- itemNode = tmpItemNode.cloneNode(true);
-
- model.duplicate("/root/hidden/itemset", itemNode);
- }
- cmb_SrchYear1.refresh();
- cmb_SrchYear2.refresh();
- }
-
- function fInsertInstance(cdGroupID, codeName, codeID) {
- //model.refresh();
-
- model.copyNode("/root/hidden/comcd","/root/init/comcd");
-
- var nodelist = instance1.selectNodes("/root/hidden/comcd/"+cdGroupID);
-
- var newNode = instance1.createNode("element", cdGroupID, "");
-
- var childnode1 = instance1.createNode("element", "cdid", "");
- var childnode2 = instance1.createNode("element", "cdnm", "");
- newNode.appendChild(childnode1);
- newNode.appendChild(childnode2);
-
- if (nodelist.length > 0)
- {
- var currNode = root.hidden.comcd.insertBefore(newNode, nodelist.item(0));
-
- model.setValue("/root/hidden/comcd/"+cdGroupID+"[1]/cdnm", codeName);
- model.setValue("/root/hidden/comcd/"+cdGroupID+"[1]/cdid", codeID);
- }
- }
- ]]>
- </script>
- <submission id="TRCSN00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- <submission id="TRCSN00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- <submission id="TRCSN00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="top" resultref="/root/temp/result/rsinst"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">기간별 SMS 전송통계</caption>
- </group>
- <group id="grp_johe" style="left:0px; top:23px; width:1194px; height:59px; vertical-align:top; ">
- <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; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:95px; height:17px; ">전송일자 :</caption>
- <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; ">
- <choices>
- <item>
- <label>연도</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_SrchYear1.disabled = "false";
- cmb_SrchYear2.disabled = "true";
- cmb_SrchMonth.disabled = "true";
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/hidden/itemset/item">
- <label ref="lbl"/>
- <value ref="val"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_no_b" style="left:469px; top:9px; width:20px; height:17px; ">년</caption>
- <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; ">
- <choices>
- <item>
- <label>연도/월</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_SrchYear1.disabled = "true";
- cmb_SrchYear2.disabled = "false";
- cmb_SrchMonth.disabled = "false";
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/hidden/itemset/item">
- <label ref="lbl"/>
- <value ref="val"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_no_b" style="left:249px; top:9px; width:20px; height:17px; ">년</caption>
- <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; ">
- <choices>
- <item>
- <label>1</label>
- <value>01</value>
- </item>
- <item>
- <label>2</label>
- <value>02</value>
- </item>
- <item>
- <label>3</label>
- <value>03</value>
- </item>
- <item>
- <label>4</label>
- <value>04</value>
- </item>
- <item>
- <label>5</label>
- <value>05</value>
- </item>
- <item>
- <label>6</label>
- <value>06</value>
- </item>
- <item>
- <label>7</label>
- <value>07</value>
- </item>
- <item>
- <label>8</label>
- <value>08</value>
- </item>
- <item>
- <label>9</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="search_no_b" style="left:559px; top:9px; width:20px; height:17px; ">월</caption>
- <caption id="caption3" class="search_name" style="left:610px; top:8px; width:87px; height:17px; ">해당기관 :</caption>
- <select1 id="cmb_SrchVsInsrcd" ref="/root/send/data/srchvsinstcd" class="combo_search" appearance="minimal" style="left:700px; top:7px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/result/rsinst">
- <label ref="instnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:409px; top:33px; width:87px; height:17px; ">해당부서 :</caption>
- <output id="ipt_SrchDeptCd" ref="/root/send/data/srchdeptcd" class="output_fix" style="left:499px; top:32px; width:85px; height:19px; "/>
- <button id="btnicon_search1" class="icon_search" style="left:589px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_term = model.getValue("/root/send/data/srchdeptcd");
-
- if (search_term != "") {
- var search_condition = "deptcd";
- } else {
- var search_condition = "deptnm";
- }
- var receive_deptcd_path = "/root/send/data/srchdeptcd";
- var receive_deptnm_path = "/root/send/data/srchdeptnm";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_deptcd_path", receive_deptcd_path);
- setParameter("receive_deptnm_path", receive_deptnm_path);
-
- modal("SPCCM00300")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
-
- model.setValue("/root/send/data/allyn", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_SrchDeptNm" ref="/root/send/data/srchdeptnm" class="input_search" style="left:609px; top:32px; width:145px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>전체 부서</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/data/srchdeptcd", "");
- model.setValue("/root/send/data/srchdeptnm", "");
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption9" class="search_name" style="left:15px; top:33px; width:87px; height:17px; ">업무구분 :</caption>
- <select1 id="cmb_BizFlag" ref="/root/send/data/srchbizflag" class="combo_search" appearance="minimal" style="left:105px; top:32px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/comcd/C0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if ( model.getValue("/root/send/data/srchbizflag") == "3" ) {
- cmb_BizDetlCd.disabled = "false";
- } else {
- cmb_BizDetlCd.disabled = "true";
- model.setValue("/root/send/data/srchbizdetlcd", "");
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>외래예약</label>
- <value>01</value>
- </item>
- <item>
- <label>검사예약</label>
- <value>03</value>
- </item>
- <item>
- <label>건진예약</label>
- <value>04</value>
- </item>
- <item>
- <label>가예약</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1106px; y1:12px; x2:1106px; y2:50px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var strType = model.getValue("/root/send/data/ptype");
-
- if ( strType == 'Y') {
- if (isRequiredControls("cmb_SrchYear1") ){
- exeReportPreview("RPCSN00200", "XMLFILE", "/root/send/data", "TRCSN00201");
- }
- } else if ( strType == 'M') {
- if (isRequiredControls("cmb_SrchYear2", "cmb_SrchMonth") ){
- exeReportPreview("RPCSN00201", "XMLFILE", "/root/send/data", "TRCSN00202");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_statistic" style="left:0px; top:82px; width:1194px; height:645px; ">
- <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:155px; height:13px; ">기간별 SMS 전송통계</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|