コード例 #1
0
 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;
 }
コード例 #2
0
        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));
            }
        }
コード例 #3
0
        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");
        }
コード例 #4
0
 public void PrintEmployeeProfile()
 {
     ShowReport(ReportInfoFactory.EmployeeProfile(Entity), "Profile");
 }
コード例 #5
0
        public void ShowProfile()
        {
            Logger.Log("HybridApp: Create Report : Employee: Profile");

            DocumentManagerService.CreateDocument("ReportPreview", ReportPreviewViewModel.Create(ReportInfoFactory.EmployeeProfile(Entity)), null, this).Show();
        }