Exemple #1
0
 protected InvitePage()
     : base()
 {
     pageTitle = "";
     inviteeName = "";
     inviteType = InviteeType.None;
 }
Exemple #2
0
        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("������������ͣ�");
            }
        }
Exemple #3
0
 public static List<Invitee> List(int uid, InviteeType type, InviteeStatus status, Pager pager)
 {
     return List(uid, (short)type, (short)status, pager);
 }
Exemple #4
0
 /// <summary>
 /// ���캯��
 /// </summary>
 /// <param name="uid">������ID</param>
 /// <param name="_type">InviteeType</param>
 public Invitee(int uid, InviteeType _type)
     : this()
 {
     userId = uid;
     type = _type;
 }
Exemple #5
0
 public static List<Invitee> List(InviteeType type, Pager pager)
 {
     return List(0, (short)type, (short)-1, pager);
 }
Exemple #6
0
 /// <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;
 }
Exemple #7
0
 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;
 }