public virtual int FillBy(ACMSDataSet1.tblWorkFlowDataTable dataTable, global::System.Nullable<int> nDepartmentID) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((nDepartmentID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[0].Value = ((int)(nDepartmentID.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 Fill(ACMSDataSet1.tblWorkFlowDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }