public virtual int Fill(ProductsDataSet.DocsBinTblDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByBarcode(ProductsDataSet.DocsBinTblDataTable dataTable, long barkod) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     this.Adapter.SelectCommand.Parameters[0].Value = ((long)(barkod));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByNavcode(ProductsDataSet.ProductsTblDataTable dataTable, string navcode) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((navcode == null)) {
         this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(navcode));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }