private void GetAllAttorney(int caseID)
 {
     try
     {
         List <ATTAttorney> lst = BLLAttorney.GetAttorney(caseID, "Y");
         ALLAttorneyLIST = lst;
     }
     catch (Exception ex)
     {
         lblStatusMessage.Text = ex.Message.ToString();
         this.programmaticModalPopup.Show();
     }
 }
예제 #2
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();
        }
    }