Beispiel #1
0
        /// <summary>
        /// 停启用客户信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public ActionResult ChangeStatusCustomer(CustomerOperateDTO dto)
        {
            ResultData <object> result = new ResultData <object>();
            UserLoginDTO        user   = (UserLoginDTO)Session["UserLoginInfo"];

            dto.ModifyUser   = user.FullName;
            dto.ModifyTime   = DateTime.Now;
            dto.NoActiveTime = DateTime.Now;
            dto.UpType       = 2;
            try
            {
                result = CustomerProvider.ChangeStatusCustomer(dto);
            }
            catch (Exception ex)
            {
                result.SubmitResult = false;
                result.Message      = ex.Message;
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }