using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using component.FranchirManager;
using component;
{
FranchirManager dllFranchirManager = new FranchirManager();
Common com = new Common();
public string worning = "";
积累好句 protected void Page_Load(object nder, EventArgs e)
{
try
{
//得到当前机房日常维护信息
string path = Server.MapPath("~/l");
DataSet objDataSet = new DataSet();
objDataSet.ReadXml(path);
worning = objDataSet.Tables[0].Rows[0][0].ToString();
if (Session["FranchirId"] == null || Session["FranchirId"].ToString().Length == 0)
{
Respon.Redirect("FranchirLogin.aspx");
}
儿童节作文
#region
if (!IsPostBack)
{
#region 计算流量
double countwardall = 0;
com.Setfranchircountaward(Session["FranchirId"].ToString());
//得到所有的流量结果
DataTable countwardtable = com.GetCountAwardnotebyfid(Session["FranchirId"].ToString())
foreach (DataRow dr in countwardtable.Rows)
{
countwardall += Convert.ToDouble(dr["award"].ToString());
}
#endregion
txtper.Text = countwardall.ToString();
bindgetandt();
//计算流量总数
DataTable table = com.GetOrdersandOrdersADDByurid(Session["FranchirId"].ToString(), 3);
double getcount = 0;
double ndcount = 0;
foreach (DataRow dr in table.Rows)
{
getcount += Convert.ToDouble(dr["AddCount"]);
ndcount += Convert.ToDouble(dr["Subcount"]);
}
txtget.Text = getcount.ToString();
txtnd.Text = ndcount.ToString();
}
#endregion
}
catch(System.Exception ex)
{
Respon.Write(ex.ToString());内浮顶
}
}
/// <summary>
/// 流量统计
/// </summary>
void Bindcoungv()
{
DataTable table = com.GetCountAwardnoteallbyfid(Session["FranchirId"].ToString());
gvcount.DataSource = table;
gvcount.DataBind();
百度hi
gvget.Visible = fal;
gvnd.Visible = fal;
gvcount.Visible = true;
}
/// <summary>
/// 查询流量
/// </summary>无花果泡水喝的功效
void bindgetandt()
{
//得到控制机房的所有当前流量
DataTable table = com.GetOrdersandOrdersADDByurid(Session["FranchirId"].ToString(), 0);// dllFranchirManager.GetOrdersByFranchirId(Session["weburid"].ToString());
gvget.DataSource = table;
gvget.DataBind();
gvget.Visible = true;
gvnd.Visible = fal;
gvcount.Visible = fal;
}
/// <summary>
/// 绑定当前数据
/// </summary>
void bindt()
{
DataTable table = com.GetOrdersandOrdersADDByurid(Session["FranchirId"].ToString(), 0);// dllFranchirManager.GetOrdersByFranchirId(Session["weburid"].ToString());
gvnd.DataSource = table;
gvnd.DataBind();
gvget.Visible = fal;
gvnd.Visible = true;
gvcount.Visible = fal;甲醛有味道
}
/// <summary>
/// 数据流量
/// </summary>
/// <param name="nder"></param>
/// <param name="e"></param>
protected void Button1_Click(object nder, EventArgs e)
{
bindgetandt();
}
//数据
protected void gvget_PageIndexChanging(object nder, GridViewPageEventArgs e)
{
gvget.PageIndex = e.NewPageIndex;
我曾经走过最遥远的路 bindgetandt();
}
//当前
protected void gvnd_PageIndexChanging(object nder, GridViewPageEventArgs e)
{
gvnd.PageIndex = e.NewPageIndex;
bindt();
}
孙丕恕 protected void gvcount_PageIndexChanging(object nder, GridViewPageEventArgs e)
{
gvcount.PageIndex = e.NewPageIndex;
Bindcoungv();
}
protected void Button3_Click(object nder, EventArgs e)