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; } }
private void ClientOwnedPropertyDetailUI_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 loClientOwnedProperty.getAllData("0", lId).Rows) { lId = _dr["Id"].ToString(); cboPropertyType.Text = _dr["Property Type"].ToString(); txtLocation.Text = _dr["Location"].ToString(); txtModel.Text = _dr["Model"].ToString(); txtValue.Text = string.Format("{0:n}", decimal.Parse(_dr["Value"].ToString())); txtRemarks.Text = _dr["Remarks"].ToString(); } } } catch (Exception ex) { ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "ClientOwnedPropertyDetailUI_Load"); em.ShowDialog(); return; } }