Beispiel #1
0
        public void LoadReport(BLL.SalesReturn data)
        {
            try
            {
                List <BLL.SalesReturn>       POList  = new List <BLL.SalesReturn>();
                List <BLL.SalesReturnDetail> PODList = new List <BLL.SalesReturnDetail>();
                List <BLL.CompanyDetail>     CList   = new List <BLL.CompanyDetail>();

                POList.Add(data);
                PODList.AddRange(data.SRDetails);
                CList.Add(BLL.UserAccount.Company);


                rptQuickSalesReturn.Reset();
                ReportDataSource data1 = new ReportDataSource("SalesReturn", POList);
                ReportDataSource data2 = new ReportDataSource("SalesReturnDetail", PODList);
                ReportDataSource data3 = new ReportDataSource("CompanyDetail", CList);

                rptQuickSalesReturn.LocalReport.DataSources.Add(data1);
                rptQuickSalesReturn.LocalReport.DataSources.Add(data2);
                rptQuickSalesReturn.LocalReport.DataSources.Add(data3);
                rptQuickSalesReturn.LocalReport.ReportPath = @"rpt\Transaction\rptSalesReturn.rdlc";

                rptQuickSalesReturn.RefreshReport();
            }
            catch (Exception ex)
            {
            }
        }
        public bool PORefNo_Filter(object obj)
        {
            try
            {
                BLL.SalesReturn PO = obj as BLL.SalesReturn;
                BLL.Customer    S  = cmbCustomer.SelectedItem as BLL.Customer;

                return(PO.CustomerId == S.Id);
            }
            catch (Exception ex) { }
            return(false);
        }