<%@ Page Title="" Language="C#" MasterPageFile="~/helpdesk/Reporting.master" AutoEventWireup="true" CodeBehind="Reporting_Ticket_Prop.aspx.cs" Inherits="helpdesk.helpdesk.Reporting_Ticket_Prop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">



    
   
  



       
    <div class="alert alert-danger">
    <b>说明：</b>了解所有Tickets各种问题所占的比率。
    </div>


    
    请选择时间段：从<input type="text" id="dt1" value="<%=DateTime.Now.AddMonths(-6).ToString("yyyy-MM-dd") %>"  class="_dt form-control" style="display:inline-block; width:200px" /> 
    
   到<input type="text"  id="dt2" class="_dt form-control" value="<%=DateTime.Now.ToString("yyyy-MM-dd") %>" style="display:inline-block; width:200px" /> 
    
    <input type="button" value="确定"   onclick="ReDraw();"  class="btn bg-green"/>

    <br />    <br />

    
    <style>
        .rpt td {
         margin:5px; padding:5px; text-align:center
        }
    </style>
    
    <table class="rpt"  cellpadding="50px" cellspacing="5px" >
        <tr>
            <td>

<div class="thumbnail"   >

        <b>优先级比</b>

        <div id="priority" style="width:250px; height:250px; margin-left:50px; margin-top:50px;">
            <img src="images/loading.gif" />
        </div>
               </div>

            </td>



            <td>

<div class="thumbnail"   >

        <b>问题状态</b>

        <div id="status" style="width:250px; height:250px; margin-left:50px; margin-top:50px;">
            <img src="images/loading.gif" />
        </div>
               </div>

            </td>




            <td>




                <div class="thumbnail"   >

        <b>解决方法</b>

        <div id="method" style="width:250px; height:250px; margin-left:50px; margin-top:50px;">
            <img src="images/loading.gif" />
        </div>
               </div>




            </td>



        </tr>










         <tr>
            <td>

<div class="thumbnail"   >

        <b>各部门问题数</b>

        <div id="contactdept" style=" width:350px; height:250px;   margin-top:20px; ">
            <img src="images/loading.gif" />
        </div>
               </div>

            </td>



            <td>

<div class="thumbnail"   >

        <b>大类数</b>
     <div id="category1name" style=" width:350px; height:250px;   margin-top:20px;">
              <img src="images/loading.gif" />
        </div>
               </div>

            </td>




            <td>




                <div class="thumbnail"   >

        <b>中类数</b>

        <div id="category2name" style=" width:350px; height:250px;   margin-top:20px;">
            <img src="images/loading.gif" />
        </div>
               </div>




            </td>



        </tr>
















    </table>


 

           
 






    
    <script>

        function ReDraw() {
            dt1=$("#dt1").val();
            dt2=$("#dt2").val();
            $.ajax({
                url: "ajax/ajax_ticket_reports_data.aspx",
                data: { types: "priority" ,dt1:dt1,dt2:dt2},
                cache: false,
                async: false,
                dataType: 'json',
                success: function (data) {
                    DrawPie(data, "priority", "")
                }
            });




            $.ajax({
                url: "ajax/ajax_ticket_reports_data.aspx",
                data: { types: "status", dt1: dt1, dt2: dt2 },
                cache: false,
                async: false,
                dataType: 'json',
                success: function (data) {
                    DrawPie(data, "status", "")
                }
            });



            $.ajax({
                url: "ajax/ajax_ticket_reports_data.aspx",
                data: { types: "method", dt1: dt1, dt2: dt2 },
                cache: false,
                async: false,
                dataType: 'json',
                success: function (data) {
                    DrawPie(data, "method", "")
                }
            });






            $.ajax({
                url: "ajax/ajax_ticket_reports_data.aspx",
                data: { types: "contactdept", dt1: dt1, dt2: dt2 },
                cache: false,
                async: false,
                dataType: 'json',
                success: function (data) {
                    DrawBars(data, "contactdept", "", true, false, "bar");

                }
            });








            $.ajax({
                url: "ajax/ajax_ticket_reports_data.aspx",
                data: { types: "category1name", dt1: dt1, dt2: dt2 },
                cache: false,
                async: false,
                dataType: 'json',
                success: function (data) {
                    DrawBars(data, "category1name", "", true, false, "bar");

                }
            });




            $.ajax({
                url: "ajax/ajax_ticket_reports_data.aspx",
                data: { types: "category2name", dt1: dt1, dt2: dt2 },
                cache: false,
                async: false,
                dataType: 'json',
                success: function (data) {
                    DrawBars(data, "category2name", "", true, false, "bar");

                }
            });


        }



        ReDraw();

    </script>

















     


















</asp:Content>
