private void ExportPrint()
        {
            SalesReport br = new SalesReport();
            dsSales     ds = new dsSales();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(SearchedList));
            ds.Tables[0].TableName = "dtSales";

            //ds.AcceptChanges();

            br.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(br))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }
예제 #2
0
        private void ExportPrint()
        {
            InOutSemiProductWarehouseReport br = new InOutSemiProductWarehouseReport();
            dsStockReceipt ds = new dsStockReceipt();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(SearchedList));
            ds.Tables[0].TableName = "dtStockReceipt";

            //ds.AcceptChanges();

            br.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(br))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }
예제 #3
0
        private void ExportPrint()
        {
            WorkReport wr = new WorkReport();
            dsWork     ds = new dsWork();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(searchedlist));
            ds.Tables.Add(UtilClass.ConvertToDataTable(produces));
            ds.Tables[0].TableName = "dtWork";
            ds.Tables[1].TableName = "dtWorkDetail";
            ds.Relations.Add("dtWork_dtWorkDetail", ds.Tables[0].Columns["Work_ID"], ds.Tables[1].Columns["ProduceWork_ID"]);

            wr.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(wr))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }
        private void ExportPrint()
        {
            OrderCompletedReport br = new OrderCompletedReport();
            dsOrder ds = new dsOrder();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(SearchedList));
            ds.Tables.Add(UtilClass.ConvertToDataTable(OrderDetail_AllList));
            ds.Tables[0].TableName = "dtOrder";
            ds.Tables[1].TableName = "dtOrderDetail";
            ds.Relations.Add("dtOrder_dtOrderDetail", ds.Tables[0].Columns["Order_ID"], ds.Tables[1].Columns["Order_ID"]);

            br.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(br))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }
예제 #5
0
        private void ExportPrint()
        {
            ProduceReport pr = new ProduceReport();
            dsProduce     ds = new dsProduce();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(searchedlist));
            ds.Tables.Add(UtilClass.ConvertToDataTable(performances));
            ds.Tables[0].TableName = "dtProduce";
            ds.Tables[1].TableName = "dtProduceDetail";
            ds.Relations.Add("dtProduce_dtProduceDetail", ds.Tables[0].Columns["Produce_ID"], ds.Tables[1].Columns["PerformanceProduce_ID"]);

            pr.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(pr))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }
        private void ExportPrint()
        {
            ShipmentReport br = new ShipmentReport();
            dsShipment     ds = new dsShipment();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(SearchedList));
            ds.Tables.Add(UtilClass.ConvertToDataTable(ShipmentDetail_AllList));
            ds.Tables[0].TableName = "dtShipment";
            ds.Tables[1].TableName = "dtShipmentDetail";
            ds.Relations.Add("dtShipment_dtShipmentDetail", ds.Tables[0].Columns["Shipment_ID"], ds.Tables[1].Columns["Shipment_ID"]);

            //ds.AcceptChanges();

            br.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(br))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }
        private void ExportPrint()
        {
            BaljuCompletedReport br = new BaljuCompletedReport();
            dsBalju ds = new dsBalju();

            ds.Relations.Clear();
            ds.Tables.Clear();
            ds.Tables.Add(UtilClass.ConvertToDataTable(SearchedList));
            ds.Tables.Add(UtilClass.ConvertToDataTable(BaljuDetail_AllList));
            ds.Tables[0].TableName = "dtBalju";
            ds.Tables[1].TableName = "dtBalju_Detail";
            ds.Relations.Add("dtBalju_dtBalju_Detail", ds.Tables[0].Columns["Balju_ID"], ds.Tables[1].Columns["Balju_ID"]);

            //ds.AcceptChanges();

            br.DataSource = ds;
            using (ReportPrintTool printTool = new ReportPrintTool(br))
            {
                printTool.ShowRibbonPreviewDialog();
            }
        }