示例#1
0
 public WorkRecord Update(WorkRecord workRecord)
 {
     workRecord.Journal = Journal;
     workRecord.Plan = Plan;
     workRecord.Summary = Summary;
     return workRecord;
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
 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;
 }