Exemplo n.º 1
0
 /// <summary>
 /// 显示系统设置
 /// </summary>
 public static void ShowSystemSetting(SystemSetting systemsetting, HttpResponse response, IDatabase database)
 {
     response.WriteTagWithValue("ID", systemsetting.ID);
     response.WriteTagWithValue("EmailAddress", systemsetting.EmailAddress);
     response.WriteTagWithValue("SmtpHost", systemsetting.SmtpHost);
     response.WriteTagWithValue("SmtpPort", systemsetting.SmtpPort);
     response.WriteTagWithValue("SmtpUsername", systemsetting.SmtpUsername);
     response.WriteTagWithValue("SmtpPassword", systemsetting.SmtpPassword);
     //response.WriteTagWithValue("FinanceWebAddress", systemsetting.FinanceWebAddress);
     //response.WriteTagWithValue("ExpertWebAddress", systemsetting.ExpertWebAddress);
     response.WriteTagWithValue("LogType", systemsetting.GetAutoRunLogType(database));
     response.WriteTagWithValue("WindowsServiceType", systemsetting.GetAutoRunWindowService(database));
 }
Exemplo n.º 2
0
        private static SystemSetting getSystemSetting(this HttpRequest request, IDatabase database, User user)
        {
            var id = request.GetInt("id");
            if (id.HasValue)
                return database.SystemSettings.GetByID(id.Value);

            var systemsetting = new SystemSetting();
            return systemsetting;
        }