示例#1
0
 public InterventionDayTrayTypeViewModel(InterventionDayTrayTypes model)
 {
     this.Id                = model.Id;
     this.TrayTypeId        = model.TrayTypeId;
     this.InterventionDayId = model.InterventionDayId;
     this.Active            = model.Active == "Y" ? true : false;
     this.DtCreated         = model.DtCreated;
     this.CreatedBy         = model.CreatedBy;
     this.DtModified        = model.DtModified;
     this.ModifiedBy        = model.ModifiedBy;
     this.InterventionDay   = model.InterventionDay;
     this.TrayType          = model.TrayType;
 }
示例#2
0
        public InterventionDayTrayTypes ConvertToInterventionDayTrayTypes()
        {
            var interventionDayTrayType = new InterventionDayTrayTypes
            {
                Id                = this.Id,
                TrayTypeId        = this.TrayTypeId,
                InterventionDayId = this.InterventionDayId,
                Active            = this.Active ? "Y" : "N",
                DtCreated         = this.DtCreated,
                CreatedBy         = this.CreatedBy,
                DtModified        = this.DtModified,
                ModifiedBy        = this.ModifiedBy,
                InterventionDay   = this.InterventionDay,
                TrayType          = this.TrayType
            };

            return(interventionDayTrayType);
        }