protected override void OnSelectedEntityChanged() { base.OnSelectedEntityChanged(); QuickLetter.Entity = SelectedEntity; QuickLetter.RaisePropertyChanged(x => x.Entity); if (SelectedEntity != null) { EntityPanelViewModel.Entity = SelectedEntity; } SetDefaultReport(ReportInfoFactory.EmployeeProfile(SelectedEntity)); TableViewSelectedEntity = SelectedEntity; CardViewSelectedEntity = SelectedEntity; }
protected override void OnEntityChanged() { base.OnEntityChanged(); Contacts.Entity = Entity; QuickLetter.Entity = Entity; SetDefaultReport(ReportInfoFactory.EmployeeProfile(Entity)); #if !DXCORE3 EmployeeAssignedTasksDetails.UpdateFilter(); #endif if (Entity != null) { Logger.Log(string.Format("OutlookInspiredApp: Edit Employee: {0}", string.IsNullOrEmpty(Entity.FullName) ? "<New>" : Entity.FullName)); } }
IReportInfo GetReport(EmployeeReportType reportType) { Logger.Log(string.Format("HybridApp: Create Report : Employees: {0}", reportType.ToString())); switch (reportType) { case EmployeeReportType.TaskList: return(ReportInfoFactory.EmployeeTaskList(UnitOfWorkFactory.CreateUnitOfWork().Tasks.ToList())); case EmployeeReportType.Profile: return(ReportInfoFactory.EmployeeProfile(SelectedEntity)); case EmployeeReportType.Summary: return(ReportInfoFactory.EmployeeSummary(Entities)); case EmployeeReportType.Directory: return(ReportInfoFactory.EmployeeDirectory(Entities)); } throw new ArgumentException("", "reportType"); }
public void PrintEmployeeProfile() { ShowReport(ReportInfoFactory.EmployeeProfile(Entity), "Profile"); }
public void ShowProfile() { Logger.Log("HybridApp: Create Report : Employee: Profile"); DocumentManagerService.CreateDocument("ReportPreview", ReportPreviewViewModel.Create(ReportInfoFactory.EmployeeProfile(Entity)), null, this).Show(); }