コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rprPurchaseByVendor rpt = new rprPurchaseByVendor();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        public static ReportDocument LoadPurchaseByVendor(DateTime date1, DateTime date2)
        {
            ReportDocument rpt = new Purchasing.rprPurchaseByVendor();
            dsReports      ds  = new dsReports();

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();

            ta.ClearBeforeFill = true;
            ta.Connection      = AppHelper.GetDbConnection();
            ta.FillByDate(ds.DenormalizedOrders, TransactionTypes.TX_PURCHASE_ORDER, date1, date2);

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

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            rpt.ParameterFields["@Date1"].CurrentValues.AddValue(date1);
            rpt.ParameterFields["@Date2"].CurrentValues.AddValue(date2);
            return(rpt);
        }
コード例 #3
0
        public static ReportDocument LoadPurchaseByVendor(DateTime date1, DateTime date2)
        {
            ReportDocument rpt = new Purchasing.rprPurchaseByVendor();
            dsReports ds = new dsReports();

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();
            ta.ClearBeforeFill = true;
            ta.Connection = AppHelper.GetDbConnection();
            ta.FillByDate(ds.DenormalizedOrders, TransactionTypes.TX_PURCHASE_ORDER, date1, date2);

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

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            rpt.ParameterFields["@Date1"].CurrentValues.AddValue(date1);
            rpt.ParameterFields["@Date2"].CurrentValues.AddValue(date2);
            return rpt;
        }
コード例 #4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rprPurchaseByVendor rpt = new rprPurchaseByVendor();
     rpt.Site = this.Site;
     return rpt;
 }