-
+
">
+
@@ -106,7 +109,7 @@
-
+
<%# Eval("TagSetLocalizedName") %>
diff --git a/Site5/Pages/v5/Financial/FileExpenseClaim.aspx.cs b/Site5/Pages/v5/Financial/FileExpenseClaim.aspx.cs
index f882d322..9afee3e6 100644
--- a/Site5/Pages/v5/Financial/FileExpenseClaim.aspx.cs
+++ b/Site5/Pages/v5/Financial/FileExpenseClaim.aspx.cs
@@ -12,6 +12,50 @@ namespace Swarmops.Frontend.Pages.v5.Financial
{
public partial class FileExpenseClaim : PageV5Base
{
+ protected void Page_Init(object sender, EventArgs e)
+ {
+ string tagSetIdsString = Request.Form["HiddenTagSetIdentifiers"];
+ int[] tagSetIds;
+
+ if (String.IsNullOrEmpty(tagSetIdsString))
+ {
+ tagSetIds = FinancialTransactionTagSets.ForOrganization(this.CurrentOrganization).Identities;
+ }
+ else
+ {
+ string[] tagSetIdStrings = tagSetIdsString.Split(',');
+ tagSetIds = new int[tagSetIdStrings.Length];
+
+ for (int index = 0; index < tagSetIdStrings.Length; index++)
+ {
+ tagSetIds[index] = Int32.Parse(tagSetIdStrings[index]);
+ }
+ }
+
+ List
dataSource = new List();
+
+ foreach (int tagSetId in tagSetIds)
+ {
+ TagSetDataSourceItem item = new TagSetDataSourceItem()
+ {
+ TagSetId = tagSetId,
+ TagSetLocalizedName =
+ FinancialTransactionTagSetType.GetLocalizedName(
+ FinancialTransactionTagSet.FromIdentity(tagSetId).
+ FinancialTransactionTagSetTypeId)
+ };
+ dataSource.Add(item);
+ }
+
+ this.RepeaterTagLabels.DataSource = dataSource;
+ this.RepeaterTagDrop.DataSource = dataSource;
+ this.RepeaterTagDropScript.DataSource = dataSource;
+
+ this.RepeaterTagLabels.DataBind();
+ this.RepeaterTagDrop.DataBind();
+ this.RepeaterTagDropScript.DataBind();
+ }
+
protected void Page_Load(object sender, EventArgs e)
{
if (!this.CurrentOrganization.IsEconomyEnabled)
@@ -45,7 +89,6 @@ namespace Swarmops.Frontend.Pages.v5.Financial
CurrentOrganization.Currency.Code);
this.LabelPurpose.Text = Resources.Pages.Financial.FileExpenseClaim_Description;
this.LabelBudget.Text = Resources.Pages.Financial.FileExpenseClaim_Budget;
- this.LabelCostType.Text = Resources.Pages.Financial.FileExpenseClaim_CostType;
this.LabelHeaderBankDetails.Text = Resources.Pages.Financial.FileExpenseClaim_HeaderBankDetails;
this.LabelBankName.Text = Resources.Pages.Financial.FileExpenseClaim_BankName;
this.LabelBankClearing.Text = Resources.Pages.Financial.FileExpenseClaim_BankClearing;
@@ -134,5 +177,12 @@ namespace Swarmops.Frontend.Pages.v5.Financial
Response.Redirect("/", true);
}
+
+
+ protected class TagSetDataSourceItem
+ {
+ public int TagSetId { get; set; }
+ public string TagSetLocalizedName { get; set; }
+ }
}
}
\ No newline at end of file