Ejemplo n.º 1
0
 /// <summary>
 /// Bind Inspector list
 /// </summary>
 public void VET_Get_InspectorListObs()
 {
     try
     {
         BLL_VET_VettingLib objBLLVetLib = new BLL_VET_VettingLib();
         DataTable          dt           = objBLLVetLib.VET_Get_InspectorList();
         DDLInspectorObs.DataSource     = dt;
         DDLInspectorObs.DataTextField  = "NAME";
         DDLInspectorObs.DataValueField = "UserID";
         DDLInspectorObs.DataBind();
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }
Ejemplo n.º 2
0
    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);
        }
    }