Esempio n. 1
0
        public virtual void UpdateKeyCurrency()
        {
            KeyCurrency c = KeyCurrency.Instance;

            c.Name      = ctx.Post("Name");
            c.Unit      = ctx.Post("Unit");
            c.InitValue = ctx.PostInt("InitValue");
            c.IsShow    = ctx.PostIsCheck("IsShow");
            c.CanRate   = ctx.PostIsCheck("CanRate");
            if (strUtil.IsNullOrEmpty(c.Name))
            {
                errors.Add(lang("exName"));
                run(EditKeyCurrency);
            }
            else
            {
                c.update();
                log(SiteLogString.UpdateKeyCurrency(), typeof(KeyCurrency));
                echoToParentPart(lang("saved"));
            }
        }