Exemplo n.º 1
0
 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;
 }