Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     account.InnerHtml = AppContent.Current.GetCurrentUser().Account;
     SmsEnterpriseInfo inf =
         new EnterpriseService().GetEnterpriseInfo(AppContent.Current.GetCurrentUser().EnterpriseID);
     enterprise.InnerHtml = inf.EnterpriseName;
     smsprice.InnerHtml = inf.Capital.ToString() + "元";
     state.InnerHtml = AppContent.Current.GetCurrentUser().State == 0 ? "禁用" : "正常";
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     EnterpriseService service = new EnterpriseService();
     SmsEnterpriseInfo info = service.GetEnterpriseInfo(int.Parse(Request.QueryString["id"]));
     name = info.EnterpriseName;
     introduction = info.Introduction;
     capital = info.Capital.ToString();
     extendnum = info.ExtendNum;
     Page.DataBind();
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (AppContent.Current.GetCurrentUser() == null)
         Response.Redirect("Login.aspx");
     account.InnerHtml = AppContent.Current.GetCurrentUser().Account;
     SmsEnterpriseInfo inf =
         new EnterpriseService().GetEnterpriseInfo(AppContent.Current.GetCurrentUser().EnterpriseID);
     enterprise.InnerHtml = inf.EnterpriseName;
     smsprice.InnerHtml = inf.Capital.ToString()+"元";
     myname.InnerHtml = AppContent.Current.GetCurrentUser().Account;
     state.InnerHtml = AppContent.Current.GetCurrentUser().State == 0 ? "禁用" : "正常";
 }