public override EmployeeDisciplineInfo CreateModel() { var model = new EmployeeDisciplineInfo(); CopyCstor.Copy <IEmployeeDisciplineWritable> (this, model); return(model); }
public override EduProgramDivisionInfo CreateModel() { var epd = new EduProgramDivisionInfo(); CopyCstor.Copy <IEduProgramDivisionWritable> (this, epd); return(epd); }
public override EduProgramProfileFormInfo CreateModel() { var model = new EduProgramProfileFormInfo(); CopyCstor.Copy <IEduProgramProfileFormWritable> (this, model); return(model); }
public override IEditModel <ScienceRecordInfo> Create(ScienceRecordInfo model, ViewModelContext context) { var editModel = CopyCstor.New <ScienceRecordEditModel, IScienceRecordWritable> (model); editModel.Context = context; editModel.ScienceRecordType_Type = model.ScienceRecordType.Type; return(editModel); }
public DocumentTypeInfo ToModel() { var document = new DocumentTypeInfo(); CopyCstor.Copy <IDocumentTypeWritable> (this, document); return(document); }
public override DocumentInfo CreateModel() { var model = new DocumentInfo(); CopyCstor.Copy <IDocumentWritable> (this, model); CopyCstor.Copy <IPublishableEntityWritable> (this, model); return(model); }
public override EduProgramProfileFormYearInfo CreateModel() { var model = new EduProgramProfileFormYearInfo(); CopyCstor.Copy <IEduProgramProfileFormYearWritable> (this, model); CopyCstor.Copy <IPublishableEntityWritable> (this, model); return(model); }
public override IEditModel <EduProgramProfileFormInfo> Create( EduProgramProfileFormInfo model, ViewModelContext context) { var viewModel = new EduProgramProfileFormEditModel(); CopyCstor.Copy <IEduProgramProfileFormWritable> (model, viewModel); viewModel.EduFormViewModel = new EduFormViewModel(model.EduForm, context); viewModel.Context = context; return(viewModel); }
public override IEditModel <OccupiedPositionInfo> Create(OccupiedPositionInfo model, ViewModelContext context) { var editModel = CopyCstor.New <OccupiedPositionEditModel, IOccupiedPositionWritable> (model); editModel.Context = context; editModel.PositionTitle = model.Position.Title; editModel.DivisionTitle = model.Division.Title; editModel.DivisionStartDate = model.Division.StartDate; editModel.DivisionEndDate = model.Division.EndDate; return(editModel); }
public override IEditModel <EduProgramDivisionInfo> Create(EduProgramDivisionInfo model, ViewModelContext context) { var viewModel = new EduProgramDivisionEditModel(); CopyCstor.Copy <IEduProgramDivisionWritable> (model, viewModel); viewModel.DivisionTitle = model.Division.Title; viewModel.StartDate = model.Division.StartDate; viewModel.EndDate = model.Division.EndDate; viewModel.Context = context; return(viewModel); }
public override IEditModel <EduProgramProfileFormYearInfo> Create( EduProgramProfileFormYearInfo model, ViewModelContext context) { var viewModel = new EduProgramProfileFormYearEditModel(); CopyCstor.Copy <IEduProgramProfileFormYearWritable> (model, viewModel); CopyCstor.Copy <IPublishableEntityWritable> (model, viewModel); viewModel.EduFormViewModel = new EduFormViewModel(model.EduForm, context); viewModel.YearString = model.Year.Year.ToString(); viewModel.Context = context; return(viewModel); }
public override IEditModel <DocumentInfo> Create(DocumentInfo model, ViewModelContext viewContext) { var viewModel = new DocumentEditModel(); CopyCstor.Copy <IDocumentWritable> (model, viewModel); CopyCstor.Copy <IPublishableEntityWritable> (model, viewModel); // FIXME: Context not updated for referenced viewmodels viewModel.DocumentTypeViewModel = new DocumentTypeViewModel(model.DocumentType, viewContext); viewModel.Context = viewContext; return(viewModel); }
public override IEditModel <EduProgramProfileFormYearInfo> Create( EduProgramProfileFormYearInfo model, ViewModelContext context) { var viewModel = new EduProgramProfileFormYearEditModel(); CopyCstor.Copy <IEduProgramProfileFormYearWritable> (model, viewModel); CopyCstor.Copy <IPublishableEntityWritable> (model, viewModel); viewModel.EduFormViewModel = new EduFormViewModel(model.EduForm, context); viewModel.HasEduVolume = model.EduVolume != null; viewModel.HasContingent = model.Contingent != null; viewModel.Context = context; return(viewModel); }
public override EmployeeAchievementInfo CreateModel() { var achievement = new EmployeeAchievementInfo(); CopyCstor.Copy <IEmployeeAchievementWritable> (this, achievement); if (achievement.AchievementID != null) { achievement.Title = null; achievement.ShortTitle = null; achievement.AchievementTypeId = null; } return(achievement); }
public override IEditModel <EmployeeDisciplineInfo> Create(EmployeeDisciplineInfo model, ViewModelContext context) { var viewModel = new EmployeeDisciplineEditModel(); CopyCstor.Copy <IEmployeeDisciplineWritable> (model, viewModel); viewModel.Code = model.EduProgramProfile.EduProgram.Code; viewModel.Title = model.EduProgramProfile.EduProgram.Title; viewModel.ProfileCode = model.EduProgramProfile.ProfileCode; viewModel.ProfileTitle = model.EduProgramProfile.ProfileTitle; viewModel.ProfileStartDate = model.EduProgramProfile.StartDate; viewModel.ProfileEndDate = model.EduProgramProfile.EndDate; viewModel.EduLevelString = UniversityFormatHelper.FormatShortTitle(model.EduProgramProfile.EduLevel.ShortTitle, model.EduProgramProfile.EduLevel.Title); return(viewModel); }
public override IEditModel <EmployeeAchievementInfo> Create(EmployeeAchievementInfo model, ViewModelContext context) { var viewModel = new EmployeeAchievementEditModel(); CopyCstor.Copy <IEmployeeAchievementWritable> (model, viewModel); viewModel.Context = context; if (model.Achievement != null) { viewModel.Title = model.Achievement.Title; viewModel.ShortTitle = model.Achievement.ShortTitle; viewModel.AchievementTypeId = model.Achievement.AchievementTypeId; if (model.Achievement.AchievementType != null) { viewModel.Type = model.Achievement.AchievementType.Type; } } else if (model.AchievementType != null) { viewModel.Type = model.AchievementType.Type; } return(viewModel); }
public EduFormViewModel(IEduFormWritable eduForm, ViewModelContext context) { CopyCstor.Copy <IEduFormWritable> (eduForm, this); Context = context; }
public AchievementTypeSerializationModel(IAchievementTypeWritable achievementType) { CopyCstor.Copy(achievementType, this); }
public override ScienceRecordInfo CreateModel() { return(CopyCstor.New <ScienceRecordInfo, IScienceRecordWritable> (this)); }
public DocumentTypeViewModel(IDocumentTypeWritable documentType, ViewModelContext context) { CopyCstor.Copy <IDocumentTypeWritable> (documentType, this); Context = context; }
public override OccupiedPositionInfo CreateModel() { return(CopyCstor.New <OccupiedPositionInfo, IOccupiedPositionWritable> (this)); }
public AchievementSerializationModel(IAchievementWritable achievement) { CopyCstor.Copy(achievement, this); }
public DivisionObrnadzorViewModel(DivisionInfo division, ViewModelContext <DivisionDirectorySettings> context) { CopyCstor.Copy <DivisionInfo> (division, this); Context = context; }