Added more with filing expenses, upgraded external scripts (JEasyUI)
This commit is contained in:
+1
-1
@@ -68,6 +68,7 @@
|
||||
<Compile Include="Types\BasicExternalActivity.cs" />
|
||||
<Compile Include="Types\BasicFinancialValidation.cs" />
|
||||
<Compile Include="Types\BasicPostalCode.cs" />
|
||||
<Compile Include="Types\Financial\BasicFinancialAccount.cs" />
|
||||
<Compile Include="Types\Governance\BasicMeeting.cs" />
|
||||
<Compile Include="Config.cs" />
|
||||
<Compile Include="Diagnostics\Logging.cs" />
|
||||
@@ -97,7 +98,6 @@
|
||||
<Compile Include="Types\BasicExpenseClaim.cs" />
|
||||
<Compile Include="Types\BasicExternalCredential.cs" />
|
||||
<Compile Include="Types\BasicExternalIdentity.cs" />
|
||||
<Compile Include="Types\BasicFinancialAccount.cs" />
|
||||
<Compile Include="Types\BasicFinancialAccountRow.cs" />
|
||||
<Compile Include="Types\BasicFinancialDependency.cs" />
|
||||
<Compile Include="Types\BasicFinancialTransaction.cs" />
|
||||
|
||||
@@ -94,6 +94,14 @@ namespace Swarmops.Basic.Enums
|
||||
/// <summary>
|
||||
/// When closing books, this is the yearly result (balanced against DebtsEquity)
|
||||
/// </summary>
|
||||
CostsYearlyResult // multi-account type
|
||||
CostsYearlyResult, // multi-account type
|
||||
/// <summary>
|
||||
/// Dimension 2 - default income account
|
||||
/// </summary>
|
||||
IncomeTypeUnspecified,
|
||||
/// <summary>
|
||||
/// Dimensione 2 - default cost account
|
||||
/// </summary>
|
||||
CostTypeUnspecified
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Swarmops.Basic.Enums;
|
||||
using Swarmops.Basic.Interfaces;
|
||||
|
||||
namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicFinancialAccount : IHasIdentity
|
||||
{
|
||||
public BasicFinancialAccount (int financialAccountId, string name, FinancialAccountType accountType,
|
||||
int organizationId, int parentFinancialAccountId, int ownerPersonId)
|
||||
{
|
||||
this.financialAccountId = financialAccountId;
|
||||
this.name = name;
|
||||
this.accountType = accountType;
|
||||
this.organizationId = organizationId;
|
||||
this.ownerPersonId = ownerPersonId;
|
||||
this.parentFinancialAccountId = parentFinancialAccountId;
|
||||
}
|
||||
|
||||
public BasicFinancialAccount (BasicFinancialAccount original) :
|
||||
this(original.Identity, original.name, original.accountType, original.organizationId, original.parentFinancialAccountId, original.ownerPersonId)
|
||||
{
|
||||
// Empty copy constructor
|
||||
}
|
||||
|
||||
|
||||
private int financialAccountId;
|
||||
private string name;
|
||||
private int organizationId;
|
||||
private FinancialAccountType accountType;
|
||||
private int ownerPersonId;
|
||||
private int parentFinancialAccountId;
|
||||
|
||||
public int FinancialAccountId
|
||||
{
|
||||
get { return this.financialAccountId; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return this.name; }
|
||||
}
|
||||
|
||||
public int OrganizationId
|
||||
{
|
||||
get { return this.organizationId; }
|
||||
}
|
||||
|
||||
public FinancialAccountType AccountType
|
||||
{
|
||||
get { return this.accountType; }
|
||||
}
|
||||
|
||||
public int OwnerPersonId
|
||||
{
|
||||
get { return this.ownerPersonId; }
|
||||
}
|
||||
|
||||
public int ParentFinancialAccountId
|
||||
{
|
||||
get { return this.parentFinancialAccountId; }
|
||||
}
|
||||
|
||||
#region IHasIdentity Members
|
||||
|
||||
public int Identity
|
||||
{
|
||||
get { return this.financialAccountId; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using Swarmops.Basic.Enums;
|
||||
using Swarmops.Basic.Interfaces;
|
||||
|
||||
namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialAccount : IHasIdentity
|
||||
{
|
||||
public BasicFinancialAccount (int financialAccountId, string name, FinancialAccountType accountType,
|
||||
int organizationId, int parentFinancialAccountId, int ownerPersonId,
|
||||
int dimension, bool open, int openedYear, int closedYear)
|
||||
{
|
||||
this.FinancialAccountId = financialAccountId;
|
||||
this.Name = name;
|
||||
this.AccountType = accountType;
|
||||
this.OrganizationId = organizationId;
|
||||
this.OwnerPersonId = ownerPersonId;
|
||||
this.ParentFinancialAccountId = parentFinancialAccountId;
|
||||
this.Dimension = dimension;
|
||||
this.Open = open;
|
||||
this.OpenedYear = openedYear;
|
||||
this.ClosedYear = closedYear;
|
||||
}
|
||||
|
||||
public BasicFinancialAccount (BasicFinancialAccount original) :
|
||||
this(original.Identity, original.Name, original.AccountType, original.OrganizationId, original.ParentFinancialAccountId, original.OwnerPersonId, original.Dimension, original.Open, original.OpenedYear, original.ClosedYear)
|
||||
{
|
||||
// Empty copy constructor
|
||||
}
|
||||
|
||||
|
||||
public int FinancialAccountId { get; private set; }
|
||||
public string Name { get; private set; }
|
||||
public int OrganizationId { get; private set; }
|
||||
public FinancialAccountType AccountType { get; private set; }
|
||||
public int OwnerPersonId { get; protected set; }
|
||||
public int ParentFinancialAccountId { get; private set; }
|
||||
public int Dimension { get; protected set; }
|
||||
public bool Open { get; protected set; }
|
||||
public int OpenedYear { get; protected set; }
|
||||
public int ClosedYear { get; protected set; }
|
||||
|
||||
#region IHasIdentity Members
|
||||
|
||||
public int Identity
|
||||
{
|
||||
get { return this.FinancialAccountId; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user