Started work on Inspect Ledgers
This commit is contained in:
@@ -285,6 +285,9 @@
|
||||
<data name="Menu5_Ledgers_ImportBankData" xml:space="preserve">
|
||||
<value>Import Bank Data</value>
|
||||
</data>
|
||||
<data name="Menu5_Ledgers_InspectLedgers" xml:space="preserve">
|
||||
<value>Inspect Ledgers</value>
|
||||
</data>
|
||||
<data name="Menu5_Ledgers_LiquidityForecast" xml:space="preserve">
|
||||
<value>Liquidity Forecast</value>
|
||||
</data>
|
||||
|
||||
@@ -495,4 +495,15 @@
|
||||
<data name="AccountPlan_Header_Flags" xml:space="preserve">
|
||||
<value>Flags</value>
|
||||
</data>
|
||||
<data name="InspectLedgers_Header_For" xml:space="preserve">
|
||||
<value>for</value>
|
||||
<comment>"inspect [accountdropdown] FOR [year] [month]"</comment>
|
||||
</data>
|
||||
<data name="InspectLedgers_Header_Inspect" xml:space="preserve">
|
||||
<value>Inspect</value>
|
||||
<comment>"INSPECT [accountdropdown] for [year] [month]"</comment>
|
||||
</data>
|
||||
<data name="InspectLedgers_PageTitle" xml:space="preserve">
|
||||
<value>Inspect Ledgers</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -11,5 +11,15 @@ namespace Swarmops.Controls.Financial
|
||||
|
||||
public string OnClientLoaded { get; set; }
|
||||
public string OnClientSelect { get; set; }
|
||||
|
||||
public AccountListType ListType { get; set; }
|
||||
}
|
||||
|
||||
public enum AccountListType
|
||||
{
|
||||
Unknown = 0,
|
||||
Expensables,
|
||||
Invoiceables,
|
||||
All
|
||||
}
|
||||
}
|
||||
@@ -306,6 +306,16 @@
|
||||
<Children />
|
||||
</MainMenuItem>
|
||||
|
||||
<MainMenuItem>
|
||||
<ResourceKey>Ledgers_InspectLedgers</ResourceKey>
|
||||
<UserLevel>3</UserLevel>
|
||||
<Permissions />
|
||||
<ImageUrl>iconshock-ledger-inspect</ImageUrl>
|
||||
<NavigateUrl>/Pages/v5/Ledgers/InspectLedgers.aspx</NavigateUrl>
|
||||
<Type>Link</Type>
|
||||
<Children />
|
||||
</MainMenuItem>
|
||||
|
||||
<MainMenuItem>
|
||||
<ResourceKey>Ledgers_AccountPlan</ResourceKey>
|
||||
<UserLevel>3</UserLevel>
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
<Swarmops5:ExternalScripts ID="ExternalScripts1" Package="easyui" Control="tree" runat="server" />
|
||||
<script src="/Scripts/jquery.switchButton.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="/Style/jquery.switchButton.css" type="text/css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Style/v5-easyui-elements.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Style/jquery.switchButton.css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -427,9 +428,6 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/Style/v5-easyui-elements.css">
|
||||
<link rel="stylesheet" type="text/css" href="/Style/jquery.switchButton.css">
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="InspectLedgers.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Ledgers.InspectLedgers" %>
|
||||
<%@ Register TagPrefix="Swarmops5" TagName="ExternalScripts" Src="~/Controls/v5/UI/ExternalScripts.ascx" %>
|
||||
<%@ Register TagPrefix="Swarmops5" TagName="ComboBudgets" Src="~/Controls/v5/Financial/ComboBudgets.ascx" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
<Swarmops5:ExternalScripts ID="ExternalScripts1" Package="easyui" Control="tree" runat="server" />
|
||||
<link rel="stylesheet" type="text/css" href="/Style/v5-easyui-elements.css" />
|
||||
</asp:Content>
|
||||
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
|
||||
<h2>Inspect <Swarmops5:ComboBudgets ID="DropBudgets" AccountListType="All" runat="server" /> for <asp:DropDownList runat="server" ID="DropYears"/> <asp:DropDownList runat="server" ID="Months"/></h2>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSide" Runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Swarmops.Logic.Security;
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
{
|
||||
public partial class InspectLedgers : PageV5Base
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
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";
|
||||
|
||||
Localize();
|
||||
}
|
||||
|
||||
private void Localize()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user