コード例 #1
0
 public virtual WizLogisticsDataSet.WarehousesDataTable 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.WarehousesDataTable warehousesDataTable = new WizLogisticsDataSet.WarehousesDataTable();
     this.Adapter.Fill((DataTable)warehousesDataTable);
     return(warehousesDataTable);
 }
コード例 #2
0
 public virtual int Fill(WizLogisticsDataSet.WarehousesDataTable 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));
 }