Exemplo n.º 1
0
        private void ShowReport(string ReportName)
        {
            ReportDetail.ReportTitle = ReportName;
            int Reports = 1;


            if (ReportName == "Sales Voucher")
            {
                ReportDetail.ReportName = "TallySalesVoucher";
            }
            else if (ReportName == "Detailed Daily Report")
            {
                ReportDetail.ReportName = "DetailedDaily";
            }
            else if (ReportName == "Productwise Sales Report")
            {
                ReportDetail.ReportName = "ProductwiseSales";
            }
            else if (ReportName == "Catering Levy Report")
            {
                ReportDetail.ReportName = "CESS";
            }
            else if (ReportName == "Catering Levy Category Wise Report")
            {
                ReportDetail.ReportName = "CESS_Category";
            }
            else if (ReportName == "Mode of Payment Report")
            {
                ReportDetail.ReportName = "ModeOfPayment";
            }
            else if (ReportName == "Catering Levy Summary")
            {
                ReportDetail.ReportName = "CESS";
            }
            else if (ReportName == "Catering Levy Summary Category Wise")
            {
                ReportDetail.ReportName = "CESS_Category";
            }
            else if (ReportName == "Sales Summary by Payment Method")
            {
                ReportDetail.ReportName = "ModeOfPayment";
            }
            else if (ReportName == "Invoicewise Tax Summary Report")
            {
                ReportDetail.ReportName = "CESS_Detail";
            }
            else if (ReportName == "Detailed Sales Summary by Product")
            {
                ReportDetail.ReportName = "DetailSaleSummaryReport";
            }
            else if (ReportName == "Master Sales")
            {
                ReportDetail.ReportName = "MasterSale";
            }
            else if (ReportName == "Sales by Category Product qty desc")
            {
                ReportDetail.ReportName = "SalesByCategoryProductQtyDesc";
            }
            else if (ReportName == "Sales by Category Product qty asc")
            {
                ReportDetail.ReportName = "SalesByCategoryProductQtyAsc";
            }
            else if (ReportName == "Sales By Catrgory Product Amount desc")
            {
                ReportDetail.ReportName = "SalesByCategoryProductAmountDesc";
            }
            else if (ReportName == "Sales by Section Category Product Amount asc")
            {
                ReportDetail.ReportName = "SalesBySectionCategoryProductAmountAsc";
            }
            else if (ReportName == "Sales by Section Category Product Amount desc")
            {
                ReportDetail.ReportName = "SalesBySectionCategoryProductAmountDesc";
            }
            else if (ReportName == "Sales by Section Category Product qty asc")
            {
                ReportDetail.ReportName = "SalesBySectionCategoryProductQtyAsc";
            }
            else if (ReportName == "Sales by Section Category Product qty desc")
            {
                ReportDetail.ReportName = "SalesBySectionCategoryProductQtyDesc";
            }
            else if (ReportName == "Sales by Section Catrgory")
            {
                ReportDetail.ReportName = "SalesBySectionCategory";
            }
            else if (ReportName == "Sales by Section Product Amount desc")
            {
                ReportDetail.ReportName = "SalesBySectionProductAmountDesc";
            }
            else if (ReportName == "Sales by Section Product qty desc")
            {
                ReportDetail.ReportName = "SalesBySectionProductQtyDesc";
            }
            else if (ReportName == "Table Statistics")
            {
                ReportDetail.ReportName = "TableStatistics";
            }
            else if (ReportName == "Sales Summary by Product Category")
            {
                ReportDetail.ReportName = "SalesSummarybyProductCategory";
            }
            else if (ReportName == "Sales Summary by Product")
            {
                ReportDetail.ReportName = "SalesSummarybyProduct";
            }
            else if (ReportName == "Sales Summary by Section")
            {
                ReportDetail.ReportName = "SalesSummarybySection";
            }
            else if (ReportName == "Customer Reward")
            {
                ReportDetail.ReportName = "CustomerReward";
            }
            else if (ReportName == "Sales Summary by Hour")
            {
                ReportDetail.ReportName = "SalesSummarybyHour";
            }
            else if (ReportName == "Sales Summary by Weeks")
            {
                ReportDetail.ReportName = "SalesSummaryFiveWeeks";
            }
            else
            {
                Reports = 0;
            }

            if (Reports == 0)
            {
                txtReportPreview.Visibility = Visibility.Visible;
                txtReportPreview.Height     = 40;
                FrameHeader.Visibility      = Visibility.Hidden;
            }
            else
            {
                FrameHeader.Navigate(new PReportHeader());
            }
        }
Exemplo n.º 2
0
 private void txtModeOdPayment_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     ReportDetail.ReportName = "ModeOfPayment";
     FrameHeader.Navigate(new PReportHeader());
 }