protected InvitePage() : base() { pageTitle = ""; inviteeName = ""; inviteType = InviteeType.None; }
protected override void OnInit(EventArgs e) { base.OnInit(e); try { inviteType = ((InviteeType)Convert.ToInt16(Request["type"])); } catch { throw new Exception("������������ͣ�"); } switch (inviteType) { case InviteeType.Supplier: pageTitle = "�������Ӧ��"; inviteeName = "��Ӧ��"; break; case InviteeType.Buyer: pageTitle = "������ҵ�ͻ�"; inviteeName = "��ҵ�ͻ�"; break; default: throw new Exception("������������ͣ�"); } }
public static List<Invitee> List(int uid, InviteeType type, InviteeStatus status, Pager pager) { return List(uid, (short)type, (short)status, pager); }
/// <summary> /// ���캯�� /// </summary> /// <param name="uid">������ID</param> /// <param name="_type">InviteeType</param> public Invitee(int uid, InviteeType _type) : this() { userId = uid; type = _type; }
public static List<Invitee> List(InviteeType type, Pager pager) { return List(0, (short)type, (short)-1, pager); }
/// <summary> /// ���캯�� /// </summary> private Invitee() { type = InviteeType.None; email = String.Empty; companyName = String.Empty; name = String.Empty; gender = String.Empty; title = String.Empty; phone = String.Empty; message = String.Empty; inviteDate = DateTime.Now; visitDate = DateTime.MinValue; status = InviteeStatus.Default; }
public IncomeList() : base() { pager.PageSize = 20; type = InviteeType.None; }
protected override void OnInit(EventArgs e) { base.OnInit(e); if (this.Master != null && !(this.Master is UserMasterPage)) { throw new Exception("UserBasePage��Master������UserMasterPage��ʵ����"); } masterPage = this.Master as UserMasterPage; if (!masterPage.IsUserLogined) { Response.Redirect("~/login.aspx?r=mustlogin&ref="+this.Server.UrlEncode(this.Request.RawUrl)); Response.End(); } userIdChksum = LeadLib.Invite.User.GetUserIdChkSum(CurrentUserId); if (Request["type"] != null) { try { invType = (InviteeType)(Convert.ToInt16(Request["type"])); } catch { invType = InviteeType.Supplier; } } if (Request["invId"] != null) { try { invId = Convert.ToInt32(Request["invId"]); } catch { //throw; } } }
protected UserBasePage() : base() { invType = InviteeType.None; userIdChksum = String.Empty; }