mirror of
				https://github.com/IRPTeam/IRP.git
				synced 2025-10-30 23:17:46 +02:00 
			
		
		
		
	#2350 #IRP-149 Access subsystem. Accumulation registers
This commit is contained in:
		| @@ -18,21 +18,48 @@ Procedure OnWrite(Cancel) | ||||
| 		Return; | ||||
| 	EndIf; | ||||
| 	 | ||||
| 	Query = New Query; | ||||
| 	Query.Text = | ||||
| 		"SELECT | ||||
| 		|	AccessProfilesRoles.Role | ||||
| 		|FROM | ||||
| 		|	Catalog.AccessProfiles.Roles AS AccessProfilesRoles | ||||
| 		|WHERE | ||||
| 		|	AccessProfilesRoles.Ref IN (&Ref) | ||||
| 		|GROUP BY | ||||
| 		|	AccessProfilesRoles.Role"; | ||||
| 	 | ||||
| 	Query.SetParameter("Ref", Profiles.UnloadColumn("Profile")); | ||||
| 	 | ||||
| 	RoleList = Query.Execute().Unload().UnloadColumn("Role"); | ||||
|  | ||||
| 	RegRule = InformationRegisters.T9101A_ObjectAccessRegisters.CreateRecordSet(); | ||||
| 	RegRule.Filter.AccessGroup.Set(ThisObject.Ref); | ||||
| 	RegRule.Write(); | ||||
|  | ||||
| 	If Not ThisObject.DeletionMark Then | ||||
| 		For Each RegInfo In Metadata.AccumulationRegisters Do | ||||
| 			FillRegistersAccessKeys(RegInfo); | ||||
| 			FillRegistersAccessKeys(RegInfo, RoleList); | ||||
| 		EndDo; | ||||
| 		For Each RegInfo In Metadata.InformationRegisters Do | ||||
| 			FillRegistersAccessKeys(RegInfo); | ||||
| 			FillRegistersAccessKeys(RegInfo, RoleList); | ||||
| 		EndDo; | ||||
| 	EndIf; | ||||
| EndProcedure | ||||
|  | ||||
| Procedure FillRegistersAccessKeys(RegInfo) | ||||
| Procedure FillRegistersAccessKeys(RegInfo, RoleList) | ||||
| 	 | ||||
| 	Skip = True; | ||||
| 	For Each Role In RoleList Do | ||||
| 		If AccessRight("Read", RegInfo, Metadata.Roles[Role]) Then | ||||
| 			Skip = False; | ||||
| 		EndIf; | ||||
| 	EndDo; | ||||
| 	 | ||||
| 	If Skip Then | ||||
| 		Return; | ||||
| 	EndIf; | ||||
| 	 | ||||
| 	Module = MetadataInfo.GetManager(RegInfo.FullName()); // AccumulationRegistersManager | ||||
| 	Try | ||||
| 		AccessKeys = Module.GetAccessKey(); | ||||
|   | ||||
| @@ -320,6 +320,107 @@ | ||||
|   <roles>Role.UseExternalReports</roles> | ||||
|   <roles>Role.UseGroupEditingProperties</roles> | ||||
|   <roles>Role.UseOutput</roles> | ||||
|   <roles>Role.AccumulationRegisters_CashInTransit</roles> | ||||
|   <roles>Role.AccumulationRegisters_DELETE_R8010B_TradeAgentInventory</roles> | ||||
|   <roles>Role.AccumulationRegisters_DELETE_R8011B_TradeAgentSerialLotNumber</roles> | ||||
|   <roles>Role.AccumulationRegisters_DELETE_R8012B_ConsignorInventory</roles> | ||||
|   <roles>Role.AccumulationRegisters_DELETE_R8013B_ConsignorBatchWiseBalance</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1001T_Purchases</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1002T_PurchaseReturns</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1005T_PurchaseSpecialOffers</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1010T_PurchaseOrders</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1011B_PurchaseOrdersReceipt</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1012B_PurchaseOrdersInvoiceClosing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1014T_CanceledPurchaseOrders</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1020B_AdvancesToVendors</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1021B_VendorsTransactions</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1022B_VendorsPaymentPlanning</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1031B_ReceiptInvoicing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R1040B_TaxesOutgoing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2001T_Sales</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2002T_SalesReturns</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2005T_SalesSpecialOffers</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2006T_Certificates</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2010T_SalesOrders</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2011B_SalesOrdersShipment</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2012B_SalesOrdersInvoiceClosing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2013T_SalesOrdersProcurement</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2014T_CanceledSalesOrders</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2020B_AdvancesFromCustomers</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2021B_CustomersTransactions</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2022B_CustomersPaymentPlanning</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2023B_AdvancesFromRetailCustomers</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2031B_ShipmentInvoicing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2040B_TaxesIncoming</roles> | ||||
|   <roles>Role.AccumulationRegisters_R2050T_RetailSales</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3010B_CashOnHand</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3011T_CashFlow</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3015B_CashAdvance</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3016B_ChequeAndBonds</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3021B_CashInTransitIncoming</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3022B_CashInTransitOutgoing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3024B_SalesOrdersToBePaid</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3025B_PurchaseOrdersToBePaid</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3026B_SalesOrdersCustomerAdvance</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3027B_EmployeeCashAdvance</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3035T_CashPlanning</roles> | ||||
|   <roles>Role.AccumulationRegisters_R3050T_PosCashBalances</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4010B_ActualStocks</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4011B_FreeStocks</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4012B_StockReservation</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4014B_SerialLotNumber</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4015T_InternalSupplyRequests</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4016B_InternalSupplyRequestOrdering</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4017B_InternalSupplyRequestProcurement</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4020T_StockTransferOrders</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4021B_StockTransferOrdersReceipt</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4022B_StockTransferOrdersShipment</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4031B_GoodsInTransitIncoming</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4032B_GoodsInTransitOutgoing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4033B_GoodsReceiptSchedule</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4034B_GoodsShipmentSchedule</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4035B_IncomingStocks</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4036B_IncomingStocksRequested</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4037B_PlannedReceiptReservationRequests</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4050B_StockInventory</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4051T_StockAdjustmentAsWriteOff</roles> | ||||
|   <roles>Role.AccumulationRegisters_R4052T_StockAdjustmentAsSurplus</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5010B_ReconciliationStatement</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5011B_CustomersAging</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5012B_VendorsAging</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5015B_OtherPartnersTransactions</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5021T_Revenues</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5022T_Expenses</roles> | ||||
|   <roles>Role.AccumulationRegisters_R5041B_TaxesPayable</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6010B_BatchWiseBalance</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6020B_BatchBalance</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6030T_BatchShortageOutgoing</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6040T_BatchShortageIncoming</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6050T_SalesBatches</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6060T_CostOfGoodsSold</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6070T_OtherPeriodsExpenses</roles> | ||||
|   <roles>Role.AccumulationRegisters_R6080T_OtherPeriodsRevenues</roles> | ||||
|   <roles>Role.AccumulationRegisters_R7010T_DetailingSupplies</roles> | ||||
|   <roles>Role.AccumulationRegisters_R7020T_MaterialPlanning</roles> | ||||
|   <roles>Role.AccumulationRegisters_R7030T_ProductionPlanning</roles> | ||||
|   <roles>Role.AccumulationRegisters_R7040T_ManualMaterialsCorretionInProduction</roles> | ||||
|   <roles>Role.AccumulationRegisters_R7050T_ProductionDurations</roles> | ||||
|   <roles>Role.AccumulationRegisters_R8014T_ConsignorSales</roles> | ||||
|   <roles>Role.AccumulationRegisters_R8015T_ConsignorPrices</roles> | ||||
|   <roles>Role.AccumulationRegisters_R8510B_BookValueOfFixedAsset</roles> | ||||
|   <roles>Role.AccumulationRegisters_R8515T_CostOfFixedAsset</roles> | ||||
|   <roles>Role.AccumulationRegisters_R9010B_SourceOfOriginStock</roles> | ||||
|   <roles>Role.AccumulationRegisters_R9510B_SalaryPayment</roles> | ||||
|   <roles>Role.AccumulationRegisters_R9545T_PaidVacations</roles> | ||||
|   <roles>Role.AccumulationRegisters_R9555T_PaidSickLeaves</roles> | ||||
|   <roles>Role.AccumulationRegisters_R9560T_AdditionalAccrual</roles> | ||||
|   <roles>Role.AccumulationRegisters_R9570T_AdditionalDeduction</roles> | ||||
|   <roles>Role.AccumulationRegisters_T1040T_AccountingAmounts</roles> | ||||
|   <roles>Role.AccumulationRegisters_T1050T_AccountingQuantities</roles> | ||||
|   <roles>Role.AccumulationRegisters_TM1010B_RowIDMovements</roles> | ||||
|   <roles>Role.AccumulationRegisters_TM1010T_RowIDMovements</roles> | ||||
|   <roles>Role.AccumulationRegisters_TM1020B_AdvancesKey</roles> | ||||
|   <roles>Role.AccumulationRegisters_TM1030B_TransactionsKey</roles> | ||||
|   <commonTemplates>CommonTemplate.HTMLPictureSlider</commonTemplates> | ||||
|   <commonTemplates>CommonTemplate.HTMLAddAttributes</commonTemplates> | ||||
|   <commonTemplates>CommonTemplate.HTMLGallery</commonTemplates> | ||||
|   | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="cbee1f2b-7b73-4d9e-9581-56e9e38fec5f"> | ||||
|   <name>AccumulationRegisters_CashInTransit</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters CashInTransit</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
							
								
								
									
										146
									
								
								IRP/src/Roles/AccumulationRegisters_CashInTransit/Rights.rights
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										146
									
								
								IRP/src/Roles/AccumulationRegisters_CashInTransit/Rights.rights
									
									
									
									
									
										Normal 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>AccumulationRegister.CashInTransit</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters( | ||||
| 	"Company", "FromAccount & ToAccount", "", "", "", | ||||
| 	"OAR.Value1 = Table.Company AND (OAR.Value2 = Table.FromAccount OR OAR.Value2 = Table.ToAccount)" | ||||
| )</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Dimension.CurrencyMovementType</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Dimension.FromAccount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.StandardAttribute.Recorder</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Dimension.Company</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Dimension.ToAccount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.StandardAttribute.LineNumber</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Dimension.BasisDocument</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Dimension.Currency</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Resource.Amount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.Attribute.DeferredCalculation</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.StandardAttribute.RecordType</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.StandardAttribute.Active</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.CashInTransit.StandardAttribute.Period</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="b2b20e78-879e-4403-9a45-daa2800dbcff"> | ||||
|   <name>AccumulationRegisters_DELETE_R8010B_TradeAgentInventory</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters DELETE R8010B TradeAgentInventory</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.DELETE_R8010B_TradeAgentInventory</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="74bde683-eb78-46e7-acbb-21e7de8b259e"> | ||||
|   <name>AccumulationRegisters_DELETE_R8011B_TradeAgentSerialLotNumber</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters DELETE R8011B TradeAgentSerialLotNumber</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.DELETE_R8011B_TradeAgentSerialLotNumber</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="e9bcb899-3d92-4712-863d-89dc23463080"> | ||||
|   <name>AccumulationRegisters_DELETE_R8012B_ConsignorInventory</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters DELETE R8012B ConsignorInventory</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.DELETE_R8012B_ConsignorInventory</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="7e35cea8-2b64-4ef6-854e-80fa402b0565"> | ||||
|   <name>AccumulationRegisters_DELETE_R8013B_ConsignorBatchWiseBalance</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters DELETE R8013B ConsignorBatchWiseBalance</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.DELETE_R8013B_ConsignorBatchWiseBalance</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Store", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="ff01000f-7433-4694-859b-90881e135641"> | ||||
|   <name>AccumulationRegisters_R1001T_Purchases</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1001T Purchases</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1001T_Purchases</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="e0dff4b3-75b1-4fe2-be93-fe0189a081e0"> | ||||
|   <name>AccumulationRegisters_R1002T_PurchaseReturns</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1002T PurchaseReturns</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1002T_PurchaseReturns</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="df206663-69ba-49a9-9667-42a7b2b2500f"> | ||||
|   <name>AccumulationRegisters_R1005T_PurchaseSpecialOffers</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1005T PurchaseSpecialOffers</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1005T_PurchaseSpecialOffers</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="63d9054a-128c-430f-8d42-6df6bf830a1d"> | ||||
|   <name>AccumulationRegisters_R1010T_PurchaseOrders</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1010T PurchaseOrders</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1010T_PurchaseOrders</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="55b01f11-d124-44e3-b584-778c84ea5c7c"> | ||||
|   <name>AccumulationRegisters_R1011B_PurchaseOrdersReceipt</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1011B PurchaseOrdersReceipt</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1011B_PurchaseOrdersReceipt</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="e5d9bd2d-c683-4981-9d67-2235fcd97109"> | ||||
|   <name>AccumulationRegisters_R1012B_PurchaseOrdersInvoiceClosing</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1012B PurchaseOrdersInvoiceClosing</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1012B_PurchaseOrdersInvoiceClosing</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="311c4d50-3086-4047-b4e4-321bfdac2b9b"> | ||||
|   <name>AccumulationRegisters_R1014T_CanceledPurchaseOrders</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1014T CanceledPurchaseOrders</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1014T_CanceledPurchaseOrders</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="5d6b2de1-ea88-4a1d-ae6c-3fc71b727e1d"> | ||||
|   <name>AccumulationRegisters_R1020B_AdvancesToVendors</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1020B AdvancesToVendors</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1020B_AdvancesToVendors</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="e3cda092-9dda-4dfd-b304-2148f5f0da58"> | ||||
|   <name>AccumulationRegisters_R1021B_VendorsTransactions</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1021B VendorsTransactions</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1021B_VendorsTransactions</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="01830054-35db-48c9-9701-ed2e57f89978"> | ||||
|   <name>AccumulationRegisters_R1022B_VendorsPaymentPlanning</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1022B VendorsPaymentPlanning</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1022B_VendorsPaymentPlanning</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="6b1c1963-7620-4b6d-8f61-37848437437c"> | ||||
|   <name>AccumulationRegisters_R1031B_ReceiptInvoicing</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1031B ReceiptInvoicing</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1031B_ReceiptInvoicing</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Store", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="0757ad30-dad2-4f0a-8f00-62f36e7c9d3f"> | ||||
|   <name>AccumulationRegisters_R1040B_TaxesOutgoing</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R1040B TaxesOutgoing</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R1040B_TaxesOutgoing</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="6a2ac082-d44f-46d2-be2d-331b2b73f2d2"> | ||||
|   <name>AccumulationRegisters_R2001T_Sales</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2001T Sales</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2001T_Sales</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="8b2736ba-87fd-4b73-944f-fbc6699a6f71"> | ||||
|   <name>AccumulationRegisters_R2002T_SalesReturns</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2002T SalesReturns</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2002T_SalesReturns</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="0a5e813f-0444-428c-be97-e79f94584808"> | ||||
|   <name>AccumulationRegisters_R2005T_SalesSpecialOffers</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2005T SalesSpecialOffers</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2005T_SalesSpecialOffers</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="2f2f8c2a-5b21-4ab9-a316-3603d8c9e6e9"> | ||||
|   <name>AccumulationRegisters_R2006T_Certificates</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2006T Certificates</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2006T_Certificates</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="b78c5c89-d888-4fd1-b462-b17c7d33eb09"> | ||||
|   <name>AccumulationRegisters_R2010T_SalesOrders</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2010T SalesOrders</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2010T_SalesOrders</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="4864207b-ec6c-4087-8bd0-eb89d4cc0785"> | ||||
|   <name>AccumulationRegisters_R2011B_SalesOrdersShipment</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2011B SalesOrdersShipment</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2011B_SalesOrdersShipment</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="86bcbd40-bee0-453c-afd8-a7f17f234d1f"> | ||||
|   <name>AccumulationRegisters_R2012B_SalesOrdersInvoiceClosing</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2012B SalesOrdersInvoiceClosing</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2012B_SalesOrdersInvoiceClosing</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="dbaf9b52-7055-479c-b9e0-2cd1b64b3dd8"> | ||||
|   <name>AccumulationRegisters_R2013T_SalesOrdersProcurement</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2013T SalesOrdersProcurement</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2013T_SalesOrdersProcurement</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="b9419aaa-0331-4860-a790-59da5e490ba1"> | ||||
|   <name>AccumulationRegisters_R2014T_CanceledSalesOrders</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2014T CanceledSalesOrders</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2014T_CanceledSalesOrders</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="86db1d53-48bd-4edc-b885-08e73e2fef21"> | ||||
|   <name>AccumulationRegisters_R2020B_AdvancesFromCustomers</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2020B AdvancesFromCustomers</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2020B_AdvancesFromCustomers</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="f639a363-29fe-4071-880f-8d657c8d6c1c"> | ||||
|   <name>AccumulationRegisters_R2021B_CustomersTransactions</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2021B CustomersTransactions</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2021B_CustomersTransactions</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="b9f4f60a-0d92-42a6-8e73-7215d44a5946"> | ||||
|   <name>AccumulationRegisters_R2022B_CustomersPaymentPlanning</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2022B CustomersPaymentPlanning</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2022B_CustomersPaymentPlanning</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="4498f272-ca2a-4190-a2c4-53258ec5f293"> | ||||
|   <name>AccumulationRegisters_R2023B_AdvancesFromRetailCustomers</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2023B AdvancesFromRetailCustomers</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2023B_AdvancesFromRetailCustomers</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="4400a0aa-bc07-49bd-b328-8c9d2f709300"> | ||||
|   <name>AccumulationRegisters_R2031B_ShipmentInvoicing</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2031B ShipmentInvoicing</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2031B_ShipmentInvoicing</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Store", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="37df6424-2477-4a4d-b4d7-a16285e81c5b"> | ||||
|   <name>AccumulationRegisters_R2040B_TaxesIncoming</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2040B TaxesIncoming</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R2040B_TaxesIncoming</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="816f1d35-4209-4567-8d03-df5b6155c2e9"> | ||||
|   <name>AccumulationRegisters_R2050T_RetailSales</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R2050T RetailSales</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,164 @@ | ||||
| <?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>AccumulationRegister.R2050T_RetailSales</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Store", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.StandardAttribute.Recorder</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.Store</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.Branch</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.ItemKey</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Resource.OffersAmount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.StandardAttribute.LineNumber</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.SerialLotNumber</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.RowKey</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.Company</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.StandardAttribute.Active</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.RetailSalesReceipt</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Resource.Quantity</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Resource.NetAmount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.StandardAttribute.Period</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Resource.Amount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R2050T_RetailSales.Dimension.SalesPerson</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="b9e29d90-4784-4d79-b752-d55af8135950"> | ||||
|   <name>AccumulationRegisters_R3010B_CashOnHand</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3010B CashOnHand</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3010B_CashOnHand</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="6ce5af74-be57-47a4-98a0-cabbd150dd9f"> | ||||
|   <name>AccumulationRegisters_R3011T_CashFlow</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3011T CashFlow</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,150 @@ | ||||
| <?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>AccumulationRegister.R3011T_CashFlow</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.StandardAttribute.Active</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.FinancialMovementType</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.Branch</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Resource.Amount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Attribute.DeferredCalculation</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.StandardAttribute.Recorder</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.PlanningPeriod</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.Direction</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.CurrencyMovementType</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.StandardAttribute.Period</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.Currency</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.StandardAttribute.LineNumber</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.Account</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3011T_CashFlow.Dimension.Company</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="341384fb-1f26-4739-afad-962046962f43"> | ||||
|   <name>AccumulationRegisters_R3015B_CashAdvance</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3015B CashAdvance</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3015B_CashAdvance</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="316fd275-7b36-40d9-9e51-a43aa4bad33b"> | ||||
|   <name>AccumulationRegisters_R3016B_ChequeAndBonds</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3016B ChequeAndBonds</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3016B_ChequeAndBonds</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="93763ddc-d1eb-4840-ba47-d4f81cdda978"> | ||||
|   <name>AccumulationRegisters_R3021B_CashInTransitIncoming</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3021B CashInTransitIncoming</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3021B_CashInTransitIncoming</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="8c06fe20-033a-47c5-8c30-d9df785a3bc3"> | ||||
|   <name>AccumulationRegisters_R3022B_CashInTransitOutgoing</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3022B CashInTransitOutgoing</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3022B_CashInTransitOutgoing</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="615e05b3-9e0e-4122-9e62-332cdfff9977"> | ||||
|   <name>AccumulationRegisters_R3024B_SalesOrdersToBePaid</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3024B SalesOrdersToBePaid</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3024B_SalesOrdersToBePaid</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="c58374a9-26f2-4d6b-90a4-9b3ef5c9e8e4"> | ||||
|   <name>AccumulationRegisters_R3025B_PurchaseOrdersToBePaid</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3025B PurchaseOrdersToBePaid</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3025B_PurchaseOrdersToBePaid</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="c66a5339-8fb6-43cf-8232-a7ba00cb45dd"> | ||||
|   <name>AccumulationRegisters_R3026B_SalesOrdersCustomerAdvance</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3026B SalesOrdersCustomerAdvance</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3026B_SalesOrdersCustomerAdvance</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="dd04137a-8ec7-4e94-aa65-f7320199b0fc"> | ||||
|   <name>AccumulationRegisters_R3027B_EmployeeCashAdvance</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3027B EmployeeCashAdvance</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,143 @@ | ||||
| <?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>AccumulationRegister.R3027B_EmployeeCashAdvance</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.StandardAttribute.RecordType</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.StandardAttribute.Recorder</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Dimension.Partner</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Dimension.Branch</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Attribute.DeferredCalculation</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Resource.Amount</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Dimension.Currency</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.StandardAttribute.Active</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Dimension.Company</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.StandardAttribute.LineNumber</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Dimension.TransactionCurrency</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.Dimension.CurrencyMovementType</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <object> | ||||
|     <name>AccumulationRegister.R3027B_EmployeeCashAdvance.StandardAttribute.Period</name> | ||||
|     <right> | ||||
|       <name>Edit</name> | ||||
|       <value>false</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="d1d54915-8928-41a8-bdc3-8444f9e49103"> | ||||
|   <name>AccumulationRegisters_R3035T_CashPlanning</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3035T CashPlanning</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3035T_CashPlanning</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="4e1af73c-33f7-4d4f-b4d9-8bcd35a48dfa"> | ||||
|   <name>AccumulationRegisters_R3050T_PosCashBalances</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R3050T PosCashBalances</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R3050T_PosCashBalances</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Account", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="f9bcf2e7-ca49-462b-8779-1d41eb50920c"> | ||||
|   <name>AccumulationRegisters_R4010B_ActualStocks</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R4010B ActualStocks</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R4010B_ActualStocks</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Store", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="a9d8641a-2900-4107-9b6e-e466120df36c"> | ||||
|   <name>AccumulationRegisters_R4011B_FreeStocks</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R4011B FreeStocks</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R4011B_FreeStocks</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Store", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="51b25b38-249d-40b3-b945-c906f7efc147"> | ||||
|   <name>AccumulationRegisters_R4012B_StockReservation</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R4012B StockReservation</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R4012B_StockReservation</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Store", "", "", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <mdclass:Role xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="cdc9475f-d281-4923-8567-165a3836052c"> | ||||
|   <name>AccumulationRegisters_R4014B_SerialLotNumber</name> | ||||
|   <synonym> | ||||
|     <key>en</key> | ||||
|     <value>AccumulationRegisters R4014B SerialLotNumber</value> | ||||
|   </synonym> | ||||
| </mdclass:Role> | ||||
| @@ -0,0 +1,52 @@ | ||||
| <?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>AccumulationRegister.R4014B_SerialLotNumber</name> | ||||
|     <right> | ||||
|       <name>Read</name> | ||||
|       <value>true</value> | ||||
|       <restrictionByCondition> | ||||
|         <condition>#AccessRegisters("Company", "Branch", "Store", "", "", "")</condition> | ||||
|       </restrictionByCondition> | ||||
|     </right> | ||||
|     <right> | ||||
|       <name>View</name> | ||||
|       <value>true</value> | ||||
|     </right> | ||||
|   </object> | ||||
|   <restrictionTemplate> | ||||
|     <name>AccessRegisters(D1, D2, D3, D4, D5, CompareRule)</name> | ||||
|     <condition> | ||||
| #If Not &UseObjectAccess #Then | ||||
| 	// Access restiction not using. Set UseObjectAccess functional option TRUE | ||||
| 	WHERE TRUE | ||||
| 	 | ||||
| #ElseIf  "#D1" = "" AND "#D2" = "" AND "#D3" = "" AND "#D4" = "" AND "#D5" = "" AND "#CompareRule" = "" #Then | ||||
| 	WHERE TRUE | ||||
| #Else | ||||
| Table | ||||
| WHERE TRUE IN  | ||||
| ( | ||||
| 	SELECT	TOP 1	 | ||||
| 		TRUE | ||||
| 	FROM		 | ||||
| 			 InformationRegister.T9101A_ObjectAccessRegisters AS OAR | ||||
| 	WHERE OAR.AccessGroup IN (&CurrentUserAccessGroupList) | ||||
| 		AND #CurrentTableName = OAR.TableName | ||||
| 		 | ||||
| 		#If "#CompareRule" = "" #Then | ||||
| 			#If Not "#D1" = "" #Then AND OAR.Value1 = Table.#D1 #EndIf | ||||
| 			#If Not "#D2" = "" #Then AND OAR.Value2 = Table.#D2 #EndIf | ||||
| 			#If Not "#D3" = "" #Then AND OAR.Value3 = Table.#D3 #EndIf | ||||
| 			#If Not "#D4" = "" #Then AND OAR.Value4 = Table.#D4 #EndIf | ||||
| 			#If Not "#D5" = "" #Then AND OAR.Value5 = Table.#D5 #EndIf | ||||
| 		#Else | ||||
| 			AND (#CompareRule) | ||||
| 		#EndIf | ||||
| ) | ||||
| #EndIf</condition> | ||||
|   </restrictionTemplate> | ||||
| </Rights> | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user