// /Apps/Settings/Department/Add/
        public ActionResult Add(FormCollection fc,int ?id)
        {
            if (fc.Count == 0)
            {
                VSysDepartment vdepartment = new VSysDepartment();
                if (String.IsNullOrEmpty(id.ToString()))
                {
                    id = 0;
                }
                vdepartment.ParentId =(int) id;
                vdepartment.ParentName = Request.QueryString["name"];
                ViewBag.Department = vdepartment;
                return View("DepartmentEdit");
            }
            ResponseMessage rmsg = new ResponseMessage();
            var compNum = Session[teaCRMKeys.SESSION_USER_COMPANY_INFO_NUM].ToString();
            var depNum = 0;
            var depOrder = 0;
            if (!String.IsNullOrEmpty(fc["DepNum"]))
            {
                depNum = int.Parse(fc["DepNum"]);
            }
            if (!String.IsNullOrEmpty(fc["depOrder"]))
            {
                depNum = int.Parse(fc["depOrder"]);
            }

            TSysDepartment sysDepartment = new TSysDepartment()
            {
                DepName = fc["DepName"],
                ParentId = int.Parse(fc["HiddenParentId"].ToString()),
                CompNum = compNum,
                DepNum = depNum,
                DepOrder = depOrder,
                CreateDate = DateTime.Now,
                DepGoal = fc["DepGoal"],
                DepRespon = fc["DepRespon"],
                DepSkills = fc["DepSkills"],
                DepCourse = fc["DepCourse"],
                DepNote = fc["DepNote"]
            };
            bool status = SysDepartmentService.AddDepartment(sysDepartment);
            if (status)
            {
                rmsg.Status = true;
                rmsg.Msg = "部门添加成功!";
            }
            else
            {
                rmsg.Status = false;
                rmsg.Msg = "部门添加失败!";
            }
            return Json(rmsg);
        }
Example #2
0
 //
 // GET: /Apps/Settings/AppMaker/Edit/
 public ActionResult Edit(FormCollection fc)
 {
     if (fc.Count == 0) //默认返回页面
     {
         return View("AppMakerEdit");
     }
     else //数据修改
     {
         ResponseMessage rmsg = new ResponseMessage();
         return Json(rmsg);
     }
 }
Example #3
0
 //
 // GET: /Apps/Settings/Role/Add/
 public ActionResult Add(FormCollection fc)
 {
     if (fc.Count == 0) //默认返回页面
     {
         return View("RoleEdit");
     }
     else //数据添加
     {
         ResponseMessage rmsg = new ResponseMessage();
         return Json(rmsg);
     }
 }
Example #4
0
        public ResponseMessage AddOperating([FromBody] TFunOperating operating)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (AppMakerService.AddOperating(operating))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #5
0
        public ResponseMessage AddApp([FromBody] TFunApp app)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (AppService.AddApp(app))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #6
0
        public ResponseMessage AddField([FromBody] TFunExpand field)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (AppMakerService.AddField(field))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #7
0
        public ResponseMessage AddUser([FromBody] TSysUser user)
        {
            ResponseMessage rmsg = new ResponseMessage();

            if (UserService.AddUser(user))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }
            return rmsg;
        }
Example #8
0
        public ResponseMessage AddFilter([FromBody] TFunFilter filter)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (AppMakerService.AddFilter(filter))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #9
0
        public ResponseMessage DeleteRole(int id)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (RoleService.DeleteRole(id))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #10
0
        public ResponseMessage EditRole([FromBody] TSysRole role)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (RoleService.UpdateRole(role))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #11
0
 public ResponseMessage DeleteUser(int id)
 {
     ResponseMessage rmsg = new ResponseMessage();
     //            if (UserService.DeleteUser(id))
     //            {
     //                rmsg.Status = true;
     //            }
     //            else
     //            {
     //                rmsg.Status = false;
     //            }
     //
     //
        return rmsg;
 }
Example #12
0
        public ResponseMessage EditUser([FromBody] TSysUser user)
        {
            ResponseMessage rmsg = new ResponseMessage();
            //密码加密
            user.UserPassword = DESEncrypt.Encrypt(user.UserPassword);
            if (UserService.UpdateUser(user))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #13
0
 //
 // GET: /Apps/Settings/Role/Edit/
 public ActionResult Edit(FormCollection fc, int? id)
 {
     if (fc.Count == 0) //默认返回页面
     {
         if (null != id)
         {
             ViewBag.Id = id;
         }
         return View("RoleEdit");
     }
     else //数据修改
     {
         ResponseMessage rmsg = new ResponseMessage();
         return Json(rmsg);
     }
 }
Example #14
0
        public ActionResult Login(FormCollection fc)
        {
            ResponseMessage rmsg;
            try
            {
                LogHelper.Info("来自" + HttpUtility.UrlDecode(fc["clientPlace"].ToString()) + "的" +
                               fc["userName"].ToString() + "正在登录...");
                rmsg = AccountService.Login(System.Web.HttpContext.Current, fc["type"].ToString(),
                    fc["accountType"].ToString(), fc["userName"].ToString(), fc["userPassword"].ToString(),
                    fc["remember"].ToString(),
                    fc["clientIp"].ToString(), HttpUtility.UrlDecode(fc["clientPlace"].ToString()),
                    fc["clientTime"].ToString());
            }
            catch (Exception ex)
            {
                LogHelper.Error("登录异常," + ex.Message);
                rmsg = new ResponseMessage() {Status = false, Msg = "登录异常,请联系管理员!"};
            }

            return Json(rmsg);
        }
Example #15
0
        public ResponseMessage ToTrash(string ids)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (CustomerService.UpdateContactStatus(ids, 1, "con_trash"))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #16
0
        /// <summary>
        /// 公共注册 2014-08-24 14:58:50 By 唐有炜
        /// </summary>
        /// <param name="httpContext">HttpContext</param>
        /// <param name="userName">用户名</param>
        /// <param name="phone">手机号</param>
        /// <param name="userPassword">密码</param>
        /// <param name="userTname">真实姓名</param>
        /// <returns>ResponseMessage</returns>
        public ResponseMessage PublicRegister(HttpContext httpContext, string userName, string phone,
            string userPassword,
            string userTname = null)
        {
//            ResponseMessage rmsg1 = ValidateAccount("register", null,  userName + "@10000", userPassword);
//            if (!rmsg1.Status)
//            {
//                return rmsg1;
//            }
//            ResponseMessage rmsg2 = ValidateAccount("register", null,  phone, userPassword);
//            if (!rmsg2.Status)
//            {
//                rmsg2.Msg = "对不起该手机号已存在!";
//                return rmsg2;
//            }
//            ResponseMessage rmsg = rmsg2;
//            if (rmsg1.Status && rmsg2.Status)
//            {
            ResponseMessage rmsg = new ResponseMessage();
            try
            {
                //注册提交
                var dbPassword = DESEncrypt.Encrypt(userPassword);
                TSysUser sysUser = new TSysUser()
                {
                    CompNum = "10000",
                    UserLname = userName,
                    UserPassword = dbPassword,
                    UserPhone = phone,
                    UserTname = userTname, //存储真实姓名,便于日后升级
                    RoleId = 1, //默认角色
                    DepId = 1 //默认部门
                };

                if (SysUserDao.InsertEntity(sysUser))
                {
                    rmsg.Status = true;
                    rmsg.Msg = "注册成功";
                }
                else
                {
                    rmsg.Status = false;
                    rmsg.Msg = "注册失败";
                }
            }
            catch (Exception ex)
            {
                rmsg.Status = false;
                rmsg.Msg = "注册失败";
                LogHelper.Error("注册失败:", ex);
            }

            //注册成功
            if (rmsg.Status)
            {
                //获取用户信息
                var compUser = GetVCompanyUserByAccountTypeAndUserName("phone", phone);
                //书写SessionCookie
                WriteSessionCookie(httpContext, compUser, userName + "@10000", userPassword);
            }

            return rmsg;
        }
Example #17
0
        /// <summary>
        /// 账户验证 2014/8/21 9:04:10   By 唐有炜
        /// </summary>
        /// <param name="action">操作类型(login、register)</param>
        /// <param name="type">注册或登录方式(normal,qrcode,usb,footprint)</param>
        /// <param name="userName">用户名</param>
        /// <param name="userPassword">密码</param>
        /// <returns>ResponseMessage</returns>
        public ResponseMessage ValidateAccount(string action, string type, string userName, string userPassword = null)
        {
            ResponseMessage rmsg = new ResponseMessage();

            switch (action)
            {
                case "login":
                    switch (type)
                    {
                        case "normal": //正常
                            //登录时账户类型不分开
                            if (UserNameExists("username", userName) || UserNameExists("email", userName) ||
                                UserNameExists("phone", userName))
                            {
                                rmsg.Status = true;
                                rmsg.Msg = "用户名输入正确!";
                                //密码空时只验证用户名
                                if (String.IsNullOrEmpty(userPassword))
                                {
                                    return rmsg;
                                }
                            }
                            else
                            {
                                rmsg.Status = false;
                                rmsg.Msg = "该用户名不存在!";
                                return rmsg;
                            }

                            if (UserPasswordExists("username", userName, userPassword) ||
                                UserPasswordExists("email", userName, userPassword) ||
                                UserPasswordExists("phone", userName, userPassword))
                            {
                                rmsg.Status = true;
                                rmsg.Msg = "密码输入正确!";
                            }
                            else
                            {
                                rmsg.Status = false;
                                rmsg.Msg = "密码错误!";
                                return rmsg;
                            }
                            return rmsg;
                            break;
                        default:
                            rmsg.Status = false;
                            rmsg.Msg = "该登录方式尚未开通!";
                            return rmsg;
                            break;
                    }

                    break;
                case "register":
                    if (UserNameExists("username", userName) || UserNameExists("email", userName) ||
                        UserNameExists("phone", userName))
                    {
                        rmsg.Status = false;
                        rmsg.Msg = "对不起,该用户名已存在!";
                        return rmsg;
                    }
                    else
                    {
                        rmsg.Status = true;
                        rmsg.Msg = "恭喜您,该用户名可以使用!";
                    }

                    return rmsg;
                    break;
                default:
                    return rmsg;
                    break;
            }
        }
Example #18
0
        /// <summary>
        /// 登录验证并写入登录日志 2014-08-21 07:58:50 By 唐有炜
        /// </summary>
        /// <param name="httpContext">HttpContext</param>
        /// <param name="type">注册或登录方式(normal,qrcode,usb,footprint)</param>
        /// <param name="accountType">账号类型(username,email,phone)</param>
        /// <param name="userName">用户名</param>
        /// <param name="userPassword">密码</param>
        /// <param name="remember">记住密码</param>
        /// <param name="clientIp">客户端ip地址</param>
        ///   /// <param name="clientPlace">客户端地址</param>
        /// <param name="clientTime">客户端登录时间</param>
        /// <returns>ResponseMessage</returns>
        public ResponseMessage Login(HttpContext httpContext, string type, string accountType, string userName,
            string userPassword,
            string remember, string clientIp, string clientPlace, string clientTime)
        {
            ResponseMessage rmsg = new ResponseMessage();
            try
            {
                //获取用户信息
                var compUser = GetVCompanyUserByAccountTypeAndUserName(accountType, userName);
                //书写SessionCookie
                WriteSessionCookie(httpContext, compUser, userName, userPassword, remember);
                //写日志
                var loginUser = compUser.UserTname;
                if (String.IsNullOrEmpty(loginUser))
                {
                    loginUser = clientPlace + "网友";
                }
                TSysLog sysLog = new TSysLog()
                {
                    UserId = compUser.UserId,
                    UserLname = compUser.UserLname,
                    LogAction = teaCRMEnums.LogActionEnum.Login.ToString(),
                    LogRemark = loginUser + "登录了系统。",
                    LogIp = clientIp,
                    LogPlace = clientPlace,
                    LogTime = DateTime.Parse(clientTime)
                };
                SysLogDao.InsertEntity(sysLog);

                rmsg.Status = true;
                rmsg.Msg = "登陆成功";
                LogHelper.Info(userName + "登录成功,登录日志已记录。");
            }
            catch (Exception ex)
            {
                rmsg.Status = false;
                rmsg.Msg = "登陆失败";
                LogHelper.Debug("登陆错误", ex);
            }

            return rmsg;
        }
Example #19
0
        public ResponseMessage AddContact([FromBody] string value)
        {
            ResponseMessage rmsg = new ResponseMessage();

            //            HttpContextBase context = (HttpContextBase) Request.Properties["MS_HttpContext"]; //获取传统context
            //            HttpRequestBase request = context.Request; //定义传统request对象
            //
            //            //联系人赋值
            //            var compNum = request.Params.Get("CompNum");
            //            var cusId = request.Params.Get("cus_id");
            //            var conBir = request.Params.Get("con_bir");
            //            if (String.IsNullOrEmpty(conBir))
            //            {
            //                conBir = DateTime.Now.ToString();
            //            }
            //            if (String.IsNullOrEmpty(cusId))
            //            {
            //                cusId = "0";
            //            }
            //            TCusCon CusCon = new TCusCon
            //            {
            //                CusId = int.Parse(cusId),
            //                CompNum = compNum,
            //                ConName = request.Params.Get("con_name"),
            //                ConTel = request.Params.Get("con_tel"),
            //                ConQq = request.Params.Get("con_qq"),
            //                ConEmail = request.Params.Get("con_email"),
            //                ConBir = DateTime.Parse(conBir),
            //                ConNote = request.Params.Get("con_note"),
            //                ConIsMain = 1,
            //                UserId = int.Parse(request.Params.Get("user_id"))
            //            };
            //
            //            //联系人扩展字段
            //            contactExpandFields =
            //                CustomerService.GetContactExpandFields(compNum,Mya);
            //            Dictionary<string, object> conFields = new Dictionary<string, object>();
            //            for (int i = 0; i < request.Params.Count; i++)
            //            {
            //                var field_con = request.Params.GetKey(i);
            //                var value_con = request.Params.Get(field_con);
            //                foreach (var field_con2 in contactExpandFields)
            //                {
            //                    if (field_con == field_con2.ExpName)
            //                    {
            //                        conFields.Add(field_con, value_con);
            //                    }
            //                }
            //            }
            //            //存储扩展字段的值
            //            CusCon.ConFields = JsonConvert.SerializeObject(conFields);
            //
            //            if (CustomerService.AddContact(CusCon))
            //            {
            //                rmsg.Status = true;
            //                rmsg.Msg = "联系人添加成功!";
            //            }
            //            else
            //            {
            //                rmsg.Status = false;
            //                rmsg.Msg = "联系人添加失败!";
            //            }

            return rmsg;
        }
Example #20
0
 public ResponseMessage UpdateCustomerStatus(int id)
 {
     ResponseMessage rmsg = new ResponseMessage();
     //            if (RoleService.DeleteRole(id))
     //            {
     //                rmsg.Status = true;
     //            }
     //            else
     //            {
     //                rmsg.Status = false;
     //            }
     //
     //
     return rmsg;
 }
Example #21
0
        public ResponseMessage DeleteOperating()
        {
            ResponseMessage rmsg = new ResponseMessage();
            HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"]; //获取传统context
            HttpRequestBase request = context.Request; //定义传统request对象
            string ids = request.Params.Get("ids");
             if (AppMakerService.DeleteOperating(ids))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #22
0
 public ResponseMessage IsInstalled()
 {
     ResponseMessage rmsg = new ResponseMessage();
     HttpContextBase context = (HttpContextBase) Request.Properties["MS_HttpContext"]; //获取传统context
     HttpRequestBase request = context.Request; //定义传统request对象
     int appId = int.Parse(request.Params.Get("id"));
     string compNum = request.Params.Get("compNum");
     int appType = int.Parse(request.Params.Get("appType"));
     bool status = AppMakerService.IsInstalled(compNum, appId, appType);
     if (status)
     {
         rmsg.Status = true;
     }
     else
     {
         rmsg.Status = false;
     }
     return rmsg;
 }
Example #23
0
 public ResponseMessage UnInstall()
 {
     ResponseMessage rmsg = new ResponseMessage();
     HttpContextBase context = (HttpContextBase) Request.Properties["MS_HttpContext"]; //获取传统context
     HttpRequestBase request = context.Request; //定义传统request对象
     string appIds = request.Params.Get("ids");
     string compNum = request.Params.Get("compNum");
     bool isClear = bool.Parse(request.Params.Get("isClear"));
     bool status = AppMakerService.UnInstall(compNum, appIds, isClear);
     if (status)
     {
         rmsg.Status = true;
     }
     else
     {
         rmsg.Status = false;
     }
     return rmsg;
 }
        public ActionResult Delete(int id)
        {
            ResponseMessage rmsg = new ResponseMessage();
            try
            {
                bool status = SysDepartmentService.DeleteDepartment(id);
                if (status)
                {
                    rmsg.Status = true;
                }
                else
                {
                    rmsg.Status = false;
                }
                LogHelper.Debug("部门删除成功!");
            }
            catch (Exception ex)
            {
                LogHelper.Error("部门删除失败!", ex);
                rmsg.Status = false;
            }

            return Json(rmsg);
        }
        public ActionResult Edit(FormCollection fc, int id)
        {
            //首次访问

            if (fc.Count == 0)
            {
                var vdepartment = SysDepartmentService.GetDepartment(d => d.Id == id);
                ViewBag.Department = vdepartment;
                return View("DepartmentEdit");
            }
            //修改提交
            ResponseMessage rmsg = new ResponseMessage();

            try
            {
                var compNum = Session[teaCRMKeys.SESSION_USER_COMPANY_INFO_NUM].ToString();
                var depNum = 0;
                var depOrder = 0;
                if (!String.IsNullOrEmpty(fc["DepNum"]))
                {
                    depNum = int.Parse(fc["DepNum"]);
                }
                if (!String.IsNullOrEmpty(fc["depOrder"]))
                {
                    depNum = int.Parse(fc["depOrder"]);
                }
                TSysDepartment department = new TSysDepartment
                {
                    Id = id,
                    DepName = fc["DepName"],
                    ParentId = int.Parse(fc["HiddenParentId"].ToString()),
                    CompNum = compNum,
                    DepNum = depNum,
                    DepOrder = depOrder,
                    CreateDate = DateTime.Now,
                    DepGoal = fc["DepGoal"],
                    DepRespon = fc["DepRespon"],
                    DepSkills = fc["DepSkills"],
                    DepCourse = fc["DepCourse"],
                    DepNote = fc["DepNote"]
                };
                bool status = SysDepartmentService.UpdateDepartment(department);
                if (status)
                {
                    rmsg.Status = true;
                }
                else
                {
                    rmsg.Status = false;
                }
                LogHelper.Debug("部门" + department.DepName + "修改成功!");
            }
            catch (Exception ex)
            {
                LogHelper.Error("部门修改失败!", ex);
                rmsg.Status = false;
            }
            return Json(rmsg);
        }
Example #26
0
 //
 // GET: /Apps/Settings/AppMaker/Delete/1/
 public ActionResult Delete(int id)
 {
     ResponseMessage rmsg = new ResponseMessage();
     return Json(rmsg);
 }
Example #27
0
        public ResponseMessage AddCustomer([FromBody] string value)
        {
            ResponseMessage rmsg = new ResponseMessage();
            HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"]; //获取传统context
            HttpRequestBase request = context.Request; //定义传统request对象

            //基本参数
            string compNum = request.Params.Get("CompNum");
            var userId = int.Parse(request.Params.Get("UserId"));

            //获取客户扩展字段信息
            customerExpandFields = CustomerService.GetCustomerExpandFields(compNum, CustomerMyappId);
            //获取联系人扩展字段信息
            contactExpandFields =
                CustomerService.GetContactExpandFields(compNum, ContactMyappId);

            //客户赋值==============================================
            //基本字段
            TCusBase CusBase = new TCusBase();
            CusBase.CusNo = RandomHelper.GetCustomerNumber();
            CusBase.CompNum = compNum;
            CusBase.CusName = request.Params.Get("CusName");
            CusBase.CusSname = request.Params.Get("CusSname") ?? "";
            CusBase.CusLastid = 0;
            CusBase.CusTel = request.Params.Get("CusTel") ?? "";
            CusBase.CusCity = String.Format("{0},{1},{2}", request.Params.Get("cus_province") ?? "0",
                request.Params.Get("cus_city") ?? "0", request.Params.Get("cus_region") ?? "0");
            CusBase.CusAddress = request.Params.Get("CusAddress") ?? "";
            CusBase.CusNote = request.Params.Get("CusNote") ?? "";
            CusBase.ConId = int.Parse(request.Params.Get("con_id") ?? "0");
            CusBase.UserId = userId;
            CusBase.ConTeam = "17,21";
            CusBase.ConIsPub = 0;
            CusBase.ConBack = 0;
            //扩展字段
            Dictionary<string, object> cusFields = new Dictionary<string, object>();
            for (int i = 0; i < request.Params.Count; i++)
            {
                var field = request.Params.GetKey(i);
                var fvalue = request.Params.Get(field);
                foreach (var field2 in customerExpandFields)
                {
                    if (field2.ExpIsSys == 0) //不是内置字段
                    {
                        if (field == NamingConversion.Default.PropertyName(field2.ExpName))
                        {
                            cusFields.Add(field, fvalue);
                        }
                    }
                }
            }
            //存储扩展字段的值
            CusBase.CusFields = JsonConvert.SerializeObject(cusFields);

            //========================================================================

            //主联系人赋值
            var conBir = request.Params.Get("ConBir");
            if (String.IsNullOrEmpty(request.Params.Get("ConBir")))
            {
                conBir = DateTime.Now.ToString();
            }
            TCusCon CusCon = new TCusCon()
            {
                CompNum = compNum,
                ConName = request.Params.Get("ConName") ?? "",
                ConTel = request.Params.Get("ConTel") ?? "",
                ConQq = request.Params.Get("ConQq") ?? "",
                ConEmail = request.Params.Get("ConEmail") ?? "",
                ConBir = DateTime.Parse(conBir),
                ConNote = request.Params.Get("ConNote") ?? "",
                ConIsMain = 1,
                UserId = userId
            };
            Dictionary<string, object> conFields = new Dictionary<string, object>();
            for (int i = 0; i < request.Params.Count; i++)
            {
                var field_con = request.Params.GetKey(i);
                var value_con = request.Params.Get(field_con);
                foreach (var field_con2 in contactExpandFields)
                {
                    if (field_con2.ExpIsSys == 0) //不是内置字段
                    {
                        if (field_con == NamingConversion.Default.PropertyName(field_con2.ExpName))
                        {
                            //LogHelper.Debug("联系人扩展字段:"+field_con);
                            conFields.Add(field_con, value_con);
                        }
                    }
                }
            }
            //存储扩展字段的值
            CusCon.ConFields = JsonConvert.SerializeObject(conFields);
            //==============================================================
            //
            //添加提交
            bool add_status = false;
            add_status = CustomerService.AddCustomer(CusBase, CusCon);
            if (add_status)
            {
                rmsg.Status = add_status;
                rmsg.Msg = "客户添加成功!";
            }
            else
            {
                rmsg.Status = add_status;
                rmsg.Msg = "客户添加失败!";
            }

            return rmsg;
        }
Example #28
0
        public ResponseMessage DeleteField(string ids)
        {
            ResponseMessage rmsg = new ResponseMessage();
            if (AppMakerService.DeleteField(ids))
            {
                rmsg.Status = true;
            }
            else
            {
                rmsg.Status = false;
            }

            return rmsg;
        }
Example #29
0
 public ActionResult ToTrash(string cus_ids)
 {
     ResponseMessage rmsg = new ResponseMessage();
     rmsg.Status = CustomerService.UpdateStatusMoreCustomer(cus_ids, 1, "con_back");
     return Json(rmsg);
 }