<%@ 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" onclick="laydate()" id="dt1" value="<%=DateTime.Now.AddMonths(-6).ToString("yyyy-MM-dd") %>"  class="  form-control" style="display:inline-block; width:200px" /> 
    
   到<input type="text"  id="dt2"  onclick="laydate()" class="  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>优先级比  (<a href="###" onclick="PopData('priority')">数据</a>)</b>

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

            </td>



            <td>

<div class="thumbnail"   >

        <b>问题状态 (<a href="###" onclick="PopData('status')">数据</a>)</b>

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

            </td>




            <td>




                <div class="thumbnail"   >

        <b>解决方法 (<a href="###" onclick="PopData('method')">数据</a>)</b>

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




            </td>



        </tr>










         <tr>
            <td>

<div class="thumbnail"   >

        <b>各部门问题数 (<a href="###" onclick="PopData('contactdept')">数据</a>)</b>

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

            </td>



            <td>

<div class="thumbnail"   >

        <b>大类数 (<a href="###" onclick="PopData('category1name')">数据</a>)</b>
     <div id="category1name" style=" width:350px; height:250px;   margin-top:20px;">
              <img src="images/loading.gif" id="img_category1name" />
        </div>
               </div>

            </td>




            <td>




                <div class="thumbnail"   >

        <b>中类数 (<a href="###" onclick="PopData('category2name')">数据</a>)</b>

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




            </td>



        </tr>
          

    </table>


 

           
 



    <script>

        function PopData(popcat)
        {
            dt1 = $("#dt1").val();
            dt2 = $("#dt2").val();
            Pop("Reporting_Data.aspx?dt1="+dt1+"&dt2="+dt2+"&t="+popcat,650,450,'数据')
        }


    </script>


    
    <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", "")
                }
            });

            $("#img_priority").hide();



            $.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", "")
                }
            });

            $("#img_status").hide();



            $.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", "")
                }
            });
            $("#img_method").hide();





            $.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");

                }
            });
            $("#img_contactdept").hide();








            $.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");

                }
            });

            $("#img_category1name").hide();


            $.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");

                }
            });

            $("#img_category2name").hide();

        }



        ReDraw();

    </script>

















     


















</asp:Content>
