Exemple #1
0
        public ActionResult classStatAndEndDate(string ClassID)
        {
            long classid = Convert.ToInt64(ClassID);

            CurrentClass = _PersonBAL.ClassGetByID(classid);
            string[] arr    = { CurrentClass.StartDate.ToString(), CurrentClass.EndDate.ToString() };
            var      result = Json(new { StartDate = "" + CurrentClass.StartDate.ToString() + "", EndDate = "" + CurrentClass.EndDate.ToString() + "" }, JsonRequestBehavior.AllowGet);

            return(Json(result));
        }
Exemple #2
0
 protected void DdlClass_SelectedIndexChanged(object Sender, EventArgs e)
 {
     try
     {
         if (DdlClass.SelectedIndex <= 0)
         {
             LblStartDate.Text = string.Empty;
             LblEndDate.Text   = string.Empty;
         }
         else
         {
             // AppContext.CurrentClass = null;
             CurrentClassID    = UtilityFunctions.MapValue <Int64>(DdlClass.SelectedValue, typeof(Int64));
             CurrentClass      = _PersonBAL.ClassGetByID(CurrentClassID);
             LblStartDate.Text = UtilityFunctions.GetShortDateString(CurrentClass.StartDate);
             LblEndDate.Text   = UtilityFunctions.GetShortDateString(CurrentClass.EndDate);
         }
     }
     catch (Exception ex)
     {
     }
 }