Ejemplo n.º 1
0
        public ActionResult SetConstValue_Save(string sData)
        {
            ConstValueStr model = JSON.Deserialize <ConstValueStr>(sData);

            //SetConnectConfiguration("ConnStr", model.sConnStr);
            //SetConnectConfiguration("ConnSyStr", model.sConnSysStr);
            SetAppSettingConfiguration("DataListPageLimit", model.sDataListPageLimit.ToString());
            SetAppSettingConfiguration("FloatDecimal", model.sFloatDecimal.ToString());
            SetAppSettingConfiguration("MenuType", model.cmbMenuType);
            SetAppSettingConfiguration("TabType", model.cmbTabType);
            X.Msg.Alert("成功", "保存完毕,请刷新整个系统。").Show();
            DirectResult result = new DirectResult();

            //result.IsUpload = true;
            return(result);
        }
Ejemplo n.º 2
0
        // GET: /OperationInfo/
        public ActionResult Index()
        {
            ConstValueStr model = new ConstValueStr();

            //model.sConnStr = AppSettingValues.DB_CONN_STRING;
            //model.sConnSysStr = AppSettingValues.SYDB_CONN_STRING;
            model.sDataListPageLimit = AppSettingValues.DATALISTPAGELIMIT;
            model.sFloatDecimal      = AppSettingValues.FLOATDECIMAL;
            model.cmbMenuType        = AppSettingValues.MENUTYPE;
            model.cmbTabType         = AppSettingValues.TABTYPE;
            //model.cmbTheme = AppSettingValues.THEME;
            var form = this.GetCmp <FormPanel>("SetConstValue_Form");

            form.SetValues(model);
            return(View());
        }