コード例 #1
0
 public ApproveActivityItem(IApproveActivityItemForManager item)
 {
     this.SubmissionId        = item.SubmissionId;
     this.SubmissionDate      = item.SubmissionDate;
     this.ActivityId          = item.ActivityId;
     this.ActivityName        = item.ActivityName;
     this.ActivityDescription = item.ActivityDescription;
     this.SubmissionNotes     = item.SubmissionNotes;
     this.EmployeeId          = item.EmployeeId;
     this.EmployeeADName      = item.EmployeeADName;
     this.EmployeeFirstName   = item.EmployeeFirstName;
     this.EmployeeLastName    = item.EmployeeLastName;
     this.Status       = item.Status;
     this.ApprovedById = item.ApprovedById;
     this.ApproveActivityBadgeCollection = item.ApproveActivityBadgeCollection;
     this.MarkAsChild();
     this.MarkClean();
 }
コード例 #2
0
 internal void Load(ApproveActivityItemDTO item)
 {
     using (this.BypassPropertyChecks)
     {
         this.SubmissionId        = item.SubmissionId;
         this.SubmissionDate      = item.SubmissionDate;
         this.ActivityId          = item.ActivityId;
         this.ActivityName        = item.ActivityName;
         this.ActivityDescription = item.ActivityDescription;
         this.SubmissionNotes     = item.SubmissionNotes;
         this.EmployeeId          = item.EmployeeId;
         this.EmployeeADName      = item.EmployeeADName;
         this.EmployeeFirstName   = item.EmployeeFirstName;
         this.EmployeeLastName    = item.EmployeeLastName;
         this.Status       = item.Status;
         this.ApprovedById = item.ApprovedById;
     }
     this.ApproveActivityBadgeCollection = new ApproveActivityBadgeCollection();
     ((ApproveActivityBadgeCollection)this.ApproveActivityBadgeCollection).LoadData(item.ApproveActivityBadgeItemCollection);
     this.MarkClean();
     this.MarkOld();
     this.MarkAsChild();
 }