示例#1
0
 public JsonResult Edit(SysUserModel info)
 {
     if (info != null && ModelState.IsValid)
     {
         Apps.IService.IServiceSession serviceSession = OpeCur.ServiceSession;
         serviceSession.SysUser.Edit(ref errors, info);
         string ErrorCol = errors.Error;
         if (serviceSession.SaveChange() > 0)
         {
             OpeCur.SetOtherHMC(info.Id);
             OpeCur.AccountNow.AllMerchant = false;
             LogHandler.WriteServiceLog(OpeCur.AccountNow.Id, "Id:" + info.Id + ",Name:" + info.UserName, "成功", "修改", "用户设置");
             return(OpeCur.AjaxMsgOK("修改成功!" + ErrorCol));
         }
         else
         {
             LogHandler.WriteServiceLog(OpeCur.AccountNow.Id, "Id:" + info.Id + ",Name:" + info.UserName + "," + ErrorCol, "失败", "修改", "用户设置");
             return(OpeCur.AjaxMsgNOOK("修改失败!" + ErrorCol));
         }
     }
     else
     {
         return(OpeCur.AjaxMsgNOOK(Resource.ModelStateValidFail));
     }
 }