예제 #1
0
        /// <summary>
        /// 代理商门店详情页
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="model">model</param>
        /// <returns></returns>
        public ActionResult Details(int ShopId)
        {
            ShopInfoBll bll = new ShopInfoBll();

            if (Convert.ToInt32(bll.GetModeltCount(ShopId, "e0001")) == 0)
            {
                return(Content("<script>alert('不存在此门店');history.go(-1)</script>"));
            }
            else
            {
                return(View(bll.GetModel(ShopId, LoginUser.UserBasic.EnterpriseID)));
            }
        }
예제 #2
0
        /// <summary>
        /// 代理商门店详情页
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="model">model</param>
        /// <returns></returns>
        public ActionResult Details(int ShopId)
        {
            ShopInfoBll bll      = new ShopInfoBll();
            int         GetCount = Convert.ToInt32(bll.GetModeltCount(ShopId, AgentLoginUser.UserBasic.EnterpriseID, AgentLoginUser.RoleID));

            if (GetCount == 0)
            {
                return(Content("<script>alert('不存在此门店信息!');history.go(-1)</script>"));
            }
            else
            {
                ShopInfoView model = new ShopInfoView();
                model = bll.GetModel(ShopId, AgentLoginUser.UserBasic.EnterpriseID, AgentLoginUser.RoleID);
                return(View(model));
            }
        }
예제 #3
0
        /// <summary>
        /// 代理商门店详情页
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="model">model</param>
        /// <returns></returns>
        public ActionResult Details(int ShopId)
        {
            ShopInfoBll bll = new ShopInfoBll();
            int GetCount = Convert.ToInt32(bll.GetModeltCount(ShopId, AgentLoginUser.UserBasic.EnterpriseID, AgentLoginUser.RoleID));

            if (GetCount == 0)
            {
                return Content("<script>alert('不存在此门店信息!');history.go(-1)</script>");
            }
            else
            {
                ShopInfoView model = new ShopInfoView();
                model = bll.GetModel(ShopId, AgentLoginUser.UserBasic.EnterpriseID, AgentLoginUser.RoleID);
                return View(model);
            }
        }
예제 #4
0
 /// <summary>
 /// 代理商门店详情页
 /// 负责人:谢海荣
 /// </summary>
 /// <param name="model">model</param>
 /// <returns></returns>
 public ActionResult Details(int ShopId)
 {
     ShopInfoBll bll = new ShopInfoBll();
     if (Convert.ToInt32(bll.GetModeltCount(ShopId, "e0001")) == 0)
     {
         return Content("<script>alert('不存在此门店');history.go(-1)</script>");
     }
     else {
         return View(bll.GetModel(ShopId, LoginUser.UserBasic.EnterpriseID));
     }
 }