using HySoft.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HySoft.BaseCallCenter.Web.reportmanage
{
    public partial class screenshow : System.Web.UI.Page
    {
        public string totalcallreport;

        public string Agents;
        public string CallRecordOut;
        public string CallRecordIn;
        public string CallRecordTotalTime;
        public string CallAverageTime;

        public string StatisticalTime;
        public string StatisticalCallConnectData;
        public string StatisticalCallLossData;
        public string StatisticalCallLossDataRate;
        public string StatisticalCallConnectDataRate;

        protected void Page_Load(object sender, EventArgs e)
        {
            totalcallreport = Utils.HttpGet("http://"+CommonRequest.GetCurrentFullHost()+ "/reportmanage/totalcallreport.aspx?action=show");

            string result = Utils.HttpGet("http://" + CommonRequest.GetCurrentFullHost() + "/reportmanage/talktimereport.aspx?action=show");
            string[] rs = result.Split('|');
            Agents = rs[0];
            CallRecordOut = rs[1];
            CallRecordIn = rs[2];
            CallRecordTotalTime = rs[3];
            CallAverageTime = rs[4];

            string result1 = Utils.HttpGet("http://" + CommonRequest.GetCurrentFullHost() + "/reportmanage/switchedlosscallreport.aspx?action=show");
            string[] rs1 = result1.Split('|');
            StatisticalTime = rs1[0];
            StatisticalCallConnectData = rs1[1];
            StatisticalCallLossData = rs1[2];
            StatisticalCallLossDataRate = rs1[3];
            StatisticalCallConnectDataRate = rs1[4];

        }
    }
}