public void GetMemInfoByMobile(string mobile) { Chain.Model.Mem modelMem = new Chain.BLL.Mem().GetMemInfoByMobile(mobile); if (modelMem != null) { this.txtFMemID.Value = modelMem.MemID.ToString(); this.txtFMemCard.Value = modelMem.MemCard; this.txtFMemName.Value = modelMem.MemName; this.txtFMemMoney.Value = modelMem.MemMoney.ToString(); this.txtFMemPoint.Value = modelMem.MemPoint.ToString(); this.txtFMemLevelName.Value = PubFunction.LevelIDToName(modelMem.MemLevelID); this.txtFMemShopName.Value = PubFunction.ShopIDToName(modelMem.MemShopID); this.txtFMemMobile.Value = modelMem.MemMobile; this.txtFMemState.Value = PubFunction.StateToName(modelMem.MemState); this.txtFMemBirthday.Value = modelMem.MemBirthday.ToShortDateString(); this.txtFMemSex.Value = PubFunction.SexToName(modelMem.MemSex); this.txtFMemIdentityCard.Value = modelMem.MemIdentityCard; this.txtFMemPastTime.Value = modelMem.MemPastTime.ToShortDateString(); this.txtFMemEmail.Value = modelMem.MemEmail; string address = ""; if (!string.IsNullOrEmpty(modelMem.MemVillage)) { this.GetAddressName(modelMem.MemVillage, ref address); } else if (!string.IsNullOrEmpty(modelMem.MemCounty)) { this.GetAddressName(modelMem.MemCounty, ref address); } else if (!string.IsNullOrEmpty(modelMem.MemCity)) { this.GetAddressName(modelMem.MemCity, ref address); } else if (!string.IsNullOrEmpty(modelMem.MemProvince)) { this.GetAddressName(modelMem.MemProvince, ref address); } if (string.IsNullOrEmpty(modelMem.MemAddress)) { modelMem.MemAddress = "无"; } this.txtFMemAddress.Value = address + modelMem.MemAddress; this.txtFMemCreateTime.Value = modelMem.MemCreateTime.ToShortDateString(); this.txtFMemUserName.Value = PubFunction.UserIDTOName(modelMem.MemUserID); } }