Exemplo n.º 1
0
 protected InvitePage()
     : base()
 {
     pageTitle = "";
     inviteeName = "";
     inviteType = InviteeType.None;
 }
Exemplo n.º 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("������������ͣ�");
            }
        }
Exemplo n.º 3
0
 public static List<Invitee> List(int uid, InviteeType type, InviteeStatus status, Pager pager)
 {
     return List(uid, (short)type, (short)status, pager);
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public static List<Invitee> List(InviteeType type, Pager pager)
 {
     return List(0, (short)type, (short)-1, pager);
 }
Exemplo n.º 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;
 }
Exemplo n.º 7
0
 public IncomeList()
     : base()
 {
     pager.PageSize = 20;
     type = InviteeType.None;
 }
Exemplo n.º 8
0
        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;
                }
            }
        }
Exemplo n.º 9
0
 protected UserBasePage()
     : base()
 {
     invType = InviteeType.None;
     userIdChksum = String.Empty;
 }