Exemple #1
0
        public JsonResult selectClassBtTime(string startdate, string enddate)
        {
            DateTime startDate = DateTime.ParseExact(startdate, "dd/MM/yyyy",
                                                     CultureInfo.InvariantCulture);
            DateTime endDate = DateTime.ParseExact(enddate, "dd/MM/yyyy",
                                                   CultureInfo.InvariantCulture);

            return(Json(_PersonBAL.GetCourseFromTimeSpan(startDate, endDate), JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
 protected void TxtEndDate_OnTextChanged(object sender, EventArgs e)
 {
     try
     {
         DateTime  StartDate  = Convert.ToDateTime(TxtStartDate.Text);
         DateTime  EndDate    = Convert.ToDateTime(TxtEndDate.Text);
         DataTable ObjCourses = _PersonBAL.GetCourseFromTimeSpan(StartDate, EndDate);
         //AppContext.CoursesAll = null;
         DropDownUtil.FillDropDown(DdlCourseID, ObjCourses, "Text", "Value", "Course");
     }
     catch (Exception ex)
     {
         // ExceptionHandler.HandleTrainingException(ex, "BtnView_Click", false);
     }
 }