CalculationRegisterRecordSet.<Calculation register name>
Collection elements:
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:
DataExchange
Filter
ThisObject
Write
Methods:
CheckFilling
Clear
Count
Delete
Get
GetAddition
GetForm
IndexOf
Insert
Load
LoadColumn
Metadata
Modified
Move
Read
Selected
SetActive
Total
Unload
UnloadColumn
UnloadColumns
Write
Events:
FillCheckProcessing
OnWrite
Description:
The maximum number of records in a set is 999999999.
Availability:
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:
CalculationRegisterRecordSet, property ThisObject