public override ActivityConfig.ActivityCodeOfficeTypeDataTable Load() { this.sqlDa.SelectCommand = sqlSelectAll; ActivityConfig.ActivityCodeOfficeTypeDataTable dt = new ActivityConfig.ActivityCodeOfficeTypeDataTable(); Fill(dt); return(dt); }
public ActivityConfig.ActivityCodeOfficeTypeDataTable LoadByOfficeTypeCode(string OfficeTypeCode) { this.sqlDa.SelectCommand = sqlSelect; this.sqlSelect.Parameters.Clear(); this.sqlSelect.CommandText = "[ActivityCodeOfficeTypeSelectByOfficeTypeCode]"; this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OfficeTypeCode", System.Data.SqlDbType.VarChar, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); this.sqlSelect.Parameters["@OfficeTypeCode"].Value = OfficeTypeCode; ActivityConfig.ActivityCodeOfficeTypeDataTable dt = new ActivityConfig.ActivityCodeOfficeTypeDataTable(); Fill(dt); return(dt); }