/// <summary> /// Bind oil major list /// </summary> public void VET_Get_OilMajorList() { try { BLL_VET_VettingLib objBLLVetLib = new BLL_VET_VettingLib(); DataTable dtOilMajorNames = objBLLVetLib.VET_Get_OilMajorList(); DDLOilMajor.DataSource = dtOilMajorNames; DDLOilMajor.DataTextField = "Display_Name"; DDLOilMajor.DataValueField = "ID"; DDLOilMajor.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
protected void btnClearFilter_Click(object sender, ImageClickEventArgs e) { try { DDLVessel.ClearSelection(); DDLVetType.ClearSelection(); DDLStatus.ClearSelection(); DDLJobStatus.ClearSelection(); txtDueDays.Text = ""; rbtnValid.Checked = false; rbtnObservation.SelectedValue = "0"; DDLOilMajor.ClearSelection(); DDLInspector.ClearSelection(); txtLVetFromDate.Text = ""; txtLVetToDate.Text = ""; txtVessel.Text = ""; chkVesselAssign.Checked = true; BindVesselDDL(); UpdAdvFltr.Update(); Bind_VettingIndex(); 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); } }