protected void btnClearFilter_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            DDLModule.SelectedValue = "0";
            DDLVeseelType.ClearSelection();
            DDLVetType.ClearSelection();
            DDLStatus.ClearSelection();
            Add_Status();
            txtNumber.Text        = "";
            txtVersion.Text       = "";
            txtQuestionnaire.Text = "";
            UpdAdvFltr.Update();
            BindQuestionnaire();

            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);
        }
    }
Пример #2
0
 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);
     }
 }