<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="PHARM" 
Name="PRODUCT_FORM" 
Description="Форма выпуска" 
PrimaryKey="ProductFormID" 
DNAttributes="{PackageType/Name}" 
DisplayName="{0}">
  <Fields>
    <Attribute Name="ProductFormID" Index="19170001" Type="guid" Description="Идентификатор" />
    <Attribute Name="OrdinalNumber" Index="19170002" Type="int" Description="Порядковый номер" Required="1" />
    <Attribute Name="Amount" Index="19170004" Type="float" DefaultFormat="{0:0.#####}" Description="Остаток" NumericPrecision="20" NumericScale="6" Required="1" />
    <Attribute Name="UnitPrice" Index="19170009" Type="bool" Description="Единица покупки" Required="1" />
    <Attribute Name="WriteOff" Index="19170012" Type="bool" Description="Списание" Required="1" />
    <Parent Name="PackageType" Index="19170003" Type="PHARM.PACKAGE_TYPE" Description="Вид упаковки" Required="1" />
    <Parent Name="BillOfGoods" Index="19170006" Type="PHARM.BILL_OF_GOODS" Description="Номенклатура товаров" Required="1" />
    <Attribute Name="Descr" Index="19170013" Type="string" Description="Описание" CharacterMaximumLength="500" />
    <Attribute Name="NotUseInPackage" Type="bool" Description="Не использовать в составе упаковки" Required="1" />
    <Attribute Name="Appointment" Type="bool" Description="Единица списания в назначении" Required="1" />
    <Parent Name="EhrRusMdr308" Type="EHR.EHR_RUS_MDR308" Description="Реестр медицинских и фармацевтических организаций Российской Федерации" />
  </Fields>
  <DbMapping>
    <Table name="T_PRODUCT_FORM">
      <Map Name="ProductFormID" Column="ProductFormID" />
      <Map Name="OrdinalNumber" Column="OrdinalNumber" />
      <Map Name="Amount" Column="Amount" />
      <Map Name="UnitPrice" Column="UnitPrice" />
      <Map Name="WriteOff" Column="WriteOff" />
      <Map Name="PackageType" Column="PackageType" />
      <Map Name="BillOfGoods" Column="BillOfGoods" />
      <Map Name="Descr" Column="Descr" />
      <Map Name="NotUseInPackage" Column="NotUseInPackage" />
      <Map Name="Appointment" Column="Appointment" />
      <Map Name="EhrRusMdr308" Column="EhrRusMdr308" />
    </Table>
  </DbMapping>
</Entity>