private void cboRequestACI_SelectedIndexChanged(object sender, EventArgs e) { _RequestACI = (RequestACI)cboRequestACI.SelectedItem; }
private void GetMerchantProfile() { if (cboAvailableProfiles.Text.Length < 1) { MessageBox.Show("Please select a merchant profileId"); cboAvailableProfiles.Focus(); return; } ((SampleCode_DeskTop)(Owner)).Helper.CheckTokenExpire(); string _strServiceID = ((SampleCode_DeskTop)(Owner)).Helper.ServiceID; string _strSessionToken = ((SampleCode_DeskTop)(Owner)).Helper.SessionToken; MerchantProfile merchantProfile = ((SampleCode_DeskTop)(Owner)).Helper.Cwssic.GetMerchantProfile(_strSessionToken, cboAvailableProfiles.Text, _strServiceID, TenderType.Credit); //Note : items commented out are not use so no need to wire up a text box as well as add to 'SaveMerchantInformation()' lblLastUpdated.Text = "Last Updated : " + merchantProfile.LastUpdated; //MerchantData //MerchantData.Address txtCity.Text = merchantProfile.MerchantData.Address.City; txtPostalCode.Text = merchantProfile.MerchantData.Address.PostalCode; txtStateProvince.Text = merchantProfile.MerchantData.Address.StateProvince.ToString(); txtStreetAddress1.Text = merchantProfile.MerchantData.Address.Street1; txtStreetAddress2.Text = merchantProfile.MerchantData.Address.Street2; txtCustomerServiceInternet.Text = merchantProfile.MerchantData.CustomerServiceInternet; txtCustomerServicePhone.Text = merchantProfile.MerchantData.CustomerServicePhone; txtMerchantId.Text = merchantProfile.MerchantData.MerchantId; txtName.Text = merchantProfile.MerchantData.Name; txtPhone.Text = merchantProfile.MerchantData.Phone; txtTaxId.Text = merchantProfile.MerchantData.TaxId; if (_bcs != null) { //MerchantData.BankcardMerchantData txtABANumber.Text = merchantProfile.MerchantData.BankcardMerchantData.ABANumber; txtAcquirerBIN.Text = merchantProfile.MerchantData.BankcardMerchantData.AcquirerBIN; txtAgentBank.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentBank; txtAgentChain.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.BankcardMerchantData.ClientNumber; txtLocation.Text = merchantProfile.MerchantData.BankcardMerchantData.Location; //txtTBD.Text = _MerchantProfile.MerchantData.BankcardMerchantData.PrintCustomerServicePhone == ""; txtSecondaryTerminalId.Text = merchantProfile.MerchantData.BankcardMerchantData.SecondaryTerminalId; txtSettlementAgent.Text = merchantProfile.MerchantData.BankcardMerchantData.SettlementAgent; txtSharingGroup.Text = merchantProfile.MerchantData.BankcardMerchantData.SharingGroup; txtSIC.Text = merchantProfile.MerchantData.BankcardMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.BankcardMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.BankcardMerchantData.TerminalId; txtTimeZoneDifferential.Text = merchantProfile.MerchantData.BankcardMerchantData.TimeZoneDifferential; txtReimbursementAttribute.Text = merchantProfile.MerchantData.BankcardMerchantData.ReimbursementAttribute; } if (_svas != null) { //MerchantData.StoredValueMerchantData txtAgentChain.Text = merchantProfile.MerchantData.StoredValueMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.ClientNumber; txtSIC.Text = merchantProfile.MerchantData.StoredValueMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.StoredValueMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.TerminalId; _MerchantIndustryType = merchantProfile.MerchantData.StoredValueMerchantData.IndustryType; } if (_ecks != null) { //MerchantData.ElectronicCheckingMerchantData //txtMerchantId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.OrginatorId; txtStoreId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.SiteId; txtSocketNum.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.ProductId; } //First Populate with the Enumeration cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Address.CountryCode.ToString().Length > 0) { cboCountryCode.SelectedItem = merchantProfile.MerchantData.Address.CountryCode; _CountryCode = (TypeISOCountryCodeA3)cboCountryCode.SelectedItem; } //First Populate with the Enumeration cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboLanguage.SelectedItem = merchantProfile.MerchantData.Language; _Language = (TypeISOLanguageCodeA3)cboLanguage.SelectedItem; } //First Populate with the Enumeration cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboCurrencyCode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CurrencyCode; _CurrencyCode = (TypeISOCurrencyCodeA3)cboCurrencyCode.SelectedItem; } //First Populate with the Enumeration cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent.ToString().Length > 0) { cboCustomerPresent.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent; _CustomerPresent = (CustomerPresent)cboCustomerPresent.SelectedItem; } //First Populate with the Enumeration cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI.ToString().Length > 0) { cboRequestACI.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI; _RequestACI = (RequestACI)cboRequestACI.SelectedItem; } //First Populate with the Enumeration cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType)); if (merchantProfile.MerchantData.BankcardMerchantData.IndustryType.ToString().Length > 0) { cboMerchantIndustryType.SelectedItem = merchantProfile.MerchantData.BankcardMerchantData.IndustryType; _MerchantIndustryType = (IndustryType)cboMerchantIndustryType.SelectedItem; } //First Populate with the Enumeration cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode)); if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode.ToString().Length > 0) { cboEntryMode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode; _EntryMode = (EntryMode)cboEntryMode.SelectedItem; } }
public void CallingForm(MerchantProfile merchantProfile, bool blnNewProfile, BankcardService bcs, ElectronicCheckingService ecks, StoredValueService svas, string serviceId) { _bcs = bcs; _ecks = ecks; _svas = svas; _strServiceID = serviceId; hideAllFields(); //Since MerchantProfile is saved at the serviceId level, display serviceId. txtMerchantProfileServiceId.Text = merchantProfile.ServiceId; if(blnNewProfile) {//New profile to add to CWS cmdAddUpdate.Text = "Add"; //Populate combo boxes with the Enumeration cboCountryCode.Sorted = true; cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3)); cboCountryCode.SelectedItem = TypeISOCountryCodeA3.NotSet; cboLanguage.Sorted = true; cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3)); cboLanguage.SelectedItem = TypeISOLanguageCodeA3.NotSet; cboCurrencyCode.Sorted = true; cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3)); cboCurrencyCode.SelectedItem = TypeISOCurrencyCodeA3.NotSet; cboCustomerPresent.Sorted = true; cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent)); cboCustomerPresent.SelectedItem = CustomerPresent.NotSet; cboRequestACI.Sorted = true; cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI)); cboRequestACI.SelectedItem = RequestACI.IsCPSMeritCapable; cboEntryMode.Sorted = true; cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode)); cboEntryMode.SelectedItem = EntryMode.NotSet; cboMerchantIndustryType.Sorted = true; cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType)); cboMerchantIndustryType.SelectedItem = IndustryType.NotSet; } else {//Existing Profile to Update; //Note : items commented out are not use so no need to wire up a text box as well as add to 'SaveMerchantInformation()' txtProfileId.Text = merchantProfile.ProfileId; txtProfileId.ReadOnly = true; lblLastUpdated.Text = "Last Updated : " + merchantProfile.LastUpdated; //MerchantData //MerchantData.Address txtCity.Text = merchantProfile.MerchantData.Address.City; txtPostalCode.Text = merchantProfile.MerchantData.Address.PostalCode; txtStateProvince.Text = merchantProfile.MerchantData.Address.StateProvince.ToString(); txtStreetAddress1.Text = merchantProfile.MerchantData.Address.Street1; txtStreetAddress2.Text = merchantProfile.MerchantData.Address.Street2; txtCustomerServiceInternet.Text = merchantProfile.MerchantData.CustomerServiceInternet; txtCustomerServicePhone.Text = merchantProfile.MerchantData.CustomerServicePhone; txtMerchantId.Text = merchantProfile.MerchantData.MerchantId; txtName.Text = merchantProfile.MerchantData.Name; txtPhone.Text = merchantProfile.MerchantData.Phone; txtTaxId.Text = merchantProfile.MerchantData.TaxId; if (_bcs != null) { //MerchantData.BankcardMerchantData txtABANumber.Text = merchantProfile.MerchantData.BankcardMerchantData.ABANumber; txtAcquirerBIN.Text = merchantProfile.MerchantData.BankcardMerchantData.AcquirerBIN; txtAgentBank.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentBank; txtAgentChain.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.BankcardMerchantData.ClientNumber; txtLocation.Text = merchantProfile.MerchantData.BankcardMerchantData.Location; //txtTBD.Text = _MerchantProfile.MerchantData.BankcardMerchantData.PrintCustomerServicePhone == ""; txtSecondaryTerminalId.Text = merchantProfile.MerchantData.BankcardMerchantData.SecondaryTerminalId; txtSettlementAgent.Text = merchantProfile.MerchantData.BankcardMerchantData.SettlementAgent; txtSharingGroup.Text = merchantProfile.MerchantData.BankcardMerchantData.SharingGroup; txtSIC.Text = merchantProfile.MerchantData.BankcardMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.BankcardMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.BankcardMerchantData.TerminalId; txtTimeZoneDifferential.Text = merchantProfile.MerchantData.BankcardMerchantData.TimeZoneDifferential; txtReimbursementAttribute.Text = merchantProfile.MerchantData.BankcardMerchantData.ReimbursementAttribute; } if (_svas != null) { //MerchantData.StoredValueMerchantData txtAgentChain.Text = merchantProfile.MerchantData.StoredValueMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.ClientNumber; txtSIC.Text = merchantProfile.MerchantData.StoredValueMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.StoredValueMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.TerminalId; _MerchantIndustryType = merchantProfile.MerchantData.StoredValueMerchantData.IndustryType; } if (_ecks != null) { //MerchantData.ElectronicCheckingMerchantData txtMerchantId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.OrginatorId; txtStoreId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.SiteId; txtSocketNum.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.ProductId; } //First Populate with the Enumeration cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Address.CountryCode.ToString().Length > 0) { cboCountryCode.SelectedItem = merchantProfile.MerchantData.Address.CountryCode; _CountryCode = (TypeISOCountryCodeA3)cboCountryCode.SelectedItem; } //First Populate with the Enumeration cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboLanguage.SelectedItem = merchantProfile.MerchantData.Language; _Language = (TypeISOLanguageCodeA3)cboLanguage.SelectedItem; } //First Populate with the Enumeration cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboCurrencyCode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CurrencyCode; _CurrencyCode = (TypeISOCurrencyCodeA3)cboCurrencyCode.SelectedItem; } //First Populate with the Enumeration cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent.ToString().Length > 0) { cboCustomerPresent.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent; _CustomerPresent = (CustomerPresent)cboCustomerPresent.SelectedItem; } //First Populate with the Enumeration cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI.ToString().Length > 0) { cboRequestACI.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI; _RequestACI = (RequestACI)cboRequestACI.SelectedItem; } //First Populate with the Enumeration cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType)); if (merchantProfile.MerchantData.BankcardMerchantData.IndustryType.ToString().Length > 0) { cboMerchantIndustryType.SelectedItem = merchantProfile.MerchantData.BankcardMerchantData.IndustryType; _MerchantIndustryType = (IndustryType)cboMerchantIndustryType.SelectedItem; } //First Populate with the Enumeration cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode)); if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode.ToString().Length > 0) { cboEntryMode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode; _EntryMode = (EntryMode)cboEntryMode.SelectedItem; } _Add = false; //In this case it's an update and not an add cmdAddUpdate.Text = "Update"; } if (_bcs != null) { if (_strServiceID == "C82ED00001" || _strServiceID == "71C8700001" || _strServiceID == "88D9300001" || _strServiceID == "B447F00001" || _strServiceID == "D806000001" || _strServiceID == "E88FD00001") showBCPExpandedFields(); else if (_strServiceID == "168511300C" || _strServiceID == "9999999999") showBCPExpandedFields(); else { showBCPFields(); } } if (_ecks != null) { showECKFields(); } if (_svas != null) { showSVAFields(); } }
private void GetMerchantProfile() { if (cboAvailableProfiles.Text.Length < 1) { MessageBox.Show("Please select a merchant profileId"); cboAvailableProfiles.Focus(); return; } ((SampleCode_DeskTop)(Owner)).Helper.CheckTokenExpire(); string _strServiceID = ((SampleCode_DeskTop)(Owner)).Helper.ServiceID; string _strSessionToken = ((SampleCode_DeskTop)(Owner)).Helper.SessionToken; MerchantProfile merchantProfile = ((SampleCode_DeskTop)(Owner)).Helper.Cwssic.GetMerchantProfile(_strSessionToken, cboAvailableProfiles.Text, _strServiceID, TenderType.Credit); //Note : items commented out are not use so no need to wire up a text box as well as add to 'SaveMerchantInformation()' lblLastUpdated.Text = "Last Updated : " + merchantProfile.LastUpdated; //MerchantData //MerchantData.Address txtCity.Text = merchantProfile.MerchantData.Address.City; txtPostalCode.Text = merchantProfile.MerchantData.Address.PostalCode; txtStateProvince.Text = merchantProfile.MerchantData.Address.StateProvince.ToString(); txtStreetAddress1.Text = merchantProfile.MerchantData.Address.Street1; txtStreetAddress2.Text = merchantProfile.MerchantData.Address.Street2; txtCustomerServiceInternet.Text = merchantProfile.MerchantData.CustomerServiceInternet; txtCustomerServicePhone.Text = merchantProfile.MerchantData.CustomerServicePhone; txtMerchantId.Text = merchantProfile.MerchantData.MerchantId; txtName.Text = merchantProfile.MerchantData.Name; txtPhone.Text = merchantProfile.MerchantData.Phone; txtTaxId.Text = merchantProfile.MerchantData.TaxId; if (_bcs != null) { //MerchantData.BankcardMerchantData txtABANumber.Text = merchantProfile.MerchantData.BankcardMerchantData.ABANumber; txtAcquirerBIN.Text = merchantProfile.MerchantData.BankcardMerchantData.AcquirerBIN; txtAgentBank.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentBank; txtAgentChain.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.BankcardMerchantData.ClientNumber; txtLocation.Text = merchantProfile.MerchantData.BankcardMerchantData.Location; //txtTBD.Text = _MerchantProfile.MerchantData.BankcardMerchantData.PrintCustomerServicePhone == ""; txtSecondaryTerminalId.Text = merchantProfile.MerchantData.BankcardMerchantData.SecondaryTerminalId; txtSettlementAgent.Text = merchantProfile.MerchantData.BankcardMerchantData.SettlementAgent; txtSharingGroup.Text = merchantProfile.MerchantData.BankcardMerchantData.SharingGroup; txtSIC.Text = merchantProfile.MerchantData.BankcardMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.BankcardMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.BankcardMerchantData.TerminalId; txtTimeZoneDifferential.Text = merchantProfile.MerchantData.BankcardMerchantData.TimeZoneDifferential; txtReimbursementAttribute.Text = merchantProfile.MerchantData.BankcardMerchantData.ReimbursementAttribute; } if (_svas != null) { //MerchantData.StoredValueMerchantData txtAgentChain.Text = merchantProfile.MerchantData.StoredValueMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.ClientNumber; txtSIC.Text = merchantProfile.MerchantData.StoredValueMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.StoredValueMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.TerminalId; _MerchantIndustryType = merchantProfile.MerchantData.StoredValueMerchantData.IndustryType; } if (_ecks != null) { //MerchantData.ElectronicCheckingMerchantData txtMerchantId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.OrginatorId; txtStoreId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.SiteId; txtSocketNum.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.ProductId; } //First Populate with the Enumeration cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Address.CountryCode.ToString().Length > 0) { cboCountryCode.SelectedItem = merchantProfile.MerchantData.Address.CountryCode; _CountryCode = (TypeISOCountryCodeA3)cboCountryCode.SelectedItem; } //First Populate with the Enumeration cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboLanguage.SelectedItem = merchantProfile.MerchantData.Language; _Language = (TypeISOLanguageCodeA3)cboLanguage.SelectedItem; } //First Populate with the Enumeration cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboCurrencyCode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CurrencyCode; _CurrencyCode = (TypeISOCurrencyCodeA3)cboCurrencyCode.SelectedItem; } //First Populate with the Enumeration cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent.ToString().Length > 0) { cboCustomerPresent.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent; _CustomerPresent = (CustomerPresent)cboCustomerPresent.SelectedItem; } //First Populate with the Enumeration cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI.ToString().Length > 0) { cboRequestACI.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI; _RequestACI = (RequestACI)cboRequestACI.SelectedItem; } //First Populate with the Enumeration cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType)); if (merchantProfile.MerchantData.BankcardMerchantData.IndustryType.ToString().Length > 0) { cboMerchantIndustryType.SelectedItem = merchantProfile.MerchantData.BankcardMerchantData.IndustryType; _MerchantIndustryType = (IndustryType)cboMerchantIndustryType.SelectedItem; } //First Populate with the Enumeration cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode)); if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode.ToString().Length > 0) { cboEntryMode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode; _EntryMode = (EntryMode)cboEntryMode.SelectedItem; } }
public void CallingForm(MerchantProfile merchantProfile, bool blnNewProfile, BankcardService bcs, ElectronicCheckingService ecks, StoredValueService svas, string serviceId) { _bcs = bcs; _ecks = ecks; _svas = svas; _strServiceID = serviceId; hideAllFields(); //Since MerchantProfile is saved at the serviceId level, display serviceId. txtMerchantProfileServiceId.Text = merchantProfile.ServiceId; if (blnNewProfile) {//New profile to add to CWS cmdAddUpdate.Text = "Add"; //Populate combo boxes with the Enumeration cboCountryCode.Sorted = true; cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3)); cboCountryCode.SelectedItem = TypeISOCountryCodeA3.NotSet; cboLanguage.Sorted = true; cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3)); cboLanguage.SelectedItem = TypeISOLanguageCodeA3.NotSet; cboCurrencyCode.Sorted = true; cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3)); cboCurrencyCode.SelectedItem = TypeISOCurrencyCodeA3.NotSet; cboCustomerPresent.Sorted = true; cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent)); cboCustomerPresent.SelectedItem = CustomerPresent.NotSet; cboRequestACI.Sorted = true; cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI)); cboRequestACI.SelectedItem = RequestACI.IsCPSMeritCapable; cboEntryMode.Sorted = true; cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode)); cboEntryMode.SelectedItem = EntryMode.NotSet; cboMerchantIndustryType.Sorted = true; cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType)); cboMerchantIndustryType.SelectedItem = IndustryType.NotSet; } else {//Existing Profile to Update; //Note : items commented out are not use so no need to wire up a text box as well as add to 'SaveMerchantInformation()' txtProfileId.Text = merchantProfile.ProfileId; txtProfileId.ReadOnly = true; lblLastUpdated.Text = "Last Updated : " + merchantProfile.LastUpdated; //MerchantData //MerchantData.Address txtCity.Text = merchantProfile.MerchantData.Address.City; txtPostalCode.Text = merchantProfile.MerchantData.Address.PostalCode; txtStateProvince.Text = merchantProfile.MerchantData.Address.StateProvince.ToString(); txtStreetAddress1.Text = merchantProfile.MerchantData.Address.Street1; txtStreetAddress2.Text = merchantProfile.MerchantData.Address.Street2; txtCustomerServiceInternet.Text = merchantProfile.MerchantData.CustomerServiceInternet; txtCustomerServicePhone.Text = merchantProfile.MerchantData.CustomerServicePhone; txtMerchantId.Text = merchantProfile.MerchantData.MerchantId; txtName.Text = merchantProfile.MerchantData.Name; txtPhone.Text = merchantProfile.MerchantData.Phone; txtTaxId.Text = merchantProfile.MerchantData.TaxId; if (_bcs != null) { //MerchantData.BankcardMerchantData txtABANumber.Text = merchantProfile.MerchantData.BankcardMerchantData.ABANumber; txtAcquirerBIN.Text = merchantProfile.MerchantData.BankcardMerchantData.AcquirerBIN; txtAgentBank.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentBank; txtAgentChain.Text = merchantProfile.MerchantData.BankcardMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.BankcardMerchantData.ClientNumber; txtLocation.Text = merchantProfile.MerchantData.BankcardMerchantData.Location; //txtTBD.Text = _MerchantProfile.MerchantData.BankcardMerchantData.PrintCustomerServicePhone == ""; txtSecondaryTerminalId.Text = merchantProfile.MerchantData.BankcardMerchantData.SecondaryTerminalId; txtSettlementAgent.Text = merchantProfile.MerchantData.BankcardMerchantData.SettlementAgent; txtSharingGroup.Text = merchantProfile.MerchantData.BankcardMerchantData.SharingGroup; txtSIC.Text = merchantProfile.MerchantData.BankcardMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.BankcardMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.BankcardMerchantData.TerminalId; txtTimeZoneDifferential.Text = merchantProfile.MerchantData.BankcardMerchantData.TimeZoneDifferential; txtReimbursementAttribute.Text = merchantProfile.MerchantData.BankcardMerchantData.ReimbursementAttribute; } if (_svas != null) { //MerchantData.StoredValueMerchantData txtAgentChain.Text = merchantProfile.MerchantData.StoredValueMerchantData.AgentChain; txtClientNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.ClientNumber; txtSIC.Text = merchantProfile.MerchantData.StoredValueMerchantData.SIC; txtStoreId.Text = merchantProfile.MerchantData.StoredValueMerchantData.StoreId; txtSocketNum.Text = merchantProfile.MerchantData.StoredValueMerchantData.TerminalId; _MerchantIndustryType = merchantProfile.MerchantData.StoredValueMerchantData.IndustryType; } if (_ecks != null) { //MerchantData.ElectronicCheckingMerchantData txtMerchantId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.OrginatorId; txtStoreId.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.SiteId; txtSocketNum.Text = merchantProfile.MerchantData.ElectronicCheckingMerchantData.ProductId; } //First Populate with the Enumeration cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Address.CountryCode.ToString().Length > 0) { cboCountryCode.SelectedItem = merchantProfile.MerchantData.Address.CountryCode; _CountryCode = (TypeISOCountryCodeA3)cboCountryCode.SelectedItem; } //First Populate with the Enumeration cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboLanguage.SelectedItem = merchantProfile.MerchantData.Language; _Language = (TypeISOLanguageCodeA3)cboLanguage.SelectedItem; } //First Populate with the Enumeration cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3)); //Now select the index that matches if (merchantProfile.MerchantData.Language.ToString().Length > 0) { cboCurrencyCode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CurrencyCode; _CurrencyCode = (TypeISOCurrencyCodeA3)cboCurrencyCode.SelectedItem; } //First Populate with the Enumeration cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent.ToString().Length > 0) { cboCustomerPresent.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.CustomerPresent; _CustomerPresent = (CustomerPresent)cboCustomerPresent.SelectedItem; } //First Populate with the Enumeration cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI)); //Now select the index that matches if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI.ToString().Length > 0) { cboRequestACI.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.RequestACI; _RequestACI = (RequestACI)cboRequestACI.SelectedItem; } //First Populate with the Enumeration cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType)); if (merchantProfile.MerchantData.BankcardMerchantData.IndustryType.ToString().Length > 0) { cboMerchantIndustryType.SelectedItem = merchantProfile.MerchantData.BankcardMerchantData.IndustryType; _MerchantIndustryType = (IndustryType)cboMerchantIndustryType.SelectedItem; } //First Populate with the Enumeration cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode)); if (merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode.ToString().Length > 0) { cboEntryMode.SelectedItem = merchantProfile.TransactionData.BankcardTransactionDataDefaults.EntryMode; _EntryMode = (EntryMode)cboEntryMode.SelectedItem; } _Add = false; //In this case it's an update and not an add cmdAddUpdate.Text = "Update"; } if (_bcs != null) { if (_strServiceID == "C82ED00001" || _strServiceID == "71C8700001" || _strServiceID == "88D9300001" || _strServiceID == "B447F00001" || _strServiceID == "D806000001" || _strServiceID == "E88FD00001") { showBCPExpandedFields(); } else if (_strServiceID == "168511300C" || _strServiceID == "9999999999") { showBCPExpandedFields(); } else { showBCPFields(); } } if (_ecks != null) { showECKFields(); } if (_svas != null) { showSVAFields(); } }