<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="6.9.2" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="41380.5820669097" ReportOptions.Description.Text="" ReportOptions.LastChange="45338.4222968171" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10; SUBPACK:string ;&#13;&#10;procedure stockcardSUB_PO_DATEOnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  //[YMDToDate(&#60;stockcard.&#34;R_S_DATE&#34;&#62;+5430000)]&#13;&#10;end;&#13;&#10;&#13;&#10;procedure stockcardqtyOnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if &#60;stockcard.&#34;ACTIVE_QTY&#34;&#62;mod&#60;stockcard.&#34;ACTIVE_PACK&#34;&#62; &#62; 0 then&#13;&#10;  begin&#13;&#10;     SUBPACK:='(+'+inttostr( &#60;stockcard.&#34;ACTIVE_QTY&#34;&#62;mod&#60;stockcard.&#34;ACTIVE_PACK&#34;&#62;)+')' ;&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    SUBPACK:='' ;&#13;&#10;  end;&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="frxDBDataset2" DataSetName="stockcard"/>
  </Datasets>
  <Variables>
    <item Name="carddate1"/>
    <item Name="carddate2"/>
    <item Name="stock_name"/>
    <item Name="hosp_name"/>
    <item Name="COPIES" Value="1"/>
  </Variables>
  <TfrxDataPage Name="Data" HGuides.Text="" VGuides.Text="" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" HGuides.Text="" VGuides.Text="" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="5" RightMargin="5" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" MirrorMode="0">
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="26.45671" Left="0" Top="313.70099" Width="755.906" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="frxDBDataset2" DataSetName="stockcard" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Line" AllowVectorExport="True" Left="3.55906" Top="0.55906" Width="26.45671" Height="22.67718" DataSetName="SMPOC" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[Line]"/>
      <TfrxMemoView Name="stockcardSUB_PO_DATE" AllowVectorExport="True" Left="28.7953" Top="1" Width="75.5906" Height="22.67718" OnBeforePrint="stockcardSUB_PO_DATEOnBeforePrint" DataSet="frxDBDataset2" DataSetName="stockcard" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[stockcard.&#34;OPERATE_DATE&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="stockcardrsstatus" AllowVectorExport="True" Left="108.94496" Top="1" Width="75.5906" Height="22.67718" DataSet="frxDBDataset2" DataSetName="stockcard" Font.Charset="222" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[stockcard.&#34;RS_STATUS&#34;]"/>
      <TfrxMemoView Name="stockcardsubpono" AllowVectorExport="True" Left="186.19697" Top="1.22047" Width="147.40167" Height="22.67718" StretchMode="smActualHeight" DataSet="frxDBDataset2" DataSetName="stockcard" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[stockcard.&#34;R_S_NUMBER&#34;]"/>
      <TfrxMemoView Name="stockcarddeptname" AllowVectorExport="True" Left="294.02381" Top="1" Width="188.9765" Height="32.12598913" DataField="deptname" DataSet="frxDBDataset2" DataSetName="stockcard" Font.Charset="222" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[stockcard.&#34;deptname&#34;]"/>
      <TfrxMemoView Name="stockcardqty" AllowVectorExport="True" Left="430.18924" Top="2" Width="113.3859" Height="22.67718" OnBeforePrint="stockcardqtyOnBeforePrint" DataSet="frxDBDataset2" DataSetName="stockcard" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[&#60;stockcard.&#34;ACTIVE_QTY&#34;&#62;/&#60;stockcard.&#34;ACTIVE_PACK&#34;&#62;] x [stockcard.&#34;ACTIVE_PACK&#34;] [SUBPACK]">
        <Formats>
          <item FormatStr="%2.0n" Kind="fkNumeric"/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="stockcardvalue" AllowVectorExport="True" Left="545.69326" Top="2" Width="71.81107" Height="22.67718" DataField="value" DataSet="frxDBDataset2" DataSetName="stockcard" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[stockcard.&#34;value&#34;]"/>
      <TfrxMemoView Name="stockcardremainqty" AllowVectorExport="True" Left="618.96104" Top="1.77953" Width="56.69295" Height="22.67718" DataSet="frxDBDataset2" DataSetName="stockcard" DisplayFormat.FormatStr="%2.0n" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[FormatFloat('#,##0',&#60;stockcard.&#34;REMAIN_QTY&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="True" Left="676.5201" Top="1.77953" Width="52.91342" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[stockcard.&#34;SALE_UNIT&#34;]"/>
      <TfrxMemoView Name="stockcardFREE_FLAG" AllowVectorExport="True" Left="732.21305" Top="3" Width="15.11812" Height="18.89765" DataField="FREE_FLAG" DataSet="frxDBDataset2" DataSetName="stockcard" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[stockcard.&#34;FREE_FLAG&#34;]"/>
      <TfrxLineView Name="Line8" AllowVectorExport="True" Left="755.905511811024" Top="0.00489234999999999" Width="-0.17354545" Height="26.4566929133858" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxLineView Name="Line7" AllowVectorExport="True" Left="0" Top="0" Width="-0.17354545" Height="26.4566929133858" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="90.70872" Left="0" Top="453.5436" Width="755.906">
      <TfrxMemoView Name="Memo11" AllowVectorExport="True" Left="465.66172" Top="1.33859" Width="222.99227" Height="79.37013" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="TH SarabunPSK" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text=""/>
      <TfrxMemoView Name="Memo18" AllowVectorExport="True" Left="71.81107" Top="1" Width="222.99227" Height="68.03154" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="TH SarabunPSK" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text=""/>
    </TfrxPageFooter>
    <TfrxPageHeader Name="PageHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="69.57699455" Left="0" Top="18.89765" Width="755.906">
      <TfrxMemoView Name="Memo2" AllowVectorExport="True" Left="3.77953" Top="3.33859" Width="748.34694" Height="26.45671" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[hosp_name]"/>
      <TfrxMemoView Name="Memo4" AllowVectorExport="True" Left="3.63398758" Top="31.01577" Width="748.18780189" Height="34.01577" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="ใบคุมคลังเวชภัณฑ์"/>
    </TfrxPageHeader>
    <TfrxReportSummary Name="ReportSummary1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="430.86642" Width="755.906"/>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="141.76808909" Left="0" Top="147.40167" Width="755.906" Condition="stockcard.&#34;WORKING_CODE&#34;" KeepTogether="True">
      <TfrxLineView Name="Line5" AllowVectorExport="True" Left="0" Top="0" Width="755.906" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="193.84261" Top="110.27551" Width="128.50402" Height="26.45671" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="เลขที่รับ/จ่าย - PU"/>
      <TfrxMemoView Name="Memo6" AllowVectorExport="True" Left="6.55906" Top="3.34632" Width="411.96877" Height="105.82684" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="&#60;b&#62;รหัสเวชภัณฑ์:&#60;/b&#62; รหัสสามัญ  [stockcard.&#34;WORKING_CODE&#34;]  รหัสการค้า [stockcard.&#34;TRADE_CODE&#34;]&#13;&#10;&#60;b&#62;ชื่อสามัญ&#60;/b&#62;  [TRIM(&#60;stockcard.&#34;DRUG_NAME&#34;&#62;)]  &#13;&#10; &#60;b&#62;รูปแบบ&#60;/b&#62; [TRIM(&#60;stockcard.&#34;DOSAGE_FORM&#34;&#62;)] &#60;b&#62;หน่วย&#60;/b&#62; [TRIM(&#60;stockcard.&#34;SALE_UNIT&#34;&#62;)]&#13;&#10;&#60;b&#62;ข้อมูลตั้งแต่วันที่&#60;/b&#62; [carddate1]   &#60;b&#62;ถึงวันที่&#60;/b&#62;  [carddate2]"/>
      <TfrxMemoView Name="Memo1" AllowVectorExport="True" Left="541.47279" Top="1.99196" Width="207.87415" Height="52.91342" AllowHTMLTags="True" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="หน้า [Page#]/[TotalPages#]&#13;&#10;&#60;b&#62;ชื่อคลัง&#60;/b&#62; [stock_name]"/>
      <TfrxLineView Name="Line3" AllowVectorExport="True" Left="0" Top="110.27551" Width="755.905511811024" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxLineView Name="Line4" AllowVectorExport="True" Left="0" Top="138.39363" Width="755.906" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" Left="122.94496" Top="110.71645" Width="49.13389" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="รับ/จ่าย"/>
      <TfrxMemoView Name="Memo13" AllowVectorExport="True" Left="492.52783" Top="110.27551" Width="64.25201" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="จน. รับ/จ่าย"/>
      <TfrxMemoView Name="Memo17" AllowVectorExport="True" Left="623.62245" Top="110.49598" Width="64.25201" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="จน.คงคลัง"/>
      <TfrxMemoView Name="Memo21" AllowVectorExport="True" Left="578.11843" Top="109.27551" Width="37.7953" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="มูลค่า"/>
      <TfrxMemoView Name="Memo3" AllowVectorExport="True" Left="49.23624" Top="111.27551" Width="49.13389" Height="22.67718" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="วันที่ตัดคลัง"/>
      <TfrxMemoView Name="Memo19" AllowVectorExport="True" Left="351.46475" Top="110.27551" Width="64.25201" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="หน่วยงาน"/>
      <TfrxMemoView Name="Memo15" AllowVectorExport="True" Left="542.14997" Top="53.48021" Width="207.87415" Height="30.23624" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="&#60;b&#62;วันที่พิมพ์&#60;/b&#62; [Date]"/>
      <TfrxMemoView Name="Memo5" AllowVectorExport="True" Left="5.33859" Top="110.05504" Width="37.7953" Height="26.45671" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="ลำดับ"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="690.07916" Top="108.6141" Width="34.01577" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="หน่วย"/>
      <TfrxMemoView Name="Memo10" AllowVectorExport="True" Left="725.87446" Top="108.83457" Width="26.45671" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="แถม"/>
      <TfrxLineView Name="Line6" AllowVectorExport="True" Left="0" Top="0" Width="-0.17354545" Height="141.73228346" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxLineView Name="Line1" AllowVectorExport="True" Left="755.90551181" Top="0" Width="-0.17354545" Height="141.73228346" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo14" AllowVectorExport="True" Left="367.24428" Top="50.81107" Width="83.14966" Height="26.45671" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="จำนวนสำรอง">
        <Formats>
          <item/>
          <item/>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo16" AllowVectorExport="True" Left="368.61441" Top="72.04731" Width="377.953" Height="30.23624" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="ต่ำสุด [fOrmatfloat('#,##0.##',&#60;stockcard.&#34;MIN_LEVEL&#34;&#62;/&#60;stockcard.&#34;ACTIVE_PACK&#34;&#62;)] x [stockcard.&#34;ACTIVE_PACK&#34;]  สูงสุด [fOrmatfloat('#,##0.##',&#60;stockcard.&#34;MAX_LEVEL&#34;&#62;/&#60;stockcard.&#34;ACTIVE_PACK&#34;&#62;)] x [stockcard.&#34;ACTIVE_PACK&#34;]">
        <Formats>
          <item/>
          <item/>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="8.60624246" Left="0" Top="362.83488" Width="755.906">
      <TfrxLineView Name="Line2" AllowVectorExport="True" Left="0.18181818" Top="0" Width="755.906" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
