Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Продолжение: Исправление добавления общих форм отчётов в тесты 532 #575

Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4">
<Catalog uuid="94fd5ed6-c330-4fe4-b32b-2f8dc18afd48">
<InternalInfo>
<xr:GeneratedType name="CatalogObject.дт_ЭлементыСхемРазмещения" category="Object">
<xr:TypeId>27a2f210-e431-45dd-8579-8f25eb0bdf6b</xr:TypeId>
<xr:ValueId>3e10da70-c725-4244-ab83-014575a73493</xr:ValueId>
</xr:GeneratedType>
<xr:GeneratedType name="CatalogRef.дт_ЭлементыСхемРазмещения" category="Ref">
<xr:TypeId>05c1a120-2bc9-46ee-8a58-37f4e65701b1</xr:TypeId>
<xr:ValueId>f9295a9d-d17e-4be9-9ec9-3fb9d5461ef0</xr:ValueId>
</xr:GeneratedType>
<xr:GeneratedType name="CatalogSelection.дт_ЭлементыСхемРазмещения" category="Selection">
<xr:TypeId>01185798-442a-4996-9a3f-d808da9c85e7</xr:TypeId>
<xr:ValueId>236def71-5777-43f6-974f-c5ccee8ea6c3</xr:ValueId>
</xr:GeneratedType>
<xr:GeneratedType name="CatalogList.дт_ЭлементыСхемРазмещения" category="List">
<xr:TypeId>c84e089c-6665-472d-bab8-b5fb0483ae60</xr:TypeId>
<xr:ValueId>2702822e-34da-4097-93b9-8c97214d4822</xr:ValueId>
</xr:GeneratedType>
<xr:GeneratedType name="CatalogManager.дт_ЭлементыСхемРазмещения" category="Manager">
<xr:TypeId>30988f8e-52c4-4141-9a56-4fcd921a9645</xr:TypeId>
<xr:ValueId>40e9b588-bb2e-40a7-95d4-09304f99e862</xr:ValueId>
</xr:GeneratedType>
</InternalInfo>
<Properties>
<Name>дт_ЭлементыСхемРазмещения</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дт элементы схем размещения</v8:content>
</v8:item>
</Synonym>
<Comment/>
<Hierarchical>false</Hierarchical>
<HierarchyType>HierarchyFoldersAndItems</HierarchyType>
<LimitLevelCount>false</LimitLevelCount>
<LevelCount>2</LevelCount>
<FoldersOnTop>true</FoldersOnTop>
<UseStandardCommands>true</UseStandardCommands>
<Owners/>
<SubordinationUse>ToItems</SubordinationUse>
<CodeLength>9</CodeLength>
<DescriptionLength>25</DescriptionLength>
<CodeType>String</CodeType>
<CodeAllowedLength>Variable</CodeAllowedLength>
<CodeSeries>WholeCatalog</CodeSeries>
<CheckUnique>true</CheckUnique>
<Autonumbering>true</Autonumbering>
<DefaultPresentation>AsDescription</DefaultPresentation>
<Characteristics/>
<PredefinedDataUpdate>Auto</PredefinedDataUpdate>
<EditType>InDialog</EditType>
<QuickChoice>false</QuickChoice>
<ChoiceMode>BothWays</ChoiceMode>
<InputByString>
<xr:Field>Catalog.дт_ЭлементыСхемРазмещения.StandardAttribute.Description</xr:Field>
<xr:Field>Catalog.дт_ЭлементыСхемРазмещения.StandardAttribute.Code</xr:Field>
</InputByString>
<SearchStringModeOnInputByString>Begin</SearchStringModeOnInputByString>
<FullTextSearchOnInputByString>DontUse</FullTextSearchOnInputByString>
<ChoiceDataGetModeOnInputByString>Directly</ChoiceDataGetModeOnInputByString>
<DefaultObjectForm/>
<DefaultFolderForm/>
<DefaultListForm/>
<DefaultChoiceForm/>
<DefaultFolderChoiceForm/>
<AuxiliaryObjectForm/>
<AuxiliaryFolderForm/>
<AuxiliaryListForm/>
<AuxiliaryChoiceForm/>
<AuxiliaryFolderChoiceForm/>
<IncludeHelpInContents>false</IncludeHelpInContents>
<BasedOn/>
<DataLockFields/>
<DataLockControlMode>Managed</DataLockControlMode>
<FullTextSearch>Use</FullTextSearch>
<ObjectPresentation/>
<ExtendedObjectPresentation/>
<ListPresentation/>
<ExtendedListPresentation/>
<Explanation/>
<CreateOnInput>Use</CreateOnInput>
<ChoiceHistoryOnInput>Auto</ChoiceHistoryOnInput>
</Properties>
<ChildObjects/>
</Catalog>
</MetaDataObject>
2 changes: 2 additions & 0 deletions lib/CF/83xddNoSync/Configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
<Catalog>Справочник3</Catalog>
<Catalog>ПростойСправочник</Catalog>
<Catalog>ПростойСправочник2</Catalog>
<Catalog>дт_ЭлементыСхемРазмещения</Catalog>
<Document>Документ1</Document>
<Document>Документ2</Document>
<Document>ДокументСДвижениями</Document>
Expand All @@ -162,6 +163,7 @@
<Report>ОтчетСОбщейФормойПоУмолчанию</Report>
<Report>ОтчетССобственнымиФормами</Report>
<Report>ОтчетБезУказанияФорм</Report>
<Report>дт_ЭлементыСхемРазмещения</Report>
<DataProcessor>Тест_Обработка</DataProcessor>
<DataProcessor>ТестОбработка_Форма_ИсключениеПриОткрытии</DataProcessor>
<DataProcessor>ТестПадающий_Обработка</DataProcessor>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4">
<Report uuid="b44bf43a-ce85-4c3e-a0be-8bdb6f6ec6f2">
<InternalInfo>
<xr:GeneratedType name="ReportObject.дт_ЭлементыСхемРазмещения" category="Object">
<xr:TypeId>41c1e646-b2cb-4abf-a689-613f866bc414</xr:TypeId>
<xr:ValueId>37f4d6da-ec93-4fa0-8a90-5bb5198c52bf</xr:ValueId>
</xr:GeneratedType>
<xr:GeneratedType name="ReportManager.дт_ЭлементыСхемРазмещения" category="Manager">
<xr:TypeId>3c7043b7-ef02-4886-bcd6-fb9f66912f45</xr:TypeId>
<xr:ValueId>359e53cb-8fda-4572-b7b4-7c51d965d7fe</xr:ValueId>
</xr:GeneratedType>
</InternalInfo>
<Properties>
<Name>дт_ЭлементыСхемРазмещения</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дт элементы схем размещения</v8:content>
</v8:item>
</Synonym>
<Comment/>
<UseStandardCommands>true</UseStandardCommands>
<DefaultForm/>
<AuxiliaryForm/>
<MainDataCompositionSchema/>
<DefaultSettingsForm/>
<AuxiliarySettingsForm/>
<DefaultVariantForm/>
<VariantsStorage/>
<SettingsStorage/>
<IncludeHelpInContents>false</IncludeHelpInContents>
<ExtendedPresentation/>
<Explanation/>
</Properties>
<ChildObjects/>
</Report>
</MetaDataObject>
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@
КонецЦикла;

//добавить общие формы к отчётам, если они не указаны
Если Метаданные.Отчеты.Найти(МетаОбъект.Имя) <> Неопределено Тогда
ДлинаСловаОтчет = 6;
Если Метаданные.Отчеты.Найти(МетаОбъект.Имя) <> Неопределено И Лев(Мета_ПолноеИмя, ДлинаСловаОтчет) = "Отчет." Тогда
ФормыДобавлены = ДобавитьОбщиеФормыДляОтчетов(СписокИменМетаФорм, МетаОбъект);
Если НЕ Результат Тогда
Результат = ФормыДобавлены;
Expand Down