diff --git a/Site5/Pages/v5/Ledgers/InspectLedgers.aspx b/Site5/Pages/v5/Ledgers/InspectLedgers.aspx index 8319d72a..4affee13 100644 --- a/Site5/Pages/v5/Ledgers/InspectLedgers.aspx +++ b/Site5/Pages/v5/Ledgers/InspectLedgers.aspx @@ -10,7 +10,7 @@ -

Inspect for

+

Inspect for

diff --git a/Site5/Pages/v5/Ledgers/InspectLedgers.aspx.cs b/Site5/Pages/v5/Ledgers/InspectLedgers.aspx.cs index d6cf3054..1f9d61bd 100644 --- a/Site5/Pages/v5/Ledgers/InspectLedgers.aspx.cs +++ b/Site5/Pages/v5/Ledgers/InspectLedgers.aspx.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Web; using System.Web.UI; @@ -12,17 +13,44 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { protected void Page_Load(object sender, EventArgs e) { + if (!CurrentOrganization.IsEconomyEnabled) + { + Response.Redirect("/Pages/v5/Financial/EconomyNotEnabled.aspx", true); + return; + } + this.PageAccessRequired = new Access(this.CurrentOrganization, AccessAspect.Bookkeeping, AccessType.Read); this.DbVersionRequired = 0; // base schema is fine this.PageTitle = "Inspect Ledgers"; // TODO localize this.PageIcon = "iconshock-ledger-inspect"; + if (!Page.IsPostBack) + { + DateTime today = DateTime.Today; + int year = today.Year; + int firstYear = CurrentOrganization.FirstFiscalYear; + + while (year >= firstYear) + { + this.DropYears.Items.Add(year.ToString(CultureInfo.InvariantCulture)); + year--; + } + + for (int monthNumber = 1; monthNumber <= 12; monthNumber++) + { + this.DropMonths.Items.Add(new ListItem(new DateTime(2014, monthNumber, 1).ToString("MMM"), monthNumber.ToString(CultureInfo.InvariantCulture))); // will autolocalize + } + + this.DropYears.SelectedIndex = 0; + this.DropMonths.SelectedValue = today.Month.ToString(CultureInfo.InvariantCulture); + } + Localize(); } private void Localize() { - // TODO + } } } \ No newline at end of file diff --git a/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx b/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx index 937b4574..b7e8cf31 100644 --- a/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx +++ b/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx @@ -63,12 +63,6 @@ .datagrid-row-selected,.datagrid-row-over{ background:transparent; } - .content h2 select { - font-size: 16px; - font-weight: bold; - color: #1C397E; - letter-spacing: 1px; - } table.datagrid-ftable { font-weight: 500; } diff --git a/Site5/Style/style-v5.css b/Site5/Style/style-v5.css index bca36fa9..3be51fb8 100644 --- a/Site5/Style/style-v5.css +++ b/Site5/Style/style-v5.css @@ -322,6 +322,25 @@ img margin-bottom: 7px; } +.content > h2 > select, .content > h2 > span > span.combo > input.combo-text { + font-size: 16px; + font-weight: bold; + color: #1C397E; + letter-spacing: 1px; + text-transform: uppercase; +} + + +.content > h2 > span > span.combo { + height: 20px !important; +} + +.content > h2 > span > span.combo > input.combo-text { + height: 20px !important; + line-height: 20px !important; +} + + .content h3 { font-family: Ubuntu, Arial, Sans-Serif; diff --git a/Site5/Style/v5-easyui-elements.css b/Site5/Style/v5-easyui-elements.css index aaeb5b9f..03508032 100644 --- a/Site5/Style/v5-easyui-elements.css +++ b/Site5/Style/v5-easyui-elements.css @@ -33,6 +33,21 @@ opacity:0.4; filter:alpha(opacity=40); } + + +.content > h2 > span > span.combo > input.combo-text { + height: 20px !important; + line-height: 20px !important; +} + + +.content h2 span span.combo span span.combo-arrow{ + background:#FFFFFF url('//hostedscripts.falkvinge.net/easyui/themes/default/images/combo_arrow.gif') no-repeat 1px -1px; +} + + + + .combo-arrow-hover{ opacity:0.7; filter:alpha(opacity=70);