public static int UpdateCheck(CustomProject project) { int count = 0; count = new DAL.CustomProject().UpdateCheck(project.CustomProjectId, project.Progress, project.Checker, project.CheckDate, project.CheckNote, project.CategoryCheck); return(count); }
public static int UpdatePublish(CustomProject project) { int count = 0; count = new DAL.CustomProject().UpdatePublish(project.CustomProjectId, project.Progress, project.Publisher, project.PublishDate, project.PublishNote, project.PublishCheck); return(count); }
public static int UpdateOperation(CustomProject project) { int count = 0; count = new DAL.CustomProject().UpdateOperation(project.CustomProjectId, project.Progress, project.FinishDate, project.OperationNote); return(count); }
public static int UpdateReceive(CustomProject project) { int count = 0; count = new DAL.CustomProject().UpdateReceive(project.CustomProjectId, project.Progress, project.Signer, project.ReceiveDate, project.ReceiveNote, project.Operator); return(count); }
public static int Insert(CustomProject customProject) { int count = 0; count = new DAL.CustomProject().Insert(customProject.CustomProjectId, customProject.No, customProject.ProjectPlanId, customProject.SendingDate , customProject.Title, customProject.CourseAmount, customProject.Lecturer, customProject.LecturerJob, customProject.CourseSource , customProject.Category, customProject.PublishNeeds, customProject.Note, customProject.ExtraNote, customProject.Progress); return(count); }
public static CustomProject GetCustomProject(Guid CustomProjectId) { DataTable table = new DAL.CustomProject().SelectId(CustomProjectId); CustomProject value = new CustomProject(); foreach (DataRow row in table.Rows) { Adapt.Convert.ConvertDataRowToObject(row, value); } return(value); }