A large set of changes for the build environment of Site5
This commit is contained in:
@@ -75,8 +75,6 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Site5", "Site5\", "{367F36E
|
||||
{BA24FAF7-D518-49E8-952A-45595682877E} = {BA24FAF7-D518-49E8-952A-45595682877E}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2CFEAB61-6A3B-4EB8-B523-560B4BEEF521}") = "Deployment", "Deployment\Deployment.wdproj", "{6EE93188-F5A0-481F-A2E9-67C898AE798A}"
|
||||
EndProject
|
||||
Project("{2CFEAB61-6A3B-4EB8-B523-560B4BEEF521}") = "Site5-Deployment", "Site5-Deployment\Site5-Deployment.wdproj", "{D9140E89-9B4E-4021-8B42-A792F33EDF9A}"
|
||||
EndProject
|
||||
Global
|
||||
@@ -227,21 +225,6 @@ Global
|
||||
{367F36EA-AE1C-4E15-BAF9-BA75B18B3807}.Release|Any CPU.Build.0 = Debug|Any CPU
|
||||
{367F36EA-AE1C-4E15-BAF9-BA75B18B3807}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{367F36EA-AE1C-4E15-BAF9-BA75B18B3807}.Release|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Autobuild|.NET.ActiveCfg = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Autobuild|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Autobuild|Any CPU.Build.0 = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Autobuild|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Autobuild|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{6EE93188-F5A0-481F-A2E9-67C898AE798A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{D9140E89-9B4E-4021-8B42-A792F33EDF9A}.Autobuild|.NET.ActiveCfg = Release|Any CPU
|
||||
{D9140E89-9B4E-4021-8B42-A792F33EDF9A}.Autobuild|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D9140E89-9B4E-4021-8B42-A792F33EDF9A}.Autobuild|Any CPU.Build.0 = Release|Any CPU
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Activizr.Backend</RootNamespace>
|
||||
<AssemblyName>activizr-backend</AssemblyName>
|
||||
<AssemblyName>Activizr.Backend</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>./bin/</OutputPath>
|
||||
@@ -80,5 +81,8 @@
|
||||
<Name>Utility</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
|
||||
</Project>
|
||||
@@ -45,7 +45,9 @@
|
||||
<AssemblyName>Activizr.Database</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="MySql.Data, Version=6.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
|
||||
<Reference Include="MySql.Data">
|
||||
<HintPath>..\External Libraries\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Data" />
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Microsoft Visual Studio 2010 Web Deployment Project
|
||||
http://go.microsoft.com/fwlink/?LinkID=104956
|
||||
|
||||
-->
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>10.0.30319</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6EE93188-F5A0-481F-A2E9-67C898AE798A}</ProjectGuid>
|
||||
<SourceWebPhysicalPath>..\Site5</SourceWebPhysicalPath>
|
||||
<SourceWebProject>{367F36EA-AE1C-4E15-BAF9-BA75B18B3807}|C:\Lab\Activizr\Site5</SourceWebProject>
|
||||
<SourceWebVirtualPath>/Site5</SourceWebVirtualPath>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>.\Debug</OutputPath>
|
||||
<EnableUpdateable>true</EnableUpdateable>
|
||||
<UseMerge>true</UseMerge>
|
||||
<SingleAssemblyName>Activizr.Deployed</SingleAssemblyName>
|
||||
<DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles>
|
||||
<DeleteAppDataFolder>true</DeleteAppDataFolder>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<OutputPath>.\Release</OutputPath>
|
||||
<EnableUpdateable>true</EnableUpdateable>
|
||||
<UseMerge>true</UseMerge>
|
||||
<SingleAssemblyName>Deployment</SingleAssemblyName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Basic\Basic.csproj">
|
||||
<Project>{6608C2E6-F841-4CD1-8AB2-28DC3B1DDDD1}</Project>
|
||||
<Name>Basic</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Database\Database.csproj">
|
||||
<Project>{3A5B5F19-51A5-48CE-A82E-97D5C189E5CB}</Project>
|
||||
<Name>Database</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Interface\Interface.csproj">
|
||||
<Project>{BA24FAF7-D518-49E8-952A-45595682877E}</Project>
|
||||
<Name>Interface</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Logic\Logic.csproj">
|
||||
<Project>{13E59551-34AC-43DC-9A03-EF5E4721DC61}</Project>
|
||||
<Name>Logic</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.WebDeployment.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="BeforeMerge">
|
||||
</Target>
|
||||
<Target Name="AfterMerge">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -200,7 +200,7 @@ namespace Activizr.Logic.Communications
|
||||
catch (Exception)
|
||||
{
|
||||
//didnt't work, throw the original error
|
||||
//throw new Exception("Failed to deserialize placeholders:",ex);
|
||||
throw new Exception("Failed to deserialize placeholders:", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+7
-7
@@ -45,8 +45,13 @@
|
||||
<AssemblyName>Activizr.Logic</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="HtmlAgilityPack, Version=1.3.0.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL" />
|
||||
<Reference Include="MySql.Data, Version=6.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
|
||||
<Reference Include="HtmlAgilityPack">
|
||||
<HintPath>..\External Libraries\HtmlAgilityPack.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data, Version=6.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\External Libraries\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Starksoft.Cryptography.OpenPGP, Version=1.0.140.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\External Libraries\Starksoft.Cryptography.OpenPGP.dll</HintPath>
|
||||
@@ -57,10 +62,6 @@
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="ValsedlarDataset, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\Site-Data\Bin\ValsedlarDataset.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
@@ -206,7 +207,6 @@
|
||||
<Compile Include="Security\PermissionSet.cs" />
|
||||
<Compile Include="Security\SHA1.cs" />
|
||||
<Compile Include="Special\Mail\MailServerDatabase.cs" />
|
||||
<Compile Include="Special\Sweden\GeographyBallotCoverageData.cs" />
|
||||
<Compile Include="Special\Sweden\SwedishForumDatabase.cs" />
|
||||
<Compile Include="Special\Sweden\SwedishForumHandleProvider.cs" />
|
||||
<Compile Include="Structure\Cities.cs" />
|
||||
|
||||
@@ -175,11 +175,11 @@ namespace Activizr.Logic.Pirates
|
||||
public void Deattest(Person deattester)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
/*
|
||||
base.Attested = false;
|
||||
PirateDb.GetDatabase().CreateFinancialValidation(FinancialValidationType.Deattestation,
|
||||
FinancialDependencyType.Parley, this.Identity,
|
||||
DateTime.Now, deattester.Identity, (double)(this.GuaranteeDecimal+this.BudgetDecimal));
|
||||
DateTime.Now, deattester.Identity, (double)(this.GuaranteeDecimal+this.BudgetDecimal));*/
|
||||
|
||||
// TODO: Remove budget, remove financial account, set unattested
|
||||
|
||||
|
||||
@@ -1,309 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
using Activizr.Logic.Structure;
|
||||
using Activizr.Logic.Special.Sweden;
|
||||
using Activizr.Logic.Support;
|
||||
using Activizr.Basic.Enums;
|
||||
using ValsedlarDataset;
|
||||
using ValsedlarDataset.ValSedlarTableAdapters;
|
||||
using System.Web.Caching;
|
||||
|
||||
|
||||
namespace Activizr.Logic.Special.Sweden
|
||||
{
|
||||
[Serializable]
|
||||
public class GeographyBallotCoverageDataPoint : IComparable
|
||||
{
|
||||
public int GeographyId;
|
||||
public int AdvanceVotingStationsDistro;
|
||||
public int AdvanceVotingStationsTotal;
|
||||
public int VotingStationsTotal;
|
||||
public int VotingStationsDistroSingle;
|
||||
public int VotingStationsDistroDouble;
|
||||
public int VotingStationsComplete;
|
||||
public int WAdvanceVotingStationsDistro;
|
||||
public int WAdvanceVotingStationsTotal;
|
||||
public int WWAdvanceVotingStationsTotal;
|
||||
public int WWAdvanceVotingStationsDistro;
|
||||
public int WVotingStationsTotal;
|
||||
public int WVotingStationsDistroSingle;
|
||||
public int WVotingStationsDistroDouble;
|
||||
public int WVotingStationsComplete;
|
||||
public string BookingUrl;
|
||||
public int VoterCount;
|
||||
|
||||
public double AdvanceVotingCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return AdvanceVotingStationsDistro * 100.0 / AdvanceVotingStationsTotal;
|
||||
}
|
||||
|
||||
}
|
||||
public double WAdvanceVotingCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return WAdvanceVotingStationsDistro * 100.0 / WAdvanceVotingStationsTotal;
|
||||
}
|
||||
|
||||
}
|
||||
public double WWAdvanceVotingCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return WWAdvanceVotingStationsDistro * 100.0 / WWAdvanceVotingStationsTotal;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public double VotingCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return (VotingStationsDistroSingle) * 100.0 / VotingStationsTotal;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public double WVotingCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return (WVotingStationsDistroSingle) * 100.0 / WVotingStationsTotal;
|
||||
}
|
||||
|
||||
}
|
||||
public double VotingDoubleCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return (VotingStationsDistroDouble) * 100.0 / VotingStationsTotal;
|
||||
}
|
||||
}
|
||||
|
||||
public double WVotingDoubleCoverage
|
||||
{
|
||||
get
|
||||
{
|
||||
return (WVotingStationsDistroDouble) * 100.0 / WVotingStationsTotal;
|
||||
}
|
||||
}
|
||||
|
||||
public void CalculateWeighted ()
|
||||
{
|
||||
WAdvanceVotingStationsDistro = VoterCount * AdvanceVotingStationsDistro;
|
||||
WAdvanceVotingStationsTotal = VoterCount * AdvanceVotingStationsTotal;
|
||||
WVotingStationsTotal = VoterCount * VotingStationsTotal;
|
||||
WVotingStationsDistroSingle = VoterCount * VotingStationsDistroSingle;
|
||||
WVotingStationsDistroDouble = VoterCount * VotingStationsDistroDouble;
|
||||
WVotingStationsComplete = VoterCount * VotingStationsComplete;
|
||||
|
||||
}
|
||||
#region IComparable Members
|
||||
|
||||
public int CompareTo (object obj)
|
||||
{
|
||||
// This compares voting.
|
||||
|
||||
GeographyBallotCoverageDataPoint otherPoint = (GeographyBallotCoverageDataPoint)obj;
|
||||
|
||||
if (otherPoint.VotingCoverage > this.VotingCoverage)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else if (otherPoint.VotingCoverage < this.VotingCoverage)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public class GeographyBallotCoverageData : List<GeographyBallotCoverageDataPoint>
|
||||
{
|
||||
|
||||
public static object cacheLocker = new object();
|
||||
|
||||
public GeographyBallotCoverageLookup ToLookup ()
|
||||
{
|
||||
GeographyBallotCoverageLookup result = new GeographyBallotCoverageLookup();
|
||||
|
||||
foreach (GeographyBallotCoverageDataPoint dataPoint in this)
|
||||
{
|
||||
result[dataPoint.GeographyId] = dataPoint;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static GeographyBallotCoverageData UpdateBallotDistroData ()
|
||||
{
|
||||
|
||||
ValSedlar ds = new ValSedlar();
|
||||
|
||||
GeographyBallotCoverageData coverageData = new GeographyBallotCoverageData();
|
||||
|
||||
Dictionary<int, GeographyBallotCoverageDataPoint> lookup = new Dictionary<int, GeographyBallotCoverageDataPoint>();
|
||||
|
||||
bookingcountsTableAdapter countsTA = new bookingcountsTableAdapter();
|
||||
countsTA.Fill(ds.bookingcounts);
|
||||
|
||||
GeographyBallotCoverageDataPoint SEdataPoint = new GeographyBallotCoverageDataPoint();
|
||||
SEdataPoint.GeographyId = Geography.SwedenId;
|
||||
SEdataPoint.BookingUrl = "http://data.piratpartiet.se/Valsedelbokning";
|
||||
|
||||
coverageData.Add(SEdataPoint);
|
||||
|
||||
lookup[SEdataPoint.GeographyId] = SEdataPoint;
|
||||
|
||||
GeographyBallotCoverageDataPoint dataPoint = null;
|
||||
|
||||
foreach (ValSedlar.bookingcountsRow line in ds.bookingcounts.Rows)
|
||||
{
|
||||
|
||||
if (lookup.ContainsKey(line.GeographyId))
|
||||
{
|
||||
dataPoint = lookup[line.GeographyId];
|
||||
}
|
||||
else
|
||||
{
|
||||
dataPoint = new GeographyBallotCoverageDataPoint();
|
||||
dataPoint.GeographyId = line.GeographyId;
|
||||
dataPoint.AdvanceVotingStationsDistro = 0;
|
||||
dataPoint.AdvanceVotingStationsTotal = 0;
|
||||
dataPoint.WWAdvanceVotingStationsDistro = 0;
|
||||
dataPoint.WWAdvanceVotingStationsTotal = 0;
|
||||
dataPoint.BookingUrl = "http://data.piratpartiet.se/Valsedelbokning/main.aspx?kommun=" + line.GeographyId;
|
||||
dataPoint.VotingStationsComplete = 0;
|
||||
dataPoint.VotingStationsDistroDouble = 0;
|
||||
dataPoint.VotingStationsDistroSingle = 0;
|
||||
dataPoint.VotingStationsTotal = 0;
|
||||
dataPoint.VoterCount = line.VoterCount;
|
||||
|
||||
SEdataPoint.VoterCount += line.VoterCount;
|
||||
|
||||
lookup[line.GeographyId] = dataPoint;
|
||||
|
||||
coverageData.Add(dataPoint);
|
||||
|
||||
}
|
||||
if (line.Typ == "V")
|
||||
{
|
||||
|
||||
dataPoint.VotingStationsTotal = (int)line.CntLokal;
|
||||
dataPoint.VotingStationsDistroSingle = (int)line.CntDist;
|
||||
dataPoint.VotingStationsDistroDouble = (int)line.CntVard;
|
||||
dataPoint.VotingStationsComplete = (int)line.CntFull;
|
||||
|
||||
dataPoint.CalculateWeighted();
|
||||
|
||||
SEdataPoint.VotingStationsComplete += dataPoint.VotingStationsComplete;
|
||||
SEdataPoint.VotingStationsDistroDouble += dataPoint.VotingStationsDistroDouble;
|
||||
SEdataPoint.VotingStationsDistroSingle += dataPoint.VotingStationsDistroSingle;
|
||||
SEdataPoint.VotingStationsTotal += dataPoint.VotingStationsTotal;
|
||||
|
||||
SEdataPoint.WVotingStationsComplete += dataPoint.WVotingStationsComplete;
|
||||
SEdataPoint.WVotingStationsDistroDouble += dataPoint.WVotingStationsDistroDouble;
|
||||
SEdataPoint.WVotingStationsDistroSingle += dataPoint.WVotingStationsDistroSingle;
|
||||
SEdataPoint.WVotingStationsTotal += dataPoint.WVotingStationsTotal;
|
||||
|
||||
}
|
||||
else if (line.Typ == "F")
|
||||
{
|
||||
dataPoint.AdvanceVotingStationsTotal = (int)line.CntLokal;
|
||||
dataPoint.AdvanceVotingStationsDistro = (int)line.CntDist;
|
||||
dataPoint.WWAdvanceVotingStationsTotal = (int)line.VoterCountCalcTot;
|
||||
dataPoint.WWAdvanceVotingStationsDistro = (int)line.VoterCountCalcBooked;
|
||||
|
||||
dataPoint.CalculateWeighted();
|
||||
|
||||
SEdataPoint.AdvanceVotingStationsDistro += dataPoint.AdvanceVotingStationsDistro;
|
||||
SEdataPoint.AdvanceVotingStationsTotal += dataPoint.AdvanceVotingStationsTotal;
|
||||
|
||||
SEdataPoint.WAdvanceVotingStationsDistro += dataPoint.WAdvanceVotingStationsDistro;
|
||||
SEdataPoint.WAdvanceVotingStationsTotal += dataPoint.WAdvanceVotingStationsTotal;
|
||||
SEdataPoint.WWAdvanceVotingStationsTotal += dataPoint.WWAdvanceVotingStationsTotal;
|
||||
SEdataPoint.WWAdvanceVotingStationsDistro += dataPoint.WWAdvanceVotingStationsDistro;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// This is not very optimized, but it runs only once per hour and
|
||||
// has easy-to-follow logic.
|
||||
|
||||
// For each circuit, get the geography tree, and for every node that has coverage data,
|
||||
// aggreagate that data.
|
||||
|
||||
Geographies circuits = Geographies.FromLevel(Country.FromCode("SE"), GeographyLevel.ElectoralCircuit);
|
||||
|
||||
foreach (Geography circuit in circuits)
|
||||
{
|
||||
GeographyBallotCoverageDataPoint circuitDataPoint =
|
||||
new GeographyBallotCoverageDataPoint { GeographyId = circuit.Identity };
|
||||
Geographies circuitTree = circuit.GetTree();
|
||||
|
||||
foreach (Geography circuitNode in circuitTree)
|
||||
{
|
||||
if (lookup.ContainsKey(circuitNode.Identity))
|
||||
{
|
||||
//BotLog.Write(4, "BallotDistroData", "Adding " + circuitNode.Name);
|
||||
|
||||
circuitDataPoint.AdvanceVotingStationsDistro +=
|
||||
lookup[circuitNode.Identity].AdvanceVotingStationsDistro;
|
||||
circuitDataPoint.AdvanceVotingStationsTotal +=
|
||||
lookup[circuitNode.Identity].AdvanceVotingStationsTotal;
|
||||
circuitDataPoint.VotingStationsDistroSingle +=
|
||||
lookup[circuitNode.Identity].VotingStationsDistroSingle;
|
||||
circuitDataPoint.VotingStationsDistroDouble +=
|
||||
lookup[circuitNode.Identity].VotingStationsDistroDouble;
|
||||
circuitDataPoint.VotingStationsComplete +=
|
||||
lookup[circuitNode.Identity].VotingStationsComplete;
|
||||
circuitDataPoint.VotingStationsTotal +=
|
||||
lookup[circuitNode.Identity].VotingStationsTotal;
|
||||
|
||||
circuitDataPoint.WAdvanceVotingStationsDistro +=
|
||||
lookup[circuitNode.Identity].WAdvanceVotingStationsDistro;
|
||||
circuitDataPoint.WAdvanceVotingStationsTotal +=
|
||||
lookup[circuitNode.Identity].WAdvanceVotingStationsTotal;
|
||||
circuitDataPoint.WVotingStationsDistroSingle +=
|
||||
lookup[circuitNode.Identity].WVotingStationsDistroSingle;
|
||||
circuitDataPoint.WVotingStationsDistroDouble +=
|
||||
lookup[circuitNode.Identity].WVotingStationsDistroDouble;
|
||||
circuitDataPoint.WVotingStationsComplete +=
|
||||
lookup[circuitNode.Identity].WVotingStationsComplete;
|
||||
circuitDataPoint.WVotingStationsTotal +=
|
||||
lookup[circuitNode.Identity].WVotingStationsTotal;
|
||||
|
||||
circuitDataPoint.WWAdvanceVotingStationsTotal += lookup[circuitNode.Identity].WWAdvanceVotingStationsTotal;
|
||||
circuitDataPoint.WWAdvanceVotingStationsDistro += lookup[circuitNode.Identity].WWAdvanceVotingStationsDistro;
|
||||
|
||||
|
||||
circuitDataPoint.VoterCount +=
|
||||
lookup[circuitNode.Identity].VoterCount;
|
||||
}
|
||||
}
|
||||
|
||||
coverageData.Add(circuitDataPoint);
|
||||
}
|
||||
|
||||
return coverageData; ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class GeographyBallotCoverageLookup : Dictionary<int, GeographyBallotCoverageDataPoint>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -75,7 +75,7 @@ namespace Activizr.Logic.Special.Sweden
|
||||
{
|
||||
result.Add(ReadFullSupportCaseFromReader(reader));
|
||||
}
|
||||
catch (System.Data.SqlTypes.SqlNullValueException e)
|
||||
catch (System.Data.SqlTypes.SqlNullValueException)
|
||||
{
|
||||
Console.WriteLine("Exception on bug {0}", reader.GetInt32(0));
|
||||
}
|
||||
@@ -480,27 +480,13 @@ namespace Activizr.Logic.Special.Sweden
|
||||
{
|
||||
try
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
|
||||
person.SendPhoneMessage("Piratpartiet: den mailadress vi har till dig (" +
|
||||
person.Email +
|
||||
") studsar. Kontakta medlemsservice@piratpartiet.se med ny adress.");
|
||||
CloseWithComment(@case.Identity,
|
||||
"Successfully notified the member at phone# " + person.Phone +
|
||||
", " + person.Name + " (#" + person.Identity.ToString() +
|
||||
"), about the bounced email using an SMS message. Case closed.");
|
||||
}
|
||||
else
|
||||
{
|
||||
/* -- TEMPORARY DURING ELECTION RUSH 2010: we mark unreachable and don't SMS notify */
|
||||
CloseWithComment(@case.Identity,
|
||||
"The member at phone# " + person.Phone +
|
||||
", " + person.Name + " (#" + person.Identity.ToString() +
|
||||
") could be uniquely identified, but SMS notifications are currently off. The person has been marked unreachable for later notification. Case closed.");
|
||||
|
||||
person.MailUnreachable = true;
|
||||
}
|
||||
person.SendPhoneMessage("Piratpartiet: den mailadress vi har till dig (" +
|
||||
person.Email +
|
||||
") studsar. Kontakta medlemsservice@piratpartiet.se med ny adress.");
|
||||
CloseWithComment(@case.Identity,
|
||||
"Successfully notified the member at phone# " + person.Phone +
|
||||
", " + person.Name + " (#" + person.Identity.ToString() +
|
||||
"), about the bounced email using an SMS message. Case closed.");
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,31 +0,0 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<%--Needed for JavaScript IntelliSense in VS2010--%>
|
||||
<%--For VS2008 replace RadScriptManager with ScriptManager--%>
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
|
||||
</Scripts>
|
||||
</telerik:RadScriptManager>
|
||||
<script type="text/javascript">
|
||||
//Put your JavaScript code here.
|
||||
</script>
|
||||
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
|
||||
</telerik:RadAjaxManager>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
public partial class Default : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><VisualWebDeveloper>
|
||||
|
||||
<!--
|
||||
Visual Studio global web project settings.
|
||||
-->
|
||||
|
||||
|
||||
<Globals>
|
||||
<UserProperties UseAjaxifiedTemplates="True" UseJQuerySupport="True"/></Globals></VisualWebDeveloper>
|
||||
@@ -1,97 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Note: As an alternative to hand editing this file you can use the
|
||||
web admin tool to configure settings for your application. Use
|
||||
the Website->Asp.Net Configuration option in Visual Studio.
|
||||
A full list of settings and comments can be found in
|
||||
machine.config.comments usually located in
|
||||
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
|
||||
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections>
|
||||
<appSettings/>
|
||||
<connectionStrings/>
|
||||
<system.web>
|
||||
<!--
|
||||
Set compilation debug="true" to insert debugging
|
||||
symbols into the compiled page. Because this
|
||||
affects performance, set this value to true only
|
||||
during development.
|
||||
-->
|
||||
<!--
|
||||
Set compilation debug="true" to insert debugging
|
||||
symbols into the compiled page. Because this
|
||||
affects performance, set this value to true only
|
||||
during development.
|
||||
--><compilation debug="false">
|
||||
<assemblies>
|
||||
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></assemblies></compilation>
|
||||
<!--
|
||||
The <authentication> section enables configuration
|
||||
of the security authentication mode used by
|
||||
ASP.NET to identify an incoming user.
|
||||
-->
|
||||
<authentication mode="Windows"/>
|
||||
<pages>
|
||||
<controls>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/></controls></pages>
|
||||
<httpHandlers>
|
||||
<remove verb="*" path="*.asmx"/>
|
||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
|
||||
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
|
||||
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
|
||||
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
|
||||
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/></httpHandlers>
|
||||
<httpModules>
|
||||
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
|
||||
<add name="RadCompression" type="Telerik.Web.UI.RadCompression"/></httpModules>
|
||||
<!--
|
||||
The <customErrors> section enables configuration
|
||||
of what to do if/when an unhandled error occurs
|
||||
during the execution of a request. Specifically,
|
||||
it enables developers to configure html error pages
|
||||
to be displayed in place of a error stack trace.
|
||||
|
||||
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
||||
<error statusCode="403" redirect="NoAccess.htm" />
|
||||
<error statusCode="404" redirect="FileNotFound.htm" />
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
<system.web.extensions>
|
||||
<scripting>
|
||||
<webServices/></scripting></system.web.extensions>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
<modules>
|
||||
<remove name="RadUploadModule"/>
|
||||
<remove name="RadCompression"/><add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0"/>
|
||||
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0"/></modules>
|
||||
<handlers>
|
||||
<remove name="WebServiceHandlerFactory-Integrated"/>
|
||||
<remove name="ChartImage_axd"/>
|
||||
<remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
|
||||
<remove name="Telerik_Web_UI_DialogHandler_aspx"/>
|
||||
<remove name="Telerik_RadUploadProgressHandler_ashx"/>
|
||||
<remove name="Telerik_Web_UI_WebResource_axd"/><add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
|
||||
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
|
||||
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
|
||||
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
|
||||
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/></handlers></system.webServer>
|
||||
</configuration>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user