-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommonTypes.go
More file actions
89 lines (80 loc) · 3.29 KB
/
commonTypes.go
File metadata and controls
89 lines (80 loc) · 3.29 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package mdclasses
//AttributeTypedValue - значение реквизитов
type AttributeTypedValue struct {
Type string `xml:"type,attr"`
Value string `xml:"value"`
}
//StandardAttribute - стандартные реквизиты
type StandardAttribute struct {
Name string `xml:"name"`
DataHistory string `xml:"dataHistory"`
FillValue AttributeTypedValue `xml:"fillValue"`
FullTextSearch string `xml:"fullTextSearch"`
MinValue AttributeTypedValue `xml:"minValue"`
MaxValue AttributeTypedValue `xml:"maxValue"`
FillFromFillingValue string `xml:"fillFromFillingValue"`
FillChecking string `xml:"fillChecking"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
}
//AttributeType - тип реквизита
type AttributeType struct {
Types string `xml:"types"`
NumberQualifiers struct {
Precision string `xml:"precision"`
} `xml:"numberQualifiers"`
StringQualifiers struct {
Length string `xml:"length"`
} `xml:"stringQualifiers"`
DateQualifiers struct {
DateFractions string `xml:"dateFractions"`
} `xml:"dateQualifiers"`
}
//Attribute - Реквизиты
type Attribute struct {
Uuid string `xml:"uuid,attr"`
Name string `xml:"name"`
Synonym ObjectKeyValueType `xml:"synonym"`
Comment string `xml:"comment"`
Type AttributeType `xml:"type"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
MinValue AttributeTypedValue `xml:"minValue"`
MaxValue AttributeTypedValue `xml:"maxValue"`
FillChecking string `xml:"fillChecking"`
QuickChoice string `xml:"quickChoice"`
CreateOnInput string `xml:"createOnInput"`
FillValue AttributeTypedValue `xml:"fillValue"`
Indexing string `xml:"indexing"`
FullTextSearch string `xml:"fullTextSearch"`
Use string `xml:"use"`
DataHistory string `xml:"dataHistory"`
Format ObjectKeyValueType `xml:"format"`
EditFormat ObjectKeyValueType `xml:"editFormat"`
Mask string `xml:"mask"`
MultiLine string `xml:"multiLine"`
}
//TabularSectionProducedTypes - описание типов табличной части
type TabularSectionProducedTypes struct {
ObjectType ObjectTypeRef `xml:"objectType"`
RowType ObjectTypeRef `xml:"rowType"`
}
//TabularSection - Табличные части
type TabularSection struct {
MDOBaseType
ProducedTypes TabularSectionProducedTypes `xml:"producedTypes"`
ToolTip ObjectKeyValueType `xml:"toolTip"`
StandardAttributes []StandardAttribute `xml:"standardAttributes"`
Attributes []Attribute `xml:"attributes"`
}
//MDOProducedTypes - описание типов объекта метаданных
type MDOProducedTypes struct {
ObjectType ObjectTypeRef `xml:"objectType"`
RefType ObjectTypeRef `xml:"refType"`
SelectionType ObjectTypeRef `xml:"selectionType"`
ListType ObjectTypeRef `xml:"listType"`
ManagerType ObjectTypeRef `xml:"managerType"`
}
type Help struct {
Pages struct {
Lang string `xml:"lang"`
} `xml:"pages"`
}