Added missing enum, misc work on bank upload
This commit is contained in:
@@ -42,6 +42,7 @@ namespace Activizr.Basic.Enums
|
||||
CanUploadReceivedDocuments,
|
||||
CanEditMailDB,
|
||||
CanValidatePolls,
|
||||
CanSeeExpiredDuringGracePeriod
|
||||
CanSeeExpiredDuringGracePeriod,
|
||||
CanMonitorMemberships
|
||||
}
|
||||
}
|
||||
@@ -149,6 +149,10 @@
|
||||
<value>Click image to enlarge.</value>
|
||||
<comment>Displayed where thumbnails can be enlarged modally.</comment>
|
||||
</data>
|
||||
<data name="Global_DropInits_SelectFinancialAccount" xml:space="preserve">
|
||||
<value>-- Select bookkeeping account --</value>
|
||||
<comment>Initializer in dropdown box.</comment>
|
||||
</data>
|
||||
<data name="Global_GoThere" xml:space="preserve">
|
||||
<value>Go there...</value>
|
||||
<comment>Link after describing something.</comment>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="UploadBankFiles.aspx.cs" Inherits="Activizr.Site.Pages.Ledgers.UploadBankFiles" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
<script type="text/javascript" src="/Scripts/jquery.leanModal.min.js"></script>
|
||||
<script src="/Scripts/jquery.leanModal.min.js" type="text/javascript"></script>
|
||||
<style type="text/css">
|
||||
input.FileTypeImage
|
||||
{
|
||||
@@ -22,6 +22,23 @@ input.FileTypeImageSelected
|
||||
border: 1px solid #C78B15 !important;
|
||||
}
|
||||
|
||||
input.UnselectedType
|
||||
{
|
||||
opacity:0.2;
|
||||
}
|
||||
|
||||
div.Invisible
|
||||
{
|
||||
display:none;
|
||||
opacity:0;
|
||||
}
|
||||
|
||||
div.Visible
|
||||
{
|
||||
dispay:inline;
|
||||
opacity:1;
|
||||
}
|
||||
|
||||
div.BankUploadInstructionsImage
|
||||
{
|
||||
float:right;
|
||||
@@ -76,23 +93,28 @@ div.BankUploadInstructionsImage
|
||||
<h2><asp:Label ID="LabelSelectBankUploadFilter" Text="Select File Type To Upload" runat="server"/></h2>
|
||||
<asp:ImageButton OnClick="ButtonSebAccountFile_Click" CssClass="FileTypeImage" ID="ButtonSebAccountFile" runat="server" ImageUrl="~/Images/Ledgers/uploadbankfiles-type-seb-kontoutdrag.png"/>
|
||||
<asp:ImageButton CssClass="FileTypeImage" ID="ButtonSebPaymentFile" runat="server" ImageUrl="~/Images/Ledgers/uploadbankfiles-type-seb-bankgirofil.png"/>
|
||||
<asp:HiddenField ID="HiddenFileType" runat="server"/>
|
||||
<div style="clear:both;margin-bottom:10px"></div>
|
||||
<div style="opacity:0;display:none" id="DivInstructions">
|
||||
<h2><asp:Label ID="LabelDownloadInstructions" Text="XYZ Bank Download Instructions" runat="server" /></h2>
|
||||
<a rel="leanModal" name="ModalDownloadInstructions" id="go" href="#ModalDownloadInstructions"><asp:Image ID="ImageDownloadInstructions" ImageUrl="~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-small.png" ImageAlign="Right" runat="server" /></a>
|
||||
<p><asp:Literal ID="LiteralDownloadInstructions" runat="server" Text="Fooo!!!" /></p><p><asp:Label ID="LabelClickImage" runat="server" /></p>
|
||||
<div style="clear:both"></div>
|
||||
<div id="DivSelectAccount" <asp:Literal ID="LiteralSelectAccountDivStyle" runat="server" Text="style='opacity:0;display:none;'" />>
|
||||
<h3><asp:Label ID="LabelSelectAccount" runat="server" Text="XYZ" /></h3>
|
||||
<asp:DropDownList runat="server" ID="DropAccounts" OnSelectedIndexChanged="DropAccounts_SelectedIndexChanged" AutoPostBack="true"/>
|
||||
</div>
|
||||
<div id="ModalDownloadInstructions">
|
||||
<asp:Image runat="server" ID="ImageDownloadInstructionsFull" /><br/><br/>
|
||||
<asp:Literal ID="LiteralDownloadInstructionsModal" runat="server" />
|
||||
</div>
|
||||
<asp:Label ID="LabelSelectToContinue" Text="Select to continue." runat="server" />
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:AsyncPostBackTrigger ControlID="ButtonSebAccountFile" EventName="Click" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div style="opacity:0;display:none" id="DivInstructions">
|
||||
<h2><asp:Label ID="LabelDownloadInstructions" Text="XYZ Bank Download Instructions" runat="server" /></h2>
|
||||
<a rel="leanModal" name="ModalDownloadInstructions" id="go" href="#ModalDownloadInstructions">Foo<asp:Image ID="ImageDownloadInstructions" ImageUrl="~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-small.png" ImageAlign="Right" runat="server" /></a>
|
||||
<p><asp:Literal ID="LiteralDownloadInstructions" runat="server" Text="Fooo!!!" /><asp:Literal ID="LiteralLastAccountRecord" runat="server" /></p><p><asp:Label ID="LabelClickImage" runat="server" /></p>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
<div id="ModalDownloadInstructions">
|
||||
<asp:Image runat="server" ID="ImageDownloadInstructionsFull" /><br/><br/>
|
||||
<asp:Literal ID="LiteralDownloadInstructionsModal" runat="server" />
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSide" Runat="Server">
|
||||
|
||||
@@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Activizr.Basic.Enums;
|
||||
using Activizr.Logic.Financial;
|
||||
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
@@ -33,16 +35,53 @@ namespace Activizr.Site.Pages.Ledgers
|
||||
this.ButtonSebAccountFile.CssClass = "FileTypeImage FileTypeImageSelected";
|
||||
this.ButtonSebPaymentFile.CssClass = "FileTypeImage UnselectedType";
|
||||
|
||||
this.LiteralDownloadInstructions.Text =
|
||||
this.LiteralDownloadInstructionsModal.Text =
|
||||
Resources.Pages.Ledgers.UploadBankFiles_DownloadInstructionsSebAccountFile;
|
||||
this.ImageDownloadInstructions.ImageUrl = "~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-small.png";
|
||||
this.ImageDownloadInstructionsFull.ImageUrl = "~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-full.png";
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "FadeType", "$(\".UnselectedType\").fadeTo('fast',0.2);", true);
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "FadeAccount1",
|
||||
"$(\"#DivSelectAccount\").fadeTo('slow', 1.0);", true);
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "FadeAccount2",
|
||||
"$(\"#DivSelectAccount\").css('display','inline');", true);
|
||||
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "FadeDownload2", "$(\"#DivInstructions\").fadeTo('slow',1.0);", true);
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "FadeDownload", "$(\".UnselectedType\").fadeTo('fast',0.2);", true);
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "ShowInstructions", "$(\"#DivInstructions\").css('display','inline');", true);
|
||||
PopulateAccountDropDown();
|
||||
|
||||
this.ButtonSebAccountFile.Enabled = false;
|
||||
this.ButtonSebPaymentFile.Enabled = false;
|
||||
|
||||
}
|
||||
|
||||
private void PopulateAccountDropDown()
|
||||
{
|
||||
FinancialAccounts accounts = FinancialAccounts.ForOrganization(_currentOrganization,
|
||||
FinancialAccountType.Asset);
|
||||
|
||||
this.DropAccounts.Items.Clear();
|
||||
this.DropAccounts.Items.Add(Resources.Pages.Global.Global_DropInits_SelectFinancialAccount);
|
||||
|
||||
foreach (FinancialAccount account in accounts)
|
||||
{
|
||||
this.DropAccounts.Items.Add(new ListItem(account.Name, account.Identity.ToString()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void DropAccounts_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.LiteralSelectAccountDivStyle.Text = @"style=""opacity=1;display:inline""";
|
||||
|
||||
if (this.DropAccounts.SelectedIndex > -2)
|
||||
{
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "FadeDownload2",
|
||||
"$(\"#DivInstructions\").fadeTo('slow',1.0);", true);
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "ShowInstructions",
|
||||
"$(\"#DivInstructions\").css('display','inline');", true);
|
||||
|
||||
this.LiteralDownloadInstructions.Text =
|
||||
this.LiteralDownloadInstructionsModal.Text =
|
||||
Resources.Pages.Ledgers.UploadBankFiles_DownloadInstructionsSebAccountFile;
|
||||
|
||||
this.ImageDownloadInstructions.ImageUrl = "~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-small.png";
|
||||
this.ImageDownloadInstructionsFull.ImageUrl =
|
||||
"~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-full.png";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user