public static bool UpdateD(YF.Mode.Doctor user) { bool result = false; string strsql = "update _doctor set age='" + user.Age + "',job='" + user.Job + "',room='" + user.Room + "' where docnum=" + user.Id + ""; int i = YF.MsSqlHelper.YFMsSqlHelper.ExecuteSql(strsql);//执行删除语句,失败返回0 if (i > 0) { result = true; } return(result); }
public static bool UpdateD(YF.Mode.Doctor user)//修改用户系信息 { return(YF.DAL.User.UpdateD(user)); }