Work on Expensify reports
This commit is contained in:
@@ -88,9 +88,6 @@
|
||||
var expensifyProcessingHalfway = false;
|
||||
|
||||
function onExpensifyUpload() {
|
||||
<%=this.ProgressExpensify.ClientID%>_fadeIn();
|
||||
<%=this.ProgressExpensify.ClientID%>_begin(); // starts listening / polling for progress
|
||||
|
||||
SwarmopsJS.ajaxCall
|
||||
("/Pages/v5/Financial/FileExpenseClaim.aspx/InitializeExpensifyProcessing",
|
||||
{
|
||||
@@ -99,7 +96,8 @@
|
||||
},
|
||||
function(result) {
|
||||
if (result.Success) {
|
||||
|
||||
<%=this.ProgressExpensify.ClientID%>_fadeIn();
|
||||
<%=this.ProgressExpensify.ClientID%>_begin(); // starts listening / polling for progress
|
||||
}
|
||||
});
|
||||
|
||||
@@ -231,7 +229,7 @@
|
||||
<p><asp:Label runat="server" ID="LabelExpensifyInstructions2"/></p>
|
||||
</div>
|
||||
|
||||
<div id="divExpensifyUploadAnotherHeader" style="display:none"><h2><asp:Label runat="server" ID="LabelUploadAnotherFileHeader" Text="Upload Another XYZ" /></h2></div>
|
||||
<div id="divExpensifyUploadAnotherHeader" style="display:none"><h2><asp:Label runat="server" ID="LabelExpensifyUploadAnotherHeader" Text="Upload Another XYZ" /></h2></div>
|
||||
|
||||
<div class="entryFields">
|
||||
<Swarmops5:FileUpload runat="server" ID="UploadExpensify" Filter="NoFilter" DisplayCount="8" ClientUploadCompleteCallback="onExpensifyUpload" />
|
||||
|
||||
@@ -160,6 +160,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
this.LabelExpensifyInstructions1.Text =
|
||||
Resources.Pages.Financial.FileExpenseClaim_Expensify_InstructionsBasic;
|
||||
this.LabelExpensifyProcessingComplete.Text = Resources.Global.Global_FileUploadResults;
|
||||
this.LabelExpensifyUploadAnotherHeader.Text =
|
||||
Resources.Pages.Financial.FileExpenseClaim_Expensify_UploadAnother;
|
||||
|
||||
if (CurrentOrganization.VatEnabled)
|
||||
{
|
||||
@@ -180,6 +182,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
// Start an async thread that does all the work, then return
|
||||
|
||||
AuthenticationData authData = GetAuthenticationDataAndCulture();
|
||||
ProgressBarBackend progress = new ProgressBarBackend(guidProgress);
|
||||
progress.Set(0); // Set to 0 first, esp. in case of previous files
|
||||
|
||||
Thread initThread = new Thread(ProcessExpensifyUploadThread);
|
||||
|
||||
|
||||
+2
-2
@@ -265,13 +265,13 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
|
||||
protected global::System.Web.UI.WebControls.Label LabelExpensifyInstructions2;
|
||||
|
||||
/// <summary>
|
||||
/// LabelUploadAnotherFileHeader control.
|
||||
/// LabelExpensifyUploadAnotherHeader 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 LabelUploadAnotherFileHeader;
|
||||
protected global::System.Web.UI.WebControls.Label LabelExpensifyUploadAnotherHeader;
|
||||
|
||||
/// <summary>
|
||||
/// UploadExpensify control.
|
||||
|
||||
Reference in New Issue
Block a user