public ClientReportService(string jobNumber, BudgetDataProvider dataProvider)
 {
     _jobNumber    = jobNumber;
     _dataProvider = dataProvider;
     //_dataRepository = dataRepository;
     //_modelReportingService = modelReportingService;
 }
Exemplo n.º 2
0
 //CONSTRUCTOR
 public CostCodeReport(string jobNumber, ReportModel ReportModel, BudgetDataProvider dataProvider)
 {
     _jobNumber    = jobNumber;
     _dataProvider = dataProvider;
     _reportModel  = ReportModel;
     // _reportedSystemsDictionary = _reportModel.Systems.ToDictionary(p => p.Name, p => p);
 }
Exemplo n.º 3
0
        //public bool CacheWasLoaded { get; set; } = false;

        private void RibbonBudgetTab_Load(object sender, RibbonUIEventArgs e)
        {
            btnSaveCompletedReport.Visible = false;
            _dataProvider = new BudgetDataProvider();
            Task.Run(() =>
            {
                _dataProvider.LoadData();
                _dataProvider.UsingExternalCache = ProbeSpectrumDatabase();
            });
        }
Exemplo n.º 4
0
        public CostCodeDataService(string jobNumber, BudgetDataProvider dataProvider)
        {
            _jobNumber    = jobNumber;
            _dataProvider = dataProvider;


            try
            {
                //Attempt to populate the connection strings.
                estimateDatabaseString = ConnectionStringService.GetConnectionString("Estimate");
                spectrumDatabaseString = ConnectionStringService.GetConnectionString("Spectrum");
                //Initialize the external data cache service
                externalDataCache = new ExternalCacheService(_jobNumber, _dataProvider);
            }
            catch (Exception e)
            {
                MessageBox.Show("There was a problem loading the file 'Estimating.ProgressReporter.CostCodeDataService' " + e.Message);
                throw;
            }
        }
 public ModelReportingService(ReportModel reportModel, BudgetDataProvider dataProvider)
 {
     _reportModel  = reportModel;
     _dataProvider = dataProvider;
 }
        //CONSTRUCTOR
        public static ModelReportingService LoadModelReportingService(EstimateModel estimateModel, ReportModel reportModel, BudgetDataProvider dataProvider)
        {
            ModelReportingService modelReportingService = new ModelReportingService();

            modelReportingService._reportModel   = reportModel;
            modelReportingService._estimateModel = estimateModel;
            modelReportingService._dataProvider  = dataProvider;

            try
            {
                modelReportingService.GenerateModelReport();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

            return(modelReportingService);
        }
Exemplo n.º 7
0
 public ExternalCacheService(string jobNumber, BudgetDataProvider dataProvider)
 {
     _jobNumber    = jobNumber;
     _dataProvider = dataProvider;
     FilterCache(jobNumber);
 }