<%@ 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>






    
    <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>

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




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



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






                $.ajax({
                    url: "ajax/ajax_ticket_reports_data.aspx",
                    data: { types: "contactdept" },
                    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" },
                    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" },
                    cache: false,
                    async: false,
                    dataType: 'json',
                    success: function (data) {
                        DrawBars(data, "category2name", "", true, false, "bar");

                    }
                });


            });


    </script>

















     


















</asp:Content>
