forked from optimajet/WorkflowEngine.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocumentModel.cs
More file actions
68 lines (53 loc) · 1.85 KB
/
DocumentModel.cs
File metadata and controls
68 lines (53 loc) · 1.85 KB
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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WF.Sample.Business;
namespace WF.Sample.Models
{
public class DocumentModel
{
public Guid Id { get; set; }
public int? Number { get; set; }
[Required]
[StringLength(256)]
[DataType(DataType.Text)]
[Display(Name = "Name")]
public string Name { get; set; }
[DataType(DataType.Text)]
[Display(Name = "Comment")]
public string Comment { get; set; }
public Guid AuthorId { get; set; }
[DataType(DataType.Text)]
[Display(Name = "Author")]
public string AuthorName { get; set; }
[DataType(DataType.Text)]
[Display(Name = "Controller")]
public Guid? EmloyeeControlerId { get; set; }
[DataType(DataType.Text)]
[Display(Name = "Controller")]
public string EmloyeeControlerName { get; set; }
[Display(Name = "Sum")]
public decimal Sum { get; set; }
[Display(Name = "State")]
public string StateName { get; set; }
public DocumentCommandModel[] Commands { get; set; }
public Dictionary<string, string> AvailiableStates { get; set; }
public DocumentModel ()
{
Commands = new DocumentCommandModel[0];
AvailiableStates = new Dictionary<string, string>{};
HistoryModel = new DocumentHistoryModel();
}
public string StateNameToSet { get; set; }
public DocumentHistoryModel HistoryModel { get; set; }
}
public class DocumentCommandModel
{
public string key { get; set; }
public string value { get; set; }
public OptimaJet.Workflow.Core.Model.TransitionClassifier Classifier { get; set; }
}
}