public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rprInventoryMutation rpt = new rprInventoryMutation();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        public static ReportDocument LoadInventoryMutation(int id)
        {
            ReportDocument rpt = new Inventory.rprInventoryMutation();
            dsReports      ds  = new dsReports();

            ds.EnforceConstraints = false;

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();

            ta.ClearBeforeFill = true;
            ta.Connection      = AppHelper.GetDbConnection();
            ta.FillByItemID(ds.DenormalizedOrders, id);

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

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            return(rpt);
        }
        public static ReportDocument LoadInventoryMutation(int id)
        {
            ReportDocument rpt = new Inventory.rprInventoryMutation();
            dsReports ds = new dsReports();
            ds.EnforceConstraints = false;

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();
            ta.ClearBeforeFill = true;
            ta.Connection = AppHelper.GetDbConnection();
            ta.FillByItemID(ds.DenormalizedOrders, id);

            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() {
     rprInventoryMutation rpt = new rprInventoryMutation();
     rpt.Site = this.Site;
     return rpt;
 }