diff --git a/Common/Enums/ObjectOptionalDataType.cs b/Common/Enums/ObjectOptionalDataType.cs index d95d224a..29747628 100644 --- a/Common/Enums/ObjectOptionalDataType.cs +++ b/Common/Enums/ObjectOptionalDataType.cs @@ -288,6 +288,11 @@ namespace Swarmops.Common.Enums /// OrgRegularLabel, + /// + /// What are applying members called in this org? + /// + OrgApplicantLabel, + /// /// What are activists called in this org? /// diff --git a/Common/Enums/PositionTitle.cs b/Common/Enums/PositionTitle.cs index 38586d1a..98ab9f3d 100644 --- a/Common/Enums/PositionTitle.cs +++ b/Common/Enums/PositionTitle.cs @@ -25,6 +25,11 @@ namespace Swarmops.Common.Enums /// Nonprofit, + /// + /// For organization that run a government-like structure (President, ministers, etc). + /// + Government, + /// /// Use medieval titles (kind of humorous, not to be taken too seriously). /// diff --git a/Logic/Resources/Logic.Swarm.Position.Designer.cs b/Logic/Resources/Logic.Swarm.Position.Designer.cs index 029afcf0..fdf896fc 100644 --- a/Logic/Resources/Logic.Swarm.Position.Designer.cs +++ b/Logic/Resources/Logic.Swarm.Position.Designer.cs @@ -141,6 +141,15 @@ namespace Swarmops.Logic.Resources { } } + /// + /// Looks up a localized string similar to President. + /// + internal static string Position_Executive_ChiefExecutiveOfficer_Government { + get { + return ResourceManager.GetString("Position_Executive_ChiefExecutiveOfficer_Government", resourceCulture); + } + } + /// /// Looks up a localized string similar to Secretary General. /// @@ -159,6 +168,15 @@ namespace Swarmops.Logic.Resources { } } + /// + /// Looks up a localized string similar to Minister of Finance. + /// + internal static string Position_Executive_ChiefFinancialOfficer_Government { + get { + return ResourceManager.GetString("Position_Executive_ChiefFinancialOfficer_Government", resourceCulture); + } + } + /// /// Looks up a localized string similar to Treasurer. /// @@ -222,6 +240,15 @@ namespace Swarmops.Logic.Resources { } } + /// + /// Looks up a localized string similar to Minister of the Interior. + /// + internal static string Position_Executive_ChiefOperationsOfficer_Government { + get { + return ResourceManager.GetString("Position_Executive_ChiefOperationsOfficer_Government", resourceCulture); + } + } + /// /// Looks up a localized string similar to Chief Activism Officer. /// diff --git a/Logic/Resources/Logic.Swarm.Position.resx b/Logic/Resources/Logic.Swarm.Position.resx index 58fc3ff3..31ed1fc5 100644 --- a/Logic/Resources/Logic.Swarm.Position.resx +++ b/Logic/Resources/Logic.Swarm.Position.resx @@ -144,12 +144,18 @@ Chief Executive Officer + + President + Secretary General Chief Financial Officer + + Minister of Finance + Treasurer @@ -171,6 +177,9 @@ Chief Operations Officer + + Minister of the Interior + Chief Activism Officer diff --git a/Logic/Structure/Organization.cs b/Logic/Structure/Organization.cs index 07f66201..fe111dcf 100644 --- a/Logic/Structure/Organization.cs +++ b/Logic/Structure/Organization.cs @@ -274,18 +274,34 @@ namespace Swarmops.Logic.Structure } } + public ParticipantTitle ApplicantLabel + { + get + { + string optionalData = OptionalData[ObjectOptionalDataType.OrgApplicantLabel]; + if (string.IsNullOrEmpty(optionalData)) + { + ApplicantLabel = ParticipantTitle.Applicant; + return ParticipantTitle.Applicant; // Legacy + } + + return (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle), optionalData)); + } + set { OptionalData[ObjectOptionalDataType.OrgApplicantLabel] = value.ToString(); } + } + public ParticipantTitle RegularLabel { get { string optionalData = OptionalData[ObjectOptionalDataType.OrgRegularLabel]; - if (string.IsNullOrEmpty (optionalData)) + if (string.IsNullOrEmpty(optionalData)) { RegularLabel = ParticipantTitle.Member; return ParticipantTitle.Member; // Legacy } - return (ParticipantTitle) (Enum.Parse (typeof (ParticipantTitle), optionalData)); + return (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle), optionalData)); } set { OptionalData[ObjectOptionalDataType.OrgRegularLabel] = value.ToString(); } } diff --git a/Logic/Swarm/ParticipantTitle.cs b/Logic/Swarm/ParticipantTitle.cs index 43cb859b..39e1b365 100644 --- a/Logic/Swarm/ParticipantTitle.cs +++ b/Logic/Swarm/ParticipantTitle.cs @@ -44,6 +44,8 @@ namespace Swarmops.Logic.Swarm Activist, Agent, Ambassador, + Applicant, + Aspirant, Citizen, Conscript, Contributor, diff --git a/Logic/Swarm/Positions.cs b/Logic/Swarm/Positions.cs index 2f65fa56..bb30bf8e 100644 --- a/Logic/Swarm/Positions.cs +++ b/Logic/Swarm/Positions.cs @@ -197,8 +197,9 @@ namespace Swarmops.Logic.Swarm /* EXECUTIVE POSITIONS (positions at the "Global" geographic level) */ - Position ceo = Position.Create (organization, PositionLevel.OrganizationExecutive, null, null, - PositionType.Executive_ChiefExecutiveOfficer, titleType, false, false, null, null, 1, 1); + Position ceo = Position.Create(organization, PositionLevel.OrganizationExecutive, null, null, + PositionType.Executive_ChiefExecutiveOfficer, titleType, false, false, null, null, 1, 1); + /*Position vp =*/ Position.Create(organization, PositionLevel.OrganizationExecutive, null, null, PositionType.Executive_CeoAssistant, titleType, false, false, ceo, null, 0, 0); diff --git a/Site/App_GlobalResources/Pages.Admin.designer.cs b/Site/App_GlobalResources/Pages.Admin.designer.cs index dac27d68..10ac7425 100644 --- a/Site/App_GlobalResources/Pages.Admin.designer.cs +++ b/Site/App_GlobalResources/Pages.Admin.designer.cs @@ -269,6 +269,24 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to Not-yet-members are called. + /// + internal static string CreateOrganization_Applicants { + get { + return ResourceManager.GetString("CreateOrganization_Applicants", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (not applicable). + /// + internal static string CreateOrganization_Applicants_None { + get { + return ResourceManager.GetString("CreateOrganization_Applicants_None", resourceCulture); + } + } + /// /// Looks up a localized string similar to Root-level organization. /// @@ -386,6 +404,15 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to Government. + /// + internal static string CreateOrganization_Titles_Government { + get { + return ResourceManager.GetString("CreateOrganization_Titles_Government", resourceCulture); + } + } + /// /// Looks up a localized string similar to Nonprofit. /// diff --git a/Site/App_GlobalResources/Pages.Admin.resx b/Site/App_GlobalResources/Pages.Admin.resx index 23d0f61b..a4f08bce 100644 --- a/Site/App_GlobalResources/Pages.Admin.resx +++ b/Site/App_GlobalResources/Pages.Admin.resx @@ -362,4 +362,13 @@ <p><strong>WARNING:</strong> This is a highly intrusive tool that should only be used for technical development and for requested support. Using this should not be taken lightly.</p> <p>All impersonations are permanently logged, all and any actions taken while impersonated are traceable as such, and the impersonated user will be informed of the intrusion.</p> + + Not-yet-members are called + + + (not applicable) + + + Government + \ No newline at end of file diff --git a/Site/Pages/v5/Admin/CreateOrganization.aspx b/Site/Pages/v5/Admin/CreateOrganization.aspx index 87ead429..e82ae683 100644 --- a/Site/Pages/v5/Admin/CreateOrganization.aspx +++ b/Site/Pages/v5/Admin/CreateOrganization.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" CodeFile="CreateOrganization.aspx.cs" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" CodeBehind="CreateOrganization.aspx.cs" CodeFile="CreateOrganization.aspx.cs" %>