Ejemplo n.º 1
0
        public static void checkEligibilityDays2(string FJCID, int CampDays, out int StatusValue)
        {
            CamperApplication oCA           = new CamperApplication();
            decimal           StandardGrant = 0;
            bool SecondApprovalNeeded       = false;

            DataSet dsCamperApplication;

            dsCamperApplication = oCA.getCamperApplication(FJCID);
            DataRow drCamper;

            if (dsCamperApplication.Tables[0].Rows.Count > 0)
            {
                drCamper = dsCamperApplication.Tables[0].Rows[0];
                if (!Convert.IsDBNull(drCamper["SecondApproval"]))
                {
                    SecondApprovalNeeded = Convert.ToBoolean(drCamper["SecondApproval"]);
                }
            }

            StandardGrant = oCA.getCamperGrantForDays(FJCID, CampDays);

            if (StandardGrant > 0)
            {
                if (SecondApprovalNeeded)
                {
                    StatusValue = Convert.ToInt32(StatusInfo.SecondApproval);
                }
                else
                {
                    StatusValue = Convert.ToInt32(StatusInfo.PaymentPending);
                }
            }
            else
            {
                StatusValue = Convert.ToInt32(StatusInfo.IneligibleBasedonDays);
            }
        }
Ejemplo n.º 2
0
        protected double getCamperGrant(string FJCID, int days, out int StatusValue)
        {
            double            grant = 0;
            CamperApplication oCA   = new CamperApplication();

            // 2013-08-26 Now getCamperGrantForDays will also check if this toronto camper has attended Taste of Camp
            grant = (double)oCA.getCamperGrantForDays(FJCID, days);

            if (grant > 0)
            {
                StatusValue = (int)StatusInfo.SystemEligible;
            }
            else if (grant == -1)
            {
                StatusValue = (int)StatusInfo.EligiblePendingNumberOfDays;
                grant       = 0;
            }
            else
            {
                StatusValue = (int)StatusInfo.SystemInEligible;
            }

            return(grant);
        }
Ejemplo n.º 3
0
        public decimal GetCamperGrantForDays(string FJCID, int Days)
        {
            CamperApplication oCA = new CamperApplication();

            return(oCA.getCamperGrantForDays(FJCID, Days));
        }