-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Замена &ВремениИнициализации на &Спецификация
- Loading branch information
Showing
8 changed files
with
70 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
&Аннотация("Заготовка") | ||
&ВремениИнициализации | ||
&Спецификация("Инициализация") | ||
Процедура ПриСозданииОбъекта(Значение = "") | ||
|
||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Перем _Значение; | ||
|
||
Функция Значение() Экспорт | ||
Возврат _Значение; | ||
КонецФункции | ||
|
||
&Аннотация("Спецификация") | ||
Процедура ПриСозданииОбъекта(Значение) | ||
|
||
Если Значение = Неопределено Тогда | ||
_Значение = "Выполнение"; | ||
Иначе | ||
_Значение = Значение; | ||
КонецЕсли; | ||
|
||
Если СостоянияПриложения.Значения().Найти(_Значение) = Неопределено Тогда | ||
ТекстСообщения = СтрШаблон( | ||
"Неверное значение спецификации %1", | ||
_Значение | ||
); | ||
|
||
ВызватьИсключение ТекстСообщения; | ||
КонецЕсли; | ||
|
||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
Перем Значения; | ||
|
||
Функция Инициализация() Экспорт | ||
Возврат "Инициализация"; | ||
КонецФункции | ||
|
||
Функция Выполнение() Экспорт | ||
Возврат "Выполнение"; | ||
КонецФункции | ||
|
||
Функция Значения() Экспорт | ||
Возврат Значения; | ||
КонецФункции | ||
|
||
Значения = Новый Массив; | ||
|
||
Значения.Добавить(Инициализация()); | ||
Значения.Добавить(Выполнение()); | ||
|
||
Значения = Новый ФиксированныйМассив(Значения); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters