WIP Estimate
This commit is contained in:
parent
5604ae3a54
commit
9293ee4ec9
27 changed files with 1308 additions and 76 deletions
63
Yavsc/Model/Bank/BankIdentity.cs
Normal file
63
Yavsc/Model/Bank/BankIdentity.cs
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Model.Bank
|
||||
{
|
||||
public class BankIdentity
|
||||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the BI.
|
||||
/// </summary>
|
||||
/// <value>The BI.</value>
|
||||
[DisplayName("Code BIC")]
|
||||
[StringLength(15)]
|
||||
public string BIC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the IBA.
|
||||
/// </summary>
|
||||
/// <value>The IBA.</value>
|
||||
[DisplayName("Code IBAN")]
|
||||
[StringLength(33)]
|
||||
public string IBAN { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the bank code.
|
||||
/// </summary>
|
||||
/// <value>The bank code.</value>
|
||||
[DisplayName("Code Banque")]
|
||||
[StringLength(5)]
|
||||
public string BankCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the wicket code.
|
||||
/// </summary>
|
||||
/// <value>The wicket code.</value>
|
||||
[DisplayName("Code Guichet")]
|
||||
[StringLength(5)]
|
||||
public string WicketCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the account number.
|
||||
/// </summary>
|
||||
/// <value>The account number.</value>
|
||||
[DisplayName("Numéro de compte")]
|
||||
[StringLength(15)]
|
||||
public string AccountNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the banked key.
|
||||
/// </summary>
|
||||
/// <value>The banked key.</value>
|
||||
[DisplayName("Clé RIB")]
|
||||
public int BankedKey { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
using Yavsc.Models.Market;
|
||||
|
||||
namespace Yavsc.Models.Billing
|
||||
{
|
||||
|
||||
public class Command<P> where P:BaseProduct {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ namespace Yavsc.Models.Billing
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using Yavsc.Interfaces;
|
||||
using Yavsc.Interfaces.Workflow;
|
||||
using Yavsc.Models.Booking;
|
||||
public partial class Estimate : IEstimate
|
||||
{
|
||||
|
|
@ -22,7 +23,6 @@ namespace Yavsc.Models.Billing
|
|||
[ForeignKey("CommandId")]
|
||||
public BookQuery Query { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int? Status { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
||||
[InverseProperty("Estimate")]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using Yavsc.Models.Workflow;
|
|||
namespace Yavsc.Models.Billing
|
||||
{
|
||||
|
||||
public class NominativeServiceCommand : Command<Service> {
|
||||
public class NominativeServiceCommand : Query<Service> {
|
||||
|
||||
public string ClientId { get; set; }
|
||||
|
||||
|
|
|
|||
12
Yavsc/Model/Billing/Query.cs
Normal file
12
Yavsc/Model/Billing/Query.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using Yavsc.Interfaces.Workflow;
|
||||
using Yavsc.Models.Market;
|
||||
|
||||
namespace Yavsc.Models.Billing
|
||||
{
|
||||
|
||||
public class Query<P> where P : BaseProduct
|
||||
{
|
||||
QueryStatus Status { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Identity;
|
||||
using Yavsc.Model.Chat;
|
||||
using Yavsc.Model.Bank;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
|
|
@ -81,5 +82,8 @@ namespace Yavsc.Models
|
|||
public override string ToString() {
|
||||
return this.Id+" "+this.AccountBalance?.Credits.ToString()+this.Email+" "+this.UserName+" $"+this.AccountBalance?.Credits.ToString();
|
||||
}
|
||||
|
||||
public BankIdentity BankInfo { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue