Example #1
0
 protected override void InitializeSkin(Control skin)
 {
     LiteralShowMenu = (Literal)skin.FindControl("LiteralShowMenu");
     LabelShopCopy   = (Label)skin.FindControl("LabelShopCopy");
     method_0();
     LabelShopCopy.Text = ShopSettings.GetValue("CopyrightShop");
 }
Example #2
0
 protected override void InitializeSkin(Control skin)
 {
     ButtonOut          = (LinkButton)skin.FindControl("ButtonOut");
     LabelMemberID      = (Label)skin.FindControl("LabelMemberID");
     LabelMemberID.Text = base.MemLoginID;
     ButtonOut.Click   += ButtonOut_Click;
     LabelMsg           = (Label)skin.FindControl("LabelMsg");
     LabelGouWuChe      = (Label)skin.FindControl("LabelGouWuChe");
     ImageShopLogo      = (Image)skin.FindControl("ImageShopLogo");
     try
     {
         ImageShopLogo.ImageUrl = ShopSettings.GetValue("MemberLogo");
     }
     catch (Exception)
     {
     }
     GetDataInfo();
 }
Example #3
0
        private void method_0(string string_2)
        {
            DataTable memInfo =
                ((ShopNum1_Member_Action)LogicFactory.CreateShopNum1_Member_Action()).GetMemInfo(string_2);

            try
            {
                if (memInfo.Rows.Count > 0)
                {
                    Lab_MemLoginID.Text = memInfo.Rows[0]["MemLoginID"].ToString();
                    txt_UserName.Value  = memInfo.Rows[0]["Name"].ToString();
                    txt_Email.Value     = memInfo.Rows[0]["Email"].ToString();
                    txt_Address.Value   = memInfo.Rows[0]["Address"].ToString();
                    txt_Mobile.Value    = memInfo.Rows[0]["Mobile"].ToString();
                    txt_Tel.Value       = memInfo.Rows[0]["Tel"].ToString();
                    txt_Voc.Value       = memInfo.Rows[0]["Vocation"].ToString();
                    txt_WebSite.Value   = memInfo.Rows[0]["WebSite"].ToString();
                    txt_Post.Value      = memInfo.Rows[0]["Postalcode"].ToString();
                    txt_Fax.Value       = memInfo.Rows[0]["Fax"].ToString();
                    txt_QQ.Value        = memInfo.Rows[0]["QQ"].ToString();
                    txt_Bth.Value       = (memInfo.Rows[0]["Birthday"].ToString() == string.Empty)
                        ? string.Empty
                        : DateTime.Parse(memInfo.Rows[0]["Birthday"].ToString())
                                          .ToString("yyyy-MM-dd");
                    hid_Sex.Value       = memInfo.Rows[0]["Sex"].ToString();
                    txt_PalyName.Value  = memInfo.Rows[0]["RealName"].ToString();
                    hid_AreaValue.Value = memInfo.Rows[0]["AddressValue"].ToString();
                    hid_AreaCode.Value  = memInfo.Rows[0]["AddressCode"].ToString();
                    ImagePath.ImageUrl  = (memInfo.Rows[0]["Photo"].ToString() == "")
                        ? ShopSettings.GetValue("MemberImage")
                        : memInfo.Rows[0]["Photo"].ToString();
                    hid_CheckEmail.Value  = memInfo.Rows[0]["IsEmailActivation"].ToString();
                    hid_CheckMobile.Value = memInfo.Rows[0]["IsMobileActivation"].ToString();
                }
            }
            catch (InvalidCastException)
            {
            }
        }