This commit is contained in:
19
Yavsc/Model/Billing/CommandLine.cs
Normal file
19
Yavsc/Model/Billing/CommandLine.cs
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
|
||||
public class CommandLine {
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public BaseProduct Article { get; set; }
|
||||
public int Count { get; set; }
|
||||
public decimal UnitaryCost { get; set; }
|
||||
}
|
||||
|
||||
}
|
51
Yavsc/Model/Billing/Commande.cs
Normal file
51
Yavsc/Model/Billing/Commande.cs
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
|
||||
public class Command {
|
||||
|
||||
/// <summary>
|
||||
/// The command identifier
|
||||
/// </summary>
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id {get; set; }
|
||||
|
||||
public string ClientId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The client
|
||||
/// </summary>
|
||||
[Required,ForeignKey("ClientId")]
|
||||
public ApplicationUser Client { get; set; }
|
||||
|
||||
[Required]
|
||||
public string PerformerId { get; set; }
|
||||
/// <summary>
|
||||
/// The performer identifier
|
||||
/// </summary>
|
||||
[ForeignKey("PerformerId")]
|
||||
public PerformerProfile PerformerProfile { get; set; }
|
||||
|
||||
public DateTime? ValidationDate {get; set;}
|
||||
|
||||
/// <summary>
|
||||
/// Command creation Date & time
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DateTime CreationDate {get; set;}
|
||||
|
||||
public decimal? Previsional { get; set; }
|
||||
public List<CommandLine> Bill { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Time span in seconds in which
|
||||
/// Validation will be considered as definitive
|
||||
///</summary>
|
||||
public int Lag { get; set; }
|
||||
}
|
||||
}
|
51
Yavsc/Model/Billing/Estimate.cs
Normal file
51
Yavsc/Model/Billing/Estimate.cs
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class Estimate
|
||||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
public long? CommandId { get; set; }
|
||||
/// <summary>
|
||||
/// A command is not required to create
|
||||
/// an estimate,
|
||||
/// it will result in a new estimate template
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[ForeignKey("CommandId")]
|
||||
public virtual Command Command { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int? Status { get; set; }
|
||||
public string Title { get; set; }
|
||||
public List<CommandLine> Bill { get; set; }
|
||||
/// <summary>
|
||||
/// List of attached graphic files
|
||||
/// to this estimate, as relative pathes to
|
||||
/// the command performer's root path.
|
||||
/// In db, they are separated by <c>:</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[NotMapped]
|
||||
public List<string> AttachedGraphics { get; set; }
|
||||
|
||||
public string AttachedGraphicsString { get { return string.Join(":", AttachedGraphics); }
|
||||
set { AttachedGraphics = value.Split(':').ToList(); } }
|
||||
/// <summary>
|
||||
/// List of attached files
|
||||
/// to this estimate, as relative pathes to
|
||||
/// the command performer's root path.
|
||||
/// In db, they are separated by <c>:</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[NotMapped]
|
||||
public List<string> AttachedFiles { get; set; }
|
||||
public string AttachedFilesString { get { return string.Join(":", AttachedFiles); }
|
||||
set { AttachedFiles = value.Split(':').ToList(); } }
|
||||
}
|
||||
}
|
10
Yavsc/Model/Billing/EstimateAgreement.cs
Normal file
10
Yavsc/Model/Billing/EstimateAgreement.cs
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class EstimateAgreement : Estimate
|
||||
{
|
||||
public DateTime ClientValidationDate { get; set; }
|
||||
}
|
||||
}
|
5
Yavsc/Model/Billing/Service/ChatBilling.cs
Normal file
5
Yavsc/Model/Billing/Service/ChatBilling.cs
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class ChatBilling {
|
||||
|
||||
}
|
14
Yavsc/Model/Billing/histoestim.cs
Normal file
14
Yavsc/Model/Billing/histoestim.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class histoestim
|
||||
{
|
||||
public long _id { get; set; }
|
||||
public string applicationname { get; set; }
|
||||
public DateTime datechange { get; set; }
|
||||
public long estid { get; set; }
|
||||
public int? status { get; set; }
|
||||
public string username { get; set; }
|
||||
}
|
||||
}
|
17
Yavsc/Model/Billing/satisfaction.cs
Normal file
17
Yavsc/Model/Billing/satisfaction.cs
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class satisfaction
|
||||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long _id { get; set; }
|
||||
public string comnt { get; set; }
|
||||
public int? rate { get; set; }
|
||||
|
||||
[ForeignKey("Skill.Id")]
|
||||
public long? userskillid { get; set; }
|
||||
}
|
||||
}
|
13
Yavsc/Model/Billing/writtings.cs
Normal file
13
Yavsc/Model/Billing/writtings.cs
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class writtings
|
||||
{
|
||||
public long _id { get; set; }
|
||||
public int? count { get; set; }
|
||||
public string description { get; set; }
|
||||
public long estimid { get; set; }
|
||||
public string productid { get; set; }
|
||||
public decimal? ucost { get; set; }
|
||||
}
|
||||
}
|
9
Yavsc/Model/Billing/wrtags.cs
Normal file
9
Yavsc/Model/Billing/wrtags.cs
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class wrtags
|
||||
{
|
||||
public long wrid { get; set; }
|
||||
public long tagid { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user