public WorkRecord Update(WorkRecord workRecord) { workRecord.Journal = Journal; workRecord.Plan = Plan; workRecord.Summary = Summary; return workRecord; }
public static UpdateWorkRecord CreateUpdateWorkRecord(WorkRecord workRecord) { var updateWorkRecord = new UpdateWorkRecord(); updateWorkRecord.ID = workRecord.ID; updateWorkRecord.Journal = workRecord.Journal; updateWorkRecord.Summary = workRecord.Summary; updateWorkRecord.Plan = workRecord.Plan; return updateWorkRecord; }
public WorkRecord CreateWorkRecord(Guid accountId) { var workRecord = new WorkRecord(); workRecord.ID = Guid.NewGuid(); workRecord.AccountId = accountId; workRecord.CreateTime = DateTime.Now; workRecord.Journal = Journal; workRecord.Plan = Plan; workRecord.Summary = Summary; return workRecord; }
public static ShowWorkRecord CreateWorkRecord(WorkRecord workRecord, Account account) { var showWorkRecord = new ShowWorkRecord(); showWorkRecord.ID = workRecord.ID; showWorkRecord.CreateTime = workRecord.CreateTime.ToString("yy-MM-dd HH:mm"); showWorkRecord.Journal = workRecord.Journal; showWorkRecord.Plan = workRecord.Plan; showWorkRecord.Summary = workRecord.Summary; showWorkRecord.AccountId = account.ID; showWorkRecord.AccountName = account.Name; return showWorkRecord; }