private void getAllList(string pClientId)
        {
            try
            {
                dgvFamilyMembers.DataSource = loClientFamilyMember.getAllData(pClientId, "");
            }
            catch
            {
                dgvFamilyMembers.DataSource = null;
            }

            try
            {
                dgvPersonalReference.DataSource = loClientPersonalReference.getAllData(pClientId, "");
            }
            catch
            {
                dgvPersonalReference.DataSource = null;
            }

            try
            {
                dgvSourceOfIncome.DataSource = loClientSourceOfIncome.getAllData(pClientId, "");
            }
            catch
            {
                dgvSourceOfIncome.DataSource = null;
            }

            try
            {
                dgvOwnedProperties.DataSource = loClientOwnedProperty.getAllData(pClientId, "");
            }
            catch
            {
                dgvOwnedProperties.DataSource = null;
            }

            try
            {
                dgvCreditExperience.DataSource = loClientCreditExperience.getAllData(pClientId, "");
            }
            catch
            {
                dgvCreditExperience.DataSource = null;
            }

            try
            {
                dgvLoanHistory.DataSource = loLoanApplication.getLoanApplicationByClient(pClientId);
            }
            catch
            {
                dgvLoanHistory.DataSource = null;
            }
        }
Exemple #2
0
        private void ClientSourceOfIncomeDetailUI_Load(object sender, EventArgs e)
        {
            try
            {
                lFromSave      = false;
                this.BackColor = Color.FromArgb(int.Parse(GlobalVariables.FormBackColor));

                if (lOperation == GlobalVariables.Operation.Edit)
                {
                    foreach (DataRow _dr in loClientSourceOfIncome.getAllData("0", lId).Rows)
                    {
                        lId                     = _dr["Id"].ToString();
                        cboType.Text            = _dr["Type"].ToString();
                        txtOccupation.Text      = _dr["Occupation"].ToString();
                        txtNetIncome.Text       = string.Format("{0:n}", decimal.Parse(_dr["Net Income"].ToString()));
                        txtNoOfYears.Text       = _dr["No. of Years"].ToString();
                        txtEmployer.Text        = _dr["Employer"].ToString();
                        txtEmployerAddress.Text = _dr["Employer Address"].ToString();
                        txtRemarks.Text         = _dr["Remarks"].ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "ClientSourceOfIncomeDetailUI_Load");
                em.ShowDialog();
                return;
            }
        }