| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel; |
| | 4 | | using System.ComponentModel.DataAnnotations; |
| | 5 | | using System.Runtime.CompilerServices; |
| | 6 | | using System.Text; |
| | 7 | |
|
| | 8 | | namespace MUNity.Models.Resolution |
| | 9 | | { |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// A resolution is a type of document to work with inside a committee. The Resolution contains the three parts: |
| | 13 | | /// Header, Preamble, OperativeSection. |
| | 14 | | /// The Header is containing the general information of the document like name, submitter, topic etc. |
| | 15 | | /// The Preamble contains a list of paragraphs. |
| | 16 | | /// The operative section contains a list of paragraphs and amendments for the different paragraphs that are created |
| | 17 | | /// </summary> |
| | 18 | | public class Resolution |
| | 19 | | { |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// An id to let the system identify the resolution. Note that the header contains a property for name or full n |
| | 23 | | /// if you want to have another solution for your users to find the resolution easier. The Id is generated by th |
| | 24 | | /// Resolution itself when it is created. |
| | 25 | | /// </summary> |
| | 26 | | [Key] |
| 0 | 27 | | public string ResolutionId { get; set; } |
| | 28 | |
|
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// A Date that is first set when the resolution is created and can be used as a last change date. |
| | 32 | | /// </summary> |
| 0 | 33 | | public DateTime Date { get; set; } |
| | 34 | |
|
| | 35 | | /// <summary> |
| | 36 | | /// The header of the resolution containing the general information of the document. |
| | 37 | | /// </summary> |
| 0 | 38 | | public ResolutionHeader Header { get; set; } |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// The preamble of the resolution containing the different paragraphs. |
| | 42 | | /// </summary> |
| 0 | 43 | | public ResolutionPreamble Preamble { get; set; } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// The operative section of the resolution containing the paragraphs and amendments. |
| | 47 | | /// </summary> |
| 0 | 48 | | public OperativeSection OperativeSection { get; set; } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Creates a new instance of a resolution with a new Id. |
| | 52 | | /// </summary> |
| 0 | 53 | | public Resolution() |
| 0 | 54 | | { |
| 0 | 55 | | ResolutionId = Guid.NewGuid().ToString(); |
| 0 | 56 | | Preamble = new ResolutionPreamble(); |
| 0 | 57 | | OperativeSection = new OperativeSection(); |
| 0 | 58 | | Header = new ResolutionHeader(); |
| 0 | 59 | | Date = DateTime.Now; |
| 0 | 60 | | } |
| | 61 | | } |
| | 62 | | } |