public virtual int FillByID(dsCore.ItemsDataTable dataTable, int p1) {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(p1));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillDenormalized(dsCore.ItemsDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[4];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillActive(dsCore.CurrenciesDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByCode(dsCore.ItemsDataTable dataTable, string p1) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((p1 == null)) {
         throw new global::System.ArgumentNullException("p1");
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(p1));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillSalesQuotationAll(dsCore.OrdersDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[25];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillSalesQuotation(dsCore.OrdersDataTable dataTable, global::System.Nullable<global::System.DateTime> date1, global::System.Nullable<global::System.DateTime> date2) {
     this.Adapter.SelectCommand = this.CommandCollection[24];
     if ((date1.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[0].Value = ((System.DateTime)(date1.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     }
     if ((date2.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(date2.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillPurchaseInvoiceAll(dsCore.OrdersDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[13];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillOutstandingSalesInvoices(dsCore.OrdersDataTable dataTable, global::System.Nullable<int> p1) {
     this.Adapter.SelectCommand = this.CommandCollection[10];
     if ((p1.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[0].Value = ((int)(p1.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillDeveloper(dsCore.CompaniesDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[5];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }