<?xml version="1.0" encoding="utf-8"?>
<document caption="Формирование данных по требованиям Минфина России" version="1.0.8" CRC="3481825374" javascriptDocumentClassName="F01500.FDocument">
  <rules>
    <import id="JSHandlebars" sourceFile="Scripts\handlebars-v4.0.5.js" />
    <import id="JSStageSettings" sourceFile="MainLogic\ObasStageSettings.js" />
    <import id="JSTableFieldInfo" sourceFile="MainLogic\TableFieldInfo.js" />
    <import id="JSEvents" sourceFile="MainLogic\Events.js" />
    <import id="JSTableInfo" sourceFile="MainLogic\TableInfo.js" />
    <import id="JSRROTables" sourceFile="MainLogic\RROTables.js" />
    <import id="JSSprTables" sourceFile="MainLogic\SprTables.js" />
    <import id="JSObasTableCollection" sourceFile="MainLogic\ObasTableCollection.js" />
    <import id="JSHelper" sourceFile="MainLogic\ObasHelper.js" />
    <import id="JSFormatCollection" sourceFile="MainLogic\SheetFormatCollection.js" />
    <import id="JSCommon" sourceFile="MainLogic\CommonRules.js" />
    <import id="JSSettings" sourceFile="MainLogic\DocumentSettings.js" />
    <import id="JSBaseDocument" sourceFile="MainLogic\BaseDocumentObject.js" />
    <import id="JSObasTableWithKeys" sourceFile="MainLogic\ObasTableWithKeys.js" />
    <import id="JSGroupSheet" sourceFile="MainLogic\GroupSheet.js" />
    <import id="JSAnalyticsKosguTable" sourceFile="MainLogic\FAnalyticsKosgu\FAnalyticsKosguTable.js" />
    <import id="JSUpdate" sourceFile="Templates\Logic\Current\F01_500\F01_500_UpdateRules.js" />
    <import id="JSInterface" sourceFile="Templates\Logic\Current\F01_500\F01_500_InterfaceRules.js" />
    <import id="JSTable" sourceFile="Templates\Logic\Current\F01_500\F01_500_TableRules.js" />
    <import id="JSExport" sourceFile="Templates\Logic\Current\F01_500\F01_500_ExportRules.js" />
    <import id="JSDocument" sourceFile="Templates\Logic\Current\F01_500\F01_500_Document.js" />
  </rules>
  <tables>
    <linkedtable id="FOIV" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="FCR" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="CSR" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="Program" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="SubProgram" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="DirectionCost" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="VR" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="MainAction" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="OBAS_SPR" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="NPAType" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="NPAStatuses" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="KOSGU" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="PaymentReestr" sourceFile="MainData\Spr_Forms_STAGE1.xml" />
    <linkedtable id="RRO_OBAS_VERSIONS" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_OBAS" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_DATA" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_OBAS_Recvisits" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_OBAS_SC" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_OBAS_Numbers" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="SecurityTypes" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="ChangeType" sourceFile="MainData\Spr_Ped.xml" />
    <linkedtable id="RRO_KU_Data" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="FileType" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="BuildParams" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_Expend_Shedule" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="SELECTED_FOIV" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_OfficeChiefRecvisits" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_FinanceChiefRecvisits" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="RRO_ExecutorRecvisits" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="tRRO_OBAS_VERSIONS" sourceFile="MainData\RRO_STAGE1.xml" />
    <linkedtable id="Files" sourceFile="MainData\Spr_Main.xml" />
    <linkedtable id="dual" sourceFile="MainData\Spr_Main.xml" />
    <table id="MainParameters" readonly="true" caption="Основные параметры" canAdd="false" canClear="false" canDelete="false">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="FOIV_ID" table="FOIV" tableKeyField="Key" tableFields="Code;Name" />
        <sourcefield name="FCR_ID" table="FCR" tableKeyField="Key" tableFields="Code;Name" />
        <sourcefield name="VR_ID" table="VR" tableKeyField="Key" tableFields="Code;Name" />
        <sourcefield name="CSR_ID" table="CSR" tableKeyField="Key" tableFields="Code;Name" />
        <sourcefield name="MainAction_ID" table="MainAction" tableKeyField="Key" tableFields="Code;Name" />
        <lookupfield name="FCR_NAME" keys="FCR_ID" lookupTable="FCR" lookupKeys="Key" lookupFields="Name" />
        <sourcefield name="RRO_OBAS_VERSIONS_ID" table="RRO_OBAS_VERSIONS" tableKeyField="Key" tableFields="Key" />
        <sourcefield name="FileType_ID" table="FileType" tableKeyField="Key" tableFields="Key" />
        <sourcefield name="Program_ID" table="Program" tableKeyField="Key" tableFields="Key" />
        <sourcefield name="SubProgram_ID" table="SubProgram" tableKeyField="Key" tableFields="Key" />
        <sourcefield name="DirectionCost_ID" table="DirectionCost" tableKeyField="Key" tableFields="Key" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
        </row>
      </data>
    </table>
    <table id="FormParameters" caption="Параметры формы" readonly="true">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="FormSecretType" datatype="integer" caption="Признак гостайны" />
        <field name="TableNameWithTotals" datatype="string" size="50" />
        <field name="TableWithKOSGU" datatype="string" size="50" />
        <field name="AnalyticsTable" datatype="string" size="50" />
        <field name="AnalyticsStartF" datatype="integer" caption="Начальный индекс обработки полей" />
        <field name="AnalyticsEndF" datatype="integer" caption="Конечный идекс обработки полей" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[F01_500_R1_TopSumValues]]></el>
          <el><![CDATA[KOSGU_Data]]></el>
        </row>
      </data>
    </table>
    <!--Ф01.500-->
    <table id="F01_500_R1_SumValues">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="PaymentReestr_ID" table="PaymentReestr" tableKeyField="Key" tableFields="Name" isUnique="true" />
        <field name="StrCode" datatype="string" size="1000" caption="Поле под код строки" />
        <field name="Y1" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1Values.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1Values.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1Values.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1Values.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[100]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[100]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[]]></el>
        </row>
      </data>
    </table>
    <table id="F01_500_R1_TopSumValues">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="IsTotal" datatype="integer" syncKey="true" />
        <field name="StrKey" datatype="integer" syncKey="true" />
        <field name="Y1" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1TopValues.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1TopValues.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP1TopValues.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" size="20" precision="2" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
        </row>
      </data>
      <rules>
        <rule name="%Doc%.CommonRules.SaveTotalTable" event="OnSave" />
      </rules>
    </table>
    <!--Раздел 1.1. Аналитический раздел-->
    <table id="Analytics_Rows" readonly="true">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="ParentKey" datatype="integer" />
        <sourcefield name="KOSGU_Id" table="KOSGU" tableKeyField="Key" tableFields="Code;Name" isNull="false" />
        <field name="AnalyticCode" datatype="string" size="10" />
        <field name="AnalyticName" datatype="string" size="500" />
        <field name="IsAgr" datatype="boolean" />
        <field name="BarsCode" datatype="string" size="10" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[200]]></el>
          <el><![CDATA[Расходы, всего]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[01]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[2]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[220]]></el>
          <el>
            <![CDATA[Оплата работ, услуг]]>
          </el>
          <el><![CDATA[]]></el>
          <el><![CDATA[02]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[3]]></el>
          <el><![CDATA[2]]></el>
          <el><![CDATA[3401832]]></el>
          <el><![CDATA[222]]></el>
          <el>
            <![CDATA[транспортные услуги]]>
          </el>
          <el><![CDATA[]]></el>
          <el><![CDATA[03]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[4]]></el>
          <el><![CDATA[2]]></el>
          <el><![CDATA[3401856]]></el>
          <el><![CDATA[226]]></el>
          <el>
            <![CDATA[прочие работы, услуги]]>
          </el>
          <el><![CDATA[]]></el>
          <el><![CDATA[04]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[5]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[290]]></el>
          <el><![CDATA[Прочие расходы]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[05]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[6]]></el>
          <el><![CDATA[5]]></el>
          <el><![CDATA[676421979]]></el>
          <el><![CDATA[296]]></el>
          <el><![CDATA[иные выплаты текущего характера физическим лицам]]></el>
          <el><![CDATA[]]></el>
          <el><![CDATA[06]]></el>
        </row>
      </data>
    </table>
    <table id="Analytics_Values" canDelete="false" canAdd="false">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="StrKey" table="Analytics_Rows" tableKeyField="Key" tableFields="Key" syncKey="true"/>
        <lookupfield name="OwnerKey" keys="StrKey" lookupTable="Analytics_Rows" lookupKeys="Key" lookupFields="ParentKey" />
        <lookupfield name="KOSGU_Id" keys="StrKey" lookupTable="Analytics_Rows" lookupKeys="Key" lookupFields="KOSGU_Id" />
        <lookupfield name="AnalyticCode" keys="StrKey" lookupTable="Analytics_Rows" lookupKeys="Key" lookupFields="AnalyticCode" />
        <lookupfield name="AnalyticName" keys="StrKey" lookupTable="Analytics_Rows" lookupKeys="Key" lookupFields="AnalyticName" />
        <lookupfield name="IsAgr" keys="StrKey" lookupTable="Analytics_Rows" lookupKeys="Key" lookupFields="IsAgr" />
        <field name="Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.AnalyticsDataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.AnalyticsDataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.AnalyticsDataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.AnalyticsDataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[3]]></el>
          <el><![CDATA[3]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[4]]></el>
          <el><![CDATA[4]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[6]]></el>
          <el><![CDATA[6]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[0]]></el>
        </row>
      </data>
    </table>
    <!--Раздел 2-->
    <table id="F01_500_r2_Pay">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="StrCode" datatype="string" size="3" />
        <field name="Year" datatype="integer" uniqueLabel="1">
          <rules>
            <rule name="%Doc%.CommonRules.YearInitEventHandler" event="OnInit" />
          </rules>
        </field>
        <sourcefield name="PaymentReestr_ID" isNull="false" uniqueLabel="1" caption="Выплата" table="PaymentReestr" tableKeyField="Key" tableFields="Name" />
        <field name="PayValue" datatype="float" size="20">
          <rules>
            <rule name="%Doc%.TableP2Data.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="PayCount" datatype="integer">
          <rules>
            <rule name="%Doc%.TableP2Data.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="ObasSum" datatype="float" size="20" precision="2">
          <rules>
            <rule name="%Doc%.TableP2Data.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="IsCopied" datatype="boolean">
          <rules>
            <rule name="ObasHelper.GetFalse" event="OnInit" />
          </rules>
        </field>
      </fields>
      <rules>
        <rule name="%Doc%.TableP2Data.EditEventHandler" event="OnEdit" />
        <rule name="%Doc%.TableP2Data.DeleteEventHandler" event="OnDelete" />
        <rule name="%Doc%.TableP2Data.AfterDeleteEventHandler" event="OnAfterDelete" />
      </rules>
    </table>
    <!--Раздел 3-->
    <table id="F01_500_3" canAdd="true" canDelete="true">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="PaymentName" datatype="string" size="500" isNull="false" />
        <field name="StrCode" datatype="string" size="4" />
        <sourcefield name="NPAType_ID" caption="Вид" isNull="false" table="NPAType" tableKeyField="Key" tableFields="Name" />
        <field name="NpaDate" datatype="datetime" isNull="false" />
        <field name="NpaNumber" datatype="string" size="50" isNull="false" />
        <field name="NpaName" datatype="string" size="2000" isNull="false" />
        <sourcefield name="NPAStatuses_ID" isNull="false" caption="статус" table="NPAStatuses" tableKeyField="Key" tableFields="Name" />
        <field name="NpaChangeDate" datatype="datetime" caption="предполагаемая дата изменения статуса" isNull="false" />
      </fields>
    </table>
    <table id="KOSGU_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="KOSGU_Id" table="KOSGU" tableKeyField="Key" tableFields="Key" syncKey="true" />
        <field name="SrcKey" datatype="integer" isDeltaValue="false" />
        <field name="Y1" datatype="float" precision="2" />
        <field name="Y2" datatype="float" precision="2" />
        <field name="Y3" datatype="float" precision="2" />
        <field name="Y4" datatype="float" precision="2" />
      </fields>
      <rules>
        <rule name="%Doc%.CommonRules.SaveKosguTable" event="OnSave" />
      </rules>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[27561076]]></el>
          <el><![CDATA[1]]></el>
        </row>
      </data>
    </table>
  </tables>
  <sheets>
    <gridsheet title="Раздел 1" name="SHT_F05_100_R1" exportable="false" caption="1. Расчет на иные выплаты, за исключением фонда оплаты труда, лицам, привлекаемым согласно законодательству Российской Федерации для выполнения отдельных полномочий" isShowColumnNumbers="true">
      <view table="F01_500_R1_SumValues" readonly="false" levelModifier="1">
        <col width="400" name="PaymentReestr_ID" caption="Наименование выплаты" />
        <col width="50" name="StrCode" align="center" caption="Код строки" />
        <view caption="Сумма">
          <template>
            <col width="150" name="Y{fieldName}" caption="на {caption} год" align="right" displayFormat=",0.00" />
            <rules>
              <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
              <rule name="%Doc%.CommonRules.GetYearsCaptionEventHandler" event="OnGetCaption" />
            </rules>
          </template>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P1Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P1Sheet.CalcEventHandler" event="OnCalc" />
        <rule name="%Doc%.P1Sheet.EditingCellEventHandler" event="OnEditingCell" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_RA" isShowColumnNumbers="true" title="Раздел 1.1" caption="1.1. Аналитическое распределение по КОСГУ">
      <view table="Analytics_Rows" readonly="true">
        <col name="AnalyticName" width="400" readonly="true" caption="Наименование показателя" />
        <col name="AnalyticCode" width="100" readonly="true" caption="Код по КОСГУ" align="center" />
        <view table="Analytics_Values" readonly="false">
          <view caption="Сумма, руб">
            <template>
              <col width="150" name="Y{fieldName}" caption="на {caption} год" displayFormat=",0.00" align="right" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange"/>
                <rule name="%Doc%.CommonRules.GetYearsCaptionEventHandler" event="OnGetCaption"/>
              </rules>
            </template>
          </view>
        </view>
      </view>
      <rules>
        <rule name="%Doc%.AnalyticSheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.AnalyticSheet.CalcEventHandler" event="OnCalc" />
        <rule name="%Doc%.AnalyticSheet.CanEditCellEventHandler" event="OnEditingCell" />
      </rules>
    </gridsheet>
    <groupsheet name="R2_YearGroup" caption="Раздел 2" />
    <gridsheet groupSheet="R2_YearGroup" title="Раздел 2.#Year" name="SHT_F01_500_R2_Y1" exportable="false" caption="2. Расчет на иные выплаты, за исключением фонда оплаты труда, лицам, привлекаемым согласно законодательству Российской Федерации для выполнения отдельных полномочий&#xD;&#xA;2.#Index Расчет на иные выплаты, за исключением фонда оплаты труда, лицам, привлекаемым согласно законодательству Российской Федерации для выполнения отдельных полномочий на #Year год" isShowColumnNumbers="true">
      <view table="F01_500_r2_Pay" levelModifier="1">
        <col width="400" caption="Наименование выплаты" name="PaymentReestr_ID" align="left" readonly="true" />
        <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
        <col width="150" caption="Размер выплаты,&#xD;&#xA;руб/чел в год" name="PayValue" align="right" displayFormat=",0.00" readonly="false" />
        <col width="160" caption="Численность получателей выплаты, чел." name="PayCount" align="right" readonly="false" />
        <col width="150" caption="Сумма, руб&#xD;&#xA;(гр.3 * гр.4)" name="ObasSum" align="right" displayFormat=",0.00" readonly="true" />
        <editors>
          <editor id="F01_500_r2_Editor_L2" />
        </editors>
        <rules>
          <rule name="%Doc%.P2GroupSheet.ViewLoadEventHandler" event="OnLoad" />
        </rules>
      </view>
      <view table="dual" readonly="true">
        <editors>
          <editor id="F01_500_r2_Editor_L2" canAdd="true" />
        </editors>
      </view>
      <rules>
        <rule name="%Doc%.P2GroupSheet.ActivateSheetEventHandler" event="OnActivateSheet" />
        <rule name="%Doc%.P2GroupSheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P2GroupSheet.CalcEventHandler" event="OnCalc" />
        <rule name="%Doc%.P2GroupSheet.CreateCaptionEventHandler" event="OnCreateTitle" />
        <rule name="%Doc%.P2GroupSheet.CreateCaptionEventHandler" event="OnCreateCaption" />
        <rule name="%Doc%.P2GroupSheet.ReadOnlyEventHandler" event="OnGetIsReadOnly" />
        <rule name="ObasHelper.GetFalse" event="OnCanEdit" />
      </rules>
    </gridsheet>
    <generatedsheet name="SHT_F01_500_R2_Y2" templateSheetName="SHT_F01_500_R2_Y1" />
    <generatedsheet name="SHT_F01_500_R2_Y3" templateSheetName="SHT_F01_500_R2_Y1" />
    <!--Раздел 3-->
    <gridsheet name="SHT_F01_500_R3" title="Раздел 3" caption="3. Сведения о нормативных правовых (правовых) актах, устанавливающих размер выплаты и (или) порядок расчета выплат" isShowColumnNumbers="true" isFilteringAllowed="true" groupSheet="R3_Group">
      <view table="F01_500_3" canAdd="true" readonly="false">
        <col width="250" caption="Наименование выплаты" name="PaymentName" align="left" readonly="true" />
        <col width="50" caption="Код строки" name="StrCode" align="center" readonly="true" />
        <view caption="Нормативный правовой (правовой) акт">
          <col width="250" caption="вид" name="NPAType_ID" align="left" readonly="true" />
          <col width="75" caption="дата" name="NpaDate" align="center" readonly="true" />
          <col width="75" caption="номер" name="NpaNumber" align="center" readonly="true" />
          <col width="350" caption="наименование" name="NpaName" align="left" readonly="true" />
          <col width="200" caption="статус" name="NPAStatuses_ID" align="left" readonly="true" />
          <col width="120" caption="предполагаемая дата изменения статуса" name="NpaChangeDate" align="center" readonly="true" />
        </view>
        <editors>
          <editor id="F01_500_3Editor" canAdd="true" />
        </editors>
      </view>
      <rules>
        <rule name="%Doc%.InterfaceRules.NpaSheetFormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.InterfaceRules.NpaSheetCalcEventHandler" event="OnCalc" />
      </rules>
    </gridsheet>
    <rules>
      <rule name="%Doc%.CommonRules.GetExcelFileName" event="OnGetExportFileName" />
      <rule name="%Doc%.CommonRules.GetExcelTemplateFileName" event="OnGetTemplateFileName" />
      <rule name="%Doc%.UpdateRules.UpdateTemplate" event="OnUpdateTemplate" />
      <rule name="%Doc%.CommonRules.CheckChangeType" event="OnBeforeDocumentSave" />
      <rule name="%Doc%.CommonRules.KosguDocumentSaveEventHandler" event="OnDocumentSave" />
      <rule name="%Doc%.CommonRules.GetExportDirectory" event="OnGetDefaultExportDirectory" />
    </rules>
  </sheets>
  <editors>
    <editor id="F01_500_r2_Editor_L2" caption="Выплата">
      <fieldssheet name="F01_500_r2_Editor_L2_1" table="F01_500_r2_Pay">
        <field name="PaymentReestr_ID" caption="Наименование выплаты:" />
      </fieldssheet>
    </editor>
    <!--Раздел 3-->
    <editor id="F01_500_3Editor" caption="Нормативный правовой акт" height="340">
      <fieldssheet name="VREditor1" table="F01_500_3">
        <field name="PaymentName" caption="Наименование выплаты" />
        <field name="NPAType_ID" caption="Вид" />
        <field name="NpaDate" caption="Дата" width="150" />
        <field name="NpaNumber" caption="Номер" />
        <field name="NpaName" caption="Наименование" />
        <field name="NPAStatuses_ID" width="330" caption="Статус" filterRule="%Doc%.InterfaceRules.FilterNPAStatuses" />
        <field name="NpaChangeDate" caption="Предполагаемая дата изменения статуса" />
      </fieldssheet>
    </editor>
  </editors>
  <menu>
    <menu caption="Сервис">
      <menu caption="Выполнить пересчет данных">
        <rules>
          <rule name="%Doc%.InterfaceRules.RecalcDataMenuItemClickEventHandler" event="OnClick" />
        </rules>
      </menu>
    </menu>
    <menu caption="Разработчик">
      <menu caption="Выполнить сдвиг данных">
        <rules>
          <rule name="%Doc%.InterfaceRules.ShiftDataMenuItemClickEventHandler" event="OnClick" />
        </rules>
      </menu>
      <menu caption="Выполнить копирование данных">
        <rules>
          <rule name="%Doc%.InterfaceRules.CopyDataMenuItemClickEventHandler" event="OnClick" />
        </rules>
      </menu>
    </menu>
  </menu>
  <files />
</document>