diff --git a/Site5/Pages/v5/Financial/Json-ExpensableBudgetsTree.aspx b/Site5/Automation/Json-ExpensableBudgetsTree.aspx
similarity index 100%
rename from Site5/Pages/v5/Financial/Json-ExpensableBudgetsTree.aspx
rename to Site5/Automation/Json-ExpensableBudgetsTree.aspx
diff --git a/Site5/Pages/v5/Financial/Json-ExpensableBudgetsTree.aspx.cs b/Site5/Automation/Json-ExpensableBudgetsTree.aspx.cs
similarity index 100%
rename from Site5/Pages/v5/Financial/Json-ExpensableBudgetsTree.aspx.cs
rename to Site5/Automation/Json-ExpensableBudgetsTree.aspx.cs
diff --git a/Site5/Controls/v5/Base/FileUpload.ascx b/Site5/Controls/v5/Base/FileUpload.ascx
index ebb73893..5396de3c 100644
--- a/Site5/Controls/v5/Base/FileUpload.ascx
+++ b/Site5/Controls/v5/Base/FileUpload.ascx
@@ -13,7 +13,7 @@
$(document).ready(function() {
$('#ButtonUploadHidden').fileupload({
- url: '/Automation/UploadFileHandler.ashx',
+ url: '/Automation/UploadFileHandler.ashx?Guid=<%= Guid.ToString() %>',
dataType: 'json',
done: function(e, data) {
$.each(data.result, function(index, file) {
@@ -55,5 +55,5 @@
-
+
diff --git a/Site5/Controls/v5/Base/FileUpload.ascx.cs b/Site5/Controls/v5/Base/FileUpload.ascx.cs
index d77bd2df..4ff892e5 100644
--- a/Site5/Controls/v5/Base/FileUpload.ascx.cs
+++ b/Site5/Controls/v5/Base/FileUpload.ascx.cs
@@ -12,7 +12,40 @@ namespace Swarmops.Controls.Base
{
protected void Page_Load(object sender, EventArgs e)
{
+ if (!Page.IsPostBack)
+ {
+ Guid = new Guid();
+ if (Filter == UploadFilter.Unknown) // if not set in control
+ {
+ Filter = UploadFilter.NoFilter;
+ }
+ }
+ }
+
+ public Guid Guid;
+ public UploadFilter Filter;
+
+
+ public enum UploadFilter
+ {
+ Unknown = 0,
+ ///
+ /// Do not apply any upload filter. Accept any file.
+ ///
+ NoFilter,
+ ///
+ /// Only accept files that successfully load as images.
+ ///
+ ImagesOnly,
+ ///
+ /// Only accept files that successfully load as PDFs.
+ ///
+ PdfOnly,
+ ///
+ /// Accept either images or PDFs, but none other.
+ ///
+ ImagesOrPdf
}
}
}
\ No newline at end of file
diff --git a/Site5/Controls/v5/Financial/ComboBudgets.ascx b/Site5/Controls/v5/Financial/ComboBudgets.ascx
new file mode 100644
index 00000000..ef8ffae3
--- /dev/null
+++ b/Site5/Controls/v5/Financial/ComboBudgets.ascx
@@ -0,0 +1,17 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ComboBudgets.ascx.cs" Inherits="Swarmops.Controls.Financial.BudgetCombo" %>
+
+
+
+
\ No newline at end of file
diff --git a/Site5/Controls/v5/Financial/ComboBudgets.ascx.cs b/Site5/Controls/v5/Financial/ComboBudgets.ascx.cs
new file mode 100644
index 00000000..689b589b
--- /dev/null
+++ b/Site5/Controls/v5/Financial/ComboBudgets.ascx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace Swarmops.Controls.Financial
+{
+ public partial class BudgetCombo : ControlV5Base
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/Site5/Controls/v5/Financial/ComboIncomeCostType.ascx b/Site5/Controls/v5/Financial/ComboIncomeCostType.ascx
new file mode 100644
index 00000000..af5b9830
--- /dev/null
+++ b/Site5/Controls/v5/Financial/ComboIncomeCostType.ascx
@@ -0,0 +1 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ComboIncomeCostType.ascx.cs" Inherits="Controls_v5_Financial_ComboIncomeCostType" %>
diff --git a/Site5/Controls/v5/Financial/ComboIncomeCostType.ascx.cs b/Site5/Controls/v5/Financial/ComboIncomeCostType.ascx.cs
new file mode 100644
index 00000000..d818c1e8
--- /dev/null
+++ b/Site5/Controls/v5/Financial/ComboIncomeCostType.ascx.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class Controls_v5_Financial_ComboIncomeCostType : System.Web.UI.UserControl
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Site5/Pages/v5/Financial/FileExpenseClaim.aspx b/Site5/Pages/v5/Financial/FileExpenseClaim.aspx
index e942e6cb..33aee124 100644
--- a/Site5/Pages/v5/Financial/FileExpenseClaim.aspx
+++ b/Site5/Pages/v5/Financial/FileExpenseClaim.aspx
@@ -1,6 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="FileExpenseClaim.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Financial.FileExpenseClaim" %>
<%@ Register src="~/Controls/v5/Base/FileUpload.ascx" tagname="FileUpload" tagprefix="Swarmops5" %>
<%@ Register TagPrefix="Swarmops5" TagName="ExternalScripts" Src="~/Controls/v5/UI/ExternalScripts.ascx" %>
+<%@ Register TagPrefix="Swarmops5" TagName="ComboBudgets" Src="~/Controls/v5/Financial/ComboBudgets.ascx" %>
@@ -13,19 +14,12 @@