Exemple #1
0
        public JsonResult ParentEngagement(List <ParentEngagement> statuschange)
        {
            bool isResult = false;

            try
            {
                foreach (ParentEngagement status in statuschange)
                {
                    status.UserId = Session["UserID"].ToString();

                    isResult = new ParentData().ParentEngagementRequest(status, Session["AgencyID"].ToString());
                    //if (isResult)
                    //{
                    //    isResult = new TeacherData().InsertYakkrRouting(
                    //        new YakkrRouting
                    //        {
                    //            AgencyID = new Guid(Session["AgencyID"].ToString()),
                    //            UserID = new Guid(Session["UserID"].ToString()),
                    //            RouteCode = status.RouteCode,
                    //            ToSataffId = new Guid("EBF675DF-9468-4CD4-92B0-D97B7D49888D"),
                    //            HouseHoldId = Convert.ToInt64(status.HouseHoldId),
                    //            Email = Session["EmailID"].ToString(),
                    //            ClientId = status.ClientId
                    //        }, ""
                    //        );
                    //}
                }
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
Exemple #2
0
        public JsonResult ParentStatusChange(List <ParentStatus> statuschange)
        {
            bool isResult = false;

            try
            {
                foreach (ParentStatus status in statuschange)
                {
                    status.UserId = Session["UserID"].ToString();
                    isResult      = new ParentData().ParentStatusChange(status);
                    if (isResult)
                    {
                        isResult = new TeacherData().InsertYakkrRouting(
                            new YakkrRouting
                        {
                            AgencyID    = new Guid(Session["AgencyID"].ToString()),
                            UserID      = new Guid(Session["UserID"].ToString()),
                            RouteCode   = status.RouteCode,
                            ToSataffId  = new Guid("EBF675DF-9468-4CD4-92B0-D97B7D49888D"),
                            HouseHoldId = Convert.ToInt64(status.HouseHoldId),
                            Email       = Session["EmailID"].ToString(),
                            ClientId    = status.ClientId
                        }, ""
                            );
                    }
                }
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
Exemple #3
0
        public JsonResult AddParentMessage(ParentStatus statuschange, string ToStaffId)
        {
            bool isResult = false;

            try
            {
                statuschange.UserId = Session["UserID"].ToString();
                //statuschange.HouseHoldId = Convert.ToInt64(Session["HouseHoldId"].ToString());
                isResult = new ParentData().AddParentMessage(statuschange, Session["AgencyID"].ToString(), ToStaffId);
                //if (isResult)
                //{
                //    isResult = new TeacherData().InsertYakkrRouting(
                //        new YakkrRouting
                //        {
                //            AgencyID = new Guid(Session["AgencyID"].ToString()),
                //            UserID = new Guid(Session["UserID"].ToString()),
                //            RouteCode = statuschange.RouteCode,
                //            ToSataffId = new Guid(ToStaffId),
                //            HouseHoldId = Convert.ToInt64(statuschange.HouseHoldId),
                //            Email = Session["EmailID"].ToString(),
                //            ClientId = statuschange.ClientId
                //        }, "");
                //}
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
        public override bool Equals(object obj)
        {
            var casted = obj as ListJoinColumnBidirectionalInheritanceRefEdParentEntity;

            if (casted == null)
            {
                return(false);
            }
            return(Id == casted.Id && ParentData.Equals(casted.ParentData));
        }
Exemple #5
0
        public JsonResult GetDisabilityChildren(string YakkrID, string HouseHoldId, string ClientId, int mode, string IsAccepted = "0")
        {
            DisabilityChildren disbilityChildren = new DisabilityChildren();

            try
            {
                disbilityChildren = new ParentData().GetDisabilityChildrenData(YakkrID, HouseHoldId, ClientId, Session["AgencyId"].ToString(), Session["UserID"].ToString(), mode, IsAccepted);
            }
            catch (Exception ex)
            {
                clsError.WriteException(ex);
            }
            return(Json(disbilityChildren, JsonRequestBehavior.AllowGet));
        }
Exemple #6
0
 public CharacterStyle()
 {
     Gender  = 0;
     Parents = new ParentData(0, 0, 1.0f, 1.0f);
     for (int i = 0; i < Features.Length; i++)
     {
         Features[i] = 0f;
     }
     for (int i = 0; i < Appearance.Length; i++)
     {
         Appearance[i] = new AppearanceItem(255, 1.0f);
     }
     Hair = new HairData(0, 0, 0);
 }
Exemple #7
0
        public JsonResult VolunteerRequest(List <Volunteer> volunteer)
        {
            bool isResult = false;

            try
            {
                foreach (Volunteer objVol in volunteer)
                {
                    objVol.UserId = Session["UserID"].ToString();
                    isResult      = new ParentData().VolunteerRequest(objVol, Session["AgencyID"].ToString(), Session["EmailID"].ToString());
                }
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
Exemple #8
0
        public JsonResult EducationStatusChange(List <StatusChange> statuschange)
        {
            bool isResult = false;

            try
            {
                foreach (StatusChange status in statuschange)
                {
                    status.UserId = Session["UserID"].ToString();
                    isResult      = new ParentData().EducationStatusChange(status, Session["AgencyID"].ToString());
                }
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
Exemple #9
0
        public JsonResult ChangeParentAddressRequest(ParentAddressChange AddressDetails)
        {
            bool isResult = false;

            try
            {
                AddressDetails.UserId = Session["UserID"].ToString();
                YakkrRouting yakkr = new YakkrRouting();
                yakkr.AgencyID = new Guid(Session["AgencyID"].ToString());
                yakkr.UserID   = new Guid(Session["UserID"].ToString());
                isResult       = new ParentData().AddParentAddressChange(AddressDetails, yakkr, Session["EmailID"].ToString());
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
Exemple #10
0
        public JsonResult MarkAbsentStatus(List <StatusChange> statuschange)
        {
            bool isResult = false;

            try
            {
                string str = RouteData.Values["ClientId"] + Request.Url.Query;
                foreach (StatusChange status in statuschange)
                {
                    status.UserId = Session["UserID"].ToString();
                    isResult      = new ParentData().MarkAbsentStatus(status, Session["AgencyID"].ToString(), Session["EmailID"].ToString());
                }
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                //return Json("Error occured please try again.");
            }
            return(Json(isResult));
        }
Exemple #11
0
        public JsonResult GetChildDetails(string ClientId)
        {
            List <SelectListItem> absenceReasonList = null;
            string JSONString    = string.Empty;
            string ProfilePic    = "";
            int    IsMarkAbsent  = 0;
            bool   IsLateArrival = false;

            try
            {
                DataSet dsChildDetails = new DataSet();
                absenceReasonList = new ParentData().GetChildDetails(ref dsChildDetails, ClientId, ref ProfilePic, Session["AgencyID"].ToString(), ref IsMarkAbsent, ref IsLateArrival);
                JSONString        = Newtonsoft.Json.JsonConvert.SerializeObject(dsChildDetails);
            }
            catch (Exception Ex)
            {
                clsError.WriteException(Ex);
                return(Json("Error occured please try again."));
            }
            return(Json(new { JSONString, ProfilePic, absenceReasonList, IsMarkAbsent, IsLateArrival }));
        }
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^ ParentData.GetHashCode());
 }
Exemple #13
0
 void Awake()
 {
     parentData = this;
 }