protected void btnClearFilter_Click(object sender, EventArgs e) { DDLFleet.ClearSelection(); DDLVessel.ClearSelection(); DDLRank.ClearSelection(); DDLNationality.ClearSelection(); DDLManningOffice.ClearSelection(); //DDLCommentedBy.ClearSelection(); DDLStatus.SelectedValue = "1"; DDLCrewStatus.SelectedValue = "0"; txtSearch.Text = ""; txtCommentFromDate.Text = ""; txtCommentToDate.Text = ""; BindFleetDLL(); BindVesselDDL(); Load_RankList(); Load_CountryList(); Load_ManningAgentList(); //BindUserList(); BindGrid(); }
protected void btnClearFilter_Click(object sender, EventArgs e) { ViewState["OverDueSearchFlage"] = null; ViewState["SORTDIRECTION"] = null; ViewState["SORTBYCOLOUMN"] = null; ViewState["ucfJobIDFilterType"] = null; ViewState["Jobid"] = null; DDLFleet.SelectedValue = "0"; BindVesselDDL(); txtFromDate.Text = ""; txtToDate.Text = ""; txtActFrmDate.Text = ""; txtActToDate.Text = ""; DDLVessel.ClearSelection(); ddlFunction.ClearSelection(); chkCMS.Checked = false; chkCritical.Checked = false; chkAdvSafetyAlarm.Checked = false; chkAdvCalibration.Checked = false; ddlSystem_location.ClearSelection(); ucf_DDLRank.ClearSelection(); ddlSubSystem_location.ClearSelection(); // rbtDueType.SelectedValue = "0"; rbtDueType.Items[0].Selected = true; rbtDueType.Items[1].Selected = true; rbtnJobTypes.SelectedValue = "PMS"; txtSearchJobTitle.Text = ""; txtFromDate.Enabled = false; txtToDate.Enabled = false; rbtnMRA.SelectedValue = "ALL"; rbtnRASubmitted.SelectedValue = "ALL"; BindJobStatus(); UpdPnlFilter.Update(); UpdPnlGrid.Update(); UpdAdvFltr.Update(); 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); } }
protected void btnClearFilter_Click(object sender, EventArgs e) { DDLFleet.ClearSelection(); DDLVessel.ClearSelection(); txtPoNumber.Text = ""; BindFleetDLL(); BindVesselDDL(); uc_SupplierList1.SelectedValue = "0"; ViewState["LOG_STATUS"] = "0"; BindDataItems(); }
protected void btnClearFilter_Click(object sender, EventArgs e) { DDLFleet.ClearSelection(); DDLVessel.ClearSelection(); BindFleetDLL(); BindVesselDDL(); BindProgramItemInGrid(); txtDuedateFrom.Text = ""; txtDuedateTo.Text = ""; txtProgramName.Text = ""; ddlProgramCategory.SelectedIndex = 0; BindProgramItemInGrid(); }
protected void btnClearFilter_Click(object sender, EventArgs e) { try { DDLFleet.ClearSelection(); DDLVessel.ClearSelection(); ddlFunction.ClearSelection(); BindSystem_Location(); BindSubSystem_Location(); } 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, EventArgs e) { try { txtCardNumber.Text = ""; ddlStatus.SelectedValue = "-1"; txtFromDate.Text = UDFLib.ConvertUserDateFormat((DateTime.Now.AddDays(-(DateTime.Now.DayOfYear) + 1)).ToShortDateString()); txtToDate.Text = UDFLib.ConvertUserDateFormat((DateTime.Now.AddMonths(1).AddDays(-(DateTime.Now.Day)).ToShortDateString())); DDLVessel.ClearSelection(); DDLFleet.ClearSelection(); Session["sFleet"] = DDLFleet.SelectedValues; Session["sVesselCode"] = DDLVessel.SelectedValues; BindIndex(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
protected void btnClearFilter_Click(object sender, EventArgs e) { try { //txtFromDate.Text = ""; //txtToDate.Text = ""; txtFromDate.Text = UDFLib.ConvertUserDateFormat((DateTime.Now.AddDays(-(DateTime.Now.DayOfYear) + 1)).ToShortDateString()); txtToDate.Text = UDFLib.ConvertUserDateFormat((DateTime.Now.AddMonths(1).AddDays(-(DateTime.Now.Day)).ToShortDateString())); DDLVessel.ClearSelection(); txtSatatus.Text = ""; txtTitle.Text = ""; DDLFleet.ClearSelection(); BindKitty(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
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); } }
protected void btnClearFilter_Click(object sender, EventArgs e) { try { btnOverDue.BackColor = System.Drawing.ColorTranslator.FromHtml(""); btn7days.BackColor = System.Drawing.ColorTranslator.FromHtml(""); btnCurrentMonth.BackColor = System.Drawing.ColorTranslator.FromHtml(""); ViewState["OverDueSearchFlage"] = null; ViewState["SORTDIRECTION"] = null; ViewState["SORTBYCOLOUMN"] = null; ViewState["ucfJobIDFilterType"] = null; ViewState["Jobid"] = null; DDLFleet.SelectedValue = "0"; BindVesselDDL(); txtFromDate.Text = ""; txtToDate.Text = ""; txtActFrmDate.Text = ""; txtActToDate.Text = ""; DDLVessel.ClearSelection(); ddlFunction.ClearSelection(); chkCMS.Checked = false; chkCritical.Checked = false; ddlSystem_location.ClearSelection(); ucf_DDLRank.ClearSelection(); ddlSubSystem_location.ClearSelection(); chkAdvCalibration.Checked = false; chkAdvSftyAlarm.Checked = false; rbtnJobTypes.SelectedValue = "PMS"; txtSearchJobTitle.Text = ""; rbtnMRA.SelectedValue = "ALL"; rbtnRASubmitted.SelectedValue = "ALL"; BindJobStatus(); UpdPnlGrid.Update(); UpdAdvFltr.Update(); chkOfcVerify.Checked = false; 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); } }