예제 #1
0
 public virtual WizLogisticsDataSet.SupplyOrderLinesDataTable GetData(long?SupplyOrderID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (!SupplyOrderID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)DBNull.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)SupplyOrderID.Value;
     }
     WizLogisticsDataSet.SupplyOrderLinesDataTable orderLinesDataTable = new WizLogisticsDataSet.SupplyOrderLinesDataTable();
     this.Adapter.Fill((DataTable)orderLinesDataTable);
     return(orderLinesDataTable);
 }
예제 #2
0
 public virtual int Fill(WizLogisticsDataSet.SupplyOrderLinesDataTable dataTable, long?SupplyOrderID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (!SupplyOrderID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)DBNull.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = (object)SupplyOrderID.Value;
     }
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill((DataTable)dataTable));
 }