Example #1
0
 public TrayTypeViewModel(TrayTypes model)
 {
     this.Id         = model.Id;
     this.Type       = model.Type;
     this.Active     = model.Active == "Y" ? true : false;
     this.DtCreated  = model.DtCreated;
     this.CreatedBy  = model.CreatedBy;
     this.DtModified = model.DtModified;
     this.ModifiedBy = model.ModifiedBy;
 }
Example #2
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;
 }
Example #3
0
        public TrayTypes ConvertToTrayTypes()
        {
            var trayType = new TrayTypes
            {
                Id         = this.Id,
                Type       = this.Type,
                Active     = this.Active ? "Y" : "N",
                DtCreated  = this.DtCreated,
                CreatedBy  = this.CreatedBy,
                DtModified = this.DtModified,
                ModifiedBy = this.ModifiedBy
            };

            return(trayType);
        }