Ejemplo n.º 1
0
 //绑定初始系统配置信息
 public void DataBindBaseConfig()
 {
     DalOperationBaseConfig dobc = new DalOperationBaseConfig();
     BaseConfig basecofig = dobc.FindBaseConfig();
     if (basecofig != null)
     {
         txtSystemName.Text = basecofig.systemName;
         txtSystemVersion.Text = basecofig.systemVersion;
         txtSystemCopyright.Text = basecofig.systemCopyRight;
         txtServerAddress.Text = basecofig.fileServerAddress;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取系统基本设置Cache,如果为空则重新生成
        /// </summary>
        /// <returns>系统基本设置实体类</returns>
        public static BaseConfig GetBaseConfig()
        {
            if (webCache["baseConfig"] == null)
            {
                DalOperationBaseConfig dobc = new DalOperationBaseConfig();
                BaseConfig baseconfig = dobc.FindBaseConfig();

                webCache.Insert("baseConfig", baseconfig);

                return baseconfig;
            }
            else
            {
                return (BaseConfig)webCache["baseConfig"];
            }
        }