Exemple #1
0
 /// <summary>
 /// 修改导购视图
 /// 负责人:谢海荣
 /// </summary>
 /// <returns></returns>
 public ActionResult Update(int ID)
 {
     Utility.SelectLists unSel = new Utility.SelectLists();
     GuidUnBll guBll = new GuidUnBll();
     GuidUn model = guBll.GetModelGuid(ID, LoginUser.UserBasic.EnterpriseID);
     ViewBag.GuidType = new SelectList(unSel.GetGuidType(), "Value", "Text",model.GuidType);
     ViewBag.GuidID = ID;
     return View(model);
 }
Exemple #2
0
        /// <summary>
        /// 修改导购视图
        /// 负责人:谢海荣
        /// </summary>
        /// <returns></returns>
        public ActionResult Update(int ID)
        {
            Utility.SelectLists unSel = new Utility.SelectLists();
            GuidUnBll           guBll = new GuidUnBll();
            GuidUn model = guBll.GetModelGuid(ID, LoginUser.UserBasic.EnterpriseID);

            ViewBag.GuidType = new SelectList(unSel.GetGuidType(), "Value", "Text", model.GuidType);
            ViewBag.GuidID   = ID;
            return(View(model));
        }
        public JsonResult Create(GuidUn model) {
            GuidUnBll guBll = new GuidUnBll();

            model.AgentID = (uint)AgentLoginUser.RoleID;
            model.EnterpriseID = AgentLoginUser.UserBasic.EnterpriseID;
            model.ContactPhone = "0";
            model.AddTime = DateTime.Now;
            model.Status = 1;
            return Json(guBll.DelCreateGuid(model), JsonRequestBehavior.AllowGet);
        }
Exemple #4
0
        public JsonResult Create(GuidUn model)
        {
            GuidUnBll guBll = new GuidUnBll();

            model.AgentID      = 1;
            model.EnterpriseID = LoginUser.UserBasic.EnterpriseID;
            model.ContactPhone = "";
            model.AddTime      = DateTime.Now;
            model.Status       = 1;
            return(Json(guBll.DelCreateGuid(model), JsonRequestBehavior.AllowGet));
        }
Exemple #5
0
        /// <summary>
        /// 导购详情
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="GuidId">导购ID</param>
        /// <returns></returns>
        public ActionResult Details(int GuidId)
        {
            GuidUnBll gbll         = new GuidUnBll();
            string    EnterpriseID = LoginUser.UserBasic.EnterpriseID;

            if (gbll.GetModelCount(GuidId, EnterpriseID) == 0)
            {
                return(Content("<script>alert('不存在此导购');history.go(-1)</script>"));
            }
            else
            {
                return(View(gbll.GetModel(GuidId, EnterpriseID)));
            }
        }
Exemple #6
0
        public JsonResult BatchOperation(string ID, int pd)
        {
            int status;

            if (pd == 1)
            {
                status = 2;
            }
            else
            {
                status = 3;
            }
            GuidUnBll guBll = new GuidUnBll();

            string[] IDs = ID.Split(',');
            return(Json(guBll.Delete(IDs, status)));
        }
Exemple #7
0
        public JsonResult Operation(int ID, int pd)
        {
            int status;

            if (pd == 1)
            {
                status = 2;
            }
            else if (pd == 2)
            {
                status = 0;
            }
            else
            {
                status = 3;
            }
            GuidUnBll guBll = new GuidUnBll();

            return(Json(guBll.Delete(ID, status)));
        }
Exemple #8
0
        /// <summary>
        /// 导购数量
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="guidName">导购名称</param>
        /// <param name="ShopInfoID"></param>
        /// <returns></returns>
        public JsonResult GetCount(string guidName = "", string ShopName = "", string ShopInfoID = "")
        {
            GuidUnBll guBll = new GuidUnBll();

            return(Json(guBll.GetCount(guidName, ShopName, LoginUser.UserBasic.EnterpriseID, ShopInfoID, -1), JsonRequestBehavior.AllowGet));
        }
Exemple #9
0
        /// <summary>
        /// 查看导购列表
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="GuidName"></param>
        /// <param name="ShopName"></param>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public JsonResult GetList(string GuidName = "", string ShopName = "", string ShopInfoID = "", int PageIndex = 1, int PageSize = 1)
        {
            GuidUnBll guBll = new GuidUnBll();

            return(Json(guBll.GetList(GuidName, ShopName, LoginUser.UserBasic.EnterpriseID, ShopInfoID, -1, PageIndex, PageSize), JsonRequestBehavior.AllowGet));
        }
Exemple #10
0
        public JsonResult UpdateAfter(GuidUn model)
        {
            GuidUnBll guBll = new GuidUnBll();

            return(Json(guBll.DelCreateGuid(model)));
        }
        public JsonResult UpdateAfter(GuidUn model)
        {
            GuidUnBll guBll = new GuidUnBll();

            return Json(guBll.DelCreateGuid(model));
        }
        /// <summary>
        /// 导购数量
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="guidName">导购名称</param>
        /// <param name="ShopInfoID"></param>
        /// <returns></returns>
        public JsonResult GetCount(string guidName = "", string ShopName = "", string ShopInfoID = "")
        {
            GuidUnBll guBll = new GuidUnBll();

            return Json(guBll.GetCount(guidName, ShopName, AgentLoginUser.UserBasic.EnterpriseID, ShopInfoID, AgentLoginUser.RoleID), JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 导购列表
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="guidName">导购名称</param>
        /// <param name="ShopInfoID"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public JsonResult GetList(string guidName="",string ShopName="", string ShopInfoID="",int pageIndex=1,int pageSize=1)
        {
            GuidUnBll guBll = new GuidUnBll();

            return Json(guBll.GetList(guidName, ShopName, AgentLoginUser.UserBasic.EnterpriseID, ShopInfoID, AgentLoginUser.RoleID, pageIndex, pageSize), JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 导购详情
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="GuidId">导购ID</param>
        /// <returns></returns>
        public ActionResult Details(int GuidId)
        {
            GuidUnBll gbll = new GuidUnBll();
            string EnterpriseID = AgentLoginUser.UserBasic.EnterpriseID;

            if (gbll.GetModelCount(GuidId, EnterpriseID) == 0)
            {
                return Content("<script>alert('不存在此导购');history.go(-1)</script>");
            }
            else
            {
                return View(gbll.GetModel(GuidId, EnterpriseID));
            }
        }
 public JsonResult BatchOperation(string ID, int pd)
 {
     int status;
     if (pd == 1)
     {
         status = 2;
     }
     else
     {
         status = 3;
     }
     GuidUnBll guBll = new GuidUnBll();
     string[] IDs = ID.Split(',');
     return Json(guBll.Delete(IDs, status));
 }
        public JsonResult Operation(int ID,int pd)
        {
            int status;
            if (pd == 1)
            {
                status = 2;
            }
            else if (pd == 2)
            {
                status = 0;
            }
            else
            {
                status = 3;
            }
            GuidUnBll guBll = new GuidUnBll();

            return Json(guBll.Delete(ID, status));
        }