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;
            }
        }
Пример #2
0
        private void ClientPersonalReferenceDetailUI_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 loClientPersonalReference.getAllData("0", lId).Rows)
                    {
                        lId                     = _dr["Id"].ToString();
                        txtName.Text            = _dr["Name"].ToString();
                        cboRelationship.Text    = _dr["Relationship"].ToString();
                        txtCompleteAddress.Text = _dr["Complete Address"].ToString();
                        txtSourceOfIncome.Text  = _dr["Source of Income"].ToString();
                        txtCellphoneNo.Text     = _dr["Cellphone No."].ToString();
                        txtRemarks.Text         = _dr["Remarks"].ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "ClientPersonalReferenceDetailUI_Load");
                em.ShowDialog();
                return;
            }
        }