Beispiel #1
0
        private void AddReportFromLastCheckpoint()
        {
            ProfitAccountingCheckpoint testCP = WsdlRepository.GetProfitAccountingReport(Int32.Parse(StationRepository.GetUid(ChangeTracker.CurrentUser).location_id.ToString()), StationRepository.StationNumber, null, null);

            if (testCP != null)
            {
                testCP.general.endDate = DateTime.Now;
                Checkpoints.Insert(0, new CheckpointModel {
                    ProfitAccountingCheckpoint = testCP, IsLastCheckpoint = true
                });

                AccountingModel = testCP.location.model;
            }

            if (Checkpoints.Count > 0)
            {
                SelectedCheckpoint = Checkpoints.ElementAt(0);
            }
        }