コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }