private void BindDropDowns() { try { DropDownUtil.FillDropDown(DdlCourseID, ddl.CourseDDLBAL(CurrentCulture, CompanyID), "Text", "Value", "Course"); } catch (Exception) { throw; } }
private void BindDropDowns() { try { DropDownUtil.FillDropDown(ddlVenue, ddl.VenueDDLBAL(CurrentCulture, CompanyID), "Text", "Value", "Venue"); ddlVenue.Items.Insert(1, new ListItem("Common", "0")); } catch (Exception ex) { } }
/// <summary> /// <para>Description: /// This Method will Bind all DropDowns of Control</para> /// <para>Created By: M.Ishaq </para> /// <para>Created Date: 2/26/2019 </para> /// </summary> private void BindDropDowns() { try { DropDownUtil.FillDropDown(DdlCourseCategory, ddl.GetAllCourseCategories(CurrentCulture, CompanyID), "Text", "Value", "Course Category"); DdlCourseCategory.Items.Insert(1, new ListItem(" Select All", "0")); UtilityFunctions.FillDropDownListFromEnumCollection(ddlClassType, EnumManager.GetEnumCollection(typeof(ClassType)), true, "Type"); } catch (Exception Ex) { } }
private void BindDropDowns() { try { DropDownUtil.FillDropDown(DdlTrainer, ddl.TraineeDDLBAL(CurrentCulture, CompanyID), "Text", "Value", "Trainer"); // ddl.ClassDDLBAL(CurrentCulture, CompanyID); DropDownUtil.FillDropDown(DdlCourse, ddl.CourseDDLBAL(CurrentCulture, CompanyID), "Text", "Value", "Course"); DropDownUtil.FillDropDown(DdlClass, ddl.ClassDDLBAL(CurrentCulture, CompanyID), "Text", "Value", "Class"); } catch (Exception) { throw; } }
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); } }
/// <summary> /// <para>Description: /// This Method will get Trainer of Class by ClassID and Rebind Venues DropDown</para> /// <para>Created By: Majid ali </para> /// <para>Created Date: 9/26/2013 </para> /// </summary> private void TrainerGetbyClassID() { if (DdlClass.SelectedIndex > 0) { DropDownUtil.FillDropDown(DdlVenue, ddl.Class_VenueDDLBAL(CurrentCulture, CompanyID, Convert.ToInt64(DdlClass.SelectedValue)), "Text", "Value", "Venue"); // _objIDDLBAL.Class_TrainerDDLBAL(CurrentCulture, CurrentUser.CompanyID, Convert.ToInt64(DdlClass.SelectedValue)); // LoadTraineeDetailReport(); } else { BindDropDowns(); //UCReport.ClearReport(); } }
/// <summary> /// <para>Description: /// This Method will Bind all DropDowns of Control</para> /// <para>Created By: M.Ishaq </para> /// <para>Created Date: 2/26/2019 </para> /// </summary> private void BindDropDowns() { try { //UIUtilities.FillDropDownWithYears(DdlFromYear, 5, 5, true); //UIUtilities.FillDropDownWithYears(DdlToYear, 5, 5, true); //UIUtilities.GetMyMonthList(DdlFrom, true); //UIUtilities.GetMyMonthList(DdlTo, false); //DdlTo.SelectedIndex = DdlTo.Items.IndexOf(DdlTo.Items.FindByValue(DateTime.Now.AddMonths(3).Month.ToString())); DropDownUtil.FillDropDown(DdlCourseCategory, ddl.GetAllCourseCategories(CurrentCulture, CompanyID), "Text", "Value", "Course Category"); DdlCourseCategory.Items.Insert(1, new ListItem(" Select All", "0")); } catch (Exception Ex) { } }
private void ClassesGetByCourseID() { try { if (DdlCourse.SelectedIndex > 0) { DropDownUtil.FillDropDown(DdlClass, ddl.Course_ClassDDLBAL(CurrentCulture, CompanyID, Convert.ToInt64(DdlCourse.SelectedValue), 0), "Text", "Value", "Class"); } else { BindDropDowns(); // UCReport.ClearReport(); } } catch (Exception) { } }