Ejemplo n.º 1
0
        public ViewModel.MyMallInfo GetMyMallInfo(string ownerName)
        {
            ViewModel.MyMallInfo myMallInfo = new ViewModel.MyMallInfo();
            var t006 = operateContext.BLLSession.IT006店铺信息表BLL.GetListBy(m => m.Owners == ownerName)[0];

            myMallInfo.MallName     = t006.Name;
            myMallInfo.Owner        = t006.Owners;
            myMallInfo.PhoneNumber  = t006.Contaction;
            myMallInfo.QQ           = t006.QQ;
            myMallInfo.Introduction = t006.Introduction;
            myMallInfo.WeChat       = t006.WeChat;
            myMallInfo.MallId       = t006.MallID;
            return(myMallInfo);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 修改个人商店信息
        /// </summary>
        /// <param name="myMallInfo"></param>
        /// <returns></returns>
        public bool UpdateMyMallInfo(ViewModel.MyMallInfo myMallInfo)
        {
            //T006店铺信息表 t006 = new T006店铺信息表();
            var t006 = operateContext.BLLSession.IT006店铺信息表BLL.GetListBy(m => m.MallID == myMallInfo.MallId).First();

            if (t006 != null)
            {
                t006.MallID       = myMallInfo.MallId;
                t006.Name         = myMallInfo.MallName;
                t006.Introduction = myMallInfo.Introduction;
                t006.QQ           = myMallInfo.QQ;
                t006.WeChat       = myMallInfo.WeChat;
                t006.Contaction   = myMallInfo.PhoneNumber;
                string[] allString = { "Introduction", "QQ", "WeChat", "Contaction", "Name" };
                var      t         = operateContext.BLLSession.IT006店铺信息表BLL.Modify(t006, allString);
                return(true);
            }
            else
            {
                return(false);
            }
        }