Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptPurchaseInvoiceForm rpt = new rptPurchaseInvoiceForm();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        public static ReportDocument LoadPurchaseInvoiceForm(string code)
        {
            ReportDocument rpt = new Forms.rptPurchaseInvoiceForm();
            dsReports      ds  = new dsReports();

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();

            ta.ClearBeforeFill = true;
            ta.Connection      = AppHelper.GetDbConnection();
            ta.FillByOrderNo(ds.DenormalizedOrders, code, TransactionTypes.TX_PURCHASE_INVOICE);

            if (ds.DenormalizedOrders.Rows.Count <= 0)
            {
                FillNoData(ds.DenormalizedOrders);
            }

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            return(rpt);
        }
Esempio n. 3
0
        public static ReportDocument LoadPurchaseInvoiceForm(string code)
        {
            ReportDocument rpt = new Forms.rptPurchaseInvoiceForm();
            dsReports ds = new dsReports();

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();
            ta.ClearBeforeFill = true;
            ta.Connection = AppHelper.GetDbConnection();
            ta.FillByOrderNo(ds.DenormalizedOrders, code, TransactionTypes.TX_PURCHASE_INVOICE);

            if (ds.DenormalizedOrders.Rows.Count <= 0)
                FillNoData(ds.DenormalizedOrders);

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            return rpt;
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rptPurchaseInvoiceForm rpt = new rptPurchaseInvoiceForm();
     rpt.Site = this.Site;
     return rpt;
 }