diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx b/Site/Pages/v5/Financial/FileExpenseClaim.aspx
index 7e73f605..6ae9285f 100644
--- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx
+++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx
@@ -130,7 +130,8 @@
// Display processed data
-
+ $('#expensifyDataGrid').datagrid({});
+ $('#expensifyDataGrid').datagrid('loadData', result.Data);
} else {
@@ -217,7 +218,24 @@
-
+
diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs
index ee268131..e2798c1f 100644
--- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs
+++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs
@@ -508,6 +508,25 @@ namespace Swarmops.Frontend.Pages.v5.Financial
// TODO: Once user has confirmed budgets, save expenses
+ List
outputRecords = new List();
+
+ foreach (ExpensifyRecord record in recordList)
+ {
+ outputRecords.Add(new ExpensifyOutputRecord
+ {
+ Description = record.Description,
+ Amount = (record.AmountCents / 100.0).ToString("N2")
+ });
+ }
+
+ AjaxCallExpensifyUploadResult result = new AjaxCallExpensifyUploadResult
+ {
+ Success = true,
+ Data = outputRecords.ToArray()
+ };
+
+ GuidCache.Set("Results-" + guidFiles, result);
+
progress.Set(100);
}
@@ -524,6 +543,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
public class BarfException: Exception {}
+
private enum ExpensifyColumns
{
Unknown = 0,
@@ -693,10 +713,21 @@ namespace Swarmops.Frontend.Pages.v5.Financial
}
+ public class ExpensifyOutputRecord
+ {
+ public string Description { get; set; }
+ public string Budget { get; set; }
+ public string Amount { get; set; }
+ public string AmountVat { get; set; }
+ }
+
+
+
+
public class AjaxCallExpensifyUploadResult: AjaxCallResult
{
public string ErrorType { get; set; }
- // Todo: the whole damn data structure
+ public ExpensifyOutputRecord[] Data;
}
diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs
index e128173c..a8c9a101 100644
--- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs
+++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs
@@ -237,6 +237,60 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
///
protected global::System.Web.UI.WebControls.Label LabelExpensifyProcessingComplete;
+ ///
+ /// LabelGridHeaderCreatedDate control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelGridHeaderCreatedDate;
+
+ ///
+ /// LabelGridHeaderBudget control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelGridHeaderBudget;
+
+ ///
+ /// LabelExpensifyHeaderDescription control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelExpensifyHeaderDescription;
+
+ ///
+ /// LabelExpensifyHeaderVat control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelExpensifyHeaderVat;
+
+ ///
+ /// LabelExpensifyHeaderAmount control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelExpensifyHeaderAmount;
+
+ ///
+ /// LabelExpensifyHeaderDocs control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelExpensifyHeaderDocs;
+
///
/// LabelExpensifyUploadHeader control.
///