1
0
mirror of https://github.com/IRPTeam/IRP.git synced 2025-10-30 23:17:46 +02:00

Add document Visitor Counter #2279 (#2280)

#2279 #IRP-16
This commit is contained in:
Dmitry Sherstobitov
2023-11-27 17:07:52 +02:00
committed by GitHub
parent 1f82b4eb48
commit f2ab8ee9df
53 changed files with 5398 additions and 24381 deletions

View File

@@ -1,15 +1,15 @@
{
"version": 1,
"settings": {
"module-structure-method-in-regions": {
"enabled": false
},
"commit-transaction": {
"enabled": true
},
"module-accessibility-at-client": {
"enabled": false
},
"module-structure-method-in-regions": {
"enabled": false
},
"export-procedure-missing-comment": {
"enabled": false
},
@@ -31,6 +31,9 @@
"invocation-form-event-handler": {
"enabled": false
},
"db-object-ref-non-ref-type": {
"enabled": false
},
"doc-comment-collection-item-type": {
"enabled": false
},
@@ -40,10 +43,10 @@
"module-consecutive-blank-lines": {
"enabled": true
},
"common-module-name-full-access": {
"common-module-name-cached": {
"enabled": false
},
"common-module-name-cached": {
"common-module-name-full-access": {
"enabled": false
},
"unknown-form-parameter-access": {
@@ -88,11 +91,11 @@
"data-composition-conditional-appearance-use": {
"enabled": false
},
"common-module-name-server-call": {
"module-self-reference": {
"enabled": false
},
"module-self-reference": {
"common-module-name-server-call": {
"enabled": false
}
}
}
}

View File

@@ -102,7 +102,7 @@ EndProcedure
// Returns:
// Structure - Get access key:
// * Company - CatalogRef.Companies -
// * Store - CatalogRef.Stores -
// * Branch - CatalogRef.BusinessUnits -
Function GetAccessKey() Export
AccessKeyStructure = New Structure;
AccessKeyStructure.Insert("Company", Catalogs.Companies.EmptyRef());

View File

@@ -23,6 +23,7 @@
<levelCount>2</levelCount>
<foldersOnTop>true</foldersOnTop>
<codeLength>12</codeLength>
<descriptionLength>150</descriptionLength>
<codeAllowedLength>Variable</codeAllowedLength>
<checkUnique>true</checkUnique>
<autonumbering>true</autonumbering>
@@ -569,6 +570,7 @@
</items>
<items id="302d65dc-1ddb-4dc6-8bf1-e6f6c9edb40b">
<name>Document_PlannedReceiptReservation</name>
<description>Document Planned receipt reservation</description>
<code xsi:type="core:NumberValue">
<value>81</value>
</code>
@@ -610,317 +612,354 @@
</items>
<items id="4aca8b4d-4125-45cb-95b0-631893eca1f9">
<name>Catalog_AccessGroups</name>
<description>Catalog Access groups</description>
<code xsi:type="core:NumberValue">
<value>87</value>
</code>
</items>
<items id="65f462de-c715-41d2-9613-71f7e0dbd1b1">
<name>Catalog_AccessProfiles</name>
<description>Catalog Access profiles</description>
<code xsi:type="core:NumberValue">
<value>88</value>
</code>
</items>
<items id="818c9274-5203-4f97-bb42-9298e0e20b95">
<name>Catalog_AccountingOperations</name>
<description>Catalog Accounting operations</description>
<code xsi:type="core:NumberValue">
<value>89</value>
</code>
</items>
<items id="a03821f6-8cf7-4563-8fb3-55be0c623738">
<name>Catalog_CancelReturnReasons</name>
<description>Catalog Cancel return reasons</description>
<code xsi:type="core:NumberValue">
<value>90</value>
</code>
</items>
<items id="c3e6edbe-4cbc-4832-9aed-db41440785f5">
<name>Catalog_EquipmentDrivers</name>
<description>Catalog Equipment drivers</description>
<code xsi:type="core:NumberValue">
<value>91</value>
</code>
</items>
<items id="630a31db-0d69-4d46-a4b2-489a24840e6b">
<name>Catalog_ExternalDataProc</name>
<description>Catalog External data proc</description>
<code xsi:type="core:NumberValue">
<value>92</value>
</code>
</items>
<items id="950b8b37-ded6-4ec7-87c2-6a616efc8a86">
<name>Catalog_FileStoragesInfo</name>
<description>Catalog File storages info</description>
<code xsi:type="core:NumberValue">
<value>93</value>
</code>
</items>
<items id="bfb9f8aa-0217-42b5-992b-23887ad3a229">
<name>Catalog_FileStorageVolumes</name>
<description>Catalog File storage volumes</description>
<code xsi:type="core:NumberValue">
<value>94</value>
</code>
</items>
<items id="29d51ef9-7744-42cd-879e-6a59cb1f2be7">
<name>Catalog_IntegrationSettings</name>
<description>Catalog Integration settings</description>
<code xsi:type="core:NumberValue">
<value>95</value>
</code>
</items>
<items id="1dc30367-f16a-47be-8151-e67a024c3a64">
<name>Catalog_InterfaceGroups</name>
<description>Catalog Interface groups</description>
<code xsi:type="core:NumberValue">
<value>96</value>
</code>
</items>
<items id="0cfb5f4c-eccc-4bdf-8a69-57a34cd3b1e6">
<name>Catalog_LegalNameContracts</name>
<description>Catalog Legal name contracts</description>
<code xsi:type="core:NumberValue">
<value>97</value>
</code>
</items>
<items id="403d4f74-02a8-4fb1-9f69-81eb09ecbece">
<name>Catalog_ObjectStatuses</name>
<description>Catalog Object statuses</description>
<code xsi:type="core:NumberValue">
<value>98</value>
</code>
</items>
<items id="e1b4fee6-9a90-4fba-9efd-e5442399dc3d">
<name>Catalog_PaymentSchedules</name>
<description>Catalog Payment schedules</description>
<code xsi:type="core:NumberValue">
<value>99</value>
</code>
</items>
<items id="7e72dc23-c003-48f8-a087-da4986738af7">
<name>Catalog_PlanningPeriods</name>
<description>Catalog Planning periods</description>
<code xsi:type="core:NumberValue">
<value>100</value>
</code>
</items>
<items id="d8b3ea99-a088-48f8-8db8-3fccd07fd310">
<name>Catalog_TaxAnalytics</name>
<description>Catalog Tax analytics</description>
<code xsi:type="core:NumberValue">
<value>101</value>
</code>
</items>
<items id="11f9a892-0c8d-47c7-afb8-f9e2097fc787">
<name>Catalog_UnitsOfMeasurement</name>
<description>Catalog Units of measurement</description>
<code xsi:type="core:NumberValue">
<value>102</value>
</code>
</items>
<items id="b962b9c7-5165-4427-8295-4235ee48dde8">
<name>Catalog_LedgerTypeVariants</name>
<description>Catalog Ledger type variants</description>
<code xsi:type="core:NumberValue">
<value>103</value>
</code>
</items>
<items id="61224a38-366d-4269-935a-38df58ea3dcf">
<name>Document_ChequeBondTransaction</name>
<description>Document Cheque bond transaction</description>
<code xsi:type="core:NumberValue">
<value>104</value>
</code>
</items>
<items id="81a39403-fce4-4432-b4e3-fc59ed05165a">
<name>Document_ConsolidatedRetailSales</name>
<description>Document Consolidated retail sales</description>
<code xsi:type="core:NumberValue">
<value>105</value>
</code>
</items>
<items id="ab95d52d-6a3f-4049-b178-3e5b3c6f3100">
<name>Document_WorkOrder</name>
<description>Document Work order</description>
<code xsi:type="core:NumberValue">
<value>106</value>
</code>
</items>
<items id="b06e06bb-d4fe-4dab-942b-1d830d92d03f">
<name>Document_WorkOrderClosing</name>
<description>Document Work order closing</description>
<code xsi:type="core:NumberValue">
<value>107</value>
</code>
</items>
<items id="f8ba27d3-5892-4805-ac31-faa93fa57e4d">
<name>Catalog_BillOfMaterials</name>
<description>Catalog Bill of materials</description>
<code xsi:type="core:NumberValue">
<value>108</value>
</code>
</items>
<items id="69f7e034-c3a9-4bba-8075-9da8eda7d4c1">
<name>Document_WorkSheet</name>
<description>Document Work sheet</description>
<code xsi:type="core:NumberValue">
<value>109</value>
</code>
</items>
<items id="26962bc2-6f3b-43df-af7c-402628465b97">
<name>Catalog_FillingTemplates</name>
<description>Catalog Filling templates</description>
<code xsi:type="core:NumberValue">
<value>110</value>
</code>
</items>
<items id="3e2da181-9600-46cf-bbee-436a9bfc8345">
<name>Document_ProductionPlanning</name>
<description>Document Production planning</description>
<code xsi:type="core:NumberValue">
<value>111</value>
</code>
</items>
<items id="1fc65f57-0227-4db6-b408-42d849ac6427">
<name>Document_ProductionPlanningCorrection</name>
<description>Document Production planning correction</description>
<code xsi:type="core:NumberValue">
<value>112</value>
</code>
</items>
<items id="a3d38f33-43a9-44f7-bfe1-2a1587208daa">
<name>Document_ProductionPlanningClosing</name>
<description>Document Production planning closing</description>
<code xsi:type="core:NumberValue">
<value>113</value>
</code>
</items>
<items id="ea4dddf8-4043-415d-9d09-59ae0560b377">
<name>Document_Production</name>
<description>Document Production</description>
<code xsi:type="core:NumberValue">
<value>114</value>
</code>
</items>
<items id="07fb818d-dcb9-4c9b-8f13-ecebd1613e0d">
<name>Document_SalesReportFromTradeAgent</name>
<description>Document Sales report from trade agent</description>
<code xsi:type="core:NumberValue">
<value>115</value>
</code>
</items>
<items id="0c85eb00-da37-4315-af99-eda328e45b65">
<name>Document_SalesReportToConsignor</name>
<description>Document Sales report to consignor</description>
<code xsi:type="core:NumberValue">
<value>116</value>
</code>
</items>
<items id="db94bd26-6e76-456d-ac94-596e062dcc79">
<name>Catalog_SourceOfOrigins</name>
<description></description>
<description>Catalog Source of origins</description>
<code xsi:type="core:NumberValue">
<value>117</value>
</code>
</items>
<items id="b457b8eb-cc82-4a03-a143-a4d5f47cb911">
<name>Document_EmployeeCashAdvance</name>
<description></description>
<description>Document Employee cash advance</description>
<code xsi:type="core:NumberValue">
<value>118</value>
</code>
</items>
<items id="abe7fd0a-27f3-4cb2-9b6d-e4d5eeb1072c">
<name>Document_ProductionCostsAllocation</name>
<description></description>
<description>Document Production costs allocation</description>
<code xsi:type="core:NumberValue">
<value>119</value>
</code>
</items>
<items id="6bb99093-8340-46b5-871d-675a1b579919">
<name>Document_Payroll</name>
<description></description>
<description>Document Payroll</description>
<code xsi:type="core:NumberValue">
<value>120</value>
</code>
</items>
<items id="99d19723-f46b-4b6a-89b8-99ede58b1afb">
<name>Catalog_AccrualAndDeductionTypes</name>
<description></description>
<description>Catalog Accrual and deduction types</description>
<code xsi:type="core:NumberValue">
<value>121</value>
</code>
</items>
<items id="141aa39d-1a81-4f0d-b299-70ceaf78baa5">
<name>Catalog_EmployeePositions</name>
<description></description>
<description>Catalog Employee positions</description>
<code xsi:type="core:NumberValue">
<value>122</value>
</code>
</items>
<items id="c21a0ef0-f003-4e10-9060-1f5378b59705">
<name>Document_TimeSheet</name>
<description></description>
<description>Document Time sheet</description>
<code xsi:type="core:NumberValue">
<value>123</value>
</code>
</items>
<items id="fbf136ef-7dd0-4b0b-a22b-43a1e65ab1fc">
<name>Catalog_Addresses</name>
<description></description>
<description>Catalog Addresses</description>
<code xsi:type="core:NumberValue">
<value>124</value>
</code>
</items>
<items id="5595d81c-1d8c-432c-8415-3066f667cef7">
<name>Catalog_Vehicles</name>
<description></description>
<description>Catalog Vehicles</description>
<code xsi:type="core:NumberValue">
<value>125</value>
</code>
</items>
<items id="c7a1815a-c664-4cc0-8444-9788f9a71532">
<name>Catalog_VehicleTypes</name>
<description></description>
<description>Catalog Vehicle types</description>
<code xsi:type="core:NumberValue">
<value>126</value>
</code>
</items>
<items id="cdbc333c-25ee-4718-9943-6bd7a776d8ae">
<name>Document_RetailShipmentConfirmation</name>
<description></description>
<description>Document Retail shipment confirmation</description>
<code xsi:type="core:NumberValue">
<value>127</value>
</code>
</items>
<items id="8e8b35ea-dff9-4566-a514-8b5d6b2e3f38">
<name>Document_RetailGoodsReceipt</name>
<description></description>
<description>Document Retail goods receipt</description>
<code xsi:type="core:NumberValue">
<value>128</value>
</code>
</items>
<items id="88fdba44-4667-49a8-a556-05ab15cfcf0c">
<name>Catalog_FixedAssets</name>
<description></description>
<description>Catalog Fixed assets</description>
<code xsi:type="core:NumberValue">
<value>129</value>
</code>
</items>
<items id="efa3559d-a93c-44e5-be51-2b3fbcf437ba">
<name>Catalog_DepreciationSchedules</name>
<description></description>
<description>Catalog Depreciation schedules</description>
<code xsi:type="core:NumberValue">
<value>130</value>
</code>
</items>
<items id="96d8f3a3-9974-4b62-b6ca-885ef5b5346c">
<name>Catalog_FixedAssetsLedgerTypes</name>
<description></description>
<description>Catalog Fixed assets ledger types</description>
<code xsi:type="core:NumberValue">
<value>131</value>
</code>
</items>
<items id="b735cabc-8a22-4fe6-9187-75f49af277a4">
<name>Document_CommissioningOfFixedAsset</name>
<description></description>
<description>Document Commissioning of fixed asset</description>
<code xsi:type="core:NumberValue">
<value>132</value>
</code>
</items>
<items id="aec62e32-2676-4925-9943-3c69b00ddb4a">
<name>Document_DecommissioningOfFixedAsset</name>
<description></description>
<description>Document Decommissioning of fixed asset</description>
<code xsi:type="core:NumberValue">
<value>133</value>
</code>
</items>
<items id="346a438c-1755-49fc-a301-d90c73458426">
<name>Document_FixedAssetTransfer</name>
<description></description>
<description>Document Fixed asset transfer</description>
<code xsi:type="core:NumberValue">
<value>134</value>
</code>
</items>
<items id="a3f8e553-777f-4ade-ad31-82f407bbf9db">
<name>Document_ModernizationOfFixedAsset</name>
<description></description>
<description>Document Modernization of fixed asset</description>
<code xsi:type="core:NumberValue">
<value>135</value>
</code>
</items>
<items id="eb8d83c7-d1dc-4b51-b4f9-5a155c6f9755">
<name>Document_VisitorCounter</name>
<description>Document Visitor counter</description>
<code xsi:type="core:NumberValue">
<value>136</value>
</code>
</items>
</predefined>
<editType>InDialog</editType>
<choiceMode>BothWays</choiceMode>

View File

@@ -17,6 +17,7 @@ Procedure OnCreateAtServer(Cancel, StandardProcessing)
TypeList = FillTypes();
For Each Row In TypeList Do
//@skip-check typed-value-adding-to-untyped-collection
Items.ResultType.ChoiceList.Add(Row.Value, Row.Presentation, , Row.Picture);
EndDo;
EndProcedure

View File

@@ -60,6 +60,10 @@ Procedure AddAttributesCreateFormControl()
AddAttributesAndPropertiesServer.CreateFormControls(ThisObject);
EndProcedure
// Add attribute button click.
//
// Parameters:
// Item - FormField - Item
&AtClient
Procedure AddAttributeButtonClick(Item) Export
AddAttributesAndPropertiesClient.AddAttributeButtonClick(ThisObject, Item);

View File

@@ -288,6 +288,10 @@
<metadata>Document.ModernizationOfFixedAsset</metadata>
<use>Use</use>
</content>
<content>
<metadata>Document.VisitorCounter</metadata>
<use>Use</use>
</content>
<autoUse>DontUse</autoUse>
<dataSeparation>DontUse</dataSeparation>
<usersSeparation>DontUse</usersSeparation>

View File

@@ -297,6 +297,10 @@
<metadata>Document.FixedAssetTransfer</metadata>
<use>Use</use>
</content>
<content>
<metadata>Document.VisitorCounter</metadata>
<use>Use</use>
</content>
<autoUse>DontUse</autoUse>
<dataSeparation>DontUse</dataSeparation>
<usersSeparation>DontUse</usersSeparation>

View File

@@ -325,6 +325,10 @@
<metadata>Document.ModernizationOfFixedAsset</metadata>
<use>Use</use>
</content>
<content>
<metadata>Document.VisitorCounter</metadata>
<use>Use</use>
</content>
<autoUse>DontUse</autoUse>
<dataSeparation>DontUse</dataSeparation>
<usersSeparation>DontUse</usersSeparation>

View File

@@ -543,6 +543,10 @@
<metadata>ExchangePlan.FullExchange</metadata>
<use>Use</use>
</content>
<content>
<metadata>Document.VisitorCounter</metadata>
<use>Use</use>
</content>
<autoUse>DontUse</autoUse>
<dataSeparation>DontUse</dataSeparation>
<usersSeparation>DontUse</usersSeparation>

View File

@@ -199,10 +199,6 @@
<value>true</value>
<role>Role.FullAccess</role>
</for>
<for>
<value>true</value>
<role>Role.FullAccessInArea</role>
</for>
</userVisible>
<extendedTooltip>
<name>FormShowCodeExtendedTooltip</name>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:CommonModule xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="f0a7d639-c872-46ea-b7fa-6db73b5ea0b6">
<name>DocVisitorCounterClient</name>
<synonym>
<key>en</key>
<value>Doc visitor counter client</value>
</synonym>
<clientManagedApplication>true</clientManagedApplication>
<clientOrdinaryApplication>true</clientOrdinaryApplication>
</mdclass:CommonModule>

View File

@@ -0,0 +1,53 @@
#Region FORM
Procedure OnOpen(Object, Form, Cancel) Export
Return;
EndProcedure
#EndRegion
#Region _DATE
Procedure DateOnChange(Object, Form, Item) Export
Return;
EndProcedure
#EndRegion
#Region COMPANY
Procedure CompanyOnChange(Object, Form, Item) Export
Return;
EndProcedure
Procedure CompanyStartChoice(Object, Form, Item, ChoiceData, StandardProcessing) Export
OpenSettings = DocumentsClient.GetOpenSettingsStructure();
OpenSettings.ArrayOfFilters = New Array();
OpenSettings.ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("DeletionMark", True,
DataCompositionComparisonType.NotEqual));
OpenSettings.ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("OurCompany", True,
DataCompositionComparisonType.Equal));
OpenSettings.FillingData = New Structure("OurCompany", True);
DocumentsClient.CompanyStartChoice(Object, Form, Item, ChoiceData, StandardProcessing, OpenSettings);
EndProcedure
Procedure CompanyEditTextChange(Object, Form, Item, Text, StandardProcessing) Export
ArrayOfFilters = New Array();
ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("DeletionMark", True, ComparisonType.NotEqual));
ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("OurCompany", True, ComparisonType.Equal));
DocumentsClient.CompanyEditTextChange(Object, Form, Item, Text, StandardProcessing, ArrayOfFilters);
EndProcedure
#EndRegion
#Region STORE
Procedure StoreOnChange(Object, Form, Item) Export
Return;
EndProcedure
#EndRegion

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:CommonModule xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="146f6c5b-11d8-4ed9-8169-2a02f46817e1">
<name>DocVisitorCounterServer</name>
<synonym>
<key>en</key>
<value>Doc visitor counter server</value>
</synonym>
<server>true</server>
<serverCall>true</serverCall>
</mdclass:CommonModule>

View File

@@ -0,0 +1,54 @@
#Region FORM
Procedure OnCreateAtServer(Object, Form, Cancel, StandardProcessing) Export
DocumentsServer.OnCreateAtServer(Object, Form, Cancel, StandardProcessing);
If Form.Parameters.Key.IsEmpty() Then
SetGroupItemsList(Object, Form);
DocumentsClientServer.ChangeTitleGroupTitle(Object, Form);
EndIf;
EndProcedure
Procedure AfterWriteAtServer(Object, Form, CurrentObject, WriteParameters) Export
DocumentsClientServer.ChangeTitleGroupTitle(CurrentObject, Form);
EndProcedure
Procedure OnReadAtServer(Object, Form, CurrentObject) Export
If Not Form.GroupItems.Count() Then
SetGroupItemsList(Object, Form);
EndIf;
DocumentsClientServer.ChangeTitleGroupTitle(CurrentObject, Form);
LockDataModificationPrivileged.LockFormIfObjectIsLocked(Form, CurrentObject);
EndProcedure
#EndRegion
#Region GroupTitle
Procedure SetGroupItemsList(Object, Form)
AttributesArray = New Array();
AttributesArray.Add("Company");
AttributesArray.Add("Store");
DocumentsServer.DeleteUnavailableTitleItemNames(AttributesArray);
For Each Attr In AttributesArray Do
Form.GroupItems.Add(Attr, ?(ValueIsFilled(Form.Items[Attr].Title), Form.Items[Attr].Title,
Object.Ref.Metadata().Attributes[Attr].Synonym + ":" + Chars.NBSp));
EndDo;
EndProcedure
#EndRegion
#Region ListFormEvents
Procedure OnCreateAtServerListForm(Form, Cancel, StandardProcessing) Export
DocumentsServer.OnCreateAtServerListForm(Form, Cancel, StandardProcessing);
EndProcedure
#EndRegion
#Region ChoiceFormEvents
Procedure OnCreateAtServerChoiceForm(Form, Cancel, StandardProcessing) Export
DocumentsServer.OnCreateAtServerChoiceForm(Form, Cancel, StandardProcessing);
EndProcedure
#EndRegion

View File

@@ -278,12 +278,12 @@
<roles>Role.Document_TimeSheet</roles>
<roles>Role.Document_Unbundling</roles>
<roles>Role.Document_VendorsAdvancesClosing</roles>
<roles>Role.Document_VisitorCounter</roles>
<roles>Role.Document_WorkOrder</roles>
<roles>Role.Document_WorkOrderClosing</roles>
<roles>Role.Document_WorkSheet</roles>
<roles>Role.FilterForUserSettings</roles>
<roles>Role.FullAccess</roles>
<roles>Role.FullAccessInArea</roles>
<roles>Role.FullAccessOnlyRead</roles>
<roles>Role.RunMobileClient</roles>
<roles>Role.RunThickClient</roles>
@@ -598,6 +598,8 @@
<commonModules>CommonModule.ViewServer_V2</commonModules>
<commonModules>CommonModule.WorkstationClient</commonModules>
<commonModules>CommonModule.WorkstationServer</commonModules>
<commonModules>CommonModule.DocVisitorCounterClient</commonModules>
<commonModules>CommonModule.DocVisitorCounterServer</commonModules>
<commonAttributes>CommonAttribute.Author</commonAttributes>
<commonAttributes>CommonAttribute.Branch</commonAttributes>
<commonAttributes>CommonAttribute.Description</commonAttributes>
@@ -943,11 +945,15 @@
<documents>Document.CashTransferOrder</documents>
<documents>Document.ChequeBondTransaction</documents>
<documents>Document.ChequeBondTransactionItem</documents>
<documents>Document.CommissioningOfFixedAsset</documents>
<documents>Document.ConsolidatedRetailSales</documents>
<documents>Document.CreditNote</documents>
<documents>Document.CustomersAdvancesClosing</documents>
<documents>Document.DebitNote</documents>
<documents>Document.DecommissioningOfFixedAsset</documents>
<documents>Document.DepreciationCalculation</documents>
<documents>Document.EmployeeCashAdvance</documents>
<documents>Document.FixedAssetTransfer</documents>
<documents>Document.ForeignCurrencyRevaluation</documents>
<documents>Document.GoodsReceipt</documents>
<documents>Document.IncomingPaymentOrder</documents>
@@ -958,6 +964,7 @@
<documents>Document.JournalEntry</documents>
<documents>Document.Labeling</documents>
<documents>Document.ManualRegisterEntry</documents>
<documents>Document.ModernizationOfFixedAsset</documents>
<documents>Document.MoneyTransfer</documents>
<documents>Document.OpeningEntry</documents>
<documents>Document.OutgoingPaymentOrder</documents>
@@ -994,14 +1001,10 @@
<documents>Document.TimeSheet</documents>
<documents>Document.Unbundling</documents>
<documents>Document.VendorsAdvancesClosing</documents>
<documents>Document.VisitorCounter</documents>
<documents>Document.WorkOrder</documents>
<documents>Document.WorkOrderClosing</documents>
<documents>Document.WorkSheet</documents>
<documents>Document.CommissioningOfFixedAsset</documents>
<documents>Document.DecommissioningOfFixedAsset</documents>
<documents>Document.DepreciationCalculation</documents>
<documents>Document.FixedAssetTransfer</documents>
<documents>Document.ModernizationOfFixedAsset</documents>
<documentJournals>DocumentJournal.DocumentsForIncomingPayment</documentJournals>
<documentJournals>DocumentJournal.DocumentsForOutgoingPayment</documentJournals>
<enums>Enum.AccountingAnalyticTypes</enums>

View File

@@ -177,9 +177,6 @@
<value>true</value>
<role>Role.FullAccess</role>
</for>
<for>
<role>Role.FullAccessInArea</role>
</for>
<for>
<role>Role.FullAccessOnlyRead</role>
</for>

View File

@@ -140,5 +140,16 @@
<types>DocumentRef.DecommissioningOfFixedAsset</types>
<types>DocumentRef.FixedAssetTransfer</types>
<types>DocumentRef.ModernizationOfFixedAsset</types>
<types>DocumentRef.VisitorCounter</types>
<types>DocumentRef.VendorsAdvancesClosing</types>
<types>DocumentRef.DepreciationCalculation</types>
<types>DocumentRef.ForeignCurrencyRevaluation</types>
<types>DocumentRef.CustomersAdvancesClosing</types>
<types>DocumentRef.ChequeBondTransactionItem</types>
<types>DocumentRef.CalculationMovementCosts</types>
<types>DocumentRef.BatchReallocateOutgoing</types>
<types>DocumentRef.BatchReallocateIncoming</types>
<types>DocumentRef.AdditionalRevenueAllocation</types>
<types>DocumentRef.AdditionalCostAllocation</types>
</type>
</mdclass:DefinedType>

View File

@@ -498,10 +498,6 @@
<event>OnCreateAtServer</event>
<name>OnCreateAtServer</name>
</handlers>
<handlers>
<event>OnOpen</event>
<name>OnOpen</name>
</handlers>
<autoTitle>true</autoTitle>
<autoUrl>true</autoUrl>
<group>Vertical</group>

View File

@@ -1078,7 +1078,7 @@
</extendedTooltip>
<type>UsualGroup</type>
<extInfo xsi:type="form:UsualGroupExtInfo">
<group>HorizontalIfPossible</group>
<group>AlwaysHorizontal</group>
<showLeftMargin>true</showLeftMargin>
<united>true</united>
<throughAlign>Auto</throughAlign>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Settings xmlns="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" 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:dcscor="http://v8.1c.ru/8.1/data-composition-system/core">
<filter>
<viewMode>Normal</viewMode>
<userSettingID>d44778dc-ac51-467c-9e04-f2aa602113df</userSettingID>
</filter>
<order>
<viewMode>Normal</viewMode>
<userSettingID>113f770b-dd02-464b-83d2-495a47deca7e</userSettingID>
</order>
<conditionalAppearance>
<viewMode>Normal</viewMode>
<userSettingID>bdcd1609-c7eb-433b-b26b-ec1884612d6f</userSettingID>
</conditionalAppearance>
<itemsViewMode>Normal</itemsViewMode>
<itemsUserSettingID>a5255a55-be46-4893-a991-2eeb8eabf889</itemsUserSettingID>
</Settings>

View File

@@ -0,0 +1,651 @@
<?xml version="1.0" encoding="UTF-8"?>
<form:Form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:core="http://g5.1c.ru/v8/dt/mcore" xmlns:form="http://g5.1c.ru/v8/dt/form" xmlns:schema="http://g5.1c.ru/v8/dt/data-composition-system/schema">
<items xsi:type="form:FormGroup">
<name>ListSettingsComposerUserSettings</name>
<id>1</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<title>
<key>en</key>
<value>User settings group</value>
</title>
<verticalStretch>false</verticalStretch>
<extendedTooltip>
<name>ListSettingsComposerUserSettingsExtendedTooltip</name>
<id>2</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<type>UsualGroup</type>
<extInfo xsi:type="form:UsualGroupExtInfo">
<group>Vertical</group>
<behavior>Auto</behavior>
<representation>WeakSeparation</representation>
<showLeftMargin>true</showLeftMargin>
<united>true</united>
<throughAlign>Auto</throughAlign>
<currentRowUse>Auto</currentRowUse>
</extInfo>
</items>
<items xsi:type="form:Table">
<name>List</name>
<id>3</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List</segments>
</dataPath>
<defaultItem>true</defaultItem>
<titleLocation>None</titleLocation>
<items xsi:type="form:FormField">
<name>Number</name>
<id>19</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Number</segments>
</dataPath>
<extendedTooltip>
<name>NumberExtendedTooltip</name>
<id>21</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>NumberContextMenu</name>
<id>20</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Date</name>
<id>22</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Date</segments>
</dataPath>
<extendedTooltip>
<name>DateExtendedTooltip</name>
<id>24</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>DateContextMenu</name>
<id>23</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Company</name>
<id>25</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Company</segments>
</dataPath>
<extendedTooltip>
<name>CompanyExtendedTooltip</name>
<id>27</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>CompanyContextMenu</name>
<id>26</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Store</name>
<id>28</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Store</segments>
</dataPath>
<extendedTooltip>
<name>StoreExtendedTooltip</name>
<id>30</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>StoreContextMenu</name>
<id>29</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Branch</name>
<id>34</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Branch</segments>
</dataPath>
<extendedTooltip>
<name>BranchExtendedTooltip</name>
<id>36</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>BranchContextMenu</name>
<id>35</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Ref</name>
<id>16</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible/>
<dataPath xsi:type="form:DataPath">
<segments>List.Ref</segments>
</dataPath>
<defaultItem>true</defaultItem>
<extendedTooltip>
<name>RefExtendedTooltip</name>
<id>18</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>RefContextMenu</name>
<id>17</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<commandBarLocation>None</commandBarLocation>
<autoCommandBar>
<name>ListCommandBar</name>
<id>5</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<horizontalAlign>Left</horizontalAlign>
</autoCommandBar>
<searchStringAddition>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<name>ListSearchString</name>
<id>7</id>
<extendedTooltip>
<name>ListSearchStringExtendedTooltip</name>
<id>9</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListSearchStringContextMenu</name>
<id>8</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<source>ListSearchString</source>
<extInfo xsi:type="form:SearchStringAdditionExtInfo">
<autoMaxWidth>true</autoMaxWidth>
</extInfo>
</searchStringAddition>
<viewStatusAddition>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<name>ListViewStatus</name>
<id>10</id>
<extendedTooltip>
<name>ListViewStatusExtendedTooltip</name>
<id>12</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListViewStatusContextMenu</name>
<id>11</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>ViewStatusAddition</type>
<source>ListViewStatus</source>
<extInfo xsi:type="form:ViewStatusAdditionExtInfo">
<autoMaxWidth>true</autoMaxWidth>
</extInfo>
</viewStatusAddition>
<searchControlAddition>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<name>ListSearchControl</name>
<id>13</id>
<extendedTooltip>
<name>ListSearchControlExtendedTooltip</name>
<id>15</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListSearchControlContextMenu</name>
<id>14</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>SearchControlAddition</type>
<source>ListSearchControl</source>
<extInfo xsi:type="form:SearchControlAdditionExtInfo">
<autoMaxWidth>true</autoMaxWidth>
</extInfo>
</searchControlAddition>
<extendedTooltip>
<name>ListExtendedTooltip</name>
<id>6</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListContextMenu</name>
<id>4</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<changeRowSet>true</changeRowSet>
<changeRowOrder>true</changeRowOrder>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<autoMaxRowsCount>true</autoMaxRowsCount>
<choiceMode>true</choiceMode>
<selectionMode>MultiRow</selectionMode>
<header>true</header>
<headerHeight>1</headerHeight>
<footerHeight>1</footerHeight>
<horizontalScrollBar>AutoUse</horizontalScrollBar>
<verticalScrollBar>AutoUse</verticalScrollBar>
<horizontalLines>true</horizontalLines>
<verticalLines>true</verticalLines>
<useAlternationRowColor>true</useAlternationRowColor>
<searchOnInput>Auto</searchOnInput>
<initialListView>Auto</initialListView>
<initialTreeView>ExpandTopLevel</initialTreeView>
<horizontalStretch>true</horizontalStretch>
<verticalStretch>true</verticalStretch>
<enableStartDrag>true</enableStartDrag>
<enableDrag>true</enableDrag>
<fileDragMode>AsFileRef</fileDragMode>
<rowPictureDataPath xsi:type="form:DataPath">
<segments>List.DefaultPicture</segments>
</rowPictureDataPath>
<extInfo xsi:type="form:DynamicListTableExtInfo">
<autoRefreshPeriod>60</autoRefreshPeriod>
<period>
<startDate>0001-01-01T00:00:00</startDate>
<endDate>0001-01-01T00:00:00</endDate>
</period>
<topLevelParent xsi:type="core:UndefinedValue"/>
<showRoot>true</showRoot>
<allowGettingCurrentRowURL>true</allowGettingCurrentRowURL>
<userSettingsGroup>ListSettingsComposerUserSettings</userSettingsGroup>
</extInfo>
</items>
<autoCommandBar>
<name>FormCommandBar</name>
<id>-1</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<horizontalAlign>Left</horizontalAlign>
<autoFill>true</autoFill>
</autoCommandBar>
<handlers>
<event>OnCreateAtServer</event>
<name>OnCreateAtServer</name>
</handlers>
<windowOpeningMode>LockOwnerWindow</windowOpeningMode>
<autoTitle>true</autoTitle>
<autoUrl>true</autoUrl>
<group>Vertical</group>
<autoFillCheck>true</autoFillCheck>
<allowFormCustomize>true</allowFormCustomize>
<enabled>true</enabled>
<showTitle>true</showTitle>
<showCloseButton>true</showCloseButton>
<attributes>
<name>List</name>
<id>1</id>
<valueType>
<types>DynamicList</types>
</valueType>
<view>
<common>true</common>
</view>
<edit>
<common>true</common>
</edit>
<notDefaultUseAlwaysAttributes xsi:type="form:DataPath">
<segments>List.Ref</segments>
</notDefaultUseAlwaysAttributes>
<main>true</main>
<extInfo xsi:type="form:DynamicListExtInfo">
<queryText>SELECT
DocumentVisitorCounter.Ref,
DocumentVisitorCounter.DeletionMark,
DocumentVisitorCounter.Number,
DocumentVisitorCounter.Date,
DocumentVisitorCounter.Posted,
DocumentVisitorCounter.Company,
DocumentVisitorCounter.Store,
DocumentVisitorCounter.VisitorCounter,
DocumentVisitorCounter.Branch,
DocumentVisitorCounter.SourceNodeID,
DocumentVisitorCounter.Author,
DocumentVisitorCounter.Description
FROM
Document.VisitorCounter
AS
DocumentVisitorCounter</queryText>
<mainTable>Document.VisitorCounter</mainTable>
<dynamicDataRead>true</dynamicDataRead>
<autoFillAvailableFields>true</autoFillAvailableFields>
<customQuery>true</customQuery>
<autoSaveUserSettings>true</autoSaveUserSettings>
<getInvisibleFieldPresentations>true</getInvisibleFieldPresentations>
<fields xsi:type="schema:DataCompositionSchemaNestedDataSet">
<dataPath>CounterData</dataPath>
<field>CounterData</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaNestedDataSet">
<dataPath>AddAttributes</dataPath>
<field>AddAttributes</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Ref</dataPath>
<field>Ref</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>DeletionMark</dataPath>
<field>DeletionMark</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Number</dataPath>
<field>Number</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Date</dataPath>
<field>Date</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Posted</dataPath>
<field>Posted</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Company</dataPath>
<field>Company</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Store</dataPath>
<field>Store</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>VisitorCounter</dataPath>
<field>VisitorCounter</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>PointInTime</dataPath>
<field>PointInTime</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Branch</dataPath>
<field>Branch</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>SourceNodeID</dataPath>
<field>SourceNodeID</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Author</dataPath>
<field>Author</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Description</dataPath>
<field>Description</field>
</fields>
</extInfo>
</attributes>
<commandInterface>
<navigationPanel/>
<commandBar/>
</commandInterface>
<extInfo xsi:type="form:DynamicListFormExtInfo"/>
</form:Form>

View File

@@ -0,0 +1,24 @@
#Region FormEvents
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
DocVisitorCounterServer.OnCreateAtServerChoiceForm(ThisObject, Cancel, StandardProcessing);
EndProcedure
#EndRegion
#Region Commands
&AtClient
Procedure GeneratedFormCommandActionByName(Command) Export
SelectedRows = Items.List.SelectedRows;
ExternalCommandsClient.GeneratedListChoiceFormCommandActionByName(SelectedRows, ThisObject, Command.Name);
GeneratedFormCommandActionByNameServer(Command.Name, SelectedRows);
EndProcedure
&AtServer
Procedure GeneratedFormCommandActionByNameServer(CommandName, SelectedRows) Export
ExternalCommandsServer.GeneratedListChoiceFormCommandActionByName(SelectedRows, ThisObject, CommandName);
EndProcedure
#EndRegion

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,181 @@
#Region FORM
&AtServer
Procedure OnReadAtServer(CurrentObject)
DocVisitorCounterServer.OnReadAtServer(Object, ThisObject, CurrentObject);
SetVisibilityAvailability(CurrentObject, ThisObject);
EndProcedure
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
DocVisitorCounterServer.OnCreateAtServer(Object, ThisObject, Cancel, StandardProcessing);
If Parameters.Key.IsEmpty() Then
SetVisibilityAvailability(Object, ThisObject);
EndIf;
EndProcedure
&AtServer
Procedure BeforeWriteAtServer(Cancel, CurrentObject, WriteParameters)
AddAttributesAndPropertiesServer.BeforeWriteAtServer(ThisObject, Cancel, CurrentObject, WriteParameters);
EndProcedure
&AtServer
Procedure AfterWriteAtServer(CurrentObject, WriteParameters)
DocVisitorCounterServer.AfterWriteAtServer(Object, ThisObject, CurrentObject, WriteParameters);
SetVisibilityAvailability(CurrentObject, ThisObject);
EndProcedure
&AtClient
Procedure OnOpen(Cancel, AddInfo = Undefined) Export
DocVisitorCounterClient.OnOpen(Object, ThisObject, Cancel);
EndProcedure
&AtClient
Procedure NotificationProcessing(EventName, Parameter, Source)
If EventName = "UpdateAddAttributeAndPropertySets" Then
AddAttributesCreateFormControl();
EndIf;
If Not Source = ThisObject Then
Return;
EndIf;
EndProcedure
&AtServer
Procedure OnWriteAtServer(Cancel, CurrentObject, WriteParameters)
DocumentsServer.OnWriteAtServer(Object, ThisObject, Cancel, CurrentObject, WriteParameters);
EndProcedure
&AtClient
Procedure FormSetVisibilityAvailability() Export
SetVisibilityAvailability(Object, ThisObject);
EndProcedure
&AtClientAtServerNoContext
Procedure SetVisibilityAvailability(Object, Form)
Return;
EndProcedure
#EndRegion
#Region _DATE
&AtClient
Procedure DateOnChange(Item)
DocVisitorCounterClient.DateOnChange(Object, ThisObject, Item);
EndProcedure
#EndRegion
#Region COMPANY
&AtClient
Procedure CompanyOnChange(Item)
DocVisitorCounterClient.CompanyOnChange(Object, ThisObject, Item);
EndProcedure
&AtClient
Procedure CompanyStartChoice(Item, ChoiceData, StandardProcessing)
DocVisitorCounterClient.CompanyStartChoice(Object, ThisObject, Item, ChoiceData, StandardProcessing);
EndProcedure
&AtClient
Procedure CompanyEditTextChange(Item, Text, StandardProcessing)
DocVisitorCounterClient.CompanyEditTextChange(Object, ThisObject, Item, Text, StandardProcessing);
EndProcedure
#EndRegion
#Region STORE
&AtClient
Procedure StoreOnChange(Item)
DocVisitorCounterClient.StoreOnChange(Object, ThisObject, Item);
EndProcedure
#EndRegion
#Region SERVICE
&AtClient
Function GetProcessingModule() Export
Str = New Structure;
Str.Insert("Client", DocVisitorCounterClient);
Str.Insert("Server", DocVisitorCounterServer);
Return Str;
EndFunction
#Region DESCRIPTION
&AtClient
Procedure DescriptionClick(Item, StandardProcessing)
CommonFormActions.EditMultilineText(ThisObject, Item, StandardProcessing);
EndProcedure
#EndRegion
#Region TITLE_DECORATIONS
&AtClient
Procedure DecorationGroupTitleCollapsedPictureClick(Item)
DocumentsClientServer.ChangeTitleCollapse(Object, ThisObject, True);
EndProcedure
&AtClient
Procedure DecorationGroupTitleCollapsedLabelClick(Item)
DocumentsClientServer.ChangeTitleCollapse(Object, ThisObject, True);
EndProcedure
&AtClient
Procedure DecorationGroupTitleUncollapsedPictureClick(Item)
DocumentsClientServer.ChangeTitleCollapse(Object, ThisObject, False);
EndProcedure
&AtClient
Procedure DecorationGroupTitleUncollapsedLabelClick(Item)
DocumentsClientServer.ChangeTitleCollapse(Object, ThisObject, False);
EndProcedure
#EndRegion
#Region ADD_ATTRIBUTES
&AtClient
Procedure AddAttributeStartChoice(Item, ChoiceData, StandardProcessing) Export
AddAttributesAndPropertiesClient.AddAttributeStartChoice(ThisObject, Item, StandardProcessing);
EndProcedure
&AtServer
Procedure AddAttributesCreateFormControl()
AddAttributesAndPropertiesServer.CreateFormControls(ThisObject, "GroupOther");
EndProcedure
&AtClient
Procedure AddAttributeButtonClick(Item) Export
AddAttributesAndPropertiesClient.AddAttributeButtonClick(ThisObject, Item);
EndProcedure
#EndRegion
#Region EXTERNAL_COMMANDS
&AtClient
Procedure GeneratedFormCommandActionByName(Command) Export
ExternalCommandsClient.GeneratedFormCommandActionByName(Object, ThisObject, Command.Name);
GeneratedFormCommandActionByNameServer(Command.Name);
EndProcedure
&AtServer
Procedure GeneratedFormCommandActionByNameServer(CommandName) Export
ExternalCommandsServer.GeneratedFormCommandActionByName(Object, ThisObject, CommandName);
EndProcedure
#EndRegion
&AtClient
Procedure ShowHiddenTables(Command)
DocumentsClient.ShowHiddenTables(Object, ThisObject);
EndProcedure
#EndRegion

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Settings xmlns="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" 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:dcscor="http://v8.1c.ru/8.1/data-composition-system/core">
<filter>
<viewMode>Normal</viewMode>
<userSettingID>72d0d08f-69f2-4bad-a59d-f759f0ccd3dd</userSettingID>
</filter>
<order>
<viewMode>Normal</viewMode>
<userSettingID>b4f2512c-33a1-4ed1-8400-2a8d19e6b25e</userSettingID>
</order>
<conditionalAppearance>
<viewMode>Normal</viewMode>
<userSettingID>8dcab820-98b1-402d-95c1-bbf525080e23</userSettingID>
</conditionalAppearance>
<itemsViewMode>Normal</itemsViewMode>
<itemsUserSettingID>e0038297-570d-43a1-941d-a959c0b7050a</itemsUserSettingID>
</Settings>

View File

@@ -0,0 +1,649 @@
<?xml version="1.0" encoding="UTF-8"?>
<form:Form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:core="http://g5.1c.ru/v8/dt/mcore" xmlns:form="http://g5.1c.ru/v8/dt/form" xmlns:schema="http://g5.1c.ru/v8/dt/data-composition-system/schema">
<items xsi:type="form:FormGroup">
<name>ListSettingsComposerUserSettings</name>
<id>1</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<title>
<key>en</key>
<value>User settings group</value>
</title>
<verticalStretch>false</verticalStretch>
<extendedTooltip>
<name>ListSettingsComposerUserSettingsExtendedTooltip</name>
<id>2</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<type>UsualGroup</type>
<extInfo xsi:type="form:UsualGroupExtInfo">
<group>Vertical</group>
<behavior>Auto</behavior>
<representation>WeakSeparation</representation>
<showLeftMargin>true</showLeftMargin>
<united>true</united>
<throughAlign>Auto</throughAlign>
<currentRowUse>Auto</currentRowUse>
</extInfo>
</items>
<items xsi:type="form:Table">
<name>List</name>
<id>3</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List</segments>
</dataPath>
<defaultItem>true</defaultItem>
<titleLocation>None</titleLocation>
<items xsi:type="form:FormField">
<name>Number</name>
<id>19</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Number</segments>
</dataPath>
<extendedTooltip>
<name>NumberExtendedTooltip</name>
<id>21</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>NumberContextMenu</name>
<id>20</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Date</name>
<id>22</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Date</segments>
</dataPath>
<extendedTooltip>
<name>DateExtendedTooltip</name>
<id>24</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>DateContextMenu</name>
<id>23</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Company</name>
<id>25</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Company</segments>
</dataPath>
<extendedTooltip>
<name>CompanyExtendedTooltip</name>
<id>27</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>CompanyContextMenu</name>
<id>26</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Store</name>
<id>28</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Store</segments>
</dataPath>
<extendedTooltip>
<name>StoreExtendedTooltip</name>
<id>30</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>StoreContextMenu</name>
<id>29</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Branch</name>
<id>31</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<dataPath xsi:type="form:DataPath">
<segments>List.Branch</segments>
</dataPath>
<extendedTooltip>
<name>BranchExtendedTooltip</name>
<id>33</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>BranchContextMenu</name>
<id>32</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<items xsi:type="form:FormField">
<name>Ref</name>
<id>16</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible/>
<dataPath xsi:type="form:DataPath">
<segments>List.Ref</segments>
</dataPath>
<defaultItem>true</defaultItem>
<extendedTooltip>
<name>RefExtendedTooltip</name>
<id>18</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>RefContextMenu</name>
<id>17</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>LabelField</type>
<editMode>Enter</editMode>
<showInHeader>true</showInHeader>
<headerHorizontalAlign>Left</headerHorizontalAlign>
<showInFooter>true</showInFooter>
<extInfo xsi:type="form:LabelFieldExtInfo">
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
</extInfo>
</items>
<commandBarLocation>None</commandBarLocation>
<autoCommandBar>
<name>ListCommandBar</name>
<id>5</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<horizontalAlign>Left</horizontalAlign>
</autoCommandBar>
<searchStringAddition>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<name>ListSearchString</name>
<id>7</id>
<extendedTooltip>
<name>ListSearchStringExtendedTooltip</name>
<id>9</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListSearchStringContextMenu</name>
<id>8</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<source>ListSearchString</source>
<extInfo xsi:type="form:SearchStringAdditionExtInfo">
<autoMaxWidth>true</autoMaxWidth>
</extInfo>
</searchStringAddition>
<viewStatusAddition>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<name>ListViewStatus</name>
<id>10</id>
<extendedTooltip>
<name>ListViewStatusExtendedTooltip</name>
<id>12</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListViewStatusContextMenu</name>
<id>11</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>ViewStatusAddition</type>
<source>ListViewStatus</source>
<extInfo xsi:type="form:ViewStatusAdditionExtInfo">
<autoMaxWidth>true</autoMaxWidth>
</extInfo>
</viewStatusAddition>
<searchControlAddition>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<name>ListSearchControl</name>
<id>13</id>
<extendedTooltip>
<name>ListSearchControlExtendedTooltip</name>
<id>15</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListSearchControlContextMenu</name>
<id>14</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<type>SearchControlAddition</type>
<source>ListSearchControl</source>
<extInfo xsi:type="form:SearchControlAdditionExtInfo">
<autoMaxWidth>true</autoMaxWidth>
</extInfo>
</searchControlAddition>
<extendedTooltip>
<name>ListExtendedTooltip</name>
<id>6</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<type>Label</type>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<extInfo xsi:type="form:LabelDecorationExtInfo">
<horizontalAlign>Left</horizontalAlign>
</extInfo>
</extendedTooltip>
<contextMenu>
<name>ListContextMenu</name>
<id>4</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<autoFill>true</autoFill>
</contextMenu>
<changeRowSet>true</changeRowSet>
<changeRowOrder>true</changeRowOrder>
<autoMaxWidth>true</autoMaxWidth>
<autoMaxHeight>true</autoMaxHeight>
<autoMaxRowsCount>true</autoMaxRowsCount>
<selectionMode>MultiRow</selectionMode>
<header>true</header>
<headerHeight>1</headerHeight>
<footerHeight>1</footerHeight>
<horizontalScrollBar>AutoUse</horizontalScrollBar>
<verticalScrollBar>AutoUse</verticalScrollBar>
<horizontalLines>true</horizontalLines>
<verticalLines>true</verticalLines>
<useAlternationRowColor>true</useAlternationRowColor>
<searchOnInput>Auto</searchOnInput>
<initialListView>Auto</initialListView>
<initialTreeView>ExpandTopLevel</initialTreeView>
<horizontalStretch>true</horizontalStretch>
<verticalStretch>true</verticalStretch>
<enableStartDrag>true</enableStartDrag>
<enableDrag>true</enableDrag>
<fileDragMode>AsFileRef</fileDragMode>
<rowPictureDataPath xsi:type="form:DataPath">
<segments>List.DefaultPicture</segments>
</rowPictureDataPath>
<extInfo xsi:type="form:DynamicListTableExtInfo">
<autoRefreshPeriod>60</autoRefreshPeriod>
<period>
<startDate>0001-01-01T00:00:00</startDate>
<endDate>0001-01-01T00:00:00</endDate>
</period>
<topLevelParent xsi:type="core:UndefinedValue"/>
<showRoot>true</showRoot>
<allowGettingCurrentRowURL>true</allowGettingCurrentRowURL>
<userSettingsGroup>ListSettingsComposerUserSettings</userSettingsGroup>
</extInfo>
</items>
<autoCommandBar>
<name>FormCommandBar</name>
<id>-1</id>
<visible>true</visible>
<enabled>true</enabled>
<userVisible>
<common>true</common>
</userVisible>
<horizontalAlign>Left</horizontalAlign>
<autoFill>true</autoFill>
</autoCommandBar>
<handlers>
<event>OnCreateAtServer</event>
<name>OnCreateAtServer</name>
</handlers>
<autoTitle>true</autoTitle>
<autoUrl>true</autoUrl>
<group>Vertical</group>
<autoFillCheck>true</autoFillCheck>
<allowFormCustomize>true</allowFormCustomize>
<enabled>true</enabled>
<showTitle>true</showTitle>
<showCloseButton>true</showCloseButton>
<attributes>
<name>List</name>
<id>1</id>
<valueType>
<types>DynamicList</types>
</valueType>
<view>
<common>true</common>
</view>
<edit>
<common>true</common>
</edit>
<notDefaultUseAlwaysAttributes xsi:type="form:DataPath">
<segments>List.Ref</segments>
</notDefaultUseAlwaysAttributes>
<main>true</main>
<extInfo xsi:type="form:DynamicListExtInfo">
<queryText>SELECT
DocumentVisitorCounter.Ref,
DocumentVisitorCounter.DeletionMark,
DocumentVisitorCounter.Number,
DocumentVisitorCounter.Date,
DocumentVisitorCounter.Posted,
DocumentVisitorCounter.Company,
DocumentVisitorCounter.Store,
DocumentVisitorCounter.VisitorCounter,
DocumentVisitorCounter.Branch,
DocumentVisitorCounter.SourceNodeID,
DocumentVisitorCounter.Author,
DocumentVisitorCounter.Description
FROM
Document.VisitorCounter
AS
DocumentVisitorCounter</queryText>
<mainTable>Document.VisitorCounter</mainTable>
<dynamicDataRead>true</dynamicDataRead>
<autoFillAvailableFields>true</autoFillAvailableFields>
<customQuery>true</customQuery>
<autoSaveUserSettings>true</autoSaveUserSettings>
<getInvisibleFieldPresentations>true</getInvisibleFieldPresentations>
<fields xsi:type="schema:DataCompositionSchemaNestedDataSet">
<dataPath>CounterData</dataPath>
<field>CounterData</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaNestedDataSet">
<dataPath>AddAttributes</dataPath>
<field>AddAttributes</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Ref</dataPath>
<field>Ref</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>DeletionMark</dataPath>
<field>DeletionMark</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Number</dataPath>
<field>Number</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Date</dataPath>
<field>Date</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Posted</dataPath>
<field>Posted</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Company</dataPath>
<field>Company</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Store</dataPath>
<field>Store</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>VisitorCounter</dataPath>
<field>VisitorCounter</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>PointInTime</dataPath>
<field>PointInTime</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Branch</dataPath>
<field>Branch</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>SourceNodeID</dataPath>
<field>SourceNodeID</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Author</dataPath>
<field>Author</field>
</fields>
<fields xsi:type="schema:DataCompositionSchemaDataSetField">
<dataPath>Description</dataPath>
<field>Description</field>
</fields>
</extInfo>
</attributes>
<commandInterface>
<navigationPanel/>
<commandBar/>
</commandInterface>
<extInfo xsi:type="form:DynamicListFormExtInfo"/>
</form:Form>

View File

@@ -0,0 +1,24 @@
#Region FormEvents
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
DocVisitorCounterServer.OnCreateAtServerListForm(ThisObject, Cancel, StandardProcessing);
EndProcedure
#EndRegion
#Region Commands
&AtClient
Procedure GeneratedFormCommandActionByName(Command) Export
SelectedRows = Items.List.SelectedRows;
ExternalCommandsClient.GeneratedListChoiceFormCommandActionByName(SelectedRows, ThisObject, Command.Name);
GeneratedFormCommandActionByNameServer(Command.Name, SelectedRows);
EndProcedure
&AtServer
Procedure GeneratedFormCommandActionByNameServer(CommandName, SelectedRows) Export
ExternalCommandsServer.GeneratedListChoiceFormCommandActionByName(SelectedRows, ThisObject, CommandName);
EndProcedure
#EndRegion

View File

@@ -0,0 +1,127 @@
#Region PrintForm
Function GetPrintForm(Ref, PrintFormName, AddInfo = Undefined) Export
Return Undefined;
EndFunction
#EndRegion
#Region Posting
Function PostingGetDocumentDataTables(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
Tables = New Structure;
QueryArray = GetQueryTextsSecondaryTables();
Parameters.Insert("QueryParameters", GetAdditionalQueryParameters(Ref));
PostingServer.ExecuteQuery(Ref, QueryArray, Parameters);
Return Tables;
EndFunction
Function PostingGetLockDataSource(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
DataMapWithLockFields = New Map;
Return DataMapWithLockFields;
EndFunction
Procedure PostingCheckBeforeWrite(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
Tables = Parameters.DocumentDataTables;
QueryArray = GetQueryTextsMasterTables();
PostingServer.SetRegisters(Tables, Ref);
PostingServer.FillPostingTables(Tables, Ref, QueryArray, Parameters);
EndProcedure
Function PostingGetPostingDataTables(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
PostingDataTables = New Map;
PostingServer.SetPostingDataTables(PostingDataTables, Parameters);
Return PostingDataTables;
EndFunction
Procedure PostingCheckAfterWrite(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
CheckAfterWrite(Ref, Cancel, Parameters, AddInfo);
EndProcedure
#EndRegion
#Region Undoposting
Function UndopostingGetDocumentDataTables(Ref, Cancel, Parameters, AddInfo = Undefined) Export
Return PostingGetDocumentDataTables(Ref, Cancel, Undefined, Parameters, AddInfo);
EndFunction
Function UndopostingGetLockDataSource(Ref, Cancel, Parameters, AddInfo = Undefined) Export
DataMapWithLockFields = New Map;
Return DataMapWithLockFields;
EndFunction
Procedure UndopostingCheckBeforeWrite(Ref, Cancel, Parameters, AddInfo = Undefined) Export
QueryArray = GetQueryTextsMasterTables();
PostingServer.ExecuteQuery(Ref, QueryArray, Parameters);
EndProcedure
Procedure UndopostingCheckAfterWrite(Ref, Cancel, Parameters, AddInfo = Undefined) Export
Parameters.Insert("Unposting", True);
CheckAfterWrite(Ref, Cancel, Parameters, AddInfo);
EndProcedure
#EndRegion
#Region CheckAfterWrite
Procedure CheckAfterWrite(Ref, Cancel, Parameters, AddInfo = Undefined)
Return;
EndProcedure
#EndRegion
#Region Posting_Info
Function GetInformationAboutMovements(Ref) Export
Str = New Structure;
Str.Insert("QueryParameters", GetAdditionalQueryParameters(Ref));
Str.Insert("QueryTextsMasterTables", GetQueryTextsMasterTables());
Str.Insert("QueryTextsSecondaryTables", GetQueryTextsSecondaryTables());
Return Str;
EndFunction
Function GetAdditionalQueryParameters(Ref)
StrParams = New Structure;
StrParams.Insert("Ref", Ref);
Return StrParams;
EndFunction
#EndRegion
#Region Posting_SourceTable
Function GetQueryTextsSecondaryTables()
QueryArray = New Array;
Return QueryArray;
EndFunction
#EndRegion
#Region Posting_MainTables
Function GetQueryTextsMasterTables()
QueryArray = New Array;
Return QueryArray;
EndFunction
#EndRegion
#Region AccessObject
// Get access key.
//
// Parameters:
// Obj - DocumentObjectDocumentName -
//
// Returns:
// Map
Function GetAccessKey(Obj) Export
AccessKeyMap = New Map;
AccessKeyMap.Insert("Company", Obj.Company);
AccessKeyMap.Insert("Branch", Obj.Branch);
AccessKeyMap.Insert("Store", Obj.Store);
Return AccessKeyMap;
EndFunction
#EndRegion

View File

@@ -0,0 +1,246 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:core="http://g5.1c.ru/v8/dt/mcore" xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="037698ec-5fd5-49b5-81f0-aacc0bf56ba9">
<producedTypes>
<objectType typeId="2e0b3707-7889-425e-a71d-b76b25da9402" valueTypeId="454f705c-0729-4eb6-92a7-befcda59f3aa"/>
<refType typeId="dcd77930-9442-4562-a325-36c506eee8b9" valueTypeId="c48e5a25-faa2-4466-b680-20cddbb18905"/>
<selectionType typeId="73a11990-be5b-4c9c-8cee-e0bfd0178612" valueTypeId="fec74d34-c2c8-407c-abc9-218fc6b57022"/>
<listType typeId="1e57d0ae-b484-4708-b32c-5fbfc1e1ceb7" valueTypeId="ffd09730-436b-4041-a22f-329fc025aec0"/>
<managerType typeId="ffe6f78d-3419-46dc-a686-cfffdfe3fe39" valueTypeId="b5de9f32-d6e9-4c1a-b9a1-f3105a0f506c"/>
</producedTypes>
<name>VisitorCounter</name>
<synonym>
<key>en</key>
<value>Visitor counter</value>
</synonym>
<useStandardCommands>true</useStandardCommands>
<inputByString>Document.VisitorCounter.StandardAttribute.Number</inputByString>
<fullTextSearchOnInputByString>DontUse</fullTextSearchOnInputByString>
<characteristics>
<characteristicTypes>Catalog.AddAttributeAndPropertySets.TabularSection.Attributes</characteristicTypes>
<keyField>Catalog.AddAttributeAndPropertySets.TabularSection.Attributes.Attribute.Attribute</keyField>
<typesFilterField>Catalog.AddAttributeAndPropertySets.TabularSection.Attributes.StandardAttribute.Ref</typesFilterField>
<typesFilterValue xsi:type="core:ReferenceValue">
<value>Catalog.AddAttributeAndPropertySets.Document_VisitorCounter</value>
</typesFilterValue>
<dataPathField>Catalog.AddAttributeAndPropertySets.TabularSection.Attributes.StandardAttribute.Ref</dataPathField>
<characteristicValues>Document.VisitorCounter.TabularSection.AddAttributes</characteristicValues>
<objectField>Document.VisitorCounter.TabularSection.AddAttributes.StandardAttribute.Ref</objectField>
<typeField>Document.VisitorCounter.TabularSection.AddAttributes.Attribute.Property</typeField>
<valueField>Document.VisitorCounter.TabularSection.AddAttributes.Attribute.Value</valueField>
</characteristics>
<characteristics>
<characteristicTypes>Catalog.AddAttributeAndPropertySets.TabularSection.Properties</characteristicTypes>
<keyField>Catalog.AddAttributeAndPropertySets.TabularSection.Properties.Attribute.Property</keyField>
<typesFilterField>Catalog.AddAttributeAndPropertySets.TabularSection.Properties.StandardAttribute.Ref</typesFilterField>
<typesFilterValue xsi:type="core:ReferenceValue">
<value>Catalog.AddAttributeAndPropertySets.Document_VisitorCounter</value>
</typesFilterValue>
<dataPathField>Catalog.AddAttributeAndPropertySets.TabularSection.Properties.StandardAttribute.Ref</dataPathField>
<characteristicValues>InformationRegister.AddProperties</characteristicValues>
<objectField>InformationRegister.AddProperties.Dimension.Object</objectField>
<typeField>InformationRegister.AddProperties.Dimension.Property</typeField>
<valueField>InformationRegister.AddProperties.Resource.Value</valueField>
</characteristics>
<createOnInput>DontUse</createOnInput>
<dataLockControlMode>Managed</dataLockControlMode>
<fullTextSearch>Use</fullTextSearch>
<objectPresentation>
<key>en</key>
<value>Visitor counter</value>
</objectPresentation>
<listPresentation>
<key>en</key>
<value>Visitor counters</value>
</listPresentation>
<numberLength>12</numberLength>
<numberAllowedLength>Variable</numberAllowedLength>
<checkUnique>true</checkUnique>
<autonumbering>true</autonumbering>
<defaultObjectForm>Document.VisitorCounter.Form.DocumentForm</defaultObjectForm>
<defaultListForm>Document.VisitorCounter.Form.ListForm</defaultListForm>
<defaultChoiceForm>Document.VisitorCounter.Form.ChoiceForm</defaultChoiceForm>
<realTimePosting>Deny</realTimePosting>
<postInPrivilegedMode>true</postInPrivilegedMode>
<unpostInPrivilegedMode>true</unpostInPrivilegedMode>
<attributes uuid="bd51bc41-d5c4-4b69-84a8-8482f2279f30">
<name>Company</name>
<synonym>
<key>en</key>
<value>Company</value>
</synonym>
<type>
<types>CatalogRef.Companies</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<fillValue xsi:type="core:UndefinedValue"/>
<fullTextSearch>Use</fullTextSearch>
<dataHistory>Use</dataHistory>
</attributes>
<attributes uuid="440cf36e-853d-418a-9925-8419c15844ad">
<name>Store</name>
<synonym>
<key>en</key>
<value>Store</value>
</synonym>
<type>
<types>CatalogRef.Stores</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<fillValue xsi:type="core:UndefinedValue"/>
<fullTextSearch>Use</fullTextSearch>
<dataHistory>Use</dataHistory>
</attributes>
<attributes uuid="e7a47292-71d4-4917-aef6-96954b0133ad">
<name>VisitorCounter</name>
<synonym>
<key>en</key>
<value>Visitor counter</value>
</synonym>
<type>
<types>CatalogRef.IntegrationSettings</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<choiceParameters>
<name>Filter.IntegrationType</name>
<value xsi:type="core:ReferenceValue">
<value>Enum.IntegrationType.EnumValue.VisitorCounter</value>
</value>
</choiceParameters>
<fillValue xsi:type="core:UndefinedValue"/>
<fullTextSearch>Use</fullTextSearch>
<dataHistory>Use</dataHistory>
</attributes>
<forms uuid="441fafca-f4d9-4a0a-9c65-0a23f79c46d6">
<name>DocumentForm</name>
<synonym>
<key>en</key>
<value>Document form</value>
</synonym>
<usePurposes>PersonalComputer</usePurposes>
<usePurposes>MobileDevice</usePurposes>
</forms>
<forms uuid="9f5607c9-ffb2-4463-9536-f2d4bdafcc95">
<name>ListForm</name>
<synonym>
<key>en</key>
<value>List form</value>
</synonym>
<usePurposes>PersonalComputer</usePurposes>
<usePurposes>MobileDevice</usePurposes>
</forms>
<forms uuid="c914a723-7231-49fe-8826-9b297e951822">
<name>ChoiceForm</name>
<synonym>
<key>en</key>
<value>Choice form</value>
</synonym>
<usePurposes>PersonalComputer</usePurposes>
<usePurposes>MobileDevice</usePurposes>
</forms>
<tabularSections uuid="709f07e6-15da-4ec2-a53f-19a4babae179">
<producedTypes>
<objectType typeId="c194de75-0d43-4a32-bfbf-69e8e145ed57" valueTypeId="ce7156ae-9609-4217-ade8-d76f3c5be3a8"/>
<rowType typeId="482d26f4-e646-4457-b719-e17da6b383e2" valueTypeId="9c7061b0-d778-4320-aabb-91af5eadf846"/>
</producedTypes>
<name>CounterData</name>
<synonym>
<key>en</key>
<value>Counter data</value>
</synonym>
<attributes uuid="e61fe969-6c63-4c1b-bc1a-8cc6934a58fe">
<name>Time</name>
<synonym>
<key>en</key>
<value>Time</value>
</synonym>
<type>
<types>Date</types>
<dateQualifiers>
<dateFractions>Time</dateFractions>
</dateQualifiers>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<dataHistory>Use</dataHistory>
<fullTextSearch>Use</fullTextSearch>
</attributes>
<attributes uuid="11136aca-0601-42b1-93a8-78513a409ae1">
<name>In</name>
<synonym>
<key>en</key>
<value>In</value>
</synonym>
<type>
<types>Number</types>
<numberQualifiers>
<precision>5</precision>
</numberQualifiers>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<dataHistory>Use</dataHistory>
<fullTextSearch>Use</fullTextSearch>
</attributes>
<attributes uuid="39788a8b-beed-4bdc-90c5-c2e6f2bc2f72">
<name>Out</name>
<synonym>
<key>en</key>
<value>Out</value>
</synonym>
<type>
<types>Number</types>
<numberQualifiers>
<precision>5</precision>
</numberQualifiers>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<dataHistory>Use</dataHistory>
<fullTextSearch>Use</fullTextSearch>
</attributes>
</tabularSections>
<tabularSections uuid="1f640810-cc13-41ee-9159-977ea2c13414">
<producedTypes>
<objectType typeId="f3537b98-adcf-42db-b7fe-73464f161266" valueTypeId="b7db2bc3-aa57-430f-8744-4f5f77bb4361"/>
<rowType typeId="53d236ee-7732-4bbd-9f09-e2d9c7c3d64f" valueTypeId="83552b91-1c1a-4453-8fe8-4cb3f36a41c0"/>
</producedTypes>
<name>AddAttributes</name>
<synonym>
<key>en</key>
<value>Additional attributes</value>
</synonym>
<attributes uuid="7ebbcf9b-2f69-4cb5-9474-9c1977582f93">
<name>Property</name>
<synonym>
<key>en</key>
<value>Property</value>
</synonym>
<type>
<types>ChartOfCharacteristicTypesRef.AddAttributeAndProperty</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<dataHistory>Use</dataHistory>
</attributes>
<attributes uuid="b270cdf2-8a4a-4efb-9ef5-760a1e024660">
<name>Value</name>
<synonym>
<key>en</key>
<value>Value</value>
</synonym>
<type>
<types>Characteristic.AddAttributeAndProperty</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<choiceParameterLinks>
<name>Filter.Owner</name>
<field>Document.VisitorCounter.TabularSection.AddAttributes.Attribute.Property</field>
</choiceParameterLinks>
<dataHistory>Use</dataHistory>
</attributes>
</tabularSections>
</mdclass:Document>

View File

@@ -68,4 +68,11 @@
<value>Equipment</value>
</synonym>
</enumValues>
<enumValues uuid="cb7b990a-99f7-4969-a757-b0e63a17e95e">
<name>VisitorCounter</name>
<synonym>
<key>en</key>
<value>Visitor counter</value>
</synonym>
</enumValues>
</mdclass:Enum>

File diff suppressed because it is too large Load Diff

View File

@@ -24,4 +24,6 @@
<content>Document.RetailShipmentConfirmation</content>
<content>Document.RetailGoodsReceipt</content>
<content>Subsystem.Retail</content>
<content>Subsystem.Retail.Subsystem.VisitorCounter</content>
<content>Document.VisitorCounter</content>
</mdclass:FunctionalOption>

View File

@@ -106,6 +106,8 @@
<types>DocumentRef.DecommissioningOfFixedAsset</types>
<types>DocumentRef.FixedAssetTransfer</types>
<types>DocumentRef.ModernizationOfFixedAsset</types>
<types>DocumentRef.VisitorCounter</types>
<types>DocumentRef.WorkOrderClosing</types>
</commandParameterType>
<representation>Auto</representation>
</commands>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="9491515b-bb87-4103-849b-a7809ff44276">
<name>FullAccessInArea</name>
<mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="50a73c52-0cfe-4b14-af19-bdfe867e3945">
<name>Document_VisitorCounter</name>
<synonym>
<key>en</key>
<value>Full access in area</value>
<value>Document &quot;Visitor counter&quot;</value>
</synonym>
</mdclass:Role>

View File

@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8"?>
<Rights xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://v8.1c.ru/8.2/roles" xsi:type="Rights">
<setForNewObjects>false</setForNewObjects>
<setForAttributesByDefault>true</setForAttributesByDefault>
<independentRightsOfChildObjects>false</independentRightsOfChildObjects>
<object>
<name>Document.VisitorCounter</name>
<right>
<name>Edit</name>
<value>true</value>
</right>
<right>
<name>InteractiveClearDeletionMark</name>
<value>true</value>
</right>
<right>
<name>Posting</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistory</name>
<value>true</value>
</right>
<right>
<name>Update</name>
<value>true</value>
<restrictionByCondition>
<condition>#CheckDocumentAccess()</condition>
</restrictionByCondition>
</right>
<right>
<name>Insert</name>
<value>true</value>
<restrictionByCondition>
<condition>#CheckDocumentAccess()</condition>
</restrictionByCondition>
</right>
<right>
<name>InteractiveChangeOfPosted</name>
<value>true</value>
</right>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>InteractiveUndoPosting</name>
<value>true</value>
</right>
<right>
<name>EditDataHistoryVersionComment</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
<restrictionByCondition>
<condition>#CheckDocumentAccess()</condition>
</restrictionByCondition>
</right>
<right>
<name>ReadDataHistoryOfMissingData</name>
<value>true</value>
</right>
<right>
<name>UndoPosting</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistoryOfMissingData</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
<right>
<name>ReadDataHistory</name>
<value>true</value>
</right>
<right>
<name>SwitchToDataHistoryVersion</name>
<value>true</value>
</right>
<right>
<name>InteractivePostingRegular</name>
<value>true</value>
</right>
<right>
<name>InteractivePosting</name>
<value>true</value>
</right>
<right>
<name>InteractiveInsert</name>
<value>true</value>
</right>
<right>
<name>ViewDataHistory</name>
<value>true</value>
</right>
<right>
<name>InteractiveSetDeletionMark</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistorySettings</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistoryVersionComment</name>
<value>true</value>
</right>
</object>
<restrictionTemplate>
<name>CheckDocumentAccess</name>
<condition>
#If Not &amp;UseObjectAccess #Then
// Access restiction not using. Set UseObjectAccess functional option TRUE
WHERE TRUE
#Else
Table
WHERE NOT (FALSE) IN (
SELECT
MIN((ObjectAccessKeysFilterDataList.Key = "" OR NOT AG.Key IS NULL))
FROM InformationRegister.T9100A_ObjectAccessMap AS T9100A_ObjectAccessMap
LEFT JOIN Catalog.ObjectAccessKeys.FilterDataList AS ObjectAccessKeysFilterDataList
LEFT JOIN Catalog.AccessGroups.ObjectAccess AS AG
ON AG.Ref IN (&amp;CurrentUserAccessGroupList)
AND AG.Key = ObjectAccessKeysFilterDataList.Key
AND (AG.ValueRef = ObjectAccessKeysFilterDataList.ValueRef1
OR AG.ValueRef = ObjectAccessKeysFilterDataList.ValueRef2
OR AG.ValueRef = ObjectAccessKeysFilterDataList.ValueRef3
OR AG.ValueRef = ObjectAccessKeysFilterDataList.ValueRef4
OR AG.ValueRef = ObjectAccessKeysFilterDataList.ValueRef5
OR AG.DoNotControl)
#If #CurrentAccessRightName = "Insert" OR #CurrentAccessRightName = "Update" #Then
AND (AG.Modify)
#EndIf
ON ObjectAccessKeysFilterDataList.Ref = T9100A_ObjectAccessMap.ObjectAccessKeys
WHERE
T9100A_ObjectAccessMap.ObjectRef = Table.Ref
)#EndIf</condition>
</restrictionTemplate>
</Rights>

View File

@@ -2089,4 +2089,103 @@
<value>true</value>
</right>
</object>
<object>
<name>Document.DepreciationCalculation</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.VisitorCounter</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.ModernizationOfFixedAsset</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.Labeling</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.DecommissioningOfFixedAsset</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.CommissioningOfFixedAsset</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.FixedAssetTransfer</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.RetailShipmentConfirmation</name>
<right>
<name>Read</name>
<value>true</value>
</right>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.RetailGoodsReceipt</name>
<right>
<name>Read</name>
<value>true</value>
</right>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
</Rights>

View File

@@ -2584,4 +2584,138 @@
<value>false</value>
</right>
</object>
<object>
<name>Catalog.FixedAssetsLedgerTypes</name>
<right>
<name>InteractiveDeletePredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
<right>
<name>InteractiveDeleteMarkedPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveClearDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveSetDeletionMarkPredefinedData</name>
<value>false</value>
</right>
</object>
<object>
<name>Catalog.FixedAssets</name>
<right>
<name>InteractiveDeletePredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
<right>
<name>InteractiveSetDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveClearDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDeleteMarkedPredefinedData</name>
<value>false</value>
</right>
</object>
<object>
<name>Catalog.DepreciationSchedules</name>
<right>
<name>InteractiveDeletePredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
<right>
<name>InteractiveSetDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveClearDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDeleteMarkedPredefinedData</name>
<value>false</value>
</right>
</object>
<object>
<name>Catalog.AccessKey</name>
<right>
<name>InteractiveDeletePredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
<right>
<name>InteractiveSetDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveClearDeletionMarkPredefinedData</name>
<value>false</value>
</right>
<right>
<name>InteractiveDeleteMarkedPredefinedData</name>
<value>false</value>
</right>
</object>
<object>
<name>Document.CommissioningOfFixedAsset</name>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
</object>
<object>
<name>Document.DecommissioningOfFixedAsset</name>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
</object>
<object>
<name>Document.DepreciationCalculation</name>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
</object>
<object>
<name>Document.FixedAssetTransfer</name>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
</object>
<object>
<name>Document.ModernizationOfFixedAsset</name>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
</object>
<object>
<name>Document.VisitorCounter</name>
<right>
<name>InteractiveDelete</name>
<value>false</value>
</right>
</object>
</Rights>

File diff suppressed because it is too large Load Diff

View File

@@ -11520,6 +11520,10 @@
<name>Get</name>
<value>true</value>
</right>
<right>
<name>Set</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Settings.Subsystem.ContactInfo</name>
@@ -11960,6 +11964,10 @@
<name>Get</name>
<value>true</value>
</right>
<right>
<name>Set</name>
<value>true</value>
</right>
</object>
<object>
<name>InformationRegister.PricesByItems.Resource.Price</name>
@@ -16179,6 +16187,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Catalog.FixedAssets</name>
@@ -16190,6 +16202,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>InformationRegister.T2011S_TransactionsCurrencyRevaluation</name>
@@ -16212,6 +16228,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>InformationRegister.T9050S_AccountingRowAnalytics</name>
@@ -16234,6 +16254,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.FixedAssetTransfer</name>
@@ -16245,6 +16269,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Constant.UseFixedAssets</name>
@@ -16278,6 +16306,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.FixedAssets</name>
@@ -16296,6 +16328,10 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>InformationRegister.T9051S_AccountingExtDimensions</name>
@@ -16358,5 +16394,81 @@
<name>View</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Reports.Subsystem.Manufacturing</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
<object>
<name>Document.VisitorCounter</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Retail.Subsystem.VisitorCounter</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
<object>
<name>Catalog.AccessKey</name>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Reports.Subsystem.Salary</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Reports.Subsystem.Retail</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Reports.Subsystem.Treasury</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Reports.Subsystem.Accounting</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
</Rights>

View File

@@ -24,4 +24,11 @@
<value>true</value>
</right>
</object>
<object>
<name>Subsystem.Retail.Subsystem.VisitorCounter</name>
<right>
<name>View</name>
<value>true</value>
</right>
</object>
</Rights>

View File

@@ -8411,6 +8411,114 @@
<value>true</value>
</right>
</object>
<object>
<name>Document.VisitorCounter</name>
<right>
<name>Edit</name>
<value>true</value>
</right>
<right>
<name>InteractiveClearDeletionMark</name>
<value>true</value>
</right>
<right>
<name>Posting</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistory</name>
<value>true</value>
</right>
<right>
<name>Update</name>
<value>true</value>
<restrictionByCondition>
<condition>#CheckDocumentAccess()</condition>
</restrictionByCondition>
</right>
<right>
<name>Insert</name>
<value>true</value>
<restrictionByCondition>
<condition>#CheckDocumentAccess()</condition>
</restrictionByCondition>
</right>
<right>
<name>InteractiveChangeOfPosted</name>
<value>true</value>
</right>
<right>
<name>View</name>
<value>true</value>
</right>
<right>
<name>InteractiveUndoPosting</name>
<value>true</value>
</right>
<right>
<name>EditDataHistoryVersionComment</name>
<value>true</value>
</right>
<right>
<name>Read</name>
<value>true</value>
<restrictionByCondition>
<condition>#CheckDocumentAccess()</condition>
</restrictionByCondition>
</right>
<right>
<name>ReadDataHistoryOfMissingData</name>
<value>true</value>
</right>
<right>
<name>UndoPosting</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistoryOfMissingData</name>
<value>true</value>
</right>
<right>
<name>InputByString</name>
<value>true</value>
</right>
<right>
<name>ReadDataHistory</name>
<value>true</value>
</right>
<right>
<name>SwitchToDataHistoryVersion</name>
<value>true</value>
</right>
<right>
<name>InteractivePostingRegular</name>
<value>true</value>
</right>
<right>
<name>InteractivePosting</name>
<value>true</value>
</right>
<right>
<name>InteractiveInsert</name>
<value>true</value>
</right>
<right>
<name>ViewDataHistory</name>
<value>true</value>
</right>
<right>
<name>InteractiveSetDeletionMark</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistorySettings</name>
<value>true</value>
</right>
<right>
<name>UpdateDataHistoryVersionComment</name>
<value>true</value>
</right>
</object>
<restrictionTemplate>
<name>CheckDocumentAccess</name>
<condition>

View File

@@ -20,4 +20,5 @@
<content>Document.RetailShipmentConfirmation</content>
<content>Document.RetailGoodsReceipt</content>
<subsystems>Sales</subsystems>
<subsystems>VisitorCounter</subsystems>
</mdclass:Subsystem>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:Subsystem xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="d815a659-cbb5-462f-af20-5eede1b79463">
<name>VisitorCounter</name>
<synonym>
<key>en</key>
<value>Visitor counter</value>
</synonym>
<includeHelpInContents>true</includeHelpInContents>
<includeInCommandInterface>true</includeInCommandInterface>
<content>Document.VisitorCounter</content>
<parentSubsystem>Subsystem.Retail</parentSubsystem>
</mdclass:Subsystem>

View File

@@ -0,0 +1,309 @@
При создании документа в метадатах:
## Main
- [ ] Fill Synonym
- [ ] Fill Object presentaion
- [ ] Fill List presentation
- [ ] Code type - `Number`
- [ ] Lenght - `12`
- [ ] Non periodical
- [ ] Create on input = `Don't use`
- [ ] Add to subsystem
- [ ] Add to functional option
- [ ] Set common attribute Use: `Author, Branch, Description, SourceNodeID`
- [ ] RealTimePosting = `Deny`
- [ ] Add to `FilterCriteria` - `RelatedDocuments` add to content and to button
- [ ] Add to content `FullExchange` in `Plan Exchange`
## Access
- [ ] Copy any document Role and rename to `Document_DocName`. Set all right to this role, except `Delete`. Check, that `Restiction template` is filled.
- [ ] Add `Access restriction` to `Read`, `Insert`, `Update`:
```bsl
#CheckDocumentAccess()
```
- [ ] Do the same with role `TemplateDocument`
- [ ] Remove interactive Delete from role `FullAccess`
- [ ] Add read and View to role `FullAccessOnlyRead`
- [ ] Add to role `FilterForUserSettings` `Read` and `View`. And set attribute for using in `Default Settings` (`Catalog Users` - in header `Settings`)
- [ ] Add to Object Manager module:
```bsl
#Region AccessObject
// Get access key.
//
// Parameters:
// Obj - DocumentObjectDocumentName -
//
// Returns:
// Map
Function GetAccessKey(Obj) Export
AccessKeyMap = New Map;
//AccessKeyMap.Insert("Company", Obj.Company);
//AccessKeyMap.Insert("Branch", Obj.Branch);
//StoreList = Obj.ItemList.Unload(, "Store");
//StoreList.GroupBy("Store");
//AccessKeyMap.Insert("Store", StoreList.UnloadColumn("Store"));
Return AccessKeyMap;
EndFunction
#EndRegion
```
## Add attributes
- [ ] In `Catalog.AddAttributeAndPropertySets` add new predefined document with name `Document_DocumentName`, set description as `Document Document name`.
- [ ] Copy from `document SalesOrder` table `AddAttributes` and setup it:
![](CreateNewDocument/AddAttribute.png)
![](CreateNewDocument/AddProperties.png)
## Set refs
- [ ] Add to `Defined types` - `typeAddPropertyOwners`
- [ ] Add to `Defined types` - `typeObjectWithItemList` (if table `ItemList` is exists)
- [ ] Add to command refs in report `DocumentRegistrationsReport`
- [ ] Add form `DocumentForm`, `ListForm`, `ChoiceForm`. Order is important.
- [ ] In list and choise form - `Dynamic list` - `Ref` - set `See always` = `True`. Move Ref column to the end and go to `User visibility` - `Visible` - set `False`:
![](CreateNewDocument/SetRefView.png)
## Common modules
If in the document we add 2 attributes `Company` and `Store`
- [ ] Create new common modules `DocDocumentNameClient`, :
```bsl
#Region FORM
// Template for extension
Procedure OnOpen(Object, Form, Cancel) Export
Return;
EndProcedure
#EndRegion
#Region _DATE
// Template for extension
Procedure DateOnChange(Object, Form, Item) Export
Return;
EndProcedure
#EndRegion
#Region COMPANY
// Template for extension
Procedure CompanyOnChange(Object, Form, Item) Export
Return;
EndProcedure
Procedure CompanyStartChoice(Object, Form, Item, ChoiceData, StandardProcessing) Export
OpenSettings = DocumentsClient.GetOpenSettingsStructure();
OpenSettings.ArrayOfFilters = New Array();
OpenSettings.ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("DeletionMark", True,
DataCompositionComparisonType.NotEqual));
OpenSettings.ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("OurCompany", True,
DataCompositionComparisonType.Equal));
OpenSettings.FillingData = New Structure("OurCompany", True);
DocumentsClient.CompanyStartChoice(Object, Form, Item, ChoiceData, StandardProcessing, OpenSettings);
EndProcedure
Procedure CompanyEditTextChange(Object, Form, Item, Text, StandardProcessing) Export
ArrayOfFilters = New Array();
ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("DeletionMark", True, ComparisonType.NotEqual));
ArrayOfFilters.Add(DocumentsClientServer.CreateFilterItem("OurCompany", True, ComparisonType.Equal));
DocumentsClient.CompanyEditTextChange(Object, Form, Item, Text, StandardProcessing, ArrayOfFilters);
EndProcedure
#EndRegion
```
- [ ] Create new common modules `DocDocumentNameServer`:
```bsl
#Region FORM
Procedure OnCreateAtServer(Object, Form, Cancel, StandardProcessing) Export
DocumentsServer.OnCreateAtServer(Object, Form, Cancel, StandardProcessing);
If Form.Parameters.Key.IsEmpty() Then
SetGroupItemsList(Object, Form);
DocumentsClientServer.ChangeTitleGroupTitle(Object, Form);
EndIf;
EndProcedure
Procedure AfterWriteAtServer(Object, Form, CurrentObject, WriteParameters) Export
DocumentsClientServer.ChangeTitleGroupTitle(CurrentObject, Form);
EndProcedure
Procedure OnReadAtServer(Object, Form, CurrentObject) Export
If Not Form.GroupItems.Count() Then
SetGroupItemsList(Object, Form);
EndIf;
DocumentsClientServer.ChangeTitleGroupTitle(CurrentObject, Form);
LockDataModificationPrivileged.LockFormIfObjectIsLocked(Form, CurrentObject);
EndProcedure
#EndRegion
#Region GroupTitle
Procedure SetGroupItemsList(Object, Form)
AttributesArray = New Array();
AttributesArray.Add("Company");
AttributesArray.Add("Store");
DocumentsServer.DeleteUnavailableTitleItemNames(AttributesArray);
For Each Attr In AttributesArray Do
Form.GroupItems.Add(Attr, ?(ValueIsFilled(Form.Items[Attr].Title), Form.Items[Attr].Title,
Object.Ref.Metadata().Attributes[Attr].Synonym + ":" + Chars.NBSp));
EndDo;
EndProcedure
#EndRegion
#Region ListFormEvents
Procedure OnCreateAtServerListForm(Form, Cancel, StandardProcessing) Export
DocumentsServer.OnCreateAtServerListForm(Form, Cancel, StandardProcessing);
EndProcedure
#EndRegion
#Region ChoiceFormEvents
Procedure OnCreateAtServerChoiceForm(Form, Cancel, StandardProcessing) Export
DocumentsServer.OnCreateAtServerChoiceForm(Form, Cancel, StandardProcessing);
EndProcedure
#EndRegion
```
## Form module
### Document form module
- [ ] You need to find the most similar document to the one you need, for example - whether it has a table part 'ItemList' or not, and copy the code from there. Main regions:
- FORM
- _DATE
- COMPANY
- SERVICE
- [ ] Copy Form attribute:
- Description (String)
- GroupItems (ValueList)
- [ ] Copy command:
- ShowHiddenTables
- [ ] Copy from other document GroupTitle.
![](CreateNewDocument/GroupTitle.png)
- [ ] Copy Group `GroupHead`, `Page`, `GroupBottom`. It can be empty. It has to be like that:
![](CreateNewDocument/MinimalElementsForm.png)
### Document List and Choise form module
- [ ] You need to find the most similar document to the one you need, for example - whether it has a table part 'ItemList' or not, and copy the code from there. Main regions:
- FormEvents
- Commands
## Posting
- [ ] Add in module manager template
```bsl
#Region PrintForm
Function GetPrintForm(Ref, PrintFormName, AddInfo = Undefined) Export
Return Undefined;
EndFunction
#EndRegion
#Region Posting
Function PostingGetDocumentDataTables(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
Tables = New Structure;
QueryArray = GetQueryTextsSecondaryTables();
Parameters.Insert("QueryParameters", GetAdditionalQueryParameters(Ref));
PostingServer.ExecuteQuery(Ref, QueryArray, Parameters);
Return Tables;
EndFunction
Function PostingGetLockDataSource(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
DataMapWithLockFields = New Map;
Return DataMapWithLockFields;
EndFunction
Procedure PostingCheckBeforeWrite(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
Tables = Parameters.DocumentDataTables;
QueryArray = GetQueryTextsMasterTables();
PostingServer.SetRegisters(Tables, Ref);
PostingServer.FillPostingTables(Tables, Ref, QueryArray, Parameters);
EndProcedure
Function PostingGetPostingDataTables(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
PostingDataTables = New Map;
PostingServer.SetPostingDataTables(PostingDataTables, Parameters);
Return PostingDataTables;
EndFunction
Procedure PostingCheckAfterWrite(Ref, Cancel, PostingMode, Parameters, AddInfo = Undefined) Export
CheckAfterWrite(Ref, Cancel, Parameters, AddInfo);
EndProcedure
#EndRegion
#Region Undoposting
Function UndopostingGetDocumentDataTables(Ref, Cancel, Parameters, AddInfo = Undefined) Export
Return PostingGetDocumentDataTables(Ref, Cancel, Undefined, Parameters, AddInfo);
EndFunction
Function UndopostingGetLockDataSource(Ref, Cancel, Parameters, AddInfo = Undefined) Export
DataMapWithLockFields = New Map;
Return DataMapWithLockFields;
EndFunction
Procedure UndopostingCheckBeforeWrite(Ref, Cancel, Parameters, AddInfo = Undefined) Export
QueryArray = GetQueryTextsMasterTables();
PostingServer.ExecuteQuery(Ref, QueryArray, Parameters);
EndProcedure
Procedure UndopostingCheckAfterWrite(Ref, Cancel, Parameters, AddInfo = Undefined) Export
Parameters.Insert("Unposting", True);
CheckAfterWrite(Ref, Cancel, Parameters, AddInfo);
EndProcedure
#EndRegion
#Region CheckAfterWrite
Procedure CheckAfterWrite(Ref, Cancel, Parameters, AddInfo = Undefined)
Return;
EndProcedure
#EndRegion
#Region Posting_Info
Function GetInformationAboutMovements(Ref) Export
Str = New Structure;
Str.Insert("QueryParameters", GetAdditionalQueryParameters(Ref));
Str.Insert("QueryTextsMasterTables", GetQueryTextsMasterTables());
Str.Insert("QueryTextsSecondaryTables", GetQueryTextsSecondaryTables());
Return Str;
EndFunction
Function GetAdditionalQueryParameters(Ref)
StrParams = New Structure;
StrParams.Insert("Ref", Ref);
Return StrParams;
EndFunction
#EndRegion
#Region Posting_SourceTable
Function GetQueryTextsSecondaryTables()
QueryArray = New Array;
Return QueryArray;
EndFunction
#EndRegion
#Region Posting_MainTables
Function GetQueryTextsMasterTables()
QueryArray = New Array;
Return QueryArray;
EndFunction
#EndRegion
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

View File

@@ -1,4 +1,4 @@
#language: en
#language: en
@tree
@Positive
@BasicFormsCheck
@@ -933,6 +933,28 @@ Scenario: Open object form "ProductionCostsAllocation"
Then I raise "Failed to open document form ProductionCostsAllocation" exception
And I close current window
Scenario: Open list form "VisitorCounter"
And I close all client application windows
Given I open "VisitorCounter" document default form
If the warning is displayed then
Then I raise "Failed to open document form VisitorCounter" exception
And I close current window
Scenario: Open object form "VisitorCounter"
And I close all client application windows
Given I open "VisitorCounter" document main form
If the warning is displayed then
Then I raise "Failed to open document form VisitorCounter" exception
And I close current window
Scenario: Open choise form "VisitorCounter"
And I close all client application windows
And I execute the built-in language code (Extension)
| 'OpenForm("Document.VisitorCounter.ChoiceForm", , Undefined, , , , , FormWindowOpeningMode.Independent)' |
If the warning is displayed then
Then I raise "Failed to open document choise form VisitorCounter" exception
And I close current window
Scenario: Open choise form "ProductionCostsAllocation"
And I close all client application windows
And I execute the built-in language code (Extension)

View File

@@ -1760,8 +1760,38 @@ Scenario: _0260171 check filling payment agent in RRR
Scenario: _0260180 create document Visitor counter
And I close all client application windows
* Open document Visitor counter
Given I open hyperlink "e1cib/list/Document.VisitorCounter"
And I click the button named "FormCreate"
* Filling main attributes
And I select from the drop-down list named "Company" by "main" string
And I move to the next attribute
And I select from the drop-down list named "Store" by "store" string
And I move to the next attribute
And in the table "CounterData" I click the button named "CounterDataAdd"
And I input "18:00:00" text in "Time" field of "CounterData" table
And I activate "In" field in "CounterData" table
And I input "1" text in "In" field of "CounterData" table
And I activate "Out" field in "CounterData" table
And I input "2" text in "Out" field of "CounterData" table
And I finish line editing in "CounterData" table
And I move to "Other" tab
And I move to "More" tab
And I select from the drop-down list named "Branch" by "shop 01" string
And I click "Post" button
And I save the value of the field named "Number" as "NumberVisitorCounter"
And I click "Post and close" button
* Check
And "List" table contains lines
| 'Number' |
| '$NumberVisitorCounter$' |
And I close all client application windows

View File

@@ -2893,7 +2893,7 @@ Scenario: _0260160 check Get Last Error button
Scenario: _0260180 check fiscal logs
And I close all client application windows
Given I open hyperlink "e1cib/list/InformationRegister.HardwareLog"
Then the number of "List" table lines is "равно" "678"
Then the number of "List" table lines is "равно" "762"
* Check log records form
And I go to the first line in "List" table
And I select current line in "List" table