public StudentAttendance() { _StudentDTO = new cls_StudentDTO(); _StudentAttendanceDTO = new cls_StudentAttendanceDTO(); commonBindControl = new CommonBindControl(); _sectionDTO = new cls_SectionDTO(); }
private void RefreshClasses() { _ClassDTO = new cls_ClassDTO(); _SectionDTO = new cls_SectionDTO(); _SubjectDTO = new cls_SubjectDTO(); commonBindControl = new CommonBindControl(); }
public StudentFee() { _StudentDTO = new cls_StudentDTO(); commonBindControl = new CommonBindControl(); _sectionDTO = new cls_SectionDTO(); _FeeDTO = new cls_FeeDTO(); _classDTO = new cls_ClassDTO(); }
public Student() { _StudentDTO = new cls_StudentDTO(); commonBindControl = new CommonBindControl(); _sectionDTO = new cls_SectionDTO(); _cls_City = new cls_City(); _classDTO = new cls_ClassDTO(); _StudentSubjectDTO = new cls_StudentSubjectDTO(); }
private void BindSectionFilter(DropDownList ddlControl) { if (ddlControl.SelectedIndex > -1) { var refreshData = new cls_SectionDTO(); var data = refreshData.GetSection(Convert.ToInt32(ddlControl.SelectedValue.ToString())); if (ddlControl.ID == "ddlPramodClassFrom") { ddlPramodSectionFrom.DataSource = data; ddlPramodSectionFrom.DataTextField = "SectionName"; ddlPramodSectionFrom.DataValueField = "SectionId"; ddlPramodSectionFrom.DataBind(); ddlPramodSectionFrom.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } else if (ddlControl.ID == "ddlPromotedClassTo") { ddlPromotedSectionTo.DataSource = data; ddlPromotedSectionTo.DataTextField = "SectionName"; ddlPromotedSectionTo.DataValueField = "SectionId"; ddlPromotedSectionTo.DataBind(); ddlPromotedSectionTo.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } } else { if (ddlControl.ID == "ddlPramodClassFrom") { ddlPramodSectionFrom.DataSource = null; ddlPramodSectionFrom.DataBind(); ddlPramodSectionFrom.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } else if (ddlControl.ID == "ddlPromotedClassTo") { ddlPromotedSectionTo.DataSource = null; ddlPromotedSectionTo.DataBind(); ddlPromotedSectionTo.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } else { ddlPramodSectionFrom.DataSource = null; ddlPramodSectionFrom.DataBind(); ddlPramodSectionFrom.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); ddlPromotedSectionTo.DataSource = null; ddlPromotedSectionTo.DataBind(); ddlPromotedSectionTo.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } } }
protected void lvSection_ItemUpdating(object sender, ListViewUpdateEventArgs e) { String SectionName = e.NewValues["SectionName"].ToString(); int SectionId = (int)e.Keys["SectionId"]; MST_SECTION item = new MST_SECTION(); item.SectionName = SectionName; item.SectionId = SectionId; item.UpdatedBy = cls_Common.UserProfile.Id; var isUpdate = _SectionDTO.Update(item); if (isUpdate) { _SectionDTO = new cls_SectionDTO(); lvSection.EditIndex = -1; BindSection(); } }
private void BindFeeDetailSection() { _sectionDTO = new cls_SectionDTO(); if (FeeDetailClass.SelectedIndex > 0) { FeeDetailSection.DataSource = _sectionDTO.GetSection(Convert.ToInt32(FeeDetailClass.SelectedValue.ToString())); FeeDetailSection.DataTextField = "SectionName"; FeeDetailSection.DataValueField = "SectionId"; FeeDetailSection.DataBind(); FeeDetailSection.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } else { FeeDetailSection.DataSource = null; FeeDetailSection.DataBind(); FeeDetailSection.Items.Insert(0, new ListItem("[ SELECT ]", "-1")); } }
public uc_Class() { _StudentDTO = new cls_StudentDTO(); commonBindControl = new CommonBindControl(); _sectionDTO = new cls_SectionDTO(); }