/// <summary> /// /// </summary> /// <param name="projectPlan"></param> /// <returns></returns> public static int UpdateRecond(ProjectPlan projectPlan) { int count = 0; count = new DAL.ProjectPlan().UpdateRecond(projectPlan.ProjectPlanId, projectPlan.progress, projectPlan.RecordingDate, projectPlan.RecordingPlace, projectPlan.RecordingScriptHolder, projectPlan.RecordingLecture, projectPlan.RecordingFile, projectPlan.FileDeliverDate, projectPlan.RecordingNote); return(count); }
/// <summary> /// /// </summary> /// <param name="projectPlan"></param> /// <returns></returns> public static int Update(ProjectPlan projectPlan) { int count = 0; count = new DAL.ProjectPlan().Update(projectPlan.ProjectPlanId, projectPlan.ProjectPlanNo, projectPlan.Title, projectPlan.ProjectPlanTypeId, projectPlan.PlanDate, projectPlan.Category, projectPlan.CourseCount, projectPlan.Price, projectPlan.Source, projectPlan.Note, projectPlan.Lecturer, projectPlan.ExtraNote, projectPlan.RecordingPersonInCharge); return(count); }
public static int UpdateFinish(ProjectPlan projectPlan) { int count = 0; count = new DAL.ProjectPlan().Update(projectPlan.ProjectPlanId, projectPlan.progress); return(count); }
/// <summary> /// /// </summary> /// <param name="projectPlanId"></param> /// <returns></returns> public static ProjectPlan GetProjectPlan(Guid projectPlanId) { DataTable table = new DAL.ProjectPlan().Select(projectPlanId); ProjectPlan value = new ProjectPlan(); foreach (DataRow row in table.Rows) { Adapt.Convert.ConvertDataRowToObject(row, value); } return(value); }