<?xml version="1.0" encoding="utf-8"?>
<document caption="Формирование данных по требованиям Минфина России" version="1.0.7" CRC="3481825374" javascriptDocumentClassName="F05320.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="JSSingleSheet" sourceFile="MainLogic\SingleSheet.js" />
    <import id="JSGroupSheet" sourceFile="MainLogic\GroupSheet.js" />
    <import id="JSSubsidiesInterface" sourceFile="MainLogic\FSubsidiesSubventions\FSubsidiesSubvetionsSheet.js" />
    <import id="JSSubsidiesTable" sourceFile="MainLogic\FSubsidiesSubventions\FSubsidiesSubvetionsTable.js" />
    <import id="JSExport" sourceFile="Templates\Logic\Current\F05_320\F05_320_ExportRules.js" />
    <import id="JSInterface" sourceFile="Templates\Logic\Current\F05_320\F05_320_InterfaceRules.js" />
    <import id="JSTable" sourceFile="Templates\Logic\Current\F05_320\F05_320_TableRules.js" />
    <import id="JSUpdate" sourceFile="Templates\Logic\Current\F05_320\F05_320_UpdateRules.js" />
    <import id="JSDocument" sourceFile="Templates\Logic\Current\F05_320\F05_320_Document.js" />
  </rules>
  <tables>
    <!-- Справочники из файла Spr_Main.xml-->
    <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="KOSGU" sourceFile="MainData\Spr_Main.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="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="SELECTED_FOIV" 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" />
    <linkedtable id="SubjectName" sourceFile="MainData\Spr_Forms_STAGE1.xml" />
    <linkedtable id="ScienceCityName" sourceFile="MainData\Spr_Forms_STAGE1.xml" />
    <linkedtable id="SecurityAdmTerrEntityName" sourceFile="MainData\Spr_Forms_STAGE1.xml" />
    <linkedtable id="MunicipalEntityName" sourceFile="MainData\Spr_Forms_STAGE1.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" />
        <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" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[0]]></el>
          <el><![CDATA[F05_320_P1_Values]]></el>
          <el><![CDATA[KOSGU_Data]]></el>
        </row>
      </data>
    </table>
    <table id="F05_320_P1_Rows" readonly="true">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="StrCode" datatype="string" size="3" />
        <field name="Name" datatype="string" size="500" caption="Наименование" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[010]]></el>
          <el><![CDATA[Субвенция на обеспечение инвалидов техническими средствами реабилитации, включая изготовление и ремонт протезно-ортопедических изделий]]></el>
        </row>
      </data>
    </table>
    <table id="F05_320_P1_Values" caption="1. Расходы на предоставление субвенции">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="StrKey" datatype="integer" syncKey="true" />
        <field name="IsTotal" datatype="integer" syncKey="true" />
        <field name="Y1" datatype="float" size="20" precision="2" />
        <field name="Y2" datatype="float" size="20" precision="2" />
        <field name="Y3" datatype="float" size="20" precision="2" />
        <field name="Y4" datatype="float" size="20" precision="2" />
      </fields>
      <rules>
        <rule name="%Doc%.CommonRules.SaveTotalTable" event="OnSave" />
      </rules>
      <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>
    </table>
    <table id="F05_320_P2_TopRows" readonly="true">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="StrCode" datatype="string" size="3" />
        <field name="Name" datatype="string" size="500" caption="Наименование" />
      </fields>
      <data>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[3]]></el>
          <el><![CDATA[700]]></el>
          <el><![CDATA[Распределяемый объем]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[2]]></el>
          <el><![CDATA[800]]></el>
          <el><![CDATA[Нераспределенный резерв]]></el>
        </row>
        <row>
          <el><![CDATA[]]></el>
          <el><![CDATA[1]]></el>
          <el><![CDATA[900]]></el>
          <el><![CDATA[Итого]]></el>
        </row>
      </data>
    </table>
    <table id="InvalidProtez">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="Code" datatype="string" size="10" caption="Код" isNull="false" uniqueLabel="1" />
        <field name="Name" datatype="string" size="500" caption="Наименование" isNull="false" uniqueLabel="1" />
      </fields>
    </table>
    <table id="InvalidService">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="Code" datatype="string" size="10" caption="Код" isNull="false" uniqueLabel="1" />
        <field name="Name" datatype="string" size="500" caption="Наименование" isNull="false" uniqueLabel="1" />
      </fields>
    </table>
    <table id="VeteranProtez">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="Code" datatype="string" size="10" caption="Код" isNull="false" uniqueLabel="1" />
        <field name="Name" datatype="string" size="500" caption="Наименование" isNull="false" uniqueLabel="1" />
      </fields>
    </table>
    <table id="F05_320_Subjects">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <field name="StrCode" datatype="string" size="3" />
        <field name="Name" datatype="string" size="400" caption="Наименование субъекта Российской Федерации/отдельных муниципальных образований" />
        <sourcefield name="SubjectName_ID" caption="Наименование субъекта РФ" table="SubjectName" tableKeyField="Key" tableFields="Name" uniqueLabel="1" syncKey="true">
          <rules>
            <rule name="%Doc%.SubjectsTable.SourceFieldChangeEventHandler" event="OnChange" />
          </rules>
        </sourcefield>
        <sourcefield name="ScienceCityName_ID" caption="Наукограды Российской Федерации" table="ScienceCityName" tableKeyField="Key" tableFields="Name" uniqueLabel="2" syncKey="true">
          <rules>
            <rule name="%Doc%.SubjectsTable.SourceFieldChangeEventHandler" event="OnChange" />
          </rules>
        </sourcefield>
        <sourcefield name="SecurityAdmTerrEntityName_ID" caption="Закрытые административно-территориальные образования" table="SecurityAdmTerrEntityName" tableKeyField="Key" tableFields="Name" uniqueLabel="3" syncKey="true">
          <rules>
            <rule name="%Doc%.SubjectsTable.SourceFieldChangeEventHandler" event="OnChange" />
          </rules>
        </sourcefield>
        <sourcefield name="MunicipalEntityName_ID" caption="Муниципальные образования" table="MunicipalEntityName" tableKeyField="Key" tableFields="Name" uniqueLabel="4" syncKey="true">
          <rules>
            <rule name="%Doc%.SubjectsTable.SourceFieldChangeEventHandler" event="OnChange" />
          </rules>
        </sourcefield>
      </fields>
    </table>
    <table id="F05_320_Subjects_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="OwnerKey" table="F05_320_Subjects" syncKey="true" tableKeyField="Key" tableFields="Key">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.OwnerKey.InitEventHandler" event="OnInit" />
          </rules>
        </sourcefield>
        <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" />
        <field name="Invalid_Protez_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Protez_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Protez_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Protez_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Service_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Service_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Service_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Service_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Invalid_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Protez_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Protez_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Protez_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Protez_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Service_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Service_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Service_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Service_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SocialPaySumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Veteran_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="AdmCosts_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="AdmCosts_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="AdmCosts_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="AdmCosts_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.SubjectsDataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
    </table>
    <table id="F05_320_Invalid_Protez_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="OwnerKey" table="F05_320_Subjects" tableKeyField="Key" tableFields="Name" uniqueLabel="1" caption="Наименование субъекта Российской Федерации/отдельных муниципальных образований">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.OwnerKey.InitEventHandler" event="OnInit" />
          </rules>
        </sourcefield>
        <field name="StrCode" datatype="string" size="5" />
        <sourcefield name="InvalidProtez_ID" caption="Наименование протеза(средства реабилитации)" table="InvalidProtez" tableKeyField="Key" tableFields="Name" isNull="false" uniqueLabel="1" />
        <field name="Count_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
      <rules>
        <rule name="%Doc%.P3Sp1DataTable.AfterDeleteChildsEventHandler" event="OnAfterDeleteChilds" />
      </rules>
    </table>
    <table id="F05_320_Invalid_Service_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="OwnerKey" table="F05_320_Subjects" tableKeyField="Key" tableFields="Name" uniqueLabel="1" caption="Наименование субъекта Российской Федерации/отдельных муниципальных образований">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.OwnerKey.InitEventHandler" event="OnInit" />
          </rules>
        </sourcefield>
        <field name="StrCode" datatype="string" size="5" />
        <sourcefield name="InvalidService_ID" caption="Наименование услуги" table="InvalidService" tableKeyField="Key" tableFields="Name" isNull="false" uniqueLabel="1" />
        <field name="Count_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P3Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
      <rules>
        <rule name="%Doc%.P3Sp2DataTable.AfterDeleteChildsEventHandler" event="OnAfterDeleteChilds" />
      </rules>
    </table>
    <table id="F05_320_Veteran_Protez_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="OwnerKey" table="F05_320_Subjects" tableKeyField="Key" tableFields="Name" uniqueLabel="1" caption="Наименование субъекта Российской Федерации/отдельных муниципальных образований">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.OwnerKey.InitEventHandler" event="OnInit" />
          </rules>
        </sourcefield>
        <field name="StrCode" datatype="string" size="5" />
        <sourcefield name="VeteranProtez_ID" caption="Наименование протеза, протезно-ортопедического изделия" table="VeteranProtez" tableKeyField="Key" tableFields="Name" isNull="false" uniqueLabel="1" />
        <field name="Count_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp1DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
      <rules>
        <rule name="%Doc%.P4Sp1DataTable.AfterDeleteChildsEventHandler" event="OnAfterDeleteChilds" />
      </rules>
    </table>
    <table id="F05_320_Veteran_Service_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="OwnerKey" table="F05_320_Subjects" tableKeyField="Key" tableFields="Name" uniqueLabel="1" caption="Наименование субъекта Российской Федерации/отдельных муниципальных образований">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.OwnerKey.InitEventHandler" event="OnInit" />
          </rules>
        </sourcefield>
        <field name="StrCode" datatype="string" size="5" />
        <sourcefield name="VeteranProtez_ID" caption="Наименование протеза, протезно-ортопедического изделия" table="VeteranProtez" tableKeyField="Key" tableFields="Name" isNull="false" uniqueLabel="1" />
        <field name="Count_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Count_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Price_Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y1" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y2" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y3" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Y4" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P4Sp2DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
      </fields>
      <rules>
        <rule name="%Doc%.P4Sp2DataTable.AfterDeleteChildsEventHandler" event="OnAfterDeleteChilds" />
      </rules>
    </table>
    <table id="F05_320_AdmCosts_Data">
      <fields>
        <field name="Id" datatype="guid" />
        <field name="Key" datatype="integer" />
        <sourcefield name="OwnerKey" table="F05_320_Subjects" uniqueLabel="1" tableKeyField="Key" tableFields="Key">
          <rules>
            <rule name="%Doc%.P5DataTable.OwnerKey.InitEventHandler" event="OnInit" />
          </rules>
        </sourcefield>
        <field name="Year" datatype="integer" caption="Год" uniqueLabel="1">
          <rules>
            <rule name="%Doc%.CommonRules.YearInitEventHandler" event="OnInit" />
          </rules>
        </field>
        <field name="Count" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="SumParts" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Salary" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Rent" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Communication" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Transport" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="PublicService" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Travel" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="Stuff" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.SumPartsChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="AdmCosts" datatype="float" precision="2">
          <rules>
            <rule name="%Doc%.P5DataTable.TotalChangeEventHandler" event="OnChange" />
          </rules>
        </field>
        <field name="IsCopied" datatype="boolean">
          <rules>
            <rule name="ObasHelper.GetFalse" event="OnInit" />
          </rules>
        </field>
      </fields>
      <rules>
        <rule name="%Doc%.P5DataTable.EditEventHandler" event="OnEdit" />
      </rules>
    </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 name="SHT_P1" title="Раздел 1" caption="1. Расходы на предоставление субвенции" isShowColumnNumbers="true">
      <view table="F05_320_P1_Rows" readonly="true">
        <col width="500" caption="Наименование показателя" name="Name" align="left" readonly="true" />
        <view table="F05_320_P1_Values" caption="Сумма" masterKeys="StrKey" detailKeys="Key" readonly="true">
          <template>
            <col width="100" name="Y{fieldName}" caption="на {caption} год" readonly="true" align="right" displayFormat=",0.00" />
            <rules>
              <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
              <rule name="%Doc%.CommonRules.GetYearsCaptionEventHandler" event="OnGetCaption" />
            </rules>
          </template>
        </view>
      </view>
      <rules>
        <rule name="%Doc%.P1Sheet.FormatEventHandler" event="OnGetFormat" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P2" title="Раздел 2" caption="2. Распределение расходов на предоставление субвенции между субъектами Российской Федерации" isShowColumnNumbers="true">
      <view table="F05_320_Subjects" readonly="true">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/отдельных муниципальных образований" />
        <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
        <view table="F05_320_Subjects_Data" readonly="true" caption="Объем предоставляемой субвенции">
          <view caption="всего">
            <template>
              <col width="100" 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 caption="в том числе:">
            <view caption="на обеспечение инвалидов техническими средствами реабилитации и услугами">
              <template>
                <col width="100" name="Invalid_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 caption="на обеспечение отдельных категорий граждан из числа ветеранов протезами, протезно-ортопедическими изделиями и услугами по их ремонту">
              <template>
                <col width="100" name="Veteran_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 caption="на административные расходы для осуществления функций в соответствии с переданными полномочиями">
              <template>
                <col width="100" name="AdmCosts_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>
      </view>
      <view table="F05_320_P2_TopRows" readonly="true">
        <col name="Name" columnName="Name" />
        <col name="StrCode" columnName="StrCode" />
        <view table="F05_320_P1_Values" readonly="false" masterKeys="StrKey" detailKeys="F05_320_P2_TopRows.Key">
          <template>
            <col name="Y{fieldName}" columnName="Y{columnName}" />
            <rules>
              <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
            </rules>
          </template>
        </view>
      </view>
      <rules>
        <rule name="%Doc%.P2Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P2Sheet.CalcEventHandler" event="OnCalc" />
        <rule name="ObasHelper.GetFalse" event="OnCanAdd" />
        <rule name="ObasHelper.GetFalse" event="OnCanDelete" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P3" title="Раздел 3" caption="3. Расчет размера предоставляемой  субвенции на обеспечение инвалидов техническими средствами реабилитации и услугами" isShowColumnNumbers="true">
      <view table="F05_320_Subjects" readonly="true">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования " />
        <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
        <view table="F05_320_Subjects_Data" readonly="true" caption="Размер предоставляемой субвенции на обеспечение инвалидов">
          <view caption="техническими средствами реабилитации">
            <template>
              <col width="100" name="Invalid_Protez_Y{fieldName}" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P3Sheet.GetCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <view caption="услугами">
            <template>
              <col width="100" name="Invalid_Service_Y{fieldName}" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P3Sheet.GetCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <view caption="техническими средствами реабилитации и услугами">
            <template>
              <col width="100" name="Invalid_Y{fieldName}" readonly="true" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P3Sheet.GetYearsCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P3Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P3Sheet.CalcEventHandler" event="OnCalc" />
        <rule name="ObasHelper.GetFalse" event="OnCanAdd" />
        <rule name="ObasHelper.GetFalse" event="OnCanDelete" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P3_1" title="Раздел 3.1" caption="3.1 Расчет размера предоставляемой  субвенции на обеспечение инвалидов техническими средствами реабилитации и услугами" isShowColumnNumbers="true">
      <view table="F05_320_Subjects">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования " isMergeCells="true" />
        <view table="F05_320_Invalid_Protez_Data" levelModifier="1">
          <col width="250" caption="Наименование технического средства реабилитации" readonly="true" name="InvalidProtez_ID" align="left" />
          <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
          <view caption="Численность получателей технического средства реабилитации, чел">
            <template>
              <col width="100" name="Count_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 caption="Средняя стоимость технического средства реабилитации, руб">
            <template>
              <col width="100" name="Price_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 caption="Размер предоставляемой  субвенции на обеспечение инвалидов техническими средствами реабилитации, руб">
            <template>
              <col width="100" name="Y{fieldName}" readonly="true" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P3Sp1Sheet.GetYearsCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <editors>
            <editor id="F05_320_R3_1_Protez_Editor" canAdd="true" />
          </editors>
        </view>
        <view table="dual" readonly="true">
          <editors>
            <editor id="F05_320_R3_1_Protez_Editor" canAdd="true" />
          </editors>
        </view>
        <editors>
          <editor id="F05_320_R2_Subject_Editor" canAdd="true" />
          <editor id="F05_320_R2_ScienceCityName_Editor" canAdd="true" />
          <editor id="F05_320_R2_SecurityAdmTerrEntityName_Editor" canAdd="true" />
          <editor id="F05_320_R2_MunicipalEntityName_Editor" canAdd="true" />
        </editors>
      </view>
      <view table="dual" readonly="true">
        <editors>
          <editor id="F05_320_R2_Subject_Editor" canAdd="true" />
          <editor id="F05_320_R2_ScienceCityName_Editor" canAdd="true" />
          <editor id="F05_320_R2_SecurityAdmTerrEntityName_Editor" canAdd="true" />
          <editor id="F05_320_R2_MunicipalEntityName_Editor" canAdd="true" />
        </editors>
      </view>
      <rules>
        <rule name="%Doc%.P3Sp1Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P3Sp1Sheet.CalcEventHandler" event="OnCalc" />
        <rule name="%Doc%.P3Sp1Sheet.EditorIdEventHandler" event="OnGetCallEditorID" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P3_2" title="Раздел 3.2" caption="3.2. Расчет размера предоставляемой субвенции на обеспечение инвалидов услугами" isShowColumnNumbers="true">
      <view table="F05_320_Subjects" readonly="true">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования " isMergeCells="true" />
        <view table="F05_320_Invalid_Service_Data" levelModifier="1" readonly="false">
          <col width="250" caption="Наименование услуги" readonly="true" name="InvalidService_ID" align="left" />
          <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
          <view caption="Численность получателей услуги, чел">
            <template>
              <col width="100" name="Count_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 caption="Средняя стоимость услуги, руб">
            <template>
              <col width="100" name="Price_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 caption="Размер предоставляемой субвенции на обеспечение инвалидов услугами, руб">
            <template>
              <col width="100" name="Y{fieldName}" readonly="true" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P3Sp2Sheet.GetYearsCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <editors>
            <editor id="F05_320_R3_1_Service_Editor" canAdd="true" />
          </editors>
        </view>
        <view table="dual" readonly="true">
          <editors>
            <editor id="F05_320_R3_1_Service_Editor" canAdd="true" />
          </editors>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P3Sp2Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P3Sp2Sheet.CalcEventHandler" event="OnCalc" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P4" title="Раздел 4" caption="4. Расчет размера предоставляемой субвенции на обеспечение отдельных категорий граждан из числа ветеранов протезами, протезно-ортопедическими изделиями и услугами по их ремонту" isShowColumnNumbers="true">
      <view table="F05_320_Subjects" readonly="true">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования " />
        <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
        <view table="F05_320_Subjects_Data" readonly="true" caption="Размер предоставляемой субвенции на обеспечение инвалидов ">
          <view caption="протезами, протезно-ортопедическими изделиями">
            <template>
              <col width="100" name="Veteran_Protez_Y{fieldName}" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P4Sheet.GetCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <view caption="услугами по ремонту протезов, протезно-ортопедических изделий">
            <template>
              <col width="100" name="Veteran_Service_Y{fieldName}" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P4Sheet.GetCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <view caption="протезами, протезно-ортопедическими изделиями и услугами по их ремонту">
            <template>
              <col width="100" name="Veteran_Y{fieldName}" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P4Sheet.GetYearsCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P4Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P4Sheet.CalcEventHandler" event="OnCalc" />
        <rule name="ObasHelper.GetFalse" event="OnCanAdd" />
        <rule name="ObasHelper.GetFalse" event="OnCanDelete" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P4_1" title="Раздел 4.1" caption="4.1. Расчет размера предоставляемой субвенции на обеспечение отдельных категорий граждан из числа ветеранов протезами, протезно-ортопедическими изделиями" isShowColumnNumbers="true">
      <view table="F05_320_Subjects" readonly="true">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования " isMergeCells="true" />
        <view table="F05_320_Veteran_Protez_Data" levelModifier="1" readonly="false">
          <col width="250" caption="Наименование протеза, протезно-ортопедического изделия" readonly="true" name="VeteranProtez_ID" align="left" />
          <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
          <view caption="Численность получателей вида протеза (изделия), чел">
            <template>
              <col width="100" name="Count_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 caption="Средняя стоимость вида протеза (изделия), руб ">
            <template>
              <col width="100" name="Price_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 caption="Размер предоставляемой субвенции на обеспечение отдельных категорий граждан из числа ветеранов протезами, протезно-ортопедическими изделиями, руб">
            <template>
              <col width="100" name="Y{fieldName}" readonly="true" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P4Sp1Sheet.GetYearsCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <editors>
            <editor id="F05_320_R4_1_Protez_Editor" canAdd="true" />
          </editors>
        </view>
        <view table="dual" readonly="true">
          <editors>
            <editor id="F05_320_R4_1_Protez_Editor" canAdd="true" />
          </editors>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P4Sp1Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P4Sp1Sheet.CalcEventHandler" event="OnCalc" />
      </rules>
    </gridsheet>
    <gridsheet name="SHT_P4_2" title="Раздел 4.2" caption="4.2. Расчет размера предоставляемой  субвенции на обеспечение отдельных категорий граждан из числа ветеранов услугами по ремонту протезов, протезно-ортопедических изделий" isShowColumnNumbers="true">
      <view table="F05_320_Subjects" readonly="true">
        <col width="250" name="Name" align="left" readonly="true" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования " isMergeCells="true" />
        <view table="F05_320_Veteran_Service_Data" levelModifier="1" readonly="false">
          <col width="250" caption="Наименование протеза, протезно-ортопедического изделия" readonly="true" name="VeteranProtez_ID" align="left" />
          <col width="50" caption="Код строки" readonly="true" name="StrCode" align="center" />
          <view caption="Численность получателей услуг по ремонту вида протеза (изделия), чел">
            <template>
              <col width="100" name="Count_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 caption="Средняя стоимость  услуги по ремонту вида протеза (изделия), руб">
            <template>
              <col width="100" name="Price_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 caption=" Размер предоставляемой субвенции на обеспечение отдельных категорий граждан из числа ветеранов услугами по ремонту протезов, протезно-ортопедических изделий,  руб">
            <template>
              <col width="100" name="Y{fieldName}" readonly="true" caption="{caption}" align="right" displayFormat=",0.00" />
              <rules>
                <rule name="%Doc%.CommonRules.GetYearsFieldRangeEventHandler" event="OnGetFieldsRange" />
                <rule name="%Doc%.P4Sp2Sheet.GetYearsCaptionEventHandler" event="OnGetCaption" />
              </rules>
            </template>
          </view>
          <editors>
            <editor id="F05_320_R4_2_Protez_Editor" canAdd="true" />
          </editors>
        </view>
        <view table="dual" readonly="true">
          <editors>
            <editor id="F05_320_R4_2_Protez_Editor" canAdd="true" />
          </editors>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P4Sp2Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P4Sp2Sheet.CalcEventHandler" event="OnCalc" />
      </rules>
    </gridsheet>
    <groupsheet name="Group_R5" caption="Раздел 5" />
    <gridsheet name="SHT_F05_320_R5_Y1" groupSheet="Group_R5" exportable="false" title="Раздел 5.#Index" isShowColumnNumbers="true" caption="Раздел 5. Расчет размера предоставляемой  субвенции на административные расходы для осуществления функций в соответствии с переданными полномочиями&#xD;&#xA;5.#Index. Расчет размера предоставляемой  субвенции на #Year год">
      <view table="F05_320_Subjects" readonly="true">
        <col width="300" name="Name" align="left" caption="Наименование субъекта Российской Федерации/ отдельного муниципального образования" readonly="true" />
        <col width="50" name="StrCode" align="center" caption="Код строки" readonly="true" />
        <view table="F05_320_AdmCosts_Data" readonly="false">
          <col width="100" name="Count" align="right" caption="Численность сотрудников, чел" displayFormat=",0.00" />
          <view caption="Затраты  на содержание 1 сотрудника (в год), руб">
            <col width="150" name="SumParts" align="right" caption="Всего&#xD;&#xA;(гр. 5 + гр. 6 + гр. 7 + гр. 8 + гр. 9 + гр. 10 + гр. 11)" displayFormat=",0.00" readonly="true" />
            <view caption="в том числе:">
              <col width="150" name="Salary" align="right" caption="расходы на оплату труда сотрудников, включая налоговые начисления" displayFormat=",0.00" />
              <col width="150" name="Rent" align="right" caption="расходы на оплату аренды помещений" displayFormat=",0.00" />
              <col width="150" name="Communication" align="right" caption="расходы на оплату услуг связи" displayFormat=",0.00" />
              <col width="150" name="Transport" align="right" caption="расходы на оплату транспортных услуг" displayFormat=",0.00" />
              <col width="150" name="PublicService" align="right" caption="расходы на оплату коммунальных услуг" displayFormat=",0.00" />
              <col width="150" name="Travel" align="right" caption="командировочные расходы" displayFormat=",0.00" />
              <col width="180" name="Stuff" align="right" caption="расходы на обеспечение мебелью, инвентарем, оргтехникой, средствами связи, расходными материалами" displayFormat=",0.00" />
            </view>
          </view>
          <col width="200" name="AdmCosts" align="right" caption="Размер предоставляемой субвенции на административные расходы для осуществления функций в соответствии с переданными полномочиями&#xD;&#xA;(гр. 3 * гр. 4)" displayFormat=",0.00" readonly="true" />
          <rules>
            <rule name="%Doc%.P5Sheet.ViewLoadEventHandler" event="OnLoad" />
          </rules>
        </view>
      </view>
      <view table="dual" readonly="true" />
      <rules>
        <rule name="%Doc%.P5Sheet.CalcEventHandler" event="OnCalc" />
        <rule name="%Doc%.P5Sheet.FormatEventHandler" event="OnGetFormat" />
        <rule name="%Doc%.P5Sheet.ActivateSheetEventHandler" event="OnActivateSheet" />
        <rule name="%Doc%.P5Sheet.CreateCaptionEventHandler" event="OnCreateTitle" />
        <rule name="%Doc%.P5Sheet.CreateCaptionEventHandler" event="OnCreateCaption" />
        <rule name="%Doc%.P5Sheet.ReadOnlyEventHandler" event="OnGetIsReadOnly" />
        <rule name="%Doc%.P5Sheet.EditingCellEventHandler" event="OnCanEdit" />
      </rules>
    </gridsheet>
    <generatedsheet name="SHT_F05_320_R5_Y2" templateSheetName="SHT_F05_320_R5_Y1" />
    <generatedsheet name="SHT_F05_320_R5_Y3" templateSheetName="SHT_F05_320_R5_Y1" />
    <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="F05_320_R3_1_Protez_Editor" caption="Наименование технического средства реабилитации">
      <fieldssheet name="F05_320_R2_Subject_Editor_1" table="F05_320_Invalid_Protez_Data">
        <field name="InvalidProtez_ID" isShowAddEditButton="true" caption="Наименование протеза" />
      </fieldssheet>
    </editor>
    <editor id="F05_320_R4_1_Protez_Editor" caption="Наименование протеза, протезно-ортопедического изделия">
      <fieldssheet name="F05_320_R2_Subject_Editor_1" table="F05_320_Veteran_Protez_Data">
        <field name="VeteranProtez_ID" isShowAddEditButton="true" caption="Наименование протеза, протезно-ортопедического изделия" />
      </fieldssheet>
    </editor>
    <editor id="F05_320_R4_2_Protez_Editor" caption="Наименование протеза, протезно-ортопедического изделия">
      <fieldssheet name="F05_320_R2_Subject_Editor_1" table="F05_320_Veteran_Service_Data">
        <field name="VeteranProtez_ID" isShowAddEditButton="true" caption="Наименование протеза, протезно-ортопедического изделия" />
      </fieldssheet>
    </editor>
    <editor id="VeteranProtez" caption="Наименование протеза, протезно-ортопедического изделия">
      <fieldssheet name="VeteranProtez" table="VeteranProtez" />
    </editor>
    <editor id="InvalidProtez" caption="Наименование протеза">
      <fieldssheet name="InvalidProtez" table="InvalidProtez" />
    </editor>
    <editor id="F05_320_R3_1_Service_Editor" caption="Наименование услуги">
      <fieldssheet name="F05_320_R2_Service_Editor_1" table="F05_320_Invalid_Service_Data">
        <field name="InvalidService_ID" isShowAddEditButton="true" caption="Наименование услуги" />
      </fieldssheet>
    </editor>
    <editor id="InvalidService" caption="Наименование услуги">
      <fieldssheet name="InvalidService" table="InvalidService" />
    </editor>
    <editor id="F05_320_R2_Subject_Editor" caption="Cубъект Российской Федерации">
      <fieldssheet name="F05_320_R2_Subject_Editor_1" table="F05_320_Subjects">
        <field name="SubjectName_ID" caption="Наименование">
          <rules>
            <rule name="ObasHelper.GetTrue" event="OnGetIsRequired" />
          </rules>
        </field>
      </fieldssheet>
    </editor>
    <editor id="F05_320_R2_ScienceCityName_Editor" caption="Наукограды Российской Федерации">
      <fieldssheet name="F05_320_R2_ScienceCityName_Editor_1" table="F05_320_Subjects">
        <field name="ScienceCityName_ID" caption="Наименование">
          <rules>
            <rule name="ObasHelper.GetTrue" event="OnGetIsRequired" />
          </rules>
        </field>
      </fieldssheet>
    </editor>
    <editor id="F05_320_R2_SecurityAdmTerrEntityName_Editor" caption="Закрытые административно-территориальные образования">
      <fieldssheet name="F05_320_R2_SecurityAdmTerrEntityName_Editor_1" table="F05_320_Subjects">
        <field name="SecurityAdmTerrEntityName_ID" caption="Наименование">
          <rules>
            <rule name="ObasHelper.GetTrue" event="OnGetIsRequired" />
          </rules>
        </field>
      </fieldssheet>
    </editor>
    <editor id="F05_320_R2_MunicipalEntityName_Editor" caption="Муниципальные образования">
      <fieldssheet name="F05_320_R2_MunicipalEntityName_Editor_1" table="F05_320_Subjects">
        <field name="MunicipalEntityName_ID" caption="Наименование">
          <rules>
            <rule name="ObasHelper.GetTrue" event="OnGetIsRequired" />
          </rules>
        </field>
      </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>