Adding 'Applications' everywhere
This commit is contained in:
@@ -422,6 +422,16 @@ namespace Swarmops.Common.Enums
|
||||
/// <summary>
|
||||
/// Document identity of an organization's square logo - also usable for circle-type avatars
|
||||
/// </summary>
|
||||
OrgLogoSquare
|
||||
OrgLogoSquare,
|
||||
|
||||
OrgAskParticipantStreet,
|
||||
OrgParticipationEntry,
|
||||
OrgParticipationDuration,
|
||||
OrgSidebarShortInfo,
|
||||
OrgSignupFirstPage,
|
||||
OrgSignupLastPage,
|
||||
OrgApplicationCompleteMail,
|
||||
OrgParticipationAcceptedMail,
|
||||
OrgApplicationQualifyingScore
|
||||
}
|
||||
}
|
||||
@@ -134,5 +134,53 @@ namespace Swarmops.Logic.Structure
|
||||
}
|
||||
set { this.data.SetOptionalDataString (ObjectOptionalDataType.OrgTemporaryAccessListWrite, value); }
|
||||
}
|
||||
|
||||
public bool AskParticipantStreet
|
||||
{
|
||||
get { return this.data.GetOptionalDataBool(ObjectOptionalDataType.OrgAskParticipantStreet); }
|
||||
set { this.data.SetOptionalDataBool(ObjectOptionalDataType.OrgAskParticipantStreet, value); }
|
||||
}
|
||||
|
||||
public string ParticipationEntry
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgParticipationEntry); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgParticipationEntry, value); }
|
||||
}
|
||||
|
||||
public string ParticipationDuration
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgParticipationDuration); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgParticipationDuration, value); }
|
||||
}
|
||||
public string ParticipationAcceptedMail
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgParticipationAcceptedMail); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgParticipationAcceptedMail, value); }
|
||||
}
|
||||
public string SidebarOrgInfo
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgSidebarShortInfo); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgSidebarShortInfo, value); }
|
||||
}
|
||||
public string SignupFirstPage
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgSignupFirstPage); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgSignupFirstPage, value); }
|
||||
}
|
||||
public string SignupLastPage
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgSignupLastPage); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgSignupLastPage, value); }
|
||||
}
|
||||
public string ApplicationCompleteMail
|
||||
{
|
||||
get { return this.data.GetOptionalDataString(ObjectOptionalDataType.OrgApplicationCompleteMail); }
|
||||
set { this.data.SetOptionalDataString(ObjectOptionalDataType.OrgApplicationCompleteMail, value); }
|
||||
}
|
||||
public int ApplicationQualifyingScore
|
||||
{
|
||||
get { return this.data.GetOptionalDataInt(ObjectOptionalDataType.OrgApplicationQualifyingScore); }
|
||||
set { this.data.SetOptionalDataInt(ObjectOptionalDataType.OrgApplicationQualifyingScore, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.Admin.OrgSettings" CodeBehind="OrgSettings.aspx.cs" CodeFile="OrgSettings.aspx.cs" %>
|
||||
<%@ Import Namespace="Swarmops.Frontend" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="FileUpload" src="~/Controls/v5/Base/FileUpload.ascx" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
|
||||
@@ -30,34 +30,51 @@
|
||||
|
||||
function initializeSettings(orgSettings) {
|
||||
console.log(orgSettings);
|
||||
<%=this.ToggleBitcoinCold.ClientID%>_initialize(orgSettings.AccountBitcoinCold);
|
||||
<%=this.ToggleBitcoinHot.ClientID%>_initialize(orgSettings.AccountBitcoinHot);
|
||||
<%=this.TogglePaypal.ClientID%>_initialize(orgSettings.AccountPaypal);
|
||||
<%=this.ToggleForex.ClientID%>_initialize(orgSettings.AccountsForex);
|
||||
<%=this.ToggleVat.ClientID%>_initialize(orgSettings.AccountsVat);
|
||||
<%=this.ToggleOpenFinancials.ClientID%>_initialize(orgSettings.ParticipantFinancials);
|
||||
|
||||
$("#<%=this.TextPaypalAccountAddress.ClientID%>_TextInput").val(orgSettings.PaypalAccountAddress);
|
||||
/* Switches */
|
||||
|
||||
if (orgSettings.AccountBitcoinHot) {
|
||||
/* $('.bitcoinHotField').show(); save for later */
|
||||
}
|
||||
<%=this.ToggleBitcoinCold.ClientID%>_initialize(orgSettings.Switches.AccountBitcoinCold);
|
||||
<%=this.ToggleBitcoinHot.ClientID%>_initialize(orgSettings.Switches.AccountBitcoinHot);
|
||||
<%=this.TogglePaypal.ClientID%>_initialize(orgSettings.Switches.AccountPaypal);
|
||||
<%=this.ToggleForex.ClientID%>_initialize(orgSettings.Switches.AccountsForex);
|
||||
<%=this.ToggleVat.ClientID%>_initialize(orgSettings.Switches.AccountsVat);
|
||||
<%=this.ToggleOpenFinancials.ClientID%>_initialize(orgSettings.Switches.ParticipantFinancials);
|
||||
|
||||
if (orgSettings.AccountPaypal) {
|
||||
$("#<%=this.TextPaypalAccountAddress.ClientID%>_TextInput").val(orgSettings.Switches.PaypalAccountAddress);
|
||||
|
||||
if (orgSettings.Switches.AccountPaypal) {
|
||||
$('.paypalAccountField').show();
|
||||
}
|
||||
|
||||
if (orgSettings.AccountsVat) {
|
||||
if (orgSettings.Switches.AccountsVat) {
|
||||
$('.enableVatField').show();
|
||||
<%=this.DropVatReportFrequency.ClientID%>_val(orgSettings.VatReportFrequency);
|
||||
<%=this.DropVatReportFrequency.ClientID%>_val(orgSettings.Switches.VatReportFrequency);
|
||||
}
|
||||
|
||||
/* Participation settings */
|
||||
|
||||
<%=this.ToggleAskStreet.ClientID%>_intialize(orgSettings.Participation.AskParticipantStreet);
|
||||
<%=this.DropParticipationDuration.ClientID%>_val(orgSettings.Participation.Duration);
|
||||
<%=this.DropParticipationDuration.ClientID%>_val(orgSettings.Participation.Entry);
|
||||
|
||||
/* Messaging settings */
|
||||
|
||||
<%=this.TextApplicationCompleteMail.ClientID%>_initialize(orgSettings.Messages.ApplicationCompleteMail);
|
||||
<%=this.TextParticipationAcceptedMail.ClientID%>_initialize(orgSettings.Messages.ParticipationAcceptedMail);
|
||||
<%=this.TextShortOrgInfo.ClientID%>_initialize(orgSettings.Messages.SidebarOrgInfo);
|
||||
<%=this.TextSignupFirstPage.ClientID%>_initialize(orgSettings.Messages.SignupFirstPage);
|
||||
<%=this.TextSignupLastPage.ClientID%>_initialize(orgSettings.Messages.SignupLastPage);
|
||||
|
||||
/* Regulatory crap */
|
||||
|
||||
$('#<%=this.TextGovtRegistrationId.ClientID%>_TextInput').val(orgSettings.GovernmentRegistrationId);
|
||||
$('#<%=this.DropTaxAuthority.ClientID%>').val(orgSettings.TaxAuthority);
|
||||
$('#<%=this.TextTaxPaymentOcr.ClientID%>_TextInput').val(orgSettings.TaxPaymentOcr);
|
||||
|
||||
$('#<%=this.TextOpenLedgersDomain.ClientID%>_TextInput').val(orgSettings.OpenLedgersDomain);
|
||||
$('#<%=this.TextVanityDomain.ClientID%>_TextInput').val(orgSettings.VanityDomain);
|
||||
/* Premium stuff */
|
||||
|
||||
<%=this.TextOpenLedgersDomain.ClientID%>_initialize(orgSettings.OpenLedgersDomain);
|
||||
<%=this.TextVanityDomain.ClientID%>_initialize(orgSettings.VanityDomain);
|
||||
}
|
||||
|
||||
var suppressSwitchResponse = false;
|
||||
@@ -96,6 +113,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
function onChangeApplicationEnable(newValue) {
|
||||
if (newValue != "Application") {
|
||||
$(".enableApplicationField").show();
|
||||
} else {
|
||||
$(".enableApplicationField").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function onFileUploaded(guid, cookie) {
|
||||
var jsonData = {};
|
||||
jsonData.guid = guid;
|
||||
@@ -133,6 +158,8 @@
|
||||
|
||||
.enableVatField { display: none; }
|
||||
|
||||
.enableApplicationField { display: none; }
|
||||
|
||||
.CheckboxContainer {
|
||||
float: right;
|
||||
padding-top: 6px;
|
||||
@@ -175,9 +202,10 @@
|
||||
<div title="<img src='/Images/Icons/iconshock-contacts-64px.png' />">
|
||||
<h2>Participant policy</h2>
|
||||
<div class="entryFields">
|
||||
<Swarmops5:DropDown ID="DropMembersWhen" CssClass="DropTemp" runat="server"/>
|
||||
<Swarmops5:AjaxDropDown ID="DropParticipationEntry" CssClass="DropTemp" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/DropDownChanged" OnClientChange="onChangeApplicationEnable" Cookie="ParticipationEntry" runat="server"/>
|
||||
<div class="enableApplicationField"><Swarmops5:AjaxTextBox ID="TextApplicationScoreQualify" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" Cookie="ApplicationQualifyingScore" runat="server"/></div>
|
||||
<Swarmops5:DropDown ID="DropMembersWhere" CssClass="DropTemp" runat="server"/>
|
||||
<Swarmops5:DropDown ID="DropMembershipDuration" CssClass="DropTemp" runat="server"/>
|
||||
<Swarmops5:AjaxDropDown ID="DropParticipationDuration" CssClass="DropTemp" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/DropDownChanged" Cookie="ParticipationDuration" runat="server"/>
|
||||
<Swarmops5:DropDown ID="DropMembersChurn" CssClass="DropTemp" runat="server"/>
|
||||
<div class="stacked-input-control"><asp:TextBox ID="TextMembershipCost" runat="server" CssClass="alignRight" Text="0" /></div>
|
||||
<div class="stacked-input-control"><asp:TextBox ID="TextRenewalCost" runat="server" CssClass="alignRight" Text="0" /></div>
|
||||
@@ -185,9 +213,11 @@
|
||||
<Swarmops5:DropDown ID="DropRenewalsAffect" CssClass="DropTemp" runat="server"/>
|
||||
<Swarmops5:DropDown ID="DropRenewalReminder" CssClass="DropTemp" runat="server"/>
|
||||
<Swarmops5:DropDown ID="DropMemberNumber" runat="server" />
|
||||
<Swarmops5:AjaxToggleSlider ID="ToggleAskStreet" runat="server" Cookie="AskParticipantStreet" Label="Street" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/SwitchToggled"/>
|
||||
</div>
|
||||
<div class="entryLabels">
|
||||
<asp:Label ID="LabelParticipationEntry" runat="server" /><br/>
|
||||
<div class="enableApplicationField"></div>Application Score required to qualify<br/></div>
|
||||
<asp:Label ID="LabelParticipationOrg" runat="server" /><br/>
|
||||
<asp:Label ID="LabelParticipationDuration" runat="server" /><br/>
|
||||
<asp:Label ID="LabelParticipationChurn" runat="server" /><br/>
|
||||
@@ -197,6 +227,24 @@
|
||||
<asp:Label ID="LabelRenewalsAffect" runat="server" /><br/>
|
||||
<asp:Label ID="LabelRenewalReminder" runat="server" /><br/>
|
||||
<asp:Label ID="LabelMemberNumber" runat="server" /><br />
|
||||
Ask for participant's street address?
|
||||
</div>
|
||||
</div>
|
||||
<div title="<img src='/Images/Icons/iconshock-mail-open-64px.png' />">
|
||||
<h2>Welcome messages (paste long messages here)</h2>
|
||||
<div class="entryFields">
|
||||
<Swarmops5:AjaxTextBox ID="TextShortOrgInfo" runat="server" Cookie="SidebarOrgInfo" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" />
|
||||
<Swarmops5:AjaxTextBox ID="TextSignupFirstPage" runat="server" Cookie="SignupFirstPage" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" />
|
||||
<Swarmops5:AjaxTextBox ID="TextSignupLastPage" runat="server" Cookie="SignupLastPage" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" />
|
||||
<div class="enableApplicationField"><Swarmops5:AjaxTextBox ID="TextApplicationCompleteMail" runat="server" Cookie="ApplicationCompleteMail" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" /></div>
|
||||
<Swarmops5:AjaxTextBox ID="TextParticipationAcceptedMail" runat="server" Cookie="ParticipationAcceptedMail" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" />
|
||||
</div>
|
||||
<div class="entryLabels">
|
||||
Sidebar short organization info<br/>
|
||||
Self-signup first page<br/>
|
||||
Self-signup last page<br/>
|
||||
<div class="enableApplicationField">Application complete mail<br/></div>
|
||||
Citizenship complete mail<br/>
|
||||
</div>
|
||||
</div>
|
||||
<div title="<img src='/Images/Icons/iconshock-colorswatch-64px.png' />">
|
||||
@@ -222,6 +270,7 @@
|
||||
Renewal letter [HTML]<br/>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div title="<img src='/Images/Icons/iconshock-mail-open-64px.png' />">
|
||||
<h2>Mail transmission settings</h2>
|
||||
<div class="entryFields">
|
||||
@@ -238,7 +287,7 @@
|
||||
User Notification sender<br/>
|
||||
SMTP server (default if blank)
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div title="<img src='/Images/Icons/iconshock-buildings-256px.png' height='64' width='64' />">
|
||||
<h2>Regulatory stuff (optional)</h2>
|
||||
<div class="entryFields">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web.Services;
|
||||
@@ -65,14 +66,14 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
this.TextVanityDomain.Placeholder = Resources.Global.Global_DefineToEnable;
|
||||
this.TextOpenLedgersDomain.Placeholder = Resources.Global.Global_DefineToEnable;
|
||||
|
||||
this.DropMembersWhen.Items.Clear();
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Application submitted", "Application"));
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Application approved", "ApplicationApproval"));
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Application submitted + paid", "ApplicationPayment"));
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Application paid + approved", "ApplicationPaymentApproval"));
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Invited and accepted", "InvitationAcceptance"));
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Invited and paid", "InvitationPayment"));
|
||||
this.DropMembersWhen.Items.Add (new ListItem ("Manual add only", "Manual"));
|
||||
this.DropParticipationEntry.Items.Clear();
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Application submitted", "Application"));
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Application approved", "ApplicationApproval"));
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Application submitted + paid", "ApplicationPayment"));
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Application paid + approved", "ApplicationPaymentApproval"));
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Invited and accepted", "InvitationAcceptance"));
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Invited and paid", "InvitationPayment"));
|
||||
this.DropParticipationEntry.Items.Add (new ListItem ("Manual add only", "Manual"));
|
||||
|
||||
this.DropMembersWhere.Items.Clear();
|
||||
this.DropMembersWhere.Items.Add (new ListItem ("Root organization only", "Root"));
|
||||
@@ -80,13 +81,12 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
this.DropMembersWhere.Items.Add (new ListItem ("Root and most local org", "RootLocal"));
|
||||
this.DropMembersWhere.Items.Add (new ListItem ("All applicable organizations", "All"));
|
||||
|
||||
this.DropMembershipDuration.Items.Clear();
|
||||
this.DropMembershipDuration.Items.Add (new ListItem ("One month", "OneMonth"));
|
||||
this.DropMembershipDuration.Items.Add (new ListItem ("One year", "OneYear"));
|
||||
this.DropMembershipDuration.Items.Add (new ListItem ("Two years", "TwoYears"));
|
||||
this.DropMembershipDuration.Items.Add (new ListItem ("Five years", "FiveYears"));
|
||||
this.DropMembershipDuration.Items.Add (new ListItem ("Forever", "Forever"));
|
||||
this.DropMembershipDuration.SelectedValue = "Year";
|
||||
this.DropParticipationDuration.Items.Clear();
|
||||
this.DropParticipationDuration.Items.Add (new ListItem ("One month", "1"));
|
||||
this.DropParticipationDuration.Items.Add (new ListItem ("One year", "12"));
|
||||
this.DropParticipationDuration.Items.Add (new ListItem ("Two years", "24"));
|
||||
this.DropParticipationDuration.Items.Add (new ListItem ("Five years", "60"));
|
||||
this.DropParticipationDuration.Items.Add (new ListItem ("Forever", "1440"));
|
||||
|
||||
this.DropMembersChurn.Items.Clear();
|
||||
this.DropMembersChurn.Items.Add (new ListItem ("Expiry date reached", "Expiry"));
|
||||
@@ -123,6 +123,9 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
public static InitialOrgData GetInitialData()
|
||||
{
|
||||
InitialOrgData result = new InitialOrgData();
|
||||
InitialDataSwitches switches = new InitialDataSwitches();
|
||||
InitialMessages messages = new InitialMessages();
|
||||
InitialParticipationData participation = new InitialParticipationData();
|
||||
AuthenticationData authData = GetAuthenticationDataAndCulture();
|
||||
Organization org = authData.CurrentOrganization;
|
||||
|
||||
@@ -131,19 +134,31 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
return result; // just... don't
|
||||
}
|
||||
|
||||
result.AccountBitcoinCold = (org.FinancialAccounts.AssetsBitcoinCold != null &&
|
||||
switches.AccountBitcoinCold = (org.FinancialAccounts.AssetsBitcoinCold != null &&
|
||||
org.FinancialAccounts.AssetsBitcoinCold.Active);
|
||||
result.AccountBitcoinHot = (org.FinancialAccounts.AssetsBitcoinHot != null &&
|
||||
switches.AccountBitcoinHot = (org.FinancialAccounts.AssetsBitcoinHot != null &&
|
||||
org.FinancialAccounts.AssetsBitcoinHot.Active);
|
||||
result.AccountPaypal = (org.FinancialAccounts.AssetsPaypal != null &&
|
||||
switches.AccountPaypal = (org.FinancialAccounts.AssetsPaypal != null &&
|
||||
org.FinancialAccounts.AssetsPaypal.Active);
|
||||
result.AccountsForex = (org.FinancialAccounts.IncomeCurrencyFluctuations != null &&
|
||||
switches.AccountsForex = (org.FinancialAccounts.IncomeCurrencyFluctuations != null &&
|
||||
org.FinancialAccounts.IncomeCurrencyFluctuations.Active);
|
||||
result.AccountsVat = (org.FinancialAccounts.AssetsVatInbound != null &&
|
||||
switches.AccountsVat = (org.FinancialAccounts.AssetsVatInbound != null &&
|
||||
org.FinancialAccounts.AssetsVatInbound.Active);
|
||||
result.VatReportFrequency = org.VatReportFrequencyMonths;
|
||||
result.ParticipantFinancials = org.ParticipantFinancialsEnabled;
|
||||
result.PaypalAccountAddress = org.PaypalAccountMailAddress;
|
||||
switches.VatReportFrequency = org.VatReportFrequencyMonths;
|
||||
switches.ParticipantFinancials = org.ParticipantFinancialsEnabled;
|
||||
switches.PaypalAccountAddress = org.PaypalAccountMailAddress;
|
||||
|
||||
participation.ApplicationQualifyingScore = org.Parameters.ApplicationQualifyingScore;
|
||||
participation.AskParticipantStreet = org.Parameters.AskParticipantStreet;
|
||||
participation.Duration = org.Parameters.ParticipationDuration;
|
||||
participation.Entry = org.Parameters.ParticipationEntry;
|
||||
|
||||
messages.ApplicationCompleteMail = org.Parameters.ApplicationCompleteMail;
|
||||
messages.ParticipationAcceptedMail = org.Parameters.ParticipationAcceptedMail;
|
||||
messages.SidebarOrgInfo = org.Parameters.SidebarOrgInfo;
|
||||
messages.SignupFirstPage = org.Parameters.SignupFirstPage;
|
||||
messages.SignupLastPage = org.Parameters.SignupLastPage;
|
||||
|
||||
|
||||
result.GovernmentRegistrationId = org.GovernmentRegistrationId;
|
||||
result.TaxAuthority = org.TaxAuthority;
|
||||
@@ -154,10 +169,15 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
|
||||
// TODO: Add all the other fields
|
||||
|
||||
result.Switches = switches;
|
||||
result.Messages = messages;
|
||||
result.Participation = participation;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public static AjaxInputCallResult SwitchToggled (string cookie, bool newValue)
|
||||
{
|
||||
@@ -349,6 +369,9 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
case "ParticipantFinancials":
|
||||
authData.CurrentOrganization.ParticipantFinancialsEnabled = newValue;
|
||||
break;
|
||||
case "AskPartipantStreet":
|
||||
authData.CurrentOrganization.Parameters.AskParticipantStreet = newValue;
|
||||
break;
|
||||
default:
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -486,6 +509,48 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
authenticationData.CurrentOrganization.VatReportFrequencyMonths = Int32.Parse(newValue);
|
||||
break;
|
||||
|
||||
case "ParticipationEntry":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.ParticipationEntry = newValue;
|
||||
break;
|
||||
|
||||
case "ParticipationDuration":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.ParticipationDuration = newValue;
|
||||
break;
|
||||
|
||||
case "SidebarOrgInfo":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.SidebarOrgInfo = newValue;
|
||||
break;
|
||||
|
||||
case "SignupFirstPage":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.SignupFirstPage = newValue;
|
||||
break;
|
||||
|
||||
case "SignupLastPage":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.SignupLastPage = newValue;
|
||||
break;
|
||||
|
||||
case "ApplicationCompleteMail":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.ApplicationCompleteMail = newValue;
|
||||
break;
|
||||
|
||||
case "ParticipationAcceptedMail":
|
||||
result.Success = true;
|
||||
authenticationData.CurrentOrganization.Parameters.ParticipationAcceptedMail = newValue;
|
||||
break;
|
||||
|
||||
case "ApplicationQualifyingScore":
|
||||
int qualifyingScore = Int32.Parse(newValue, NumberStyles.Number);
|
||||
authenticationData.CurrentOrganization.Parameters.ApplicationQualifyingScore = qualifyingScore;
|
||||
result.NewValue = qualifyingScore.ToString("N2");
|
||||
result.Success = true; // this comes last in this section, because parsing int may fail
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new NotImplementedException("Unknown cookie in StoreCallback");
|
||||
}
|
||||
@@ -505,14 +570,11 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
|
||||
public class InitialOrgData
|
||||
{
|
||||
public bool AccountBitcoinCold;
|
||||
public bool AccountBitcoinHot;
|
||||
public bool AccountPaypal;
|
||||
public bool AccountsForex;
|
||||
public bool AccountsVat;
|
||||
public int VatReportFrequency;
|
||||
public bool ParticipantFinancials;
|
||||
public string PaypalAccountAddress;
|
||||
public InitialDataSwitches Switches { get; set; }
|
||||
public InitialMessages Messages { get; set; }
|
||||
public InitialParticipationData Participation { get; set; }
|
||||
|
||||
// TODO: Move these lower ones to classes of their own, too
|
||||
|
||||
public string GovernmentRegistrationId;
|
||||
public string TaxAuthority;
|
||||
@@ -521,5 +583,34 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
public string OpenLedgersDomain;
|
||||
public string VanityDomain;
|
||||
}
|
||||
|
||||
public class InitialDataSwitches
|
||||
{
|
||||
public bool AccountBitcoinCold { get; set; }
|
||||
public bool AccountBitcoinHot { get; set; }
|
||||
public bool AccountPaypal { get; set; }
|
||||
public bool AccountsForex { get; set; }
|
||||
public bool AccountsVat { get; set; }
|
||||
public int VatReportFrequency { get; set; }
|
||||
public bool ParticipantFinancials { get; set; }
|
||||
public string PaypalAccountAddress { get; set; }
|
||||
}
|
||||
|
||||
public class InitialParticipationData
|
||||
{
|
||||
public string Entry { get; set; }
|
||||
public string Duration { get; set; }
|
||||
public int ApplicationQualifyingScore { get; set; }
|
||||
public bool AskParticipantStreet { get; set; }
|
||||
}
|
||||
|
||||
public class InitialMessages
|
||||
{
|
||||
public string SidebarOrgInfo { get; set; }
|
||||
public string SignupFirstPage { get; set; }
|
||||
public string SignupLastPage { get; set; }
|
||||
public string ApplicationCompleteMail { get; set; }
|
||||
public string ParticipationAcceptedMail { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
+67
-4
@@ -94,13 +94,22 @@ namespace Swarmops.Frontend.Pages.Admin {
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxToggleSlider ToggleOpenFinancials;
|
||||
|
||||
/// <summary>
|
||||
/// DropMembersWhen control.
|
||||
/// DropParticipationEntry control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropMembersWhen;
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxDropDown DropParticipationEntry;
|
||||
|
||||
/// <summary>
|
||||
/// TextApplicationScoreQualify control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox TextApplicationScoreQualify;
|
||||
|
||||
/// <summary>
|
||||
/// DropMembersWhere control.
|
||||
@@ -112,13 +121,13 @@ namespace Swarmops.Frontend.Pages.Admin {
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropMembersWhere;
|
||||
|
||||
/// <summary>
|
||||
/// DropMembershipDuration control.
|
||||
/// DropParticipationDuration control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropMembershipDuration;
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxDropDown DropParticipationDuration;
|
||||
|
||||
/// <summary>
|
||||
/// DropMembersChurn control.
|
||||
@@ -183,6 +192,15 @@ namespace Swarmops.Frontend.Pages.Admin {
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropMemberNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToggleAskStreet control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxToggleSlider ToggleAskStreet;
|
||||
|
||||
/// <summary>
|
||||
/// LabelParticipationEntry control.
|
||||
/// </summary>
|
||||
@@ -273,6 +291,51 @@ namespace Swarmops.Frontend.Pages.Admin {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelMemberNumber;
|
||||
|
||||
/// <summary>
|
||||
/// TextShortOrgInfo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox TextShortOrgInfo;
|
||||
|
||||
/// <summary>
|
||||
/// TextSignupFirstPage control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox TextSignupFirstPage;
|
||||
|
||||
/// <summary>
|
||||
/// TextSignupLastPage control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox TextSignupLastPage;
|
||||
|
||||
/// <summary>
|
||||
/// TextApplicationCompleteMail control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox TextApplicationCompleteMail;
|
||||
|
||||
/// <summary>
|
||||
/// TextParticipationAcceptedMail control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxTextBox TextParticipationAcceptedMail;
|
||||
|
||||
/// <summary>
|
||||
/// UploadLogoLandscape control.
|
||||
/// </summary>
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
|
||||
if (documents.Count > 0)
|
||||
{
|
||||
element += String.Format(",\"dox\":\"" + hasDoxString + "\"", transaction.Identity, documents[0].Identity, CurrentOrganization.Name + " - " + report.Description + " - " + Resources.Global.Financial_TransactionIdShort + " " + transaction.OrganizationSequenceId.ToString("N0"));
|
||||
element += String.Format(",\"dox\":\"" + hasDoxString + "\"", transaction.Identity, documents[0].Identity, CurrentOrganization.Name + " - " + report.Description + " - " + Resources.Global.Financial_TransactionIdShort + transaction.OrganizationSequenceId.ToString("N0"));
|
||||
}
|
||||
|
||||
if (include)
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
<controls>
|
||||
<add tagPrefix="Swarmops5" tagName="AjaxComboPeople" src="~/Controls/v5/Swarm/ComboPeople.ascx" />
|
||||
<add tagPrefix="Swarmops5" tagName="AjaxTextBox" src="~/Controls/v5/Base/AjaxTextBox.ascx" />
|
||||
<add tagPrefix="Swarmops5" tagName="AjaxDropDown" src="~/Controls/v5/Base/AjaxDropDown.ascx" />
|
||||
<add tagPrefix="Swarmops5" tagName="AjaxToggleSlider" src="~/Controls/v5/Base/AjaxToggleSlider.ascx" />
|
||||
<add tagPrefix="Swarmops5" tagName="ComboBudgets" src="~/Controls/v5/Financial/ComboBudgets.ascx" />
|
||||
<add tagPrefix="Swarmops5" tagName="ComboPeople" src="~/Controls/v5/Swarm/ComboPeople.ascx" />
|
||||
|
||||
Reference in New Issue
Block a user