예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (HttpContext.Current.Request.Cookies["T_USERID"] != null)
     {
         string      id = HttpContext.Current.Request.Cookies["T_USERID"].Value;
         BLL.BLLRole br = new BLL.BLLRole();
         User_id = br.GetRoleId(id);
     }
     BLL.BLLDefault BD = new BLL.BLLDefault();
     this.lbl_Capacity.Text = BD.GetCapacity(DateTime.Now).ToString();
     this.lbl_Reaload.Text  = BD.GetReaload("1=1", 1).ToString();
     this.lbl_Power.Text    = BD.GetPower("1=1", DateTime.Now).ToString();
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (HttpContext.Current.Request.Cookies["T_USERID"] != null)
     {
         string id = HttpContext.Current.Request.Cookies["T_USERID"].Value;
          BLL.BLLRole br = new BLL.BLLRole();
          User_id = br.GetRoleId(id);
     }
     BLL.BLLDefault BD = new BLL.BLLDefault();
     this.lbl_Capacity.Text = BD.GetCapacity(DateTime.Now).ToString();
     this.lbl_Reaload.Text = BD.GetReaload("1=1", 1).ToString();
     this.lbl_Power.Text = BD.GetPower("1=1",DateTime.Now).ToString();
 }