WIP Estimate
This commit is contained in:
parent
5604ae3a54
commit
9293ee4ec9
27 changed files with 1308 additions and 76 deletions
9
Yavsc/Interfaces/Workflow/IAccountBalance.cs
Normal file
9
Yavsc/Interfaces/Workflow/IAccountBalance.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IAccountBalance
|
||||
{
|
||||
long ContactCredits { get; set; }
|
||||
decimal Credits { get; set; }
|
||||
string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
7
Yavsc/Interfaces/Workflow/IBillingClause.cs
Normal file
7
Yavsc/Interfaces/Workflow/IBillingClause.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace Yavsc.Models.Billing {
|
||||
public interface IBillingClause {
|
||||
string Description {get; set;}
|
||||
IBillingImpacter Impacter { get; }
|
||||
}
|
||||
|
||||
}
|
||||
13
Yavsc/Interfaces/Workflow/ICircle.cs
Normal file
13
Yavsc/Interfaces/Workflow/ICircle.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface ICircle
|
||||
{
|
||||
long Id { get; set; }
|
||||
IList<ICircleMember> Members { get; set; }
|
||||
string Name { get; set; }
|
||||
IApplicationUser Owner { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
9
Yavsc/Interfaces/Workflow/IContact.cs
Normal file
9
Yavsc/Interfaces/Workflow/IContact.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IContact
|
||||
{
|
||||
IApplicationUser Owner { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
19
Yavsc/Interfaces/Workflow/IEstimate.cs
Normal file
19
Yavsc/Interfaces/Workflow/IEstimate.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace Yavsc.Interfaces
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Interfaces.Workflow;
|
||||
using Yavsc.Models.Billing;
|
||||
public interface IEstimate
|
||||
{
|
||||
List<string> AttachedFiles { get; set; }
|
||||
List<string> AttachedGraphics { get; }
|
||||
List<CommandLine> Bill { get; set; }
|
||||
string ClientId { get; set; }
|
||||
long? CommandId { get; set; }
|
||||
string CommandType { get; set; }
|
||||
string Description { get; set; }
|
||||
long Id { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
string Title { get; set; }
|
||||
}
|
||||
}
|
||||
14
Yavsc/Interfaces/Workflow/IEvent.cs
Normal file
14
Yavsc/Interfaces/Workflow/IEvent.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
|
||||
public interface IEvent {
|
||||
/// <summary>
|
||||
/// An acceptable topic for this event to be.
|
||||
/// Should return something like the class name
|
||||
/// of this object
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string Topic { get; set ; }
|
||||
string Sender { get; set ; }
|
||||
|
||||
string Message { get; set; }
|
||||
}
|
||||
28
Yavsc/Interfaces/Workflow/IPerformerSpecified.cs
Normal file
28
Yavsc/Interfaces/Workflow/IPerformerSpecified.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// INominative.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IPerformerSpecified {
|
||||
string PerformerName { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
20
Yavsc/Interfaces/Workflow/QueryStatus.cs
Normal file
20
Yavsc/Interfaces/Workflow/QueryStatus.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace Yavsc.Interfaces.Workflow
|
||||
{
|
||||
/// <summary>
|
||||
/// Status,
|
||||
/// should be associated to any
|
||||
/// client user query to a provider user or
|
||||
/// other external entity.
|
||||
/// </summary>
|
||||
public enum QueryStatus: int
|
||||
{
|
||||
Inserted,
|
||||
OwnerValidated,
|
||||
Visited,
|
||||
Rejected,
|
||||
Accepted,
|
||||
InProgress,
|
||||
Failed,
|
||||
Success
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue