public override ActivityConfig.ActivityCompletedDataTable Load() { this.sqlDa.SelectCommand = sqlSelectAll; ActivityConfig.ActivityCompletedDataTable dt = new ActivityConfig.ActivityCompletedDataTable(); Fill(dt); return(dt); }
public ActivityConfig.ActivityCompletedDataTable Load(int CACompletedID) { this.sqlDa.SelectCommand = sqlSelect; this.sqlSelect.Parameters.Clear(); this.sqlSelect.CommandText = "[ActivityCompletedSelectByCACompletedID]"; 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("@CACompletedID", System.Data.SqlDbType.Int, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); this.sqlSelect.Parameters["@CACompletedID"].Value = CACompletedID; ActivityConfig.ActivityCompletedDataTable dt = new ActivityConfig.ActivityCompletedDataTable(); Fill(dt); return(dt); }