public static DsReports.RptPurchaseReturnDataTable ReturnPurchasingRpt(string purinvId) { var ta = new RptPurchaseReturnTableAdapter { Connection = { ConnectionString = _constr } }; var ds = new DsReports.RptPurchaseReturnDataTable(); ta.Fill(ds, purinvId); return ds; }
public DsReports.RptPurchaseReturnDataTable RptPurchaseInv(string purinv, string comp) { var ta = new RptPurchaseReturnTableAdapter{Connection = {ConnectionString = _constr}}; var ds = new DsReports(); ta.Fill(ds.RptPurchaseReturn, purinv); return ds.RptPurchaseReturn; }