60 lines
2.7 KiB
C#
60 lines
2.7 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace Swarmops.Frontend.Pages.v5.Ledgers
|
|
{
|
|
public partial class ViewOutstandingAccounts : PageV5Base
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!this.CurrentOrganization.IsEconomyEnabled)
|
|
{
|
|
Response.Redirect("/Pages/v5/Financial/EconomyNotEnabled.aspx", true);
|
|
return;
|
|
}
|
|
|
|
this.PageIcon = "iconshock-cabinet";
|
|
|
|
if (!Page.IsPostBack)
|
|
{
|
|
Localize();
|
|
|
|
if (!Page.IsPostBack)
|
|
{
|
|
int year = DateTime.Today.Year-1;
|
|
int firstFiscalYear = CurrentOrganization.FirstFiscalYear;
|
|
|
|
this.DropYears.Items.Add(new ListItem(Resources.Global.Global_AsOfNow, "Now"));
|
|
|
|
while (year >= firstFiscalYear)
|
|
{
|
|
this.DropYears.Items.Add(new ListItem(new DateTime(year, 12, 31).ToShortDateString(), year.ToString(CultureInfo.InvariantCulture)));
|
|
year--;
|
|
}
|
|
|
|
this.DropAccounts.Items.Add(new ListItem(Resources.Global.Financial_ExpenseClaimsLong, "ExpenseClaims"));
|
|
this.DropAccounts.Items.Add(new ListItem(Resources.Global.Financial_CashAdvancesLong, "CashAdvances"));
|
|
|
|
Localize();
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
private void Localize()
|
|
{
|
|
this.PageTitle = Resources.Pages_Ledgers.ViewOutstandingAccounts_PageTitle;
|
|
this.InfoBoxLiteral = Resources.Pages_Ledgers.ViewOutstandingAccounts_Info;
|
|
|
|
this.LabelViewOutstandingAccountsHeader.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_Header;
|
|
this.LabelGridHeaderAction.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderAction;
|
|
this.LabelGridHeaderAmount.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderAmount;
|
|
this.LabelGridHeaderCreatedDate.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderOpenedDate;
|
|
this.LabelGridHeaderDescription.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderDescription;
|
|
this.LabelGridHeaderExpectedCloseDate.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderExpectedCloseDate;
|
|
this.LabelGridHeaderId.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderId;
|
|
this.LabelGridHeaderRecipient.Text = Resources.Pages_Ledgers.ViewOutstandingAccounts_GridHeaderRecipient;
|
|
}
|
|
}
|
|
} |