private void button1_Click(object sender, EventArgs e) { ReportClass reportClass = ViewReport(state); if (reportClass == null) { return; } FrmViewReporting frmViewReporting = new FrmViewReporting(reportClass); frmViewReporting.Show(); }
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(); } }
private void button1_Click(object sender, EventArgs e) { ReportClass reportClass = ViewReport(state); if (reportClass == null) { return; } if (StaticClass.mode == "AUT") { reportClass.DataSourceConnections[0].SetConnection(StaticClass.serverName, StaticClass.databaseName, true); } else if (StaticClass.mode == "SQL") { //reportClass.DataSourceConnections[0].SetConnection(StaticClass.serverName, StaticClass.databaseName, // StaticClass.userName, StaticClass.password); reportClass.SetDatabaseLogon(StaticClass.userName, StaticClass.password, StaticClass.serverName, StaticClass.databaseName, true); reportClass.DataSourceConnections[0].IntegratedSecurity = false; } FrmViewReporting frmViewReporting = new FrmViewReporting(reportClass); frmViewReporting.Show(); }
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(); } }
private void button1_Click(object sender, EventArgs e) { ReportClass reportClass= ViewReport(state); if (reportClass == null) return; if (StaticClass.mode == "AUT") { reportClass.DataSourceConnections[0].SetConnection(StaticClass.serverName, StaticClass.databaseName, true); } else if (StaticClass.mode == "SQL") { //reportClass.DataSourceConnections[0].SetConnection(StaticClass.serverName, StaticClass.databaseName, // StaticClass.userName, StaticClass.password); reportClass.SetDatabaseLogon(StaticClass.userName, StaticClass.password, StaticClass.serverName, StaticClass.databaseName, true); reportClass.DataSourceConnections[0].IntegratedSecurity = false; } FrmViewReporting frmViewReporting = new FrmViewReporting(reportClass); frmViewReporting.Show(); }
private void button1_Click(object sender, EventArgs e) { ReportClass reportClass= ViewReport(state); if (reportClass == null) return; FrmViewReporting frmViewReporting = new FrmViewReporting(reportClass); frmViewReporting.Show(); }