📄 default.cs
字号:
namespace PowerEasy.WebSite.User
{
using PowerEasy.Accessories;
using PowerEasy.Components;
using PowerEasy.Contents;
using PowerEasy.Controls;
using PowerEasy.Crm;
using PowerEasy.Enumerations;
using PowerEasy.Model.Crm;
using PowerEasy.Model.UserManage;
using PowerEasy.ModelControls;
using PowerEasy.UserManage;
using PowerEasy.Web.UI;
using PowerEasy.WebSite.Controls;
using System;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class Default : DynamicPage
{
protected HtmlTableRow BalancePoint;
protected Button BtnBankroll;
protected Button BtnConsumeLog;
protected Button BtnDelCompany;
protected Button BtnExchangePoint;
protected Button BtnExchangeValidDate;
protected Button BtnExitCompany;
protected Button BtnMessage;
protected Button BtnModifyPassword;
protected Button BtnModifyUser;
protected Button BtnOrder;
protected Button BtnPayment;
protected Button BtnPayOnline;
protected Button BtnReceive;
protected Button BtnRecharge;
protected Button BtnRechargeLog;
protected Button BtnRegCompany;
protected CompanyInfoControl CompanyInfo1;
protected CompanyMemberManage CompanyMemberManage1;
protected HtmlTableRow ExpValid;
protected HtmlForm form1;
protected HiddenField HdnLockType;
protected Label LblAddress;
protected Label LblAim;
protected Label LblAuditingCompanyMemberCount;
protected Label LblAuditingCompanyMemberCountTitle;
protected Label LblBalance;
protected Label LblBirthday;
protected Label LblCity;
protected Label LblCompany;
protected Label LblCompanyAddress;
protected Label LblCountry;
protected Label LblDepartment;
protected Label LblEducation;
protected Label LblEmail;
protected Label LblFax;
protected Label LblGraduateFrom;
protected Label LblGroupName;
protected Label LblHomePage;
protected Label LblHomephone;
protected Label LblICQ;
protected Label LblIDCard;
protected Label LblIncome;
protected Label LblInterestsOfAmusement;
protected Label LblInterestsOfCulture;
protected Label LblInterestsOfLife;
protected Label LblInterestsOfOther;
protected Label LblInterestsOfSport;
protected Label LblJoinTime;
protected Label LblLastLoginIP;
protected Label LblLastLoginTime;
protected Label LbllEmail;
protected Label LblMarriage;
protected Label LblMobile;
protected Label LblMSN;
protected Label LblNation;
protected Label LblNativePlace;
protected Label LblOfficePhone;
protected Label LblOperation;
protected Label LblPHS;
protected Label LblPosition;
protected Label LblProvince;
protected Label LblQQ;
protected Label LblRegTime;
protected Label LblSex;
protected Label LblSpecialPermission;
protected Label LblTitle;
protected Label LblTrueName;
protected Label LblUC;
protected Label LblUnreadMsg;
protected Label LblUnsignedItems;
protected Label LblUserExp;
protected Label LblUserName;
protected Label LblUserPoint;
protected Label LblUserType;
protected Label LblValidNum;
protected Label LblYahoo;
protected Label LblZipCode;
private bool m_ShowCompanyInfo;
protected ShowPointName ShowPointName1;
protected UserNavigation UserCenterNavigation;
protected ExtendedSiteMapPath YourPosition;
protected void BtnBankroll_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/Bankroll.aspx?ShowType=6");
}
protected void BtnConsumeLog_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/PointLog.aspx");
}
protected void BtnDelCompany_Click(object sender, EventArgs e)
{
UserInfo usersByUserName = Users.GetUsersByUserName(this.LblUserName.Text);
if (!usersByUserName.IsNull)
{
if (usersByUserName.UserType != UserType.Creator)
{
DynamicPage.WriteErrMsg("<li>你不是企业创建者,不能注销企业!</li>");
}
if (usersByUserName.ClientId > 0)
{
DynamicPage.WriteErrMsg("<li>你已经是客户,不能注销企业!</li>");
}
if (Users.DeleteCompany(usersByUserName.CompanyId))
{
DynamicPage.WriteSuccessMsg("您已经成功注销企业!", "Default.aspx");
}
else
{
DynamicPage.WriteErrMsg("<li>注销企业失败!</li>");
}
}
else
{
DynamicPage.WriteErrMsg("<li>未找到您的用户信息!</li>");
}
}
protected void BtnExchangePoint_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/ExchangePoint.aspx");
}
protected void BtnExchangeValidDate_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/ExchangeValidDate.aspx");
}
protected void BtnExitCompany_Click(object sender, EventArgs e)
{
Users.RemoveFromCompany(this.LblUserName.Text);
}
protected void BtnFavorite_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Contents/Favorite.aspx");
}
protected void BtnMessage_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Message/MessageManager.aspx?ManageType=0");
}
protected void BtnModifyPassword_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/Password.aspx");
}
protected void BtnModifyUser_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/ModifyInfo.aspx");
}
protected void BtnOrder_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Shop/OrderList.aspx?OrderType=0");
}
protected void BtnPayment_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Info/Paymentlog.aspx");
}
protected void BtnPayOnline_Click(object sneder, EventArgs e)
{
BasePage.ResponseRedirect("../PayOnline/SelectPayPlatform.aspx");
}
protected void BtnReceive_Click(object sender, EventArgs e)
{
BasePage.ResponseRedirect("Contents/Signin.aspx");
}
protected void BtnRecharge_Click(object sender, EventArgs e)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -