Esempio n. 1
0
        public static void tbrSave_OnClickActionStep(IHelpConfiguration form, EventArgs args)
        {
            // save the help configurations
            var profile = form.CurrentEntity as Sage.Entity.Interfaces.IOfficeProfile;

            profile.UpdatePortalHelpUrl("webclient", form.urlWebHelp.Text);
            profile.UpdatePortalHelpUrl("customerportal", form.urlCustomerPortalHelp.Text);
            profile.UpdateLocaleConfig("webclient", form.pklWebClientSupportedLang.PickListValue);
            profile.UpdateLocaleConfig("customerportal", form.pklCustomerPortalSupportedLang.PickListValue);
        }
        public static void OnLoad1Step(IHelpConfiguration form, EventArgs args)
        {
            // TODO: Complete business rule implementation
            var options = form.CurrentEntity as Sage.Entity.Interfaces.IOfficeProfile;

            if (options != null)
            {
                string clientUrl         = options.GetPortalHelpUrl("webclient");
                string customerPortalUrl = options.GetPortalHelpUrl("customerportal");
                form.urlWebHelp.Text                  = clientUrl;
                form.urlWebHelp.IsReadOnly            = !form.chkUseWebHelp.Checked;
                form.urlCustomerPortalHelp.Text       = customerPortalUrl;
                form.urlCustomerPortalHelp.IsReadOnly = !form.chkUseCustomerPortalHelp.Checked;

                string clientLocaleConfig         = options.GetLocaleConfig("webclient");
                string customerPortalLocaleConfig = options.GetLocaleConfig("customerportal");
                form.pklWebClientSupportedLang.PickListValue      = clientLocaleConfig;
                form.pklCustomerPortalSupportedLang.PickListValue = customerPortalLocaleConfig;
            }
        }