Ejemplo n.º 1
0
 public virtual WizLogisticsDataSet.RejectedReasonsDataTable GetData(int?UserID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (!UserID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)DBNull.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)UserID.Value;
     }
     WizLogisticsDataSet.RejectedReasonsDataTable reasonsDataTable = new WizLogisticsDataSet.RejectedReasonsDataTable();
     this.Adapter.Fill((DataTable)reasonsDataTable);
     return(reasonsDataTable);
 }
Ejemplo n.º 2
0
 public virtual int Fill(WizLogisticsDataSet.RejectedReasonsDataTable dataTable, int?UserID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (!UserID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)DBNull.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)UserID.Value;
     }
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill((DataTable)dataTable));
 }