Subversion Repository Public Repository

ChrisCompleteCodeTrunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
using System;
using System.Collections.Generic;
using M3Workflow.Data.Base;
using Newtonsoft.Json;

namespace M3Workflow.Data
{
    [JsonObject(Id = "InvoiceDataObject")]
    public class InvoiceDataObject : JsonDataObject
    {
        [JsonProperty(Order = 1, PropertyName = "id", Required = Required.AllowNull)]
        public Guid? Id { get; set; }

        [JsonProperty(Order = 2, PropertyName = "vendorId", Required = Required.Always)]
        public Guid VendorId { get; set; }

        [JsonProperty(Order = 3, PropertyName = "companyId", Required = Required.Always)]
        public Guid CompanyId { get; set; }

        [JsonProperty(Order = 4, PropertyName = "propertyId", Required = Required.AllowNull)]
        public Guid? PropertyId { get; set; }

        [JsonProperty(Order = 5, PropertyName = "invoiceNo", Required = Required.Always)]
        public String InvoiceNumber { get; set; }

        [JsonProperty(Order = 6, PropertyName = "invoiceDate", Required = Required.AllowNull)]
        public DateTime? InvoicetDate { get; set; }

        [JsonProperty(Order = 7, PropertyName = "dueDate", Required = Required.AllowNull)]
        public DateTime? DueDate { get; set; }

        [JsonProperty(Order = 8, PropertyName = "amount", Required = Required.Always)]
        public Decimal Amount { get; set; }

        [JsonProperty(Order = 9, PropertyName = "recurring", Required = Required.Always)]
        public Boolean Recurring { get; set; }

        [JsonProperty(Order = 10, PropertyName = "pONo", Required = Required.AllowNull)]
        public String PONumber { get; set; }

        [JsonProperty(Order = 11, PropertyName = "description", Required = Required.AllowNull)]
        public String Description { get; set; }

        [JsonProperty(Order = 12, PropertyName = "transmitDate", Required = Required.AllowNull)]
        public DateTime? TransmitDate { get; set; }

        [JsonProperty(Order = 13, PropertyName = "acctPeriod", Required = Required.AllowNull)]
        public DateTime? AccountPeriod { get; set; }

        [JsonProperty(Order = 14, PropertyName = "posted", Required = Required.Always)]
        public Boolean Posted { get; set; }

        [JsonProperty(Order = 15, PropertyName = "hasImages", Required = Required.Always)]
        public Boolean HasImages { get; set; }

        [JsonProperty(Order = 16, PropertyName = "invoiceDetail", Required = Required.Always)]
        public List<AccountPostDataObject> InvoiceDetail { get; set; }

        public InvoiceDataObject(
            Guid vendorId,
            Guid companyId,
            string invoiceNumber,
            decimal amount,
            bool recurring,
            bool posted,
            bool hasImages,
            List<AccountPostDataObject> invoiceDetail,
            Guid? id = null,
            Guid? propertyId = null,
            DateTime? invoiceDate = null,
            DateTime? dueDate = null,
            string pONumber = null,
            string description = null,
            DateTime? transmitDate = null,
            DateTime? accountPeriod = null
        ) : base()
        {
            this.Id = id;
            this.VendorId = vendorId;
            this.CompanyId = companyId;
            this.PropertyId = propertyId;
            this.InvoiceNumber = invoiceNumber;
            this.InvoicetDate = invoiceDate;
            this.DueDate = dueDate;
            this.Amount = amount;
            this.Recurring = recurring;
            this.PONumber = pONumber;
            this.Description = description;
            this.TransmitDate = transmitDate;
            this.AccountPeriod = accountPeriod;
            this.Posted = posted;
            this.HasImages = hasImages;
            this.InvoiceDetail = invoiceDetail;
        }

    }
}

Commits for ChrisCompleteCodeTrunk/M3Workflow/M3Workflow.Data/InvoiceDataObject.cs

Diff revisions: vs.
Revision Author Commited Message
1 BBDSCHRIS picture BBDSCHRIS Wed 22 Aug, 2018 20:08:03 +0000