private void LoadInitialData()
{
try
{
///
/// Individual Customers
///
//Load CC Tyep
cmbCCType.DataSource = new CreditCardType() { CompanyId = Master.CurrentCompany.CompanyId }.SelectAllList();
cmbCCType.TextField = "Name";
cmbCCType.ValueField = "CreditCardTypeId";
cmbCCType.DataBind();
//Load Passport issued country
cmbPassportCountryOfIssue.DataSource = new Country().SelectAllList();
cmbPassportCountryOfIssue.TextField = "CountryName";
cmbPassportCountryOfIssue.ValueField = "CountryId";
cmbPassportCountryOfIssue.DataBind();
//Load Billing Country
cmbBillingCountry.DataSource = new Country().SelectAllList();
cmbBillingCountry.TextField = "CountryName";
cmbBillingCountry.ValueField = "CountryId";
cmbBillingCountry.DataBind();
//Load Company Country
cmbCompanyCountry.DataSource = new Country().SelectAllList();
cmbCompanyCountry.TextField = "CountryName";
cmbCompanyCountry.ValueField = "CountryId";
cmbCompanyCountry.DataBind();
///
///Group Details
///
//Load CC Tyep
cmbCCTypeGrp.DataSource = new CreditCardType() { CompanyId = Master.CurrentCompany.CompanyId }.SelectAllList();
cmbCCTypeGrp.TextField = "Name";
cmbCCTypeGrp.ValueField = "CreditCardTypeId";
cmbCCTypeGrp.DataBind();
//Load Billing Country
cmbBillingCountryGrp.DataSource = new Country().SelectAllList();
cmbBillingCountryGrp.TextField = "CountryName";
cmbBillingCountryGrp.ValueField = "CountryId";
cmbBillingCountryGrp.DataBind();
//Load Company Country
cmbCompanyCountryGrp.DataSource = new Country().SelectAllList();
cmbCompanyCountryGrp.TextField = "CountryName";
cmbCompanyCountryGrp.ValueField = "CountryId";
cmbCompanyCountryGrp.DataBind();
}
catch (System.Exception)
{
}
}