CalculationRegisterRecordSet.<Calculation register name>

Collection elements:

CalculationRegisterRecord
Iteration through collection using For each ... In ... Do operator is available to object. Collection items are retrieved during iteration.
Access to collection item is possible using [...] operator. Record index (starting from 0) is passed as an argument.

Properties:

AdditionalProperties
DataExchange
Filter
ThisObject
Write

Methods:

Add
CheckFilling
Clear
Count
Delete
Get
GetAddition
GetForm
IndexOf
Insert
Load
LoadColumn
Metadata
Modified
Move
Read
Selected
SetActive
Total
Unload
UnloadColumn
UnloadColumns
Write

Events:

BeforeWrite
FillCheckProcessing
OnWrite

Description:

This is a collection of calculation register records. It enables the user to read records from the database for a particular recorder, and add, delete, or modify records in the set.
The maximum number of records in a set is 999999999.

Availability:

Server, thick client, external connection.
The given object may be serialized to/from XML. The given object may be serialized to/from XDTO. The XDTO type correspoding to this object is defined in {http://v8.1c.ru/8.1/data/enterprise/current-config} namespace. XDTO type name: CalculationRegisterRecordSet..

Example:

// Charges - generated table of charges values
Reg = CalculationRegisters.FocalChargesEmployeesOrganization;
RecordsSet4Test = Reg.CreateRecordSet();
RecordsSet4Test.Filter.Recorder.Value = Ref;
MainChargesType = Type("ChartOfCalculationTypesRef.MainOrgCharges");
For 
Each Charge In Charges Do
    If TypeOf(Charge.CalculationType) = MainChargesType Then
        Movement = RecordsSet4Test.Add();
        // properties
        Movement.RegistrationPeriod = RegistrationPeriod;
        Movement.CalculationType = Charge.CalculationType;
        Movement.BegOfActionPeriod = Charge.StartDate;
        Movement.EndOfActionPeriod = Charge.EndDate;
        // dimensions
        Movement.PhysPerson = Charge.PhysPerson;
        Movement.Commandment = Charge.Commandment;
        Movement.Organization = Organization;
        // attributes supporting a schedule
        Movement.WorkSchedule  = Charge.WorkSchedule ;
        Movement.TimeAccountType = Enums.TimeAccountTypes.ByDay;
    Else
        // processing other extra fees
        // ...
    EndIf;
EndDo
;
RecordsSet4Test.Write();

See also:

CalculationRegisterManager, method CreateRecordSet
CalculationRegisterRecordSet, property ThisObject

    

1C:Enterprise Developer's Community