public ContentResult edit(int id, decimal price)
        {
            C_UserType type = C_UserType.GetEntityByID(id);

            if (type == null)
            {
                return(Content("该客户级别不存在"));
            }

            int rtn = C_UserType.EditMinOrderPriceByID(id, price);

            if (rtn > 0)
            {
                SYSLog.add("修改[" + type.Name + "]订单最小金额从[" + type.MinOrderPrice + "]修改为[" + price + "]", "后台用户" + CurrentUser.UserName + "(" + CurrentUser.Name + ")", CurrentURL, "订单最小金额", "电脑端后台");
            }

            return(Content(rtn > 0?"ok":"修改出错啦"));
        }
Example #2
0
        public ActionResult GetTypeEdit(C_UserType Types)
        {
            if (string.IsNullOrWhiteSpace(Types.Name))
            {
                return(Content("类型名称不能为空"));
            }
            C_UserType oldType = C_UserType.GetEntityByID(Types.ID);

            oldType.Name     = Types.Name;
            oldType.TypeCode = Types.TypeCode;
            int rtn = oldType.UpdateByID();

            if (rtn > 0)
            {
                SYSLog.add("将代理类型[" + oldType.Name + "]从[" + oldType.Name + "]修改为[" + Types.Name + "]", "电脑端后台用户" + CurrentUser.Name + "(" + CurrentUser.UserName + ")", CurrentURL, "修改代理类型", "电脑后台");
            }

            return(Content(rtn > 0 ? "ok" : "修改出错了!!"));
        }
Example #3
0
        public ActionResult TypeEditIndex(int ID)
        {
            C_UserType Types = C_UserType.GetEntityByID(ID);

            return(View(Types));
        }