protected void StatusBasedOnCamperTimeInCampWithOutCamp(string FJCID, out int StatusValue) { CamperApplication oCA = new CamperApplication(); DataSet ds = oCA.GetCamperTimeInCampWithOutCamp(FJCID); StatusValue = Convert.ToInt32(StatusInfo.SystemInEligible); if (ds.Tables[0].Rows.Count > 0) { DataRow dr = ds.Tables[0].Rows[0]; if (!DBNull.Value.Equals(dr["TimeInCampEligible"])) { if (dr["TimeInCampEligible"].ToString() == "1") { StatusValue = (int)StatusInfo.SystemEligible; } else if (dr["TimeInCampEligible"].ToString() == "43") { StatusValue = (int)StatusInfo.EligiblePendingNumberOfDays; } } } }