Added download of balance sheet, security on switch orgs, loc of new features to sv-SE

This commit is contained in:
Rick Falkvinge
2012-12-12 12:54:18 +00:00
parent 4bcd5694fb
commit dc6bfed9fc
24 changed files with 1216 additions and 252 deletions
@@ -32,6 +32,10 @@ namespace Activizr.Basic.Enums
/// </summary>
AssetsVat,
/// <summary>
/// If virtual banking is enabled, this is where the virtual assets go
/// </summary>
AssetsVirtualBanking,
/// <summary>
/// Any expense claims on the organization that have not been paid back
/// </summary>
DebtsExpenseClaims,
@@ -48,23 +52,23 @@ namespace Activizr.Basic.Enums
/// </summary>
DebtsTax,
/// <summary>
/// Own capital - asset balancing yearly result, accumulating year after year
/// Equity - the difference between debt and assets
/// </summary>
DebtsCapital,
DebtsEquity,
/// <summary>
/// Undeclared Value Added Tax (outbound) before putting it on tax balance
/// </summary>
DebtsVat,
/// <summary>
/// If virtual banking is enabled, this is the central debt to local assets
/// </summary>
DebtsVirtualBanking,
/// <summary>
/// Other debts in general
/// </summary>
DebtsOther,
/// <summary>
/// Main income account
/// </summary>
IncomeGeneral,
/// <summary>
/// Income specifically from sales - default outbound invoices to this acct
/// Income from sales - default outbound invoices to this acct
/// </summary>
IncomeSales,
/// <summary>
@@ -88,7 +92,7 @@ namespace Activizr.Basic.Enums
/// </summary>
CostsAllocatedFunds,
/// <summary>
/// When closing books, this is the yearly result (balanced against DebtsCapital)
/// When closing books, this is the yearly result (balanced against DebtsEquity)
/// </summary>
CostsYearlyResult // multi-account type
};
@@ -43,7 +43,7 @@ namespace Activizr.Logic.Financial
organizationAccounts[OrganizationFinancialAccountType.DebtsInboundInvoices] = FinancialAccount.FromIdentity(25); //
organizationAccounts[OrganizationFinancialAccountType.DebtsOther] = FinancialAccount.FromIdentity(25); //
organizationAccounts[OrganizationFinancialAccountType.AssetsOutboundInvoices] = FinancialAccount.FromIdentity(28); //
organizationAccounts[OrganizationFinancialAccountType.DebtsCapital] = FinancialAccount.FromIdentity(96); //
organizationAccounts[OrganizationFinancialAccountType.DebtsEquity] = FinancialAccount.FromIdentity(96); //
organizationAccounts[OrganizationFinancialAccountType.AssetsPaypal] = FinancialAccount.FromIdentity(2); //
organizationAccounts[OrganizationFinancialAccountType.CostsYearlyResult] = FinancialAccount.FromIdentity(97); //
organizationAccounts[OrganizationFinancialAccountType.AssetsOutstandingCashAdvances] = FinancialAccount.FromIdentity(156); //
@@ -137,9 +137,9 @@ namespace Activizr.Logic.Financial
get { return this[OrganizationFinancialAccountType.CostsYearlyResult]; }
}
public FinancialAccount DebtsCapital
public FinancialAccount DebtsEquity
{
get { return this[OrganizationFinancialAccountType.DebtsCapital]; }
get { return this[OrganizationFinancialAccountType.DebtsEquity]; }
}
public FinancialAccount DebtsExpenseClaims
@@ -172,11 +172,6 @@ namespace Activizr.Logic.Financial
get { return this[OrganizationFinancialAccountType.DebtsSalary]; }
}
public FinancialAccount IncomeGeneral
{
get { return this[OrganizationFinancialAccountType.IncomeGeneral]; }
}
public FinancialAccount IncomeDonations
{
get { return this[OrganizationFinancialAccountType.IncomeDonations]; }
+62
View File
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using Activizr.Basic.Enums;
using Activizr.Basic.Types;
using Activizr.Logic.Structure;
namespace Activizr.Logic.Financial
@@ -51,6 +52,13 @@ namespace Activizr.Logic.Financial
}
if (report._treeMap[0].Count > 3)
{
// regroup list
report.AggregateAccounts();
}
FinancialAccounts orderedList = new FinancialAccounts(); // This list is guaranteed to have parents before children
report.PopulateOrderedList(orderedList, 0); // recursively add nodes parents-first
@@ -67,6 +75,60 @@ namespace Activizr.Logic.Financial
private FinancialAccountType _accountType;
private void AggregateAccounts()
{
const int assetIdentity = 1000000001;
const int debtIdentity = 1000000002;
const int incomeIdentity = 1000000003;
const int costIdentity = 1000000004;
Dictionary<FinancialAccountType, int> remapLookup = new Dictionary<FinancialAccountType, int>();
remapLookup[FinancialAccountType.Asset] = assetIdentity;
remapLookup[FinancialAccountType.Debt] = debtIdentity;
remapLookup[FinancialAccountType.Income] = incomeIdentity;
remapLookup[FinancialAccountType.Cost] = costIdentity;
List<FinancialAccount> newRootLevel = new List<FinancialAccount>();
int equityIdentity = _treeMap[0][0].Organization.FinancialAccounts.DebtsEquity.Identity;
if (_accountType == FinancialAccountType.Balance)
{
newRootLevel.Add(FinancialAccount.FromBasic(new BasicFinancialAccount(assetIdentity, "%ASSET_ACCOUNTGROUP%", FinancialAccountType.Asset, 0, 0, 0)));
newRootLevel.Add(FinancialAccount.FromBasic(new BasicFinancialAccount(debtIdentity, "%DEBT_ACCOUNTGROUP%", FinancialAccountType.Debt, 0, 0, 0)));
}
else if (_accountType == FinancialAccountType.Result)
{
newRootLevel.Add(FinancialAccount.FromBasic(new BasicFinancialAccount(incomeIdentity, "%INCOME_ACCOUNTGROUP%", FinancialAccountType.Income, 0, 0, 0)));
newRootLevel.Add(FinancialAccount.FromBasic(new BasicFinancialAccount(costIdentity, "%COST_ACCOUNTGROUP%", FinancialAccountType.Cost, 0, 0, 0)));
}
else
{
throw new InvalidOperationException("AccountType other than Balance or Result passed to YearlyReport.AggregateAccounts()");
}
foreach (FinancialAccount account in _treeMap[0])
{
if (account.Identity == equityIdentity)
{
newRootLevel.Add(account);
}
else
{
if (!_treeMap.ContainsKey(remapLookup[account.AccountType]))
{
_treeMap[remapLookup[account.AccountType]] = new List<FinancialAccount>();
}
_treeMap[remapLookup[account.AccountType]].Add(account);
}
}
_treeMap[0] = newRootLevel;
}
private void PopulateTotals()
{
this.Totals = new YearlyReportNode();
+21 -12
View File
@@ -245,8 +245,8 @@ namespace Activizr.Logic.Structure
FinancialAccount.Create(this.Identity, "ICT and Infrastructure", FinancialAccountType.Cost, 0);
FinancialAccounts[OrganizationFinancialAccountType.CostsYearlyResult] =
FinancialAccount.Create(this.Identity, "Yearly result", FinancialAccountType.Cost, 0);
FinancialAccounts[OrganizationFinancialAccountType.DebtsCapital] =
FinancialAccount.Create(this.Identity, "Own Capital", FinancialAccountType.Debt, 0);
FinancialAccounts[OrganizationFinancialAccountType.DebtsEquity] =
FinancialAccount.Create(this.Identity, "Equity", FinancialAccountType.Debt, 0);
FinancialAccounts[OrganizationFinancialAccountType.DebtsExpenseClaims] =
FinancialAccount.Create(this.Identity, "Expense Claims", FinancialAccountType.Debt, 0);
FinancialAccounts[OrganizationFinancialAccountType.DebtsInboundInvoices] =
@@ -260,17 +260,10 @@ namespace Activizr.Logic.Structure
FinancialAccounts[OrganizationFinancialAccountType.DebtsVat] =
FinancialAccount.Create(this.Identity, "Outbound Value Added Tax", FinancialAccountType.Debt, 0);
FinancialAccount incomeGeneral =
FinancialAccount.Create(this.Identity, "Income", FinancialAccountType.Income, 0);
// We need to store this in code because of database lag replication issues when creating children -
// we can't use assume that it's available for reading yet.
FinancialAccounts[OrganizationFinancialAccountType.IncomeGeneral] = incomeGeneral;
FinancialAccounts[OrganizationFinancialAccountType.IncomeDonations] =
FinancialAccount.Create(this.Identity, "Donations", FinancialAccountType.Income, incomeGeneral.Identity);
FinancialAccount.Create(this.Identity, "Donations", FinancialAccountType.Income, 0);
FinancialAccounts[OrganizationFinancialAccountType.IncomeSales] =
FinancialAccount.Create(this.Identity, "Sales", FinancialAccountType.Income, incomeGeneral.Identity);
FinancialAccount.Create(this.Identity, "Sales", FinancialAccountType.Income, 0);
// Then, create various cost accounts that are probably needed, or that could be used as a starting point
@@ -632,7 +625,6 @@ namespace Activizr.Logic.Structure
#region class globals
public static readonly int SandboxIdentity = 3;
public static readonly int RootIdentity = 5;
public static readonly int PPSEid = 1;
public static readonly int UPSEid = 2;
@@ -647,6 +639,23 @@ namespace Activizr.Logic.Structure
get { return FromIdentity(SandboxIdentity); }
}
public static int SandboxIdentity
{
get
{
if (Organization.FromIdentity(1).Name.StartsWith("Sandbox"))
{
return 1;
}
else if (Organization.FromIdentity(3).Name.StartsWith("Sandbox"))
{
return 3;
}
throw new InvalidOperationException("Cannot locate Sandbox organization's identity");
}
}
public static Organization Root
{
get { return FromIdentity(RootIdentity); }
+3
View File
@@ -213,6 +213,9 @@
<value>Please select a file to upload.</value>
<comment>Error message. Displayed when the used has clicked "Upload" without selecting a file to upload.</comment>
</data>
<data name="Master_SwitchOrganizationDialog" xml:space="preserve">
<value>You are currently logged into &lt;strong&gt;{0}&lt;/strong&gt;. Would you like to switch to another organization?</value>
</data>
<data name="Sidebar_Actions" xml:space="preserve">
<value>Actions</value>
<comment>List of shortcuts to likely actions</comment>
@@ -120,6 +120,9 @@
<data name="BalanceSheet_AccountName" xml:space="preserve">
<value>Account</value>
</data>
<data name="BalanceSheet_Assets" xml:space="preserve">
<value>Assets</value>
</data>
<data name="BalanceSheet_ContentHeader" xml:space="preserve">
<value>Balance Sheet for {0},</value>
<comment>{0} is the organization name. The year follows immediately.</comment>
@@ -127,6 +130,9 @@
<data name="BalanceSheet_Current" xml:space="preserve">
<value>Current</value>
</data>
<data name="BalanceSheet_Debt" xml:space="preserve">
<value>Debt</value>
</data>
<data name="BalanceSheet_DownloadFileName" xml:space="preserve">
<value>BalanceSheet</value>
<comment>Must ONLY contain A-Z, a-z characters - nothing accented!</comment>
@@ -164,10 +170,16 @@
<value>P&amp;L for {0} for</value>
<comment>The {0} is the organization name. The year number follows this string.</comment>
</data>
<data name="ProfitLossStatement_Costs" xml:space="preserve">
<value>Costs</value>
</data>
<data name="ProfitLossStatement_DownloadFileName" xml:space="preserve">
<value>ProfitLoss</value>
<comment>Must ONLY contain A-Z, a-z characters - nothing accented!</comment>
</data>
<data name="ProfitLossStatement_Income" xml:space="preserve">
<value>Revenue</value>
</data>
<data name="ProfitLossStatement_Info" xml:space="preserve">
<value>The P&amp;L is an overview of income and expenditures, which are grouped by budgets or cost/income type. The sum of all income and expenditure is the yearly result. You may also want to look at the &lt;a href="BalanceSheet.aspx"&gt;balance sheet&lt;/a&gt; which is the overview of assets and debts.</value>
</data>
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -59,46 +59,46 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
@@ -241,13 +241,19 @@
<value>Kontoplan</value>
</data>
<data name="Menu5_Ledgers_AuditLedgers" xml:space="preserve">
<value>Granska Huvudbok</value>
<value>Granska Räkenskaper</value>
</data>
<data name="Menu5_Ledgers_BalanceSheet" xml:space="preserve">
<value>Balansräkning</value>
</data>
<data name="Menu5_Ledgers_CannotCloseBooks" xml:space="preserve">
<value>Kan inte stänga böcker för {0}</value>
</data>
<data name="Menu5_Ledgers_CloseBooks" xml:space="preserve">
<value>Stäng Bokföring För {0}</value>
</data>
<data name="Menu5_Ledgers_DebugLedgers" xml:space="preserve">
<value>Felsök Bokföring/Reskontra</value>
<value>Felsök Bokföring, Konton</value>
</data>
<data name="Menu5_Ledgers_ImportBankData" xml:space="preserve">
<value>Importera Bankdata</value>
@@ -256,7 +262,7 @@
<value>Lönelista</value>
</data>
<data name="Menu5_Ledgers_ProfitLossStatement" xml:space="preserve">
<value>Resulträkning</value>
<value>Resultaträkning</value>
</data>
<data name="Menu5_Ledgers_SetBudgets" xml:space="preserve">
<value>Ange Budgetbelopp</value>
@@ -333,4 +339,4 @@
<data name="Menu5_People_SelfSignup" xml:space="preserve">
<value>Självregistreringssidan</value>
</data>
</root>
</root>
@@ -0,0 +1,178 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="RequestCashAdvance_Amount" xml:space="preserve">
<value>Förskottsbelopp (i {0})</value>
<comment>{0} is the currency.</comment>
</data>
<data name="RequestCashAdvance_BankAccount" xml:space="preserve">
<value>Kontonummer</value>
</data>
<data name="RequestCashAdvance_BankClearing" xml:space="preserve">
<value>Clearingnummer</value>
</data>
<data name="RequestCashAdvance_BankName" xml:space="preserve">
<value>Bankens namn</value>
</data>
<data name="RequestCashAdvance_Budget" xml:space="preserve">
<value>Budget</value>
</data>
<data name="RequestCashAdvance_HeaderBankDetails" xml:space="preserve">
<value>Dina bankuppgifter</value>
</data>
<data name="RequestCashAdvance_Info" xml:space="preserve">
<value>Om du skall göra ett inköp för organisationen, men behöver pengar i förväg i stället för att hävda dem tillbaka i efteråt, kan du begära ett förskott för specifika ändamål.</value>
</data>
<data name="RequestCashAdvance_PageTitle" xml:space="preserve">
<value>Begär förskott</value>
</data>
<data name="RequestCashAdvance_Purpose" xml:space="preserve">
<value>Syfte</value>
</data>
<data name="RequestCashAdvance_SuccessMessagePartOne" xml:space="preserve">
<value>Ett förskott har begärts för &lt;strong&gt;{0}&lt;/strong&gt; i {1}. Det begärda beloppet är {2} {3:N2}. Observera att detta är ett &lt;strong&gt;lån&lt;/strong&gt; från organisationen till dess kvitton har presenterats som matchar förskottet.</value>
<comment>{0} is the person receiving the advance, {1} is the entered description. {2} is the currency (in caps) and {3:N2} is the amount, with two decimals, displayed in culture.</comment>
</data>
<data name="RequestCashAdvance_SuccessMessagePartTwo" xml:space="preserve">
<value>Detta måste attesteras av budgetägaren, och går sedan till utbetalning.</value>
</data>
<data name="RequestCashAdvance_SuccessMessagePartTwoOwnBudget" xml:space="preserve">
<value>Eftersom detta är din egen budget, så har detta attesterats automatiskt och har gått till utbetalning.</value>
<comment>This is displayed if either the person creating the cash advance OR the person receiving it is the budget owner.</comment>
</data>
<data name="RequestCashAdvance_ValidationError_Amount" xml:space="preserve">
<value>Skriv in beloppet (i {0}) som du skulle vilja ha i förskott.</value>
<comment>{0} is the currency.</comment>
</data>
<data name="RequestCashAdvance_ValidationError_BankAccount" xml:space="preserve">
<value>Ange ditt bankkontonummer.</value>
</data>
<data name="RequestCashAdvance_ValidationError_BankClearing" xml:space="preserve">
<value>Vänligen ange din banks clearingnummer.</value>
</data>
<data name="RequestCashAdvance_ValidationError_BankName" xml:space="preserve">
<value>Ange bankens namn.</value>
</data>
<data name="RequestCashAdvance_ValidationError_Budget" xml:space="preserve">
<value>Välj en budget att belasta.</value>
</data>
<data name="RequestCashAdvance_ValidationError_Purpose" xml:space="preserve">
<value>Vänligen ange syftet med förskottet.</value>
</data>
</root>
@@ -59,46 +59,46 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
@@ -141,24 +141,87 @@
<value>Startsida</value>
<comment>Title of default page</comment>
</data>
<data name="Financial_Actuals" xml:space="preserve">
<value>Utfall</value>
</data>
<data name="Financial_ActualsPreliminary" xml:space="preserve">
<value>Utfall (prel)</value>
</data>
<data name="Financial_ActualsToDate" xml:space="preserve">
<value>Utfall hittills</value>
</data>
<data name="Financial_BookkeepingAccountLong" xml:space="preserve">
<value>Bokföringskonto</value>
</data>
<data name="Financial_BookkeepingAccountShort" xml:space="preserve">
<value>Konto</value>
</data>
<data name="Financial_Budget" xml:space="preserve">
<value>Budget</value>
</data>
<data name="Financial_YearlyResult" xml:space="preserve">
<value>Årligt resultat</value>
</data>
<data name="Global_Cancel" xml:space="preserve">
<value>Avbryt</value>
<comment>Displayed as cancellation link on changing something</comment>
</data>
<data name="Global_Change" xml:space="preserve">
<value>Byta?</value>
<comment>Link after describing what the user is looking at, allowing a change.</comment>
</data>
<data name="Global_ClickImageToEnlarge" xml:space="preserve">
<value>Klicka på bilden för att förstora.</value>
<value>Klicka bilden för att förstora.</value>
<comment>Displayed where thumbnails can be enlarged modally.</comment>
</data>
<data name="Global_Confirm" xml:space="preserve">
<value>Bekräfta</value>
<comment>Displayed as confirmation link on changing something</comment>
</data>
<data name="Global_DropInits_SelectFinancialAccount" xml:space="preserve">
<value>-- Välj budget/konto --</value>
<comment>Initializer in dropdown box.</comment>
</data>
<data name="Global_DropInits_SelectOrganization" xml:space="preserve">
<value>-- Välj organisation --</value>
<comment>Initializer in dropdown box.</comment>
</data>
<data name="Global_GoThere" xml:space="preserve">
<value>Ta mig dit...</value>
<comment>Link after describing something.</comment>
</data>
<data name="Global_NoOwner" xml:space="preserve">
<value>Ingen</value>
<comment>Displayed when an account/position etc is vacant</comment>
</data>
<data name="Global_Owner" xml:space="preserve">
<value>Ägare</value>
</data>
<data name="Global_ProcessingFile" xml:space="preserve">
<value>Bearbetar fil...</value>
<comment>Displayed while processing an uploaded file (along with a progress bar).</comment>
</data>
<data name="Global_UploadFile" xml:space="preserve">
<value>Ladda Upp Fil</value>
<comment>Displayed on "Submit" button next to file upload controls.</comment>
</data>
<data name="Global_UploadFileToActivizr" xml:space="preserve">
<value>Ladda Upp Fil Till Activizr</value>
<comment>Used as header above upload sections.</comment>
</data>
<data name="Global_Upload_ErrorSelectFile" xml:space="preserve">
<value>Välj fil att ladda upp.</value>
<comment>Error message. Displayed when the used has clicked "Upload" without selecting a file to upload.</comment>
</data>
<data name="Master_SwitchOrganizationDialog" xml:space="preserve">
<value>Du är inloggad i &lt;strong&gt;{0}&lt;/strong&gt;. Vill du växla till en annan organisation?</value>
</data>
<data name="Sidebar_Actions" xml:space="preserve">
<value>Genvägar</value>
<comment>List of shortcuts to likely actions</comment>
</data>
<data name="Sidebar_Actions_None" xml:space="preserve">
<value>Inga förslag på åtgärder för stunden.</value>
<value>Inga föreslagna åtgärder just nu.</value>
<comment>No shortcuts from this page right now.</comment>
</data>
<data name="Sidebar_Information" xml:space="preserve">
@@ -170,11 +233,11 @@
<comment>List of todo items</comment>
</data>
<data name="Sidebar_Todo_None" xml:space="preserve">
<value>Inget behöver omedelbar uppmärksamhet.</value>
<value>Inget brådskar just nu.</value>
<comment>Indicator that nothing needs immediate attention</comment>
</data>
<data name="Sidebar_Todo_Placeholder" xml:space="preserve">
<value>Här kommer saker som behöver uppmärksamhet.</value>
<value>Saker att göra kommer att finnas här.</value>
<comment>Placeholder for future action items. Temporary.</comment>
</data>
</root>
</root>
@@ -59,46 +59,46 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
@@ -253,137 +253,4 @@
<value>Du läser en motion till mötet</value>
<comment>In sidebar info box. Meeting name follows in bold.</comment>
</data>
<data name="VoteAmendments_BoardRecommendation" xml:space="preserve">
<value>Styrelsens rekommendation</value>
<comment>First item in dropdown box</comment>
</data>
<data name="VoteAmendments_Grid_Abstain" xml:space="preserve">
<value>Avst.</value>
</data>
<data name="VoteAmendments_Grid_Board" xml:space="preserve">
<value>Styrelsen</value>
<comment>Row header</comment>
</data>
<data name="VoteAmendments_Grid_Change" xml:space="preserve">
<value>Ändring</value>
<comment>Row header</comment>
</data>
<data name="VoteAmendments_Grid_Decision" xml:space="preserve">
<value>Att-satser</value>
<comment>Row header</comment>
</data>
<data name="VoteAmendments_Grid_Designation" xml:space="preserve">
<value>#</value>
</data>
<data name="VoteAmendments_Grid_No" xml:space="preserve">
<value>Nej</value>
</data>
<data name="VoteAmendments_Grid_Rationale" xml:space="preserve">
<value>Motivering</value>
<comment>Row header</comment>
</data>
<data name="VoteAmendments_Grid_Recommend" xml:space="preserve">
<value>Rek.</value>
</data>
<data name="VoteAmendments_Grid_Text" xml:space="preserve">
<value>Text</value>
</data>
<data name="VoteAmendments_Grid_TitleText" xml:space="preserve">
<value>Text / Titel</value>
</data>
<data name="VoteAmendments_Grid_Yes" xml:space="preserve">
<value>Ja</value>
</data>
<data name="VoteAmendments_Header" xml:space="preserve">
<value>Ändringsförslag för {0}</value>
<comment>In content box header. The meeting name goes in {0}.</comment>
</data>
<data name="VoteAmendments_Info" xml:space="preserve">
<value>Rösta på föreslagna ändringar till motioner. I nästa steg röstar vi om de resulterande motionerna, med de ändringar införda som röstats igenom. Alla ändringsförslag är listade under respektive motion, och alla detaljer finns infällda under motionernas och ändringsförslagens rubriker. Du kan välja en röstningsrekommendation om du vill.</value>
</data>
<data name="VoteAmendments_PageTitle" xml:space="preserve">
<value>Rösta på Ändringsförslag</value>
</data>
<data name="VoteAmendments_Recommend_Abstain" xml:space="preserve">
<value>---</value>
</data>
<data name="VoteAmendments_Recommend_No" xml:space="preserve">
<value>NEJ</value>
</data>
<data name="VoteAmendments_Recommend_Yes" xml:space="preserve">
<value>JA</value>
</data>
<data name="VoteAmendments_SelectRecommendation" xml:space="preserve">
<value>Välj rekommendation...</value>
<comment>Default in dropdown box</comment>
</data>
<data name="Vote_CreateVotingList" xml:space="preserve">
<value>Skapa voteringslista?</value>
<comment>This becomes a link which folds out to a popup asking "for motions or amendments".</comment>
</data>
<data name="Vote_CreateVotingList_Amendments" xml:space="preserve">
<value>Skapa voteringslista för ändringsförslag</value>
<comment>In pop-up after clicking "create voting list"</comment>
</data>
<data name="Vote_CreateVotingList_Elections" xml:space="preserve">
<value>Skapa röstlista för personval</value>
<comment>In pop-up after clicking "create voting list"</comment>
</data>
<data name="Vote_CreateVotingList_Motions" xml:space="preserve">
<value>Skapa voteringslista för motioner</value>
<comment>In pop-up after clicking "create voting list"</comment>
</data>
<data name="Vote_Info" xml:space="preserve">
<value>Ibland håller den här organisationen, {0}, möten. Under dessa möten sker omröstningar. Här listas allt som du kan rösta i. Du kan också skapa röstlistor som andra kan följa när de röstar.</value>
<comment>The {0} is the organization name.</comment>
</data>
<data name="Vote_MeetingElections" xml:space="preserve">
<value>Personval</value>
</data>
<data name="Vote_Motions" xml:space="preserve">
<value>Sakfrågor</value>
</data>
<data name="Vote_MotionVotingMotionAmendments" xml:space="preserve">
<value>Ändringsförslag</value>
</data>
<data name="Vote_MotionVotingMotions" xml:space="preserve">
<value>Motioner</value>
</data>
<data name="Vote_NotOpenedYet" xml:space="preserve">
<value>Ej öppnad</value>
<comment>Keep very short.</comment>
</data>
<data name="Vote_OpensOnDate" xml:space="preserve">
<value>Öppnar {0:yyyy-MMM-dd}.</value>
<comment>Note the embedded date format. Localize to national standard.</comment>
</data>
<data name="Vote_PageTitle" xml:space="preserve">
<value>Rösta</value>
</data>
<data name="Vote_PointsOfOrder" xml:space="preserve">
<value>Ordningsfrågor</value>
</data>
<data name="Vote_PointsOfOrderTemp" xml:space="preserve">
<value>Inga ordningsfrågor just nu.</value>
</data>
<data name="Vote_VoteHere" xml:space="preserve">
<value>Rösta här</value>
<comment>Link to voting page</comment>
</data>
<data name="Vote_VoteOnAmendments" xml:space="preserve">
<value>Rösta om {0:N0} ändringsförslag:</value>
<comment>The {0} is the amendment count.</comment>
</data>
<data name="Vote_VoteOnMotions" xml:space="preserve">
<value>Rösta om {0:N0} motioner:</value>
<comment>The {0} is the motion count.</comment>
</data>
<data name="VoteAmendments_SaveVote" xml:space="preserve">
<value>Klar, jag röstar så här</value>
<comment>Button at end of page</comment>
</data>
<data name="VoteAmendments_SaveVote_Temp" xml:space="preserve">
<value>Kan Inte Rösta - Testmöte</value>
<comment>For Tests Only</comment>
</data>
</root>
</root>
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -59,46 +59,46 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
@@ -117,6 +117,52 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="BalanceSheet_AccountName" xml:space="preserve">
<value>Konto</value>
</data>
<data name="BalanceSheet_Assets" xml:space="preserve">
<value>Tillgångar</value>
</data>
<data name="BalanceSheet_ContentHeader" xml:space="preserve">
<value>Balansräkning för {0},</value>
<comment>{0} is the organization name. The year follows immediately.</comment>
</data>
<data name="BalanceSheet_Current" xml:space="preserve">
<value>Just nu</value>
</data>
<data name="BalanceSheet_Debt" xml:space="preserve">
<value>Skulder</value>
</data>
<data name="BalanceSheet_DownloadFileName" xml:space="preserve">
<value>Balans</value>
<comment>Must ONLY contain A-Z, a-z characters - nothing accented!</comment>
</data>
<data name="BalanceSheet_EndYear" xml:space="preserve">
<value>Slut-XXXX</value>
<comment>The XXXX is replaced with year number.</comment>
</data>
<data name="BalanceSheet_Info" xml:space="preserve">
<value>Balansräkningen är en översikt över tillgångar och skulder vid ett ögonblick i tiden, och används för att se hur resultaten påverkar organisationens övergripande finansiella hälsa. Du kan också titta på &lt;a href="ProfitLossStatement.aspx"&gt; resultaträkningen&lt;/a&gt; som är en översikt över inkomster och utgifter.</value>
</data>
<data name="BalanceSheet_PageTitle" xml:space="preserve">
<value>Balansräkning</value>
</data>
<data name="BalanceSheet_Q1" xml:space="preserve">
<value>Ändr Q1</value>
</data>
<data name="BalanceSheet_Q2" xml:space="preserve">
<value>Ändr Q2</value>
</data>
<data name="BalanceSheet_Q3" xml:space="preserve">
<value>Ändr Q3</value>
</data>
<data name="BalanceSheet_Q4" xml:space="preserve">
<value>Ändr Q4</value>
</data>
<data name="BalanceSheet_StartYear" xml:space="preserve">
<value>Start-XXXX</value>
<comment>The XXXX is replaced with year number.</comment>
</data>
<data name="ProfitLossStatement_AccountName" xml:space="preserve">
<value>Konto</value>
</data>
@@ -124,6 +170,16 @@
<value>Resultaträkning för {0} år</value>
<comment>The {0} is the organization name. The year number follows this string.</comment>
</data>
<data name="ProfitLossStatement_Costs" xml:space="preserve">
<value>Kostnader</value>
</data>
<data name="ProfitLossStatement_DownloadFileName" xml:space="preserve">
<value>Resultat</value>
<comment>Must ONLY contain A-Z, a-z characters - nothing accented!</comment>
</data>
<data name="ProfitLossStatement_Income" xml:space="preserve">
<value>Inkomster</value>
</data>
<data name="ProfitLossStatement_Info" xml:space="preserve">
<value>Resultaträkningen är en översikt av inkomster och utgifter, och grupperas per budget eller kostnadstyp. Summan av alla inkomster och utgifter är det årliga reulstatet. Du kan också titta på &lt;a href="BalanceSheet.aspx"&gt;balansräkningen&lt;/a&gt; som är översikten över tillgångar och skulder.</value>
</data>
@@ -147,9 +203,10 @@
</data>
<data name="ProfitLossStatement_Results" xml:space="preserve">
<value>Resultat</value>
<comment>Footer on P&amp;L statement</comment>
</data>
<data name="ProfitLossStatement_Ytd" xml:space="preserve">
<value>Idag</value>
<value>Hittills i år</value>
<comment>Year To Date</comment>
</data>
<data name="SetRootBudgets_BudgetOwnerHeader" xml:space="preserve">
@@ -171,4 +228,32 @@
<value>Spara budgetar</value>
<comment>Text on submit button</comment>
</data>
</root>
</root>
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+1 -1
View File
@@ -307,7 +307,7 @@
<!-- Organization changer -->
<div id="DivModalOrganizationChanger" style="display:none">
You are currently logged into <strong>Sandbox</strong>. Would you like to switch to another organization?<br/><br/>
<asp:Literal ID="LiteralCurrentlyLoggedIntoSwitch" runat="server" /><br/><br/>
<asp:DropDownList ID="DropSwitchOrganizations" runat="server"/><br/><br/> <!-- TODO: Make this a tree dropdown -->
+22 -5
View File
@@ -118,12 +118,13 @@ namespace Activizr
this.DropSwitchOrganizations.Items.Clear();
this.DropSwitchOrganizations.Items.Add(new ListItem(Resources.Global.Global_DropInits_SelectOrganization, "0"));
this.DropSwitchOrganizations.Items.Add(new ListItem("Sandbox", Organization.SandboxIdentity.ToString()));
Organizations organizations = Organizations.GetAll();
Memberships memberships = _currentUser.GetMemberships();
foreach (Organization organization in organizations)
foreach (Activizr.Logic.Pirates.Membership membership in memberships)
{
this.DropSwitchOrganizations.Items.Add(new ListItem(organization.Name, organization.Identity.ToString(CultureInfo.InvariantCulture)));
this.DropSwitchOrganizations.Items.Add(new ListItem(membership.Organization.Name, membership.OrganizationId.ToString(CultureInfo.InvariantCulture)));
}
}
@@ -163,6 +164,7 @@ namespace Activizr
this.LinkLogout.Text = Resources.Global.CurrentUserInfo_Logout;
this.LabelPreferences.Text = Resources.Global.CurrentUserInfo_Preferences;
this.LiteralCurrentlyLoggedIntoSwitch.Text = string.Format(Resources.Global.Master_SwitchOrganizationDialog, _currentOrganization.Name);
if (cultureStringLower != "en-gb" && cultureStringLower != "sv-se" && cultureString.Trim().Length > 0)
{
@@ -398,8 +400,23 @@ namespace Activizr
if (desiredOrganizationId != 0)
{
FormsAuthentication.RedirectFromLoginPage(string.Format(CultureInfo.InvariantCulture, "{0},{1}", currentUserId, desiredOrganizationId), true);
Response.Redirect("/");
bool foundMembership = false;
Memberships currentUserMemberships = _currentUser.GetMemberships();
foreach (Activizr.Logic.Pirates.Membership membership in currentUserMemberships)
{
if (membership.OrganizationId == desiredOrganizationId)
{
foundMembership = true;
}
}
if (foundMembership)
{
FormsAuthentication.RedirectFromLoginPage(
string.Format(CultureInfo.InvariantCulture, "{0},{1}", currentUserId, desiredOrganizationId),
true);
Response.Redirect("/");
}
}
}
+2 -2
View File
@@ -30,7 +30,7 @@
var selectedYear = $('#<%=DropYears.ClientID %>').val();
$('div#linkDownloadReport').attr("onclick", "document.location='Csv-ProfitLossData.aspx?Year=" + selectedYear + "';");
$('div#linkDownloadReport').attr("onclick", "document.location='Csv-BalanceData.aspx?Year=" + selectedYear + "';");
$('#spanDownloadText').text('<%=Resources.Pages.Ledgers.BalanceSheet_DownloadFileName %>' + selectedYear + "-<%=DateTime.Today.ToString("yyyyMMdd") %>.csv");
$('#headerStartYear').text('<%=Resources.Pages.Ledgers.BalanceSheet_StartYear %>'.replace('XXXX',selectedYear));
@@ -107,7 +107,7 @@
<div class="content">
<div class="link-row-encaps" id="linkDownloadReport" onclick="document.location='placeholder';" >
<div class="link-row-icon" style="background-image:url('/Images/Icons/iconshock-downarrow-16px.png');background-position:-1px -1px"></div>
<span id="spanDownloadText">BalanceSheetxxxx-yyyymmdd.csv</span>
<span id="spanDownloadText">Balancexxxx-yyyymmdd.csv</span>
</div>
</div>
</div>
+1 -1
View File
@@ -108,7 +108,7 @@ public partial class Pages_v5_Ledgers_CloseLedgers : PageV5Base
{
FinancialTransaction resultTransaction = FinancialTransaction.Create(this.CurrentOrganization.Identity, new DateTime(closingYear, 12, 31, 23, 59, 00), "Årets resultat " + closingYear.ToString()); // TODO: Localize string
resultTransaction.AddRow(this.CurrentOrganization.FinancialAccounts.CostsYearlyResult, -resultsDeltaCents, null);
resultTransaction.AddRow(this.CurrentOrganization.FinancialAccounts.DebtsCapital, -balanceDeltaCents, null);
resultTransaction.AddRow(this.CurrentOrganization.FinancialAccounts.DebtsEquity, -balanceDeltaCents, null);
// Ledgers are now at zero-sum for the year's result accounts and from the start up until end-of-closing-year for the balance accounts.
@@ -0,0 +1 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Csv-BalanceData.aspx.cs" Inherits="Pages_v5_Ledgers_Csv_BalanceData" %>
@@ -0,0 +1,96 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Activizr.Basic.Enums;
using Activizr.Logic.Financial;
using Activizr.Logic.Pirates;
using Activizr.Logic.Security;
using Activizr.Logic.Structure;
public partial class Pages_v5_Ledgers_Csv_BalanceData : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// Current authentication
string identity = HttpContext.Current.User.Identity.Name;
string[] identityTokens = identity.Split(',');
string userIdentityString = identityTokens[0];
string organizationIdentityString = identityTokens[1];
int currentUserId = Convert.ToInt32(userIdentityString);
int currentOrganizationId = Convert.ToInt32(organizationIdentityString);
Person currentUser = Person.FromIdentity(currentUserId);
Authority authority = currentUser.GetAuthority();
Organization currentOrganization = Organization.FromIdentity(currentOrganizationId);
// Get culture
string cultureString = "en-US";
HttpCookie cookie = Request.Cookies["PreferredCulture"];
if (cookie != null)
{
cultureString = cookie.Value;
}
_renderCulture = new CultureInfo(cultureString);
// Get current year
_year = DateTime.Today.Year;
string yearParameter = Request.QueryString["Year"];
if (!string.IsNullOrEmpty(yearParameter))
{
_year = Int32.Parse(yearParameter); // will throw if non-numeric - don't matter for app
}
YearlyReport report = YearlyReport.Create(currentOrganization, _year, FinancialAccountType.Result);
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "text/plain";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + Resources.Pages.Ledgers.BalanceSheet_DownloadFileName + _year.ToString(CultureInfo.InvariantCulture) + "-" + DateTime.Today.ToString("yyyyMMdd") + ".csv");
Response.Output.WriteLine("\"{0}\",\"{1}\",\"{2}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\"", Resources.Pages.Ledgers.ProfitLossStatement_AccountName, Resources.Pages.Ledgers.BalanceSheet_StartYear.Replace("XXXX", _year.ToString(CultureInfo.InvariantCulture)),
Resources.Pages.Ledgers.BalanceSheet_Q1, Resources.Pages.Ledgers.BalanceSheet_Q2, Resources.Pages.Ledgers.BalanceSheet_Q3, Resources.Pages.Ledgers.BalanceSheet_Q4,
(_year == DateTime.Today.Year? Resources.Pages.Ledgers.BalanceSheet_Current : Resources.Pages.Ledgers.BalanceSheet_EndYear.Replace("XXXX", _year.ToString(CultureInfo.InvariantCulture))));
RecurseCsvReport(report.ReportLines, string.Empty);
Response.End();
}
private int _year = 2012;
private CultureInfo _renderCulture;
private void RecurseCsvReport(List<YearlyReportLine> reportLines, string accountPrefix)
{
foreach (YearlyReportLine line in reportLines)
{
Response.Output.WriteLine("\"{0}{1}\",{2},{3},{4},{5},{6},{7}",
accountPrefix, line.AccountName,
line.AccountValues.PreviousYear / 100.0,
line.AccountValues.Quarters[0] / 100.0,
line.AccountValues.Quarters[1] / 100.0,
line.AccountValues.Quarters[2] / 100.0,
line.AccountValues.Quarters[3] / 100.0,
line.AccountValues.ThisYear / 100.0);
if (line.Children.Count > 0)
{
RecurseCsvReport(line.Children, "-" + accountPrefix);
}
}
}
}
@@ -54,6 +54,7 @@ public partial class Pages_v5_Ledgers_Json_BalanceSheetData : System.Web.UI.Page
}
YearlyReport report = YearlyReport.Create(currentOrganization, _year, FinancialAccountType.Balance);
LocalizeRoot(report.ReportLines);
Response.ContentType = "application/json";
@@ -63,6 +64,27 @@ public partial class Pages_v5_Ledgers_Json_BalanceSheetData : System.Web.UI.Page
}
private void LocalizeRoot(List<YearlyReportLine> lines)
{
Dictionary<string, string> localizeMap = new Dictionary<string, string>();
localizeMap["%ASSET_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.BalanceSheet_Assets;
localizeMap["%DEBT_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.BalanceSheet_Debt;
localizeMap["%INCOME_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.ProfitLossStatement_Income;
localizeMap["%COST_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.ProfitLossStatement_Costs;
foreach (YearlyReportLine line in lines)
{
if (localizeMap.ContainsKey(line.AccountName))
{
line.AccountName = localizeMap[line.AccountName];
}
}
}
private int _year = 2012;
private CultureInfo _renderCulture;
@@ -54,6 +54,7 @@ public partial class Pages_v5_Ledgers_Json_ProfitLossData : System.Web.UI.Page
}
YearlyReport report = YearlyReport.Create(currentOrganization, _year, FinancialAccountType.Result);
LocalizeRoot(report.ReportLines);
Response.ContentType = "application/json";
@@ -63,6 +64,25 @@ public partial class Pages_v5_Ledgers_Json_ProfitLossData : System.Web.UI.Page
}
private void LocalizeRoot(List<YearlyReportLine> lines)
{
Dictionary<string, string> localizeMap = new Dictionary<string, string>();
localizeMap["%ASSET_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.BalanceSheet_Assets;
localizeMap["%DEBT_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.BalanceSheet_Debt;
localizeMap["%INCOME_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.ProfitLossStatement_Income;
localizeMap["%COST_ACCOUNTGROUP%"] = Resources.Pages.Ledgers.ProfitLossStatement_Costs;
foreach (YearlyReportLine line in lines)
{
if (localizeMap.ContainsKey(line.AccountName))
{
line.AccountName = localizeMap[line.AccountName];
}
}
}
private string WriteFooter (YearlyReportNode totals)
{
string result = string.Format("\"name\":\"{0}\"", Resources.Pages.Ledgers.ProfitLossStatement_Results);
+1 -1
View File
@@ -37,7 +37,7 @@ public partial class Tests_TestBookkeepingIntegrity : PageV5Base
FinancialAccounts resultAccounts = FinancialAccounts.ForOrganization(this.CurrentOrganization,
FinancialAccountType.Result);
FinancialAccount ownCapital = this.CurrentOrganization.FinancialAccounts.DebtsCapital;
FinancialAccount ownCapital = this.CurrentOrganization.FinancialAccounts.DebtsEquity;
FinancialAccount resultAsNoted = this.CurrentOrganization.FinancialAccounts.CostsYearlyResult;
FinancialAccounts balancesWithoutCapital =