Work on Expensify reports

This commit is contained in:
Rick Falkvinge
2018-02-13 14:35:37 +01:00
parent 07575fbaa4
commit a03a862ae8
5 changed files with 26 additions and 13 deletions
+9
View File
@@ -1041,6 +1041,15 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to File Upload Results.
/// </summary>
internal static string Global_FileUploadResults {
get {
return ResourceManager.GetString("Global_FileUploadResults", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Flags.
/// </summary>
+3
View File
@@ -960,4 +960,7 @@
<data name="Global_Upload" xml:space="preserve">
<value>Upload</value>
</data>
<data name="Global_FileUploadResults" xml:space="preserve">
<value>File Upload Results</value>
</data>
</root>
+9 -11
View File
@@ -133,19 +133,17 @@
// Make a brutal transition to failure view
$('#divUploadExpensify').show(); // re-show
<%=this.ProgressExpensify.ClientID%>_hide();
<%=this.ProgressExpensifyFake.ClientID%>_hide();
if (result.ErrorType == "ERR_NEEDSVAT") {
$('#divExpensifyResultsBad').show();
$('#divExpensifyResultsGood').hide();
$('#divExpensifyResults').show();
$('#divExpensifyUploadAnotherHeader').show();
$('#divUploadExpensify').show();
$('#divExpensifyResultsBadText').html(result.DisplayMessage);
}
$('#divExpensifyResultsBad').show();
$('#divExpensifyResultsGood').hide();
$('#divExpensifyResults').show();
$('#divExpensifyInstructions').hide();
$('#divExpensifyUploadAnotherHeader').show();
$('#divExpensifyResultsBadText').html(result.DisplayMessage);
$('#divUploadExpensify').show(); // re-show
}
// Regardless of whether result is good or bad, reset the upload control
@@ -212,7 +210,7 @@
<div id="divExpensifyResults" style="display:none; margin-bottom:10px">
<h2><asp:Label ID="LabelProcessingComplete" runat="server" /></h2>
<h2><asp:Label ID="LabelExpensifyProcessingComplete" runat="server" /></h2>
<div id="divExpensifyResultsGood" style="display:none">Good results go here<div id="DivUploadResultsGoodText"></div></div>
@@ -159,6 +159,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
this.LabelExpensifyCsv.Text = Resources.Pages.Financial.FileExpenseClaim_Expensify_CsvUploadDescription;
this.LabelExpensifyInstructions1.Text =
Resources.Pages.Financial.FileExpenseClaim_Expensify_InstructionsBasic;
this.LabelExpensifyProcessingComplete.Text = Resources.Global.Global_FileUploadResults;
if (CurrentOrganization.VatEnabled)
{
@@ -308,6 +309,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial
progress.Set(100); // terminate progress bar, causes retrieval of result
documents[0].Delete(); // prevents further processing
return; // terminates thread
}
+2 -2
View File
@@ -229,13 +229,13 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
protected global::Swarmops.Frontend.Controls.v5.Base.ProgressBarFake ProgressExpensifyFake;
/// <summary>
/// LabelProcessingComplete control.
/// LabelExpensifyProcessingComplete control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label LabelProcessingComplete;
protected global::System.Web.UI.WebControls.Label LabelExpensifyProcessingComplete;
/// <summary>
/// LabelExpensifyUploadHeader control.