Ejemplo n.º 1
0
 private void crystalRptCustomerLedger_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     btnViewReport_Click(null, null);
     //if(document != null)
     //{
     //    Utility.SetReportDefaultParameter(ref document);
     //}
 }
 private void CrvPurchasesByInvoice_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     crvPurchasesByInvoice.ReportSource = null;
     if (this.cbxSelectedInvoice.SelectedValue != null)
     {
         this.cryRpt.SetParameterValue(0, (int)this.cbxSelectedInvoice.SelectedValue);
     }
     crvPurchasesByInvoice.ReportSource = cryRpt;
 }
Ejemplo n.º 3
0
        private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            DTO.fThongKeNhaPhanPhoiDTO fthongkenhapp = new DTO.fThongKeNhaPhanPhoiDTO();
            DataTable table = fthongkenhapp.LayDS_NHAPHANPHOI();
            CrystalReport_tkNhaPhanPhoi report = new CrystalReport_tkNhaPhanPhoi();

            report.SetDataSource(table);
            crystalReportViewer1.ReportSource = report;
        }
Ejemplo n.º 4
0
        private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            DTO.fThongKeThucPhamDTO fthongkethucpham = new DTO.fThongKeThucPhamDTO();
            DataTable table = fthongkethucpham.LayDS_THUCPHAM();
            CrystalReport_tkThucPham report = new CrystalReport_tkThucPham();

            report.SetDataSource(table);
            crystalReportViewer1.ReportSource = report;
        }
        private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            DTO.fThongKeMonAnDTO  fthongkemonan = new DTO.fThongKeMonAnDTO();
            DataTable             table         = fthongkemonan.LayDS_MA();
            CrystalReport_tkMonAn report        = new CrystalReport_tkMonAn();

            report.SetDataSource(table);
            crystalReportViewer1.ReportSource = report;
        }
Ejemplo n.º 6
0
        private void crystalReportViewer2_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            DTO.fThongKeNhanVienDTO fthongkenhanvien = new DTO.fThongKeNhanVienDTO();
            DataTable table = fthongkenhanvien.LayDS_NHANVIEN();
            CrystalReport_tkNhanVien report = new CrystalReport_tkNhanVien();

            report.SetDataSource(table);
            crystalReportViewer2.ReportSource = report;
        }
        private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            e.Handled = true;

            ReportDocument report = (ReportDocument)this.crystalReportViewer1.ReportSource;

            report.Refresh();

            DateTime payDate = DateTime.Parse(this.payDatePicker.Text);

            Data.PayPeriod payPeriod = (from p in this._context.PayPeriods
                                        where p.payDate == payDate
                                        select p).SingleOrDefault();

            report.SetParameterValue("payPeriodid", payPeriod.payPeriodId);
            report.SetParameterValue("@payPeriodId", payPeriod.payPeriodId, "PtoSummarySubreport");
            report.SetParameterValue("@payPeriodId", payPeriod.payPeriodId, "BucketsSubreport");
        }
Ejemplo n.º 8
0
        private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            etx.SoPhieu = UCBanHang.MaHD;
            DataTable dt = new DataTable("ThongKe");

            dt = bus_px.ThongKe_In_Cafe(etx);
            TienHang.DataBindings.Clear();
            TienHang.DataBindings.Add("Text", dt, "TienHang");
            TongTien.DataBindings.Clear();
            TongTien.DataBindings.Add("Text", dt, "TongTien");
            etct.SoPhieu = UCBanHang.MaHD;
            crt_InHoaDonCaFe _InHDBan = new crt_InHoaDonCaFe();

            _InHDBan.SetDataSource(bus_pxct.In_Cafe(etct));
            _InHDBan.SetParameterValue("TienHang", TienHang.Text);
            _InHDBan.SetParameterValue("TongTien", TongTien.Text);
            crystalReportViewer1.ReportSource = _InHDBan;
        }
Ejemplo n.º 9
0
 private void CrystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
 }
Ejemplo n.º 10
0
 private void crystalRptCustomerLedger_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     btnViewReport_Click(null, null);
 }
Ejemplo n.º 11
0
 private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     crystalReportViewer1.ParameterFieldInfo[0].DefaultValues.AddValue(TransaksiTerbanyak());
 }
Ejemplo n.º 12
0
 private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     this.Text = "Infinity Chess - Print Game";
 }
 private void CrvPurchases_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     crvPurchases.ReportSource = null;
     this.cryRpt.SetParameterValue(0, (int)this.nudCollectorId.Value);
     crvPurchases.ReportSource = cryRpt;
 }
Ejemplo n.º 14
0
 private void OnReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
 {
     MessageBox.Show("Refresh clicked!");
 }