예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptDeliveryOrderForm rpt = new rptDeliveryOrderForm();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        public static ReportDocument LoadDeliveryOrderForm(string code)
        {
            ReportDocument rpt = new Forms.rptDeliveryOrderForm();
            dsReports ds = new dsReports();

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

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

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            return rpt;
        }
예제 #3
0
        public static ReportDocument LoadDeliveryOrderForm(int id)
        {
            ReportDocument rpt = new Forms.rptDeliveryOrderForm();
            dsReports ds = new dsReports();

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

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

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            return rpt;
        }
예제 #4
0
        public static ReportDocument LoadDeliveryOrderForm(string code)
        {
            ReportDocument rpt = new Forms.rptDeliveryOrderForm();
            dsReports      ds  = new dsReports();

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();

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

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

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            return(rpt);
        }
예제 #5
0
        public static ReportDocument LoadDeliveryOrderForm(int id)
        {
            ReportDocument rpt = new Forms.rptDeliveryOrderForm();
            dsReports      ds  = new dsReports();

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();

            ta.ClearBeforeFill = true;
            ta.Connection      = AppHelper.GetDbConnection();
            ta.FillByID(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() {
     rptDeliveryOrderForm rpt = new rptDeliveryOrderForm();
     rpt.Site = this.Site;
     return rpt;
 }