protected void btnClearFilter_Click(object sender, ImageClickEventArgs e) { try { txtQuestion.Text = ""; DDLSection.ClearSelection(); DDLQuestion.ClearSelection(); VET_Get_QuestionList(); VET_Get_QuestionnaireDetails(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
/// <summary> /// Bind section number by questionnire id /// </summary> public void VET_Get_SectionList() { try { BLL_VET_Questionnaire objBLLQuest = new BLL_VET_Questionnaire(); DataTable dtSectionNo = objBLLQuest.VET_Get_SectionList(UDFLib.ConvertToInteger(ViewState["Questionnaire_ID"].ToString())); DDLSection.DataSource = dtSectionNo; DDLSection.DataTextField = "Section_No"; DDLSection.DataValueField = "Section_No"; DDLSection.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
/// <summary> /// Bind section number by questionnire id /// </summary> public void VET_Get_SectionByQuestionnireId() { try { if (DDLQuestionnaire.SelectedValues.Rows.Count > 0) { BLL_VET_Index objBLLIndx = new BLL_VET_Index(); DataTable dtSectionNo = objBLLIndx.VET_Get_SectionByQuestionnireId(DDLQuestionnaire.SelectedValues); DDLSection.DataSource = dtSectionNo; DDLSection.DataTextField = "Section_No"; DDLSection.DataValueField = "Section_No"; DDLSection.DataBind(); } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
protected void btnClearAllFilter_Click(object sender, ImageClickEventArgs e) { try { DDLQuestionnaire.ClearSelection(); DDLSection.ClearSelection(); DDLQuestion.ClearSelection(); rbtnType.SelectedValue = "0"; DDLFleet.SelectedValue = "0"; DDLVesselObs.ClearSelection(); DDLOilMajorObs.ClearSelection(); DDLInspectorObs.ClearSelection(); txtObservationVessel.Text = ""; DDLCategories.ClearSelection(); DDLRiskLevel.ClearSelection(); txtLObsFromDate.Text = ""; txtLObsToDate.Text = ""; chkVesselAssign.Checked = true; BindVesselDDLByFleet(); UpdAdvFltrObs.Update(); Bind_ObservationIndex(); if (hfAdv.Value == "o") { String tgladvsearchClr = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearchClr", tgladvsearchClr, true); } else { String tgladvsearchClr1 = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearchClr1", tgladvsearchClr1, true); } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
void LoadOrgSections() { try { List <ATTOrganizationUnit> lstOrgSections = BLLOrganizationUnit.GetOrganizationUnits(int.Parse(DDLOrg.SelectedValue), null); List <ATTOrganizationUnit> listOrgSec = lstOrgSections.FindAll(delegate(ATTOrganizationUnit att) { return(att.UnitType == "C"); }); listOrgSec.Insert(0, new ATTOrganizationUnit(0, 0, "शाखा छान्नुस्")); DDLSection.DataSource = listOrgSec; DDLSection.DataTextField = "UnitName"; DDLSection.DataValueField = "UnitID"; DDLSection.DataBind(); } catch (Exception ex) { lblStatusMessage.Text = ex.Message; programmaticModalPopup.Show(); } }