Committing RC of P&L (with two debug statements that need to go before final commit)
This commit is contained in:
@@ -117,12 +117,38 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="ProfitLossStatement_AccountName" xml:space="preserve">
|
||||
<value>Account</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_ContentHeader" xml:space="preserve">
|
||||
<value>P&L for {0} for</value>
|
||||
<comment>The {0} is the organization name. The year number follows this string.</comment>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Info" xml:space="preserve">
|
||||
<value>The P&L is an overview of income and expenditures, and 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 <a href="BalanceSheet.aspx">balance sheet</a> which is the overview of assets and debts.</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_LastYear" xml:space="preserve">
|
||||
<value>Last Year</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_PageTitle" xml:space="preserve">
|
||||
<value>Profit & Loss Statement</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q1" xml:space="preserve">
|
||||
<value>Q1</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q2" xml:space="preserve">
|
||||
<value>Q2</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q3" xml:space="preserve">
|
||||
<value>Q3</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q4" xml:space="preserve">
|
||||
<value>Q4</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Ytd" xml:space="preserve">
|
||||
<value>YTD</value>
|
||||
<comment>Year To Date</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_BudgetOwnerHeader" xml:space="preserve">
|
||||
<value>Budget, Owner</value>
|
||||
<comment>Displayed above editables</comment>
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
<?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="ProfitLossStatement_AccountName" xml:space="preserve">
|
||||
<value>Konto</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_ContentHeader" xml:space="preserve">
|
||||
<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_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å <a href="BalanceSheet.aspx">balansräkningen</a> som är översikten över tillgångar och skulder.</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_LastYear" xml:space="preserve">
|
||||
<value>Föreg år</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_PageTitle" xml:space="preserve">
|
||||
<value>Resultaträkning</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q1" xml:space="preserve">
|
||||
<value>Q1</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q2" xml:space="preserve">
|
||||
<value>Q2</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q3" xml:space="preserve">
|
||||
<value>Q3</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Q4" xml:space="preserve">
|
||||
<value>Q4</value>
|
||||
</data>
|
||||
<data name="ProfitLossStatement_Ytd" xml:space="preserve">
|
||||
<value>Idag</value>
|
||||
<comment>Year To Date</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_BudgetOwnerHeader" xml:space="preserve">
|
||||
<value>Budget, ägare</value>
|
||||
<comment>Displayed above editables</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_Info" xml:space="preserve">
|
||||
<value>Här sätter vi rotbudgetarna för varje budgetår. När dessa är satta, så delegerar varje budgetägare vidare budget inom sina respektive områden.</value>
|
||||
</data>
|
||||
<data name="SetRootBudgets_PageHeader" xml:space="preserve">
|
||||
<value>Rotbudgetar för {0}</value>
|
||||
<comment>The {0} is replaced with the organization's name.</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_PageTitle" xml:space="preserve">
|
||||
<value>Sätt rotnivåbudgetar</value>
|
||||
<comment>Displayed above main content</comment>
|
||||
</data>
|
||||
<data name="SetRootBudgets_SetNewBudgets" xml:space="preserve">
|
||||
<value>Spara budgetar</value>
|
||||
<comment>Text on submit button</comment>
|
||||
</data>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</root>
|
||||
@@ -26,8 +26,26 @@
|
||||
onLoadSuccess: function () {
|
||||
$('div.datagrid').css('opacity', 1);
|
||||
$('#imageLoadIndicator').hide();
|
||||
|
||||
var selectedYear = $('#<%=DropYears.ClientID %>').val();
|
||||
|
||||
// TODO: header processing
|
||||
if (selectedYear == currentYear)
|
||||
{
|
||||
alert("selectedyear == currentyear");
|
||||
$('span.previousYearsHeader').hide();
|
||||
$('span.currentYearHeader').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("selectedyear is not currentyear");
|
||||
|
||||
$('#previousLastYear').text(selectedYear - 1);
|
||||
$('#previousQ1').text(selectedYear + "-" + $('#currentQ1').text());
|
||||
$('#previousQ2').text(selectedYear + "-" + $('#currentQ2').text());
|
||||
$('#previousQ3').text(selectedYear + "-" + $('#currentQ3').text());
|
||||
$('#previousQ4').text(selectedYear + "-" + $('#currentQ4').text());
|
||||
$('#previousYtd').text(selectedYear);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -58,7 +76,7 @@
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
<h2>P&L for Piratpartiet For Year <asp:DropDownList runat="server" ID="DropYears"/> <img src="/Images/Abstract/ajaxloader-blackcircle.gif" ID="imageLoadIndicator" /></h2>
|
||||
<h2><asp:Label ID="LabelContentHeader" runat="server" /> <asp:DropDownList runat="server" ID="DropYears"/> <img src="/Images/Abstract/ajaxloader-blackcircle.gif" ID="imageLoadIndicator" /></h2>
|
||||
<table id="tableProfitLoss" title="" class="easyui-treegrid" style="width:680px;height:600px"
|
||||
url="Json-ProfitLossData.aspx"
|
||||
rownumbers="false"
|
||||
@@ -66,13 +84,13 @@
|
||||
idField="id" treeField="name">
|
||||
<thead>
|
||||
<tr>
|
||||
<th field="name" width="178">Account</th>
|
||||
<th field="lastYear" width="80" align="right">Last Year</th>
|
||||
<th field="q1" width="80" align="right">Q1</th>
|
||||
<th field="q2" width="80" align="right">Q2</th>
|
||||
<th field="q3" width="80" align="right">Q3</th>
|
||||
<th field="q4" width="80" align="right">Q4</th>
|
||||
<th field="ytd" width="80" align="right">YTD</th>
|
||||
<th field="name" width="178"><asp:Literal ID="LiteralHeaderAccountName" runat="server"/></th>
|
||||
<th field="lastYear" width="80" align="right"><span class="previousYearsHeader" id="previousLastYear" style="display:none"></span><span class="currentYearHeader"><asp:Literal ID="LiteralHeaderLastYear" runat="server" /></span></th>
|
||||
<th field="q1" width="80" align="right"><span class="previousYearsHeader" id="previousQ1" style="display:none"></span><span class="currentYearHeader" id="currentQ1"><asp:Literal ID="LiteralHeaderQ1" runat="server" /></span></th>
|
||||
<th field="q2" width="80" align="right"><span class="previousYearsHeader" id="previousQ2" style="display:none"></span><span class="currentYearHeader" id="currentQ2"><asp:Literal ID="LiteralHeaderQ2" runat="server" /></span></th>
|
||||
<th field="q3" width="80" align="right"><span class="previousYearsHeader" id="previousQ3" style="display:none"></span><span class="currentYearHeader" id="currentQ3"><asp:Literal ID="LiteralHeaderQ3" runat="server" /></span></th>
|
||||
<th field="q4" width="80" align="right"><span class="previousYearsHeader" id="previousQ4" style="display:none"></span><span class="currentYearHeader" id="currentQ4"><asp:Literal ID="LiteralHeaderQ4" runat="server" /></span></th>
|
||||
<th field="ytd" width="80" align="right"><span class="previousYearsHeader" id="previousYtd" style="display:none"></span><span class="currentYearHeader"><asp:Literal ID="LiteralHeaderYtd" runat="server" /></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
@@ -31,6 +31,20 @@ public partial class Pages_v5_Ledgers_ProfitLossStatement : PageV5Base
|
||||
year--;
|
||||
}
|
||||
|
||||
Localize();
|
||||
}
|
||||
}
|
||||
|
||||
private void Localize()
|
||||
{
|
||||
this.LabelContentHeader.Text = string.Format(Resources.Pages.Ledgers.ProfitLossStatement_ContentHeader, CurrentOrganization.Name);
|
||||
this.LiteralHeaderLastYear.Text = Resources.Pages.Ledgers.ProfitLossStatement_LastYear;
|
||||
this.LiteralHeaderQ1.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q1;
|
||||
this.LiteralHeaderQ2.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q2;
|
||||
this.LiteralHeaderQ3.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q3;
|
||||
this.LiteralHeaderQ4.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q4;
|
||||
this.LiteralHeaderYtd.Text = Resources.Pages.Ledgers.ProfitLossStatement_Ytd;
|
||||
this.LiteralHeaderAccountName.Text = Resources.Pages.Ledgers.ProfitLossStatement_AccountName;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user