void LoadRespondents(int?caseID)
    {
        ATTLitigantSearch obj = new ATTLitigantSearch();

        obj.CaseID       = caseID;
        obj.LitigantType = "R";
        try
        {
            List <ATTLitigantSearch> LitigantSearch = BLLLitigantSearch.GetLitigantSearch(obj);
            this.grdLitigantRes.DataSource = LitigantSearch;
            this.grdLitigantRes.DataBind();
            if (LitigantSearch.Count > 0)
            {
                this.colCaseSearch.Collapsed   = true;
                this.colCaseSearch.ClientState = "true";
                this.colRespondent.Collapsed   = false;
                this.colRespondent.ClientState = "false";
            }
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
    }
    private void GetAllLitigants(int caseID)
    {
        try
        {
            ATTLitigantSearch obj = new ATTLitigantSearch();
            obj.CourtID = courtID;
            obj.CaseID  = caseID;
            List <ATTLitigantSearch> lstLitigants = BLLLitigantSearch.GetLitigantSearch(obj);

            LitigantsLIST = lstLitigants;
        }
        catch (Exception ex)
        {
            lblStatusMessage.Text = ex.Message.ToString();
            this.programmaticModalPopup.Show();
        }
    }
Exemplo n.º 3
0
    protected void btnSearchLitigants_Click(object sender, EventArgs e)
    {
        if (txtCaseNo.Text.Trim() == "" && txtRegNo.Text.Trim() == "")
        {
            lblStatusMessage.Text = "All Fields Can't be empty";
            this.programmaticModalPopup.Show();
            return;
        }

        ATTLitigantSearch obj = new ATTLitigantSearch();

        if (txtCaseNo.Text.Trim() == "___-__-____" && txtRegNo.Text.Trim() == "__-___-_____")
        {
            lblStatusMessage.Text = "All Fields Can't be empty";
            this.programmaticModalPopup.Show();
            return;
        }

        if (txtRegNo.Text.Trim() == "__-___-_____")
        {
            obj.RegNo = "";
        }
        else
        {
            obj.RegNo = txtRegNo.Text;
        }
        if (txtCaseNo.Text.Trim() == "___-__-____")
        {
            obj.CaseNo = "";
        }
        else
        {
            obj.CaseNo = txtCaseNo.Text;
        }
        try
        {
            grdLitigants.DataSource = BLLLitigantSearch.GetLitigantSearch(obj);
            grdLitigants.DataBind();
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
    }
Exemplo n.º 4
0
    void LoadLitigantsAndAttorney(double caseID)
    {
        try
        {
            ATTLitigantSearch attLitigant = new ATTLitigantSearch();
            attLitigant.CaseID = caseID;

            List <ATTLitigantSearch> LitigantList = BLLLitigantSearch.GetLitigantSearch(attLitigant);
            List <ATTAttorney>       AttorneyList = BLLAttorney.GetAttorney(caseID, "Y");

            List <ATTLitigantandAttorney> lstLA = new List <ATTLitigantandAttorney>();

            foreach (ATTLitigantSearch attL in LitigantList)
            {
                ATTLitigantandAttorney attLA = new ATTLitigantandAttorney();
                attLA.CaseID     = attL.CaseID;
                attLA.LitigantID = attL.LitigantID;
                attLA.AttorneyID = 0;
                attLA.Name       = attL.LitigantName;
                attLA.Gender     = attL.Gender;
                attLA.DOB        = attL.DOB;
                lstLA.Add(attLA);
            }
            foreach (ATTAttorney attA in AttorneyList)
            {
                ATTLitigantandAttorney attLA = new ATTLitigantandAttorney();
                attLA.CaseID     = attA.CaseID;
                attLA.AttorneyID = attA.LitigantID;
                attLA.LitigantID = 0;
                attLA.Name       = attA.AttorneyName;
                attLA.Gender     = attA.AttorneyGender;
                attLA.DOB        = attA.AttorneyDOB;
                lstLA.Add(attLA);
            }

            grdLitigants.DataSource = lstLA;
            grdLitigants.DataBind();
        }

        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        ATTLitigantSearch obj = new ATTLitigantSearch();

        if (txtCaseNo.Text.Trim() == "___-__-____" && txtRegNo.Text.Trim() == "__-___-_____")
        {
            lblStatusMessage.Text = "All Fields Can't be empty";
            this.programmaticModalPopup.Show();
            return;
        }

        if (txtRegNo.Text.Trim() == "__-___-____")
        {
            obj.RegNo = "";
        }
        else
        {
            obj.RegNo = txtRegNo.Text;
        }
        if (txtCaseNo.Text.Trim() == "___-__-____")
        {
            obj.CaseNo = "";
        }
        else
        {
            obj.CaseNo = txtCaseNo.Text;
        }

        List <ATTLitigantSearch> AppellantList  = new List <ATTLitigantSearch>();
        List <ATTLitigantSearch> RespondantList = new List <ATTLitigantSearch>();

        try
        {
            List <ATTLitigantSearch> LitigantList = BLLLitigantSearch.GetLitigantSearch(obj);
            Session["CaseID"] = double.Parse(LitigantList[0].CaseID.ToString());
            foreach (ATTLitigantSearch att in LitigantList)
            {
                if (att.LitigantType == "A")
                {
                    ATTLitigantSearch attA = new ATTLitigantSearch();
                    attA.LitigantName        = att.LitigantName;
                    attA.Gender              = att.Gender;
                    attA.DOB                 = att.DOB;
                    attA.IsPrisoned          = att.IsPrisoned;
                    attA.LitigantSubTypeName = att.LitigantSubTypeName;

                    AppellantList.Add(attA);
                }
                else
                {
                    ATTLitigantSearch attR = new ATTLitigantSearch();
                    attR.LitigantName        = att.LitigantName;
                    attR.Gender              = att.Gender;
                    attR.DOB                 = att.DOB;
                    attR.IsPrisoned          = att.IsPrisoned;
                    attR.LitigantSubTypeName = att.LitigantSubTypeName;

                    RespondantList.Add(attR);
                }
            }

            grdAppellant.DataSource = AppellantList;
            grdAppellant.DataBind();

            grdRespondent.DataSource = RespondantList;
            grdRespondent.DataBind();
        }
        catch (Exception ex)
        {
            lblStatusMessage.Text = ex.Message;
            programmaticModalPopup.Show();
        }
    }