Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            POSReport.Report.rptDetailSaleReport_2 DetailSaleReport = new rptDetailSaleReport_2();
            string[] pa = { "@Store_ID", "@DateTime1", "@DateTime2", "@Status", "@Cashier_ID", "Report Title", };

            object[] value = { StaticClass.storeId, startDate, endDate, "C", StaticClass.cashierId, "Báo cáo bán hàng chi tiết trong ngày" };
            serviceGet.FillDataReport(DetailSaleReport, pa, value, true);
            ReportClass reportClass = DetailSaleReport;

            if (reportClass == null)
            {
                this.Dispose();
            }
            //FrmViewReporting frmViewReporting = new FrmViewReporting(reportClass);
            //frmViewReporting.Show();
            Utilities.Utils.Print(reportClass, Printer.PrinterHoadon);
            this.Dispose();
        }
Exemplo n.º 2
0
        private void xemSốTiềnBánTrongNgàyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Alert.ShowClockInRequest())
            {
                DateTime DateTime1 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0);

                DateTime DateTime2 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
                POSReport.Report.rptDetailSaleReport_2 DetailSaleReport = new rptDetailSaleReport_2();
                string[] pa = { "@Store_ID", "@DateTime1", "@DateTime2", "@Status", "@Cashier_ID", "Report Title", };

                object[] value = { StaticClass.storeId, DateTime1, DateTime2, "C", StaticClass.cashierId, "Báo cáo bán hàng chi tiết trong ngày" };
                test.FillDataReport(DetailSaleReport, pa, value, true);
                ReportClass reportClass = DetailSaleReport;
                if (reportClass == null)
                {
                    return;
                }
                FrmViewReporting frmViewReporting = new FrmViewReporting(reportClass);
                frmViewReporting.Show();
            }
        }