private void LoadProvisoningSettings()
        {
            StoreSettings settings = StorehouseHelper.GetStoreSettings(StoreSettings.SYSTEM_SETTINGS);

            //
            if (settings != null)
            {
                if (!String.IsNullOrEmpty(settings["InvoiceGracePeriod"]))
                {
                    txtGracePeriod.Text = settings["InvoiceGracePeriod"];
                }
                //
                txtInvoiceNumFormat.Text = settings["InvoiceNumberFormat"];
                //
                txtBaseCurrency.Text = settings["BaseCurrency"];
                //
                if (!String.IsNullOrEmpty(settings["SvcInvoiceThreshold"]))
                {
                    txtSvcsInvoiceThreshold.Text = settings["SvcInvoiceThreshold"];
                }
                //
                if (!String.IsNullOrEmpty(settings["SvcCancelThreshold"]))
                {
                    txtSvcsCancelThreshold.Text = settings["SvcCancelThreshold"];
                }
                //
                rblUseSSL.SelectedIndex = ecUtils.ParseBoolean(settings["SecurePayments"], true) ? 0 : 1;
            }
        }
示例#2
0
 private void LoadWelcomeMessage()
 {
     try
     {
         StoreSettings settings = StorehouseHelper.GetStoreSettings(StoreSettings.WELCOME_MESSAGE);
         //
         txtWelcomeMsg.Text = settings["HtmlText"];
     }
     catch (Exception ex)
     {
         ShowErrorMessage("LOAD_WELCOME_MSG", ex);
     }
 }
示例#3
0
        private void LoadTermsAndConds()
        {
            try
            {
                StoreSettings settings = StorehouseHelper.GetStoreSettings(StoreSettings.TERMS_AND_CONDITIONS);

                if (settings != null)
                {
                    txtTermsAndConds.Text = settings["StatementTemplate"];
                }
            }
            catch (Exception ex)
            {
                ShowErrorMessage("LOAD_TERMS_CONDS", ex);
            }
        }
        private void LoadNotificationTemplate()
        {
            //
            StoreSettings s_store = StorehouseHelper.GetStoreSettings(StoreSettings.PAYMENT_RECEIVED);

            //
            if (s_store != null)
            {
                //
                EmailEditor.From = s_store["From"];
                //
                EmailEditor.CC = s_store["CC"];
                //
                EmailEditor.Subject = s_store["Subject"];
                //
                EmailEditor.HtmlBody = s_store["HtmlBody"];
                //
                EmailEditor.PlainTextBody = s_store["TextBody"];
            }
        }