Ejemplo n.º 1
0
 private void BindAllMatter()
 {
     if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE")
     {
         dt = MV.GetAllMatterView_Arabic();
     }
     else
     {
         dt = MV.GetAllMatterView_English();
     }
     if (dt.Rows.Count > 0)
     {
         MatterGrid.DataSource = dt;
         MatterGrid.DataBind();
     }
 }
Ejemplo n.º 2
0
 protected void GridSerach_data(object sender, EventArgs e)
 {
     if (txtserach.Text != "")
     {
         dt = MV.SearchGrid(txtserach.Text);
         if (dt.Rows.Count > 0)
         {
             MatterGrid.DataSource = dt;
             MatterGrid.DataBind();
             //MyMessageBoxInfo.Show(MyMessageBox.MessageType.Success,+dt.Rows.Count+" Record Found.", 125, 300);
         }
         else
         {
             // MyMessageBoxInfo.Show(MyMessageBox.MessageType.Success, commessage.NoRecordFound, 125, 300);
         }
     }
 }
Ejemplo n.º 3
0
    private void Serach()
    {
        if (ddlSuperWiseSerach.SelectedIndex == 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlMatterType.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.AssignedLawyerSearch(ddlAssignedSearch.SelectedValue);
        }
        if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlMatterType.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.SupervisiorLawyerSearch(ddlSuperWiseSerach.SelectedValue);
        }

        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.Assigned_Matter(ddlAssignedSearch.SelectedValue, ddlMatterType.SelectedValue);
        }

        else if (ddlSuperWiseSerach.SelectedIndex == 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.MatterTypeSearch(ddlMatterType.SelectedValue);
        }
        else if (ddlSuperWiseSerach.SelectedIndex == 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlMatterType.SelectedIndex == 0 && ddlStatus.SelectedIndex != 0)
        {
            dt = MV.StatusSearch(ddlStatus.SelectedValue);
        }

        else if (ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlSuperWiseSerach.SelectedIndex == 0)
        {
            dt = MV.Matter_status(ddlStatus.SelectedValue, ddlStatus.SelectedValue);
        }

        #region ************Superwisedropdown**************
        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0)
        {
            dt = MV.Assigned_superwiser_Matter_status(ddlAssignedSearch.SelectedValue, ddlSuperWiseSerach.SelectedValue, ddlMatterType.SelectedValue, ddlStatus.SelectedValue);
        }
        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.Assigned_superwiser_Matter(ddlAssignedSearch.SelectedValue, ddlSuperWiseSerach.SelectedValue, ddlMatterType.SelectedValue);
        }
        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0 && ddlMatterType.SelectedIndex == 0)
        {
            dt = MV.Assigned_superwiser(ddlAssignedSearch.SelectedValue, ddlSuperWiseSerach.SelectedValue);
        }

        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0)
        {
            dt = MV.superwiser_Matter_status(ddlSuperWiseSerach.SelectedValue, ddlMatterType.SelectedValue, ddlStatus.SelectedValue);
        }
        else if (ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlSuperWiseSerach.SelectedIndex == 0)
        {
            dt = MV.Matter_status(ddlMatterType.SelectedValue, ddlStatus.SelectedValue);
        }
        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlMatterType.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.superwiser_Matter(ddlSuperWiseSerach.SelectedValue, ddlMatterType.SelectedValue);
        }

        else if (ddlSuperWiseSerach.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0 && ddlAssignedSearch.SelectedIndex == 0 && ddlMatterType.SelectedIndex == 0)
        {
            dt = MV.superwiser_status(ddlSuperWiseSerach.SelectedValue, ddlStatus.SelectedValue);
        }

        else if (ddlSuperWiseSerach.SelectedIndex == 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex != 0)
        {
            dt = MV.Assigned_Matter_status(ddlAssignedSearch.SelectedValue, ddlMatterType.SelectedValue, ddlStatus.SelectedValue);
        }

        else if (ddlSuperWiseSerach.SelectedIndex == 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlMatterType.SelectedIndex != 0 && ddlStatus.SelectedIndex == 0)
        {
            dt = MV.Assigned_Matter(ddlAssignedSearch.SelectedValue, ddlMatterType.SelectedValue);
        }
        else if (ddlSuperWiseSerach.SelectedIndex == 0 && ddlAssignedSearch.SelectedIndex != 0 && ddlMatterType.SelectedIndex == 0 && ddlStatus.SelectedIndex != 0)
        {
            dt = MV.Assigned_status(ddlAssignedSearch.SelectedValue, ddlStatus.SelectedValue);
        }

        #endregion
        MatterGrid.DataSource = dt;
        MatterGrid.DataBind();
    }