<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="4.13.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="По умолчанию" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="40210,5466747338" ReportOptions.Description.Text="" ReportOptions.LastChange="42299,6853860301" ScriptLanguage="PascalScript" ScriptText.Text="var VAR_DIALOG_IsSTOLETOV :boolean;&#13;&#10;    VAR_DIALOG_NDSOUT :boolean;&#13;&#10;    VAR_AMOUNT_COEFF :double;&#13;&#10;    VAR_SUMMARY_COEFF :double;                                                                             &#13;&#10;&#13;&#10;const IniSection = 'ReportPrihProd';                                                                                                       &#13;&#10;    &#13;&#10;&#13;&#10;procedure FrReportOnStartReport(Sender: TfrxComponent);&#13;&#10;var FloatVAl :double;                                              &#13;&#10;begin&#13;&#10;  try&#13;&#10;    if AppIniFile.readbool(IniSection,'NDSIn',true)&#13;&#10;    then  RadioButtonNDS1.Checked := true&#13;&#10;    else  RadioButtonNDS2.Checked := true;&#13;&#10;&#13;&#10;    FloatVal := AppIniFile.ReadFloat(IniSection,'AmountCoeff',0);&#13;&#10;    if FloatVAl = 0 then EditAmountCoeff.text := ''&#13;&#10;    else EditAmountCoeff.Text :=  floattostr(FloatVal);                                                                                                                                                                &#13;&#10;&#13;&#10;    FloatVal := AppIniFile.ReadFloat(IniSection,'SummaryCoeff',0);&#13;&#10;    if FloatVAl = 0 then EditSummaryCoeff.text := ''&#13;&#10;    else EditSummaryCoeff.Text :=  floattostr(FloatVal);                                                                                                                                                                &#13;&#10;&#13;&#10;  except&#13;&#10;    CreatehintE(exceptmessage);                                                                             &#13;&#10;  end;            &#13;&#10;  &#13;&#10;end;     &#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;procedure BitBtn1OnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  VAR_DIALOG_NDSOut := RadioButtonNDS2.Checked;&#13;&#10;  AppIniFile.Writebool(IniSection,'NDSIn',not VAr_DIALOG_NDSOUT);&#13;&#10;&#13;&#10;  &#13;&#10;  VAR_AMOUNT_COEFF := strtofloatprotected( EditAmountCoeff.text);                                                                                                          &#13;&#10;  AppIniFile.WriteFloat(IniSection,'AmountCoeff',VAR_AMOUNT_COEFF);&#13;&#10;&#13;&#10;  VAR_SUMMARY_COEFF := strtofloatprotected( EditSUMMARYCoeff.text);                                                                                                          &#13;&#10;  AppIniFile.WriteFloat(IniSection,'SummaryCoeff',VAR_SUMMARY_COEFF);&#13;&#10;    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure Label2OnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure FrReportOnReportPrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." ShowProgress="False" StoreInDFM="False" OnStartReport="FrReportOnStartReport" OnReportPrint="FrReportOnReportPrint" PropData="0844617461736574730101062220446174615365743D22667244532220446174615365744E616D653D2266724453220001063420446174615365743D22667253756244657461696C44532220446174615365744E616D653D22667253756244657461696C4453220000095661726961626C657301010625204E616D653D225641524D494E44415441222056616C75653D2230312E30372E323031352200010625204E616D653D225641524D415844415441222056616C75653D2232322E31302E323031352200010624204E616D653D225641524D494E4F5447525553222056616C75653D22303A30303A30302200010624204E616D653D225641524D41584F5447525553222056616C75653D22303A30303A30302200010627204E616D653D225641524D494E444154414F504C4154222056616C75653D22303A30303A30302200010627204E616D653D225641524D4158444154414F504C4154222056616C75653D22303A30303A3030220001061F204E616D653D2256415253554D4D4152594E4453222056616C75653D22302200010620204E616D653D2256415253554D4D4152594E44535A222056616C75653D22302200010621204E616D653D2256415253554D4D4152594E44533130222056616C75653D22302200010621204E616D653D2256415253554D4D4152594E44533138222056616C75653D22302200010622204E616D653D2256415253554D4D4152594E44535A3130222056616C75653D22302200010622204E616D653D2256415253554D4D4152594E44535A3138222056616C75653D2230220001062A204E616D653D2256415253554D4D415259414C4C30222056616C75653D22323835303334332C3238322200010621204E616D653D2256415253554D4D415259414C4C3130222056616C75653D22302200010621204E616D653D2256415253554D4D415259414C4C3138222056616C75653D2230220001062C204E616D653D2256415253554D4D415259414C4C5A30222056616C75653D22323236353237322C383131332200010622204E616D653D2256415253554D4D415259414C4C5A3130222056616C75653D22302200010622204E616D653D2256415253554D4D415259414C4C5A3138222056616C75653D22302200010621204E616D653D2256415253544F524147454C495354222056616C75653D222727220001061D204E616D653D225641525355424147454E54222056616C75653D22302200010619204E616D653D22564152504F5354222056616C75653D2230220001061A204E616D653D225641524147454E54222056616C75653D22302200011421000000204E616D653D225641524F52444552222056616C75653D2227D09CD09DD09D27220001145A000000204E616D653D22564152504159222056616C75653D2227D09FD0BE20D184D0B0D0BAD182D18320D0BED182D0B3D180D183D0B7D0BAD0B82028D0B1D0B5D0B720D183D187D0B5D182D0B020D0BED0BFD0BBD0B0D182D18B2927220001143C000000204E616D653D2256415255534552444F43222056616C75653D2227D092D181D0B520D0BFD0BED0BBD18CD0B7D0BED0B2D0B0D182D0B5D0BBD0B8272200010620204E616D653D22564152524541534F4E4C495354222056616C75653D2227272200010623204E616D653D2256415244455441494C46554C4C222056616C75653D2246616C73652200010625204E616D653D2256415244455441494C505249434553222056616C75653D2246616C73652200010622204E616D653D2256415244455441494C4E4453222056616C75653D2246616C73652200010624204E616D653D2256415244455441494C4341524453222056616C75653D2246616C73652200010623204E616D653D2256415244455441494C4F524753222056616C75653D2246616C73652200010627204E616D653D2256415244455441494C53544F5241474553222056616C75653D2246616C73652200010628204E616D653D2256415244455441494C535550504C49455253222056616C75653D2246616C73652200010628204E616D653D2256415244455441494C50524F445543455253222056616C75653D2246616C73652200010626204E616D653D2256415244455441494C524541534F4E53222056616C75653D2246616C73652200010628204E616D653D2256415244455441494C444953434F554E5453222056616C75653D2246616C73652200010629204E616D653D2256415244455441494C494E5F524541534F4E53222056616C75653D2246616C7365220001061C204E616D653D225641524D494E54494D45222056616C75653D2230220001061C204E616D653D225641524D415854494D45222056616C75653D22302200010626204E616D653D225641524341534853455249414C4E554D424552222056616C75653D2227272200010624204E616D653D2256415244455441494C4F52475332222056616C75653D2246616C73652200010624204E616D653D2256415244455441494C5553455253222056616C75653D2246616C73652200010626204E616D653D2256415244455441494C5052494345524547222056616C75653D22547275652200010621204E616D653D225641524341534853455353494F4E222056616C75653D2227272200010625204E616D653D2256415253544F524147454E414D454C495354222056616C75653D222727220001061B204E616D653D225641524147454E5432222056616C75653D2230220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" EndlessHeight="True" EndlessWidth="True" HGuides.Text="" VGuides.Text="">
    <TfrxHeader Name="Header1" Height="15,11812" Left="0" Top="18,89765" Width="1046,92981" KeepChild="True" ReprintOnNewPage="True" Stretched="True">
      <TfrxMemoView Name="Memo4" Left="0" Top="0" Width="151,1812" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="Штрихкод"/>
      <TfrxMemoView Name="Memo5" Left="151,1812" Top="0" Width="75,5906" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="Количество"/>
      <TfrxMemoView Name="Memo6" Left="226,7718" Top="0" Width="102,04731" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="СтоимостьПриобр"/>
      <TfrxMemoView Name="Memo7" Left="328,81911" Top="0" Width="105,82684" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="СтоимостьРеализ"/>
      <TfrxMemoView Name="Memo1" Left="434,64595" Top="0" Width="128,50402" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="СтоимостьЦенаПроизв"/>
      <TfrxMemoView Name="Memo3" Left="563,14997" Top="0" Width="139,84261" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="ПредельнаяЦенаПроизв"/>
      <TfrxMemoView Name="Memo9" Left="702,99258" Top="0" Width="128,50402" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="КоличествоПлан"/>
      <TfrxMemoView Name="Memo10" Left="831,4966" Top="0" Width="136,06308" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="ВаловаяПрибыльПлан"/>
    </TfrxHeader>
    <TfrxMasterData Name="MasterData1" Height="18,89765" Left="0" Top="56,69295" Width="1046,92981" ColumnWidth="0" ColumnGap="0" DataSet="frDS" DataSetName="frDS" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo25" Left="0" Top="0" Width="151,1812" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataSet="frDS" DataSetName="frDS" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" WordBreak="True" Text="[barcodeadd13(&#60;frDS.&#34;Barcode&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo28" Left="151,1812" Top="0" Width="75,5906" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DisplayFormat.FormatStr="#0.###" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" WordWrap="False" Text="[frDS.&#34;Kol&#34;]"/>
      <TfrxMemoView Name="Memo32" Left="226,7718" Top="0" Width="102,04727339" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataSet="frDS" DataSetName="frDS" DisplayFormat.FormatStr="### ### ##0.00" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" WordWrap="False" Text="[iif(VAR_DIALOG_NDSOUT, &#60;frDS.&#34;INpSumma&#34;&#62; - &#60;frds.&#34;InpSummaNDS&#34;&#62; ,&#60;frDS.&#34;INpSumma&#34;&#62; )]"/>
      <TfrxMemoView Name="Memo33" Left="328,81911" Top="0" Width="105,82680339" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataSet="frDS" DataSetName="frDS" DisplayFormat.FormatStr="### ### ##0.00" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" WordWrap="False" Text="[iif(VAR_DIALOG_NDSOUT, &#60;frDS.&#34;OutSumma&#34;&#62; - &#60;frds.&#34;OutSummaNDS&#34;&#62; ,&#60;frDS.&#34;OutSumma&#34;&#62; )]"/>
      <TfrxMemoView Name="Memo2" Left="434,64595" Top="0" Width="128,50398339" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataField="FirstSumma" DataSet="frDS" DataSetName="frDS" DisplayFormat.FormatStr="### ### ##0.00" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" WordWrap="False" Text="[frDS.&#34;FirstSumma&#34;]"/>
      <TfrxMemoView Name="Memo8" Left="563,14997" Top="0" Width="139,84257339" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataSet="frDS" DataSetName="frDS" DisplayFormat.FormatStr="### ### ##0.00" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" WordWrap="False" Text="[CheckPriceRegistry(&#60;frDS.&#34;cenareestr&#34;&#62;,&#60;frDS.&#34;price_reg&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo31" Left="702,99258" Top="0" Width="128,50395654" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataSet="frDS" DataSetName="frDS" DisplayFormat.FormatStr="#0.###" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" HideZeros="True" ParentFont="False" WordWrap="False" Text="[&#60;frDS.&#34;Kol&#34;&#62; * VAR_AMOUNT_COEFF ]"/>
      <TfrxMemoView Name="Memo39" Left="831,4966" Top="0" Width="136,062992125984" Height="15,11812" ShowHint="False" StretchMode="smMaxHeight" DataSet="frDS" DataSetName="frDS" DisplayFormat.FormatStr="### ### ##0.00" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" HideZeros="True" ParentFont="False" WordWrap="False" Text="[ (iif(VAR_DIALOG_NDSOUT, &#60;frDS.&#34;OutSumma&#34;&#62; - &#60;frds.&#34;OUtSummaNDS&#34;&#62; ,&#60;frDS.&#34;OutSumma&#34;&#62; ) - iif(VAR_DIALOG_NDSOUT, &#60;frDS.&#34;INpSumma&#34;&#62; - &#60;frds.&#34;InpSummaNDS&#34;&#62; ,&#60;frDS.&#34;INpSumma&#34;&#62; ) ) * VAR_SUMMARY_COEFF]"/>
    </TfrxMasterData>
  </TfrxReportPage>
  <TfrxDialogPage Name="DialogPage1" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" BorderStyle="bsDialog" Caption="Запрос параметров:" Height="265" ClientHeight="227" Left="339" Top="117" Width="316" ClientWidth="300">
    <TfrxRadioButtonControl Name="RadioButtonNDS1" Left="36" Top="40" Width="205" Height="17" ShowHint="True" Caption="НДС в том числе" Checked="True" Color="-16777201"/>
    <TfrxRadioButtonControl Name="RadioButtonNDS2" Left="36" Top="64" Width="205" Height="17" ShowHint="True" Caption="Выделить НДС из цены" TabStop="False" Color="-16777201"/>
    <TfrxBevelControl Name="Bevel1" Left="24" Top="88" Width="242" Height="10" ShowHint="True" Shape="bsTopLine"/>
    <TfrxLabelControl Name="Label1" Left="20" Top="8" Width="105" Height="16" ShowHint="True" Caption="Учет ставки НДС:" Color="-16777201" OnClick="Label1OnClick"/>
    <TfrxBitBtnControl Name="BitBtn1" Left="88" Top="198" Width="75" Height="25" ShowHint="True" Caption="OK" ModalResult="1" NumGlyphs="2" OnClick="BitBtn1OnClick"/>
    <TfrxBitBtnControl Name="BitBtn2" Left="176" Top="198" Width="75" Height="25" ShowHint="True" Caption="Отмена" ModalResult="2"/>
    <TfrxBevelControl Name="Bevel2" Left="24" Top="28" Width="242" Height="10" ShowHint="True" Shape="bsTopLine"/>
    <TfrxBevelControl Name="Bevel3" Left="24" Top="188" Width="242" Height="10" ShowHint="True" Shape="bsTopLine"/>
    <TfrxLabelControl Name="Label3" Left="36" Top="100" Width="160" Height="36" ShowHint="True" AutoSize="False" Caption="Коэффициент пересчета планируемого количества:" Color="-16777201" WordWrap="True"/>
    <TfrxLabelControl Name="Label4" Left="36" Top="144" Width="162" Height="36" ShowHint="True" AutoSize="False" Caption="Коэффициент пересчета планируемых цен:" Color="-16777201" WordWrap="True"/>
    <TfrxEditControl Name="EditAmountCoeff" Left="208" Top="108" Width="49" Height="21" Hint="Колонка 7 = 6 * коэфф" ShowHint="True" Color="-16777211" MaxLength="0" PasswordChar="0"/>
    <TfrxEditControl Name="EditSummaryCoeff" Left="208" Top="148" Width="49" Height="21" Hint="Колонка 13 = 12 * коэфф" ShowHint="True" Color="-16777211" MaxLength="0" PasswordChar="0"/>
  </TfrxDialogPage>
</TfrxReport>
