/// <summary> /// Instantiate a new AjaxTask object from the database. /// </summary> /// <param name="guid">The GUID to use when loading from the database.</param> public AjaxTask(Guid guid) { ArrayList parms = new ArrayList(); SqlDataReader rdr; InitBasic(); // // Run the stored procedure to load the task. // parms.Add(new SqlParameter("@Guid", guid)); rdr = new OrganizationData().ExecuteReader("cust_rc_util_sp_getAjaxTaskByGUID", parms); if (rdr.Read()) { InitReader(rdr); } rdr.Close(); }
private bool Registered(int personId, int profileId) { bool registered = false; ArrayList lst = new ArrayList(); lst.Add(new SqlParameter("PersonID", personId)); lst.Add(new SqlParameter("ParentProfileID", profileId)); SqlDataReader rdr = new OrganizationData().ExecuteReader("cust_ccv_sp_personInvolvementRegistered", lst); if (rdr.Read()) { if (rdr["start"] != DBNull.Value) { registered = true; } } rdr.Close(); return(registered); }