private void BindHearings() { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetupcomingHearings_Arabic(EMP_ID); } else { dt = LDBL.GetupcomingHearings_English(EMP_ID); } if (dt.Rows.Count > 0) { DtgUpcomingHearings.DataSource = dt; DtgUpcomingHearings.DataBind(); } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); } }
protected void GetExactMatter() { if (ddlMatter.SelectedIndex != 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_MatterID_Arabic(Convert.ToInt32(ddlMatter.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_MatterID_English(Convert.ToInt32(ddlMatter.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { if (ddlMatter.SelectedIndex != 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetUnpreparedPleading_English(Convert.ToInt32(ddlMatter.SelectedValue)); } else { dt = LDBL.GetUnpreparedPleading_English(Convert.ToInt32(ddlMatter.SelectedValue)); } if (dt.Rows.Count > 0) { dtgUnpreparedPleadings.DataSource = dt; dtgUnpreparedPleadings.DataBind(); if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetupcomingHearings_Arabic_Matter(EMP_ID, Convert.ToInt32(ddlMatter.SelectedValue)); } else { dt = LDBL.GetupcomingHearings_English_Matter(EMP_ID, Convert.ToInt32(ddlMatter.SelectedValue)); } if (dt.Rows.Count > 0) { DtgUpcomingHearings.DataSource = dt; DtgUpcomingHearings.DataBind(); } } else { dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetupcomingHearings_Arabic_Matter(EMP_ID, Convert.ToInt32(ddlMatter.SelectedValue)); } else { dt = LDBL.GetupcomingHearings_English_Matter(EMP_ID, Convert.ToInt32(ddlMatter.SelectedValue)); } if (dt.Rows.Count > 0) { DtgUpcomingHearings.DataSource = dt; DtgUpcomingHearings.DataBind(); } } } } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex != 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_MatterID_Caseid_Arabic(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_MatterID_Caseid_English(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { if (ddlMatter.SelectedIndex != 0 && ddlcase.SelectedIndex != 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetupcomingHearing_Case_Arabic(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } else { dt = LDBL.GetupcomingHearing_Case_English(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { DtgUpcomingHearings.DataSource = dt; DtgUpcomingHearings.DataBind(); } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); } } if (ddlMatter.SelectedIndex == 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetUnpreparedPleadings_Case_Arabic(Convert.ToInt32(ddlcase.SelectedValue)); } else { dt = LDBL.GetUnpreparedPleading_Case_English(Convert.ToInt32(ddlcase.SelectedValue)); } if (dt.Rows.Count > 0) { dtgUnpreparedPleadings.DataSource = dt; dtgUnpreparedPleadings.DataBind(); } else { dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex != 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_MatterID_Caseid_PartyID_Arabic(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), Convert.ToInt32(ddlclient.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_MatterID_Caseid_PartyID_English(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), Convert.ToInt32(ddlclient.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex != 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_MatterID_Caseid_PartyID_Status_Arabic(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), Convert.ToInt32(ddlclient.SelectedValue), Convert.ToInt32(ddlStatus.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_MatterID_Caseid_PartyID_Status_English(Convert.ToInt32(ddlMatter.SelectedValue), Convert.ToInt32(ddlcase.SelectedValue), Convert.ToInt32(ddlclient.SelectedValue), Convert.ToInt32(ddlStatus.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex == 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex == 0 && ddlStatus.SelectedIndex != 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_Status_Arabic(Convert.ToInt32(ddlStatus.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_Status_English(Convert.ToInt32(ddlStatus.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex == 0 && ddlcase.SelectedIndex == 0 && ddlclient.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_PartyID_Status_Arabic(Convert.ToInt32(ddlclient.SelectedValue), Convert.ToInt32(ddlStatus.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_PartyID_Status_English(Convert.ToInt32(ddlclient.SelectedValue), Convert.ToInt32(ddlStatus.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex == 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_PartyID_Arabic(Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_PartyID_English(Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex == 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_Caseid_PartyID_Arabic(Convert.ToInt32(ddlcase.SelectedValue), Convert.ToInt32(ddlclient.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_Caseid_PartyID_English(Convert.ToInt32(ddlcase.SelectedValue), Convert.ToInt32(ddlclient.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } if (ddlMatter.SelectedIndex == 0 && ddlcase.SelectedIndex != 0 && ddlclient.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0) { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = LDBL.GetAllMatterView_Caseid_Arabic(Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } else { dt = LDBL.GetAllMatterView_Caseid_English(Convert.ToInt32(ddlcase.SelectedValue), EMP_ID); } if (dt.Rows.Count > 0) { } else { DtgUpcomingHearings.DataSource = null; DtgUpcomingHearings.DataBind(); dtgUnpreparedPleadings.DataSource = null; dtgUnpreparedPleadings.DataBind(); } } }