Beispiel #1
0
        public void GetStatistic()
        {
            var service = new SalesStatistic_Service();

            service.UseDefaultCredentials = true;

            List <SalesStatistic_Filter> StatisticFilterArray = new List <SalesStatistic_Filter>();

            SalesStatistic_Filter DocTypeFilter = new SalesStatistic_Filter();

            DocTypeFilter.Field    = SalesStatistic_Fields.Document_Type;
            DocTypeFilter.Criteria = Document_Type.Order.ToString();
            StatisticFilterArray.Add(DocTypeFilter);

            SalesStatistic_Filter DocNo = new SalesStatistic_Filter();

            DocNo.Field    = SalesStatistic_Fields.No;
            DocNo.Criteria = orderno;
            StatisticFilterArray.Add(DocNo);

            SalesStatistic[] Result = service.ReadMultiple(StatisticFilterArray.ToArray(), "", 10);

            dataGridView1.DataSource = Result;
            dataGridView1.Update();
        }
Beispiel #2
0
        public decimal GetStatisticAmountExclVat()
        {
            var service = new SalesStatistic_Service();

            service.UseDefaultCredentials = true;

            List <SalesStatistic_Filter> StatisticFilterArray = new List <SalesStatistic_Filter>();

            SalesStatistic_Filter DocTypeFilter = new SalesStatistic_Filter();

            DocTypeFilter.Field    = SalesStatistic_Fields.Document_Type;
            DocTypeFilter.Criteria = Document_Type.Order.ToString();
            StatisticFilterArray.Add(DocTypeFilter);

            SalesStatistic_Filter DocNo = new SalesStatistic_Filter();

            DocNo.Field    = SalesStatistic_Fields.No;
            DocNo.Criteria = orderno;
            StatisticFilterArray.Add(DocNo);

            SalesStatistic[] Result = service.ReadMultiple(StatisticFilterArray.ToArray(), "", 10);

            return(Result.FirstOrDefault().TotalInclVAT_Invoicing);
        }