<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="6.3.14" 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="43973.3904942593" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;  qty_orderx,total_qtyorder,total_qtyrcv,total_remain: string ;&#13;&#10;  qty_rcvi,qty_orderi,lineno :integer ;&#13;&#10;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;   qry_invmd.close ;&#13;&#10;   qry_invmd.open ;&#13;&#10;&#13;&#10;   qry_INV_MD_C.close ;&#13;&#10;   qry_INV_MD_C.open ;&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;     if &#60;SMPOC.&#34;CANCEL_DISP&#34;&#62;&#60;&#62;'' then&#13;&#10;   begin&#13;&#10;     MasterData1.visible:=False ;&#13;&#10;   end&#13;&#10;   else&#13;&#10;   begin&#13;&#10;    qty_orderi:=qty_orderi + &#60;SMPOC.&#34;QTY_ORDER&#34;&#62; ;&#13;&#10;     qty_rcvi:=qty_rcvi + &#60;SMPOC.&#34;QTY_RCV&#34;&#62; ;&#13;&#10;     MasterData1.visible:=True ;&#13;&#10;   end;&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure qty_rcv1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;&#13;&#10; if (&#60;SMPOC.&#34;QTY_RCV&#34;&#62;mod&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)  &#62;   0 then&#13;&#10;     qty_orderx:= inttostr(TRUNC(&#60;SMPOC.&#34;QTY_RCV&#34;&#62;/&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))+ ' x ' + inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;) +' (+' + inttostr(&#60;SMPOC.&#34;QTY_RCV&#34;&#62;mod&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)+')'&#13;&#10;     else&#13;&#10;      qty_orderx:= inttostr(TRUNC(&#60;SMPOC.&#34;QTY_RCV&#34;&#62;/&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))+ ' x ' + inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;) ;&#13;&#10;&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure Memo10OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;&#13;&#10;   if  (qty_orderi mod &#60;SMPOC.&#34;PACK_RATIO&#34;&#62;) &#62; 0 then&#13;&#10;      total_qtyorder:= inttostr(TRUNC(qty_orderi/&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))&#13;&#10;                      +' x '+ inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)&#13;&#10;                      +' (+'+inttostr( qty_orderi mod &#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)+')'&#13;&#10;   else&#13;&#10;      total_qtyorder:= inttostr(TRUNC(qty_orderi /&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))&#13;&#10;                      +' x '+ inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;);&#13;&#10;&#13;&#10; //*********************************************************************************************************&#13;&#10;&#13;&#10;     if  ( qty_rcvi mod &#60;SMPOC.&#34;PACK_RATIO&#34;&#62;) &#62; 0 then&#13;&#10;         total_qtyrcv:= inttostr(TRUNC( qty_rcvi/&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))&#13;&#10;                      +' x '+ inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)&#13;&#10;                      +' (+'+inttostr(  qty_rcvi mod &#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)+')'&#13;&#10;     else&#13;&#10;         total_qtyrcv:= inttostr(TRUNC( qty_rcvi /&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))&#13;&#10;                      +' x '+ inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;);&#13;&#10;&#13;&#10; //**********************************************************************************************************&#13;&#10;&#13;&#10;    if (&#60;SMPOC.&#34;QTY_ON_HAND&#34;&#62; mod &#60;SMPOC.&#34;PACK_RATIO&#34;&#62;) &#62; 0 then&#13;&#10;       total_remain:= inttostr(TRUNC( &#60;SMPOC.&#34;QTY_ON_HAND&#34;&#62;/&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))&#13;&#10;                      +' x '+ inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)&#13;&#10;                      +' (+'+inttostr( &#60;SMPOC.&#34;QTY_ON_HAND&#34;&#62; mod &#60;SMPOC.&#34;PACK_RATIO&#34;&#62;)+')'&#13;&#10;     else&#13;&#10;         total_remain:= inttostr(TRUNC( &#60;SMPOC.&#34;QTY_ON_HAND&#34;&#62; /&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;))&#13;&#10;                      +' x '+ inttostr(&#60;SMPOC.&#34;PACK_RATIO&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupHeader1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;   qty_rcvi:=0 ;&#13;&#10;   qty_orderi:=0 ;&#13;&#10;&#13;&#10;   if &#60;SMPOC.&#34;CANCEL_DISP&#34;&#62;&#60;&#62;'' then&#13;&#10;   begin&#13;&#10;     MasterData1.visible:=False ;&#13;&#10;     GroupHeader1.visible:=False ;&#13;&#10;    // Footer1.visible:=False ;&#13;&#10;&#13;&#10;   end&#13;&#10;   else&#13;&#10;   begin&#13;&#10;     MasterData1.visible:=True ;&#13;&#10;     GroupHeader1.visible:=True ;&#13;&#10;    // Footer1.visible:=True ;&#13;&#10;      lineno:=lineno+1 ;&#13;&#10;   end;&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;    if &#60;consol_item&#62; = 'Y' then&#13;&#10;  begin&#13;&#10;    //  GroupHeader2.Condition:='SMPOC.&#34;SUB_PO_NO&#34;';&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;   //   GroupHeader2.Condition:='SMPOC.&#34;LOCATE&#34;';&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;end." OnReportPrint="frxReport1OnReportPrint">
  <Datasets>
    <item DataSetName="SMPOC"/>
    <item DataSet="qry_invmd" DataSetName="invmd"/>
    <item DataSet="qry_INV_MD_C" DataSetName="inv_md_c"/>
  </Datasets>
  <Variables>
    <item Name="sub_po_no"/>
    <item Name="dept_name"/>
    <item Name="po_date"/>
    <item Name="stockname"/>
    <item Name="consol_item"/>
    <item Name="hosp_name"/>
    <item Name="COPIES" Value="1"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxUniDACQuery Name="qry_invmd" UserName="invmd" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="{IF SQLSERVER}                             &#13;&#10;select SUM(QTY_ON_HAND) as QTY_ON_HAND&#13;&#10;from INV_MD (NOLOCK) &#13;&#10;where DEPT_ID=:stock_id &#13;&#10;and WORKING_CODE=:trade_code&#13;&#10;{ELSE}&#13;&#10;select SUM(QTY_ON_HAND) as QTY_ON_HAND&#13;&#10;from INV_MD  &#13;&#10;where DEPT_ID=:stock_id &#13;&#10;and WORKING_CODE=:trade_code&#13;&#10;{ENDIF}                " SpecificOptions.Text="" PropData="05704C65667403E0000470546F7003FC000A506172616D657465727301010C54000000204E616D653D2273746F636B5F6964222044617461547970653D226674537472696E67222045787072657373696F6E3D22262336303B534D504F432E262333343B53544F434B5F4944262333343B262336323B2200010C5A000000204E616D653D2274726164655F636F6465222044617461547970653D226674537472696E67222045787072657373696F6E3D22262336303B534D504F432E262333343B574F524B494E475F434F4445262333343B262336323B2200010C54000000204E616D653D2273746F636B5F6964222044617461547970653D226674537472696E67222045787072657373696F6E3D22262336303B534D504F432E262333343B53544F434B5F4944262333343B262336323B2200010C5A000000204E616D653D2274726164655F636F6465222044617461547970653D226674537472696E67222045787072657373696F6E3D22262336303B534D504F432E262333343B574F524B494E475F434F4445262333343B262336323B220000"/>
    <TfrxUniDACQuery Name="qry_INV_MD_C" UserName="inv_md_c" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="select i.*,t.TRADE_CODE,t.TRADE_NAME,g.SALE_UNIT from INV_MD_C i (NOLOCK) &#13;&#10;left join DRUG_VN  t (NOLOCK) on (i.TRADE_CODE=t.TRADE_CODE)&#13;&#10;left join DRUG_GN  g (NOLOCK) on (g.WORKING_CODE=i.WORKING_CODE)    &#13;&#10;where i.DEPT_ID=:dept_id  and i.WORKING_CODE=:working_code   and  i.QTY_ON_HAND &#62; 0                                                 &#13;&#10;order by i.EXPIRED_DATE DESC  " SpecificOptions.Text="" PropData="05704C656674035C010470546F7003B8000A506172616D657465727301010C53000000204E616D653D22646570745F6964222044617461547970653D226674537472696E67222045787072657373696F6E3D22262336303B534D504F432E262333343B53544F434B5F4944262333343B262336323B2200010C5C000000204E616D653D22776F726B696E675F636F6465222044617461547970653D226674537472696E67222045787072657373696F6E3D22262336303B534D504F432E262333343B574F524B494E475F434F4445262333343B262336323B220000"/>
  </TfrxDataPage>
  <TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" MirrorMode="0" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <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="287.24428" Width="718.1107" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSetName="SMPOC" PrintChildIfInvisible="True" PrintIfDetailEmpty="True" RowCount="0" Stretched="True">
      <TfrxMemoView Name="INV_MD_CEXPIRED_DATE" AllowVectorExport="True" Left="524.953" Top="1.1812" Width="64.25201" Height="22.67718" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[COPY(&#60;SMPOC.&#34;EXPIRED_DATE&#34;&#62;,7,2)]/[COPY(&#60;SMPOC.&#34;EXPIRED_DATE&#34;&#62;,5,2)]/[COPY(&#60;SMPOC.&#34;EXPIRED_DATE&#34;&#62;,1,4)]"/>
      <TfrxMemoView Name="INV_MD_CQTY_ON_HAND" AllowVectorExport="True" Left="618.94527" Top="1.1812" Width="83.14966" Height="22.67718" DisplayFormat.FormatStr="%2.0n" 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="[invmd.&#34;QTY_ON_HAND&#34;]"/>
      <TfrxMemoView Name="qty_rcv1" AllowVectorExport="True" Left="323.75603" Top="1.1812" Width="124.72449" Height="22.67718" OnBeforePrint="qty_rcv1OnBeforePrint" DisplayFormat.FormatStr="%2.0n" 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="[qty_orderx]"/>
      <TfrxMemoView Name="INV_MD_CLOCATION" AllowVectorExport="True" Left="585.5436" Top="1.40167" Width="52.91342" Height="22.67718" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[SMPOC.&#34;LOCATE&#34;]"/>
      <TfrxMemoView Name="DRUG_VNTRADE_NAME" AllowVectorExport="True" Left="38.7953" Top="1.26778" Width="313.70099" Height="22.67718" DataSetName="DRUG_VN" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[SMPOC.&#34;TRADE_NAME&#34;]"/>
      <TfrxMemoView Name="SMPOCLOT_NO" AllowVectorExport="True" Left="448.03958" Top="1.77953" Width="75.5906" Height="22.67718" StretchMode="smActualHeight" DataSetName="SMPOC" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[TRIM(&#60;SMPOC.&#34;LOT_NO&#34;&#62;)]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="574.48856" Width="718.1107"/>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="56.69295" Left="0" Top="207.87415" Width="718.1107" OnBeforePrint="GroupHeader1OnBeforePrint" AllowSplit="True" Condition="SMPOC.&#34;WORKING_CODE&#34;" KeepTogether="True">
      <TfrxMemoView Name="Memo5" AllowVectorExport="True" Left="39.77953" Top="0.77953" Width="434.64595" Height="30.23624" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="รหัสยา&#60;b&#62; [SMPOC.&#34;WORKING_CODE&#34;]  &#60;/b&#62;ชื่อยาสามัญ&#60;b&#62; [SMPOC.&#34;DRUG_NAME&#34;]&#60;/b&#62;"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="468.86642" Top="0.89765" Width="132.28355" Height="30.23624" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="หน่วยบรรจุ &#60;b&#62; [SMPOC.&#34;SALE_UNIT&#34;]&#60;/b&#62; "/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="True" Left="604.70903" Top="0.89765" Width="109.60637" Height="30.23624" AllowHTMLTags="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="รูปแบบ &#60;b&#62;[SMPOC.&#34;DOSAGE_FORM&#34;]&#60;/b&#62;"/>
      <TfrxMemoView Name="Line" AllowVectorExport="True" Left="6.77953" Top="0.55906" Width="30.23624" Height="30.23624" 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="[lineno]."/>
      <TfrxLineView Name="Line3" AllowVectorExport="True" Left="40.57483" Top="30.48825" Width="676.53587" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxLineView Name="Line4" AllowVectorExport="True" Left="39.7953" Top="55.3859" Width="676.53587" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" Left="98.26778" Top="28.92919" Width="60.47248" 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="395.12616" Top="29.70872" Width="68.03154" 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="Memo14" AllowVectorExport="True" Left="525.953" Top="28.70872" Width="64.25201" 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="Memo15" AllowVectorExport="True" Left="602.20501" Top="29.92919" Width="37.7953" 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="Memo17" AllowVectorExport="True" Left="667.29963" Top="28.70872" Width="45.35436" 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="Memo3" AllowVectorExport="True" Left="469.1577" Top="29.47248" 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="Lot No."/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="26.45671" Left="0" Top="464.88219" Width="718.1107">
      <TfrxLineView Name="Line2" AllowVectorExport="True" Left="1.77953" Top="25.33859" Width="714.33117" Height="0" Color="0" Frame.Style="fsDot" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo10" AllowVectorExport="True" Left="39.23624" Top="1.32282" Width="419.52783" Height="22.67718" OnBeforePrint="Memo10OnBeforePrint" AllowHTMLTags="True" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="&#60;b&#62;จน.ขอเบิก&#60;/b&#62;   [total_qtyorder] &#60;b&#62;   จน.จ่าย&#60;/b&#62;   [total_qtyrcv]  &#60;b&#62;คงเหลือทั้งหมด &#60;/b&#62; [total_remain]"/>
    </TfrxGroupFooter>
    <TfrxPageHeader Name="PageHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="107.26778" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo2" AllowVectorExport="True" Left="3.77953" Top="3.33859" Width="718.1107" 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="5.55906" Top="31.01577" Width="714.33117" Height="26.45671" Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="ใบจัดเวชภัณฑ์ตามใบเบิก"/>
      <TfrxMemoView Name="Memo6" AllowVectorExport="True" Left="6.55906" Top="56.91342" Width="529.1342" Height="45.35436" AllowHTMLTags="True" Font.Charset="222" Font.Color="-16777208" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="&#60;b&#62;เลขที่เบิก&#60;/b&#62;  [sub_po_no]        &#60;b&#62;วันที่เบิก&#60;/b&#62;  [CYMD2DBSTR(&#60;SMPOC.&#34;SUB_PO_DATE&#34;&#62;)]      วันที่อนุมัติ   [IIF(&#60;SMPOC.&#34;CONFIRM_DATE&#34;&#62;&#60;&#62;'',CYMD2DBSTR(&#60;SMPOC.&#34;CONFIRM_DATE&#34;&#62;),'')] เวลาที่อนุมัติ [COPY(&#60;SMPOC.&#34;CONFIRM_TIME&#34;&#62;,1,2)]:[COPY(&#60;SMPOC.&#34;CONFIRM_TIME&#34;&#62;,3,2)]&#13;&#10;&#60;b&#62;หน่วยงานที่เบิก&#60;/b&#62;  [dept_name] ">
        <Formats>
          <item/>
          <item/>
          <item/>
          <item/>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxLineView Name="Line1" AllowVectorExport="True" Left="2.33859" Top="103.82684" Width="714.33117" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo1" AllowVectorExport="True" Left="423.30736" Top="56.91342" Width="283.46475" Height="41.57483" AllowHTMLTags="True" Font.Charset="222" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="หน้า [Page#]/[TotalPages#]&#13;&#10;&#60;b&#62;คลังจ่าย&#60;/b&#62; [stockname]"/>
    </TfrxPageHeader>
    <TfrxGroupHeader Name="GroupHeader2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="185.19697" Width="718.1107" AllowSplit="True" Condition="COPY(&#60;SMPOC.&#34;LOCATE&#34;&#62;,1,1)" KeepTogether="True"/>
    <TfrxGroupFooter Name="GroupFooter2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="514.01608" Width="718.1107"/>
    <TfrxDetailData Name="DetailData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="30.23624" Left="0" Top="389.29159" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" RowCount="0" Stretched="True">
      <TfrxMemoView Name="inv_md_cTRADE_NAME" AllowVectorExport="True" Left="113.54329" Top="1.23624" Width="343.93723" Height="26.45671" StretchMode="smActualHeight" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" SuppressRepeated="True" Text="[Line#]. [trim(&#60;inv_md_c.&#34;TRADE_NAME&#34;&#62;)]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="562.58287" Top="1.23624" Width="75.5906" Height="26.45671" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[COPY(&#60;inv_md_c.&#34;EXPIRED_DATE&#34;&#62;,7,2)]/[COPY(&#60;inv_md_c.&#34;EXPIRED_DATE&#34;&#62;,5,2)]/[COPY(&#60;inv_md_c.&#34;EXPIRED_DATE&#34;&#62;,1,4)]"/>
      <TfrxMemoView Name="inv_md_cLOT_NO" AllowVectorExport="True" Left="638.94527" Top="1.01577" Width="75.5906" Height="26.45671" StretchMode="smActualHeight" DataField="LOT_NO" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[inv_md_c.&#34;LOT_NO&#34;]"/>
      <TfrxMemoView Name="Memo11" AllowVectorExport="True" Left="459.42548" Top="1.01577" Width="94.48825" Height="26.45671" DataSet="qry_INV_MD_C" DataSetName="inv_md_c" DisplayFormat.FormatStr="%2.0n" 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="[&#60;inv_md_c.&#34;QTY_ON_HAND&#34;&#62;/&#60;inv_md_c.&#34;PACK_RATIO&#34;&#62;] x [inv_md_c.&#34;PACK_RATIO&#34;]  [inv_md_c.&#34;SALE_UNIT&#34;]"/>
    </TfrxDetailData>
    <TfrxHeader Name="Header1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="30.23624" Left="0" Top="336.37817" Width="718.1107">
      <TfrxMemoView Name="Memo16" AllowVectorExport="True" Left="115.29128" Top="1.07885" Width="52.91342" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="คงคลัง"/>
      <TfrxMemoView Name="Memo25" AllowVectorExport="True" Left="577.9295" Top="0.85838" 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="Memo26" AllowVectorExport="True" Left="483.77984" Top="0.85838" 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="haCenter" ParentFont="False" Text="คงเหลือ"/>
      <TfrxMemoView Name="Memo30" AllowVectorExport="True" Left="655.74057" Top="0.85838" Width="45.35436" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Lot No."/>
      <TfrxLineView Name="Line5" AllowVectorExport="True" Left="114.03154" Top="26.53556" Width="600.94527" Height="0" Color="0" Frame.Color="12632256" Frame.Typ="0" Diagonal="True"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="442.20501" Width="718.1107"/>
  </TfrxReportPage>
</TfrxReport>
