This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
gentempl_en.st
235 lines (190 loc) · 5.01 KB
/
gentempl_en.st
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{1,
{3,
{"Standard",1,0,"",""},
{10,
{"Control",1,0,"",""},
{0,
{"If",0,0,"If","If <?""Condition""> Then
<?>
EndIf;"}
},
{0,
{"IfElse",0,0,"If","If <?""Condition""> Then
<?>
Else
EndIf;"}
},
{0,
{"While",0,0,"While","While <?""Condition""> Do
<?>
EndDo;"}
},
{0,
{"For",0,0,"For","For <?""Counter""> To <?""Limit""> Do
<?>
EndDo;"}
},
{0,
{"For Each",0,0,"For[ Each]","For Each <?""Variable""> In <?""Collection""> Do
<?>
EndDo;"}
},
{0,
{"Procedure",0,0,"Proc[edure]","Procedure <?""Procedure Name"">()
<?>
EndProcedure
"}
},
{0,
{"Procedure (with header)",0,0,"Proc[edure]","// <Procedure description>
//
// Parameters
// <Parameter1> - <Type.Subtype> - <parameter description>
// <parameter description continued>
// <Parameter2> - <Type.Subtype> - <parameter description>
// <parameter description continued>
//
Procedure <?""Procedure Name"">()
<?>
EndProcedure // <?""Procedure Name"">()
"}
},
{0,
{"Function (with header)",0,0,"Func[tion]","// <Function description>
//
//
// Parameters
// <Parameter1> - <Type.Subtype> - <parameter description>
// <parameter description continued>
// <Parameter2> - <Type.Subtype> - <parameter description>
// <parameter description continued>
//
// Returned Value:
// <Type.Subtype> - <returned value description>
//
Function <?""Function name"">()
<?>
EndFunction // <?""Function name"">()
"}
},
{0,
{"Return",0,0,"","Return;<?>"}
},
{0,
{"Try",0,0,"Try","Try
<?>
Except
EndTry;"}
}
},
{7,
{"Applied",1,0,"",""},
{0,
{"Enumeration Value",0,0,"Enum[s]","Enums.<?"""", EnumValue>"}
},
{3,
{"Constant",1,0,"",""},
{0,
{"Get/Set",0,0,"Const[ants]","Constants.<?"""", Constant>.<?""Select Variant"", VariantChoice, ""Get"", ""Get"", ""Set"", ""Set"">()"}
},
{0,
{"Set",0,0,"","Constants.<?"""", Constant>.Set(<?>);"}
},
{0,
{"Get",0,0,"","Constants.<?"""", Constant>.Get()"}
}
},
{2,
{"Catalogs",1,0,"",""},
{0,
{"Element walkthrough",0,0,"","Select = Catalogs.<?"""", Catalog>.Select();
While Select.Next() Do
<?>
EndDo;"}
},
{0,
{"Elements hierarchical walk-through",0,0,"","Select = Catalogs.<?"""", Catalog>.SelectHierarchicaly();
While Select.Next() Do
<?>
EndDo;"}
}
},
{1,
{"Documents",1,0,"",""},
{0,
{"Document walk-through",0,0,"","Select = Documents.<?"""", Document>.Select();
While Select.Next() Do
<?>
EndDo;"}
}
},
{1,
{"Charts of accounts",1,0,"",""},
{0,
{"Find By Code",0,0,"","ChartsOfAccounts.<?"""", ChartOfAccounts>.FindByCode(<?>)"}
}
},
{1,
{"Reports",1,0,"",""},
{0,
{"Open report",0,0,"","Reports.<?"""", Report>.GetForm().Open();"}
}
},
{1,
{"Processings",1,0,"",""},
{0,
{"Open processing",0,0,"","Processings.<?"""", Processing>.GetForm().Open();"}
}
}
},
{9,
{"Other",1,0,"",""},
{0,
{"Message",0,0,"Mes[sage]","Message(<?>);"}
},
{0,
{"DoMessageBox",0,0,"DoMes[sageBox]","DoMessageBox(<?>);"}
},
{0,
{"Format",0,0,"Format","Format(<?>, ""<?, FormatString>"")"}
},
{0,
{"Format string",0,0,"","""<?, FormatString>"""}
},
{0,
{"Query",0,0,"","Query = New Query;
Query.Text = ""<?"""", QueryText>"";
Result = Query.Execute();
Selection = Result.Choose();
While Selection.Next() Do
EndDo;
"}
},
{0,
{"Parameter query",0,0,"","Query = New Query;
Query.Text = ""<?"""", QueryText>"";
Query.SetParameter(""<?>"", );
Result = Query.Execute();
Selection = Result.Choose();
While Selection.Next() Do
EndDo;
"}
},
{0,
{"Report builder",0,0,"","ReportBuilder = New ReportBuilder;
ReportBuilder.Text = ""<?""Query text"", QueryText>"";
ReportBuilder.FillSettings();
ReportBuilder.AppearanceTemplate = GetAppearanceTemplate(StandardAppearance.Classic);
ReportBuilder.Execute();
ReportBuilder.Put();
"}
},
{0,
{"Prompt",0,0,"DoQuer[yBox]","DoQueryBox(""<?""Prompt text"">"", <?""Dialog Prompt"", VariantChoice, ""YesNo"", ""QuestionDialogMode.YesNo"", ""YesNoCancel"", ""QuestionDialogMode.YesNoCancel"", ""OK"", ""QuestionDialogMode.OK"", ""OKCancel"", ""QuestionDialogMode.OKCancel"", ""RetryCancel"", ""QuestionDialogMode.RetryCancel"", ""AbortRetryIgnore"", ""QuestionDialogMode.AbortRetryIgnore"">)"}
},
{0,
{"Conditional Prompt",0,0,"DoQuer[yBox]","DoQueryBox(""<?""Prompt text"">"", <?""Dialog prompt"", VariantChoice, ""YesNo"", ""QuestionDialogMode.YesNo"", ""YesNoCancel"", ""QuestionDialogMode.YesNoCancel"", ""ОК"", ""QuestionDialogMode.OK"", ""OKCancel"", ""QuestionDialogMode.OKCancel"", ""RetryCancel"", ""QuestionDialogMode.RetryCancel"", ""AbortRetryIgnore"", ""QuestionDialogMode.AbortRetryIgnore"">) = <?""Код возврата диалога"", VariantChoice, ""Yes"", ""DialogReturnCode.Yes"", ""No"", ""DialogReturnCode.No"", ""OK"", ""DialogReturnCode.OK"", ""Cancel"", ""DialogReturnCode.Cancel"", ""Retry"", ""DialogReturnCode.Retry"", ""Abort"", ""DialogReturnCode.Abort"", ""Ignore"", ""DialogReturnCode.Ignore"", ""Timeout"", ""DialogReturnCode.Timeout"">"}
}
}
}
}