public DsReports.ITEMTRANSFERMAINLISTDataTable ItemTranferMainListForHist(bool frmstore, DateTime d1, DateTime d2, bool useothercomp = false, string concomp = "P", string concode = "") { var ta = new ITEMTRANSFERMAINLISTTableAdapter { Connection = {ConnectionString = useothercomp ? concomp : _constr} }; var ds = new DsReports().ITEMTRANSFERMAINLIST; if (frmstore) { ta.FillByTransferByDate(ds, useothercomp ? concode : Utils.Company, d1, d2); } else { ta.FillByReceivedByDate(ds, useothercomp ? concode : Utils.Company, d1, d2); } return ds; }
public DsReports.ITEMTRANSFERMAINLISTDataTable ItemTranferMainListForHist(bool frmstore) { var ta = new ITEMTRANSFERMAINLISTTableAdapter {Connection = {ConnectionString = _constr}}; var ds = new DsReports().ITEMTRANSFERMAINLIST; if (frmstore) { ta.FillByTransfer(ds, Utils.Company); } else { ta.Fill(ds, Utils.Company); } return ds; }