<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="5.2.12" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="41546.6611873611" ReportOptions.Description.Text="" ReportOptions.LastChange="42816.5873343056" ScriptLanguage="PascalScript" ScriptText.Text="&#13;&#10;procedure DialogPage1OnActivate(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  &#13;&#10;  qry_stock.close ;&#13;&#10;  qry_stock.open ;&#13;&#10;&#13;&#10; cbb_dept.keyvalue:=&#60;MY_STOCK_CODE&#62; ;                                   &#13;&#10;&#13;&#10;  date1.date:=now-30 ;&#13;&#10;  date2.date:=now ;&#13;&#10;&#13;&#10;&#13;&#10;                                              &#13;&#10;    &#13;&#10;    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure DialogPage1OnShow(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;                        &#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="qry_rp" DataSetName="rp"/>
    <item DataSet="qry_stock" DataSetName="stock"/>
  </Datasets>
  <Variables>
    <item Name="MY_STOCK_CODE"/>
    <item Name="MY_STOCK_NAME"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxUniDACQuery Name="qry_rp" UserName="rp" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="{IF SQLSERVER}                                 &#13;&#10;&#13;&#10;select  rp.COMMON_CODE , d.COMMON_DES , count(distinct isnull(rp.POX,'1')) as POX ,&#13;&#10;count(distinct isnull(rp.INVX,'1')) as INVX ,&#13;&#10;count( rp.item_ED) as item_ED , &#13;&#10;count( rp.item_NED) as item_NED ,&#13;&#10;sum( rp.amt_ED ) as amt_ED ,&#13;&#10;sum( rp.amt_NED ) as amt_NED,&#13;&#10;sum( rp.amt_All ) as amt_All        &#13;&#10;from                          &#13;&#10;(&#13;&#10;select  c.R_S_NUMBER,m.RECEIVE_NO,m.PO_NO as POX,&#13;&#10;m.INVOICE_NO as INVX,CASE when c.FREE_FLAG='Y' then '99' else m.BUY_COMMON end as COMMON_CODE,                &#13;&#10;case when  c.NLEM = 'ED'  then c.TRADE_CODE  else NULL end  as 'item_ED',&#13;&#10;case when c.NLEM = 'NED' then c.TRADE_CODE  else NULL end  as 'item_NED',&#13;&#10;case when c.NLEM = 'ED'  then c.RCV_VALUE else 0 end as 'amt_ED',&#13;&#10;case when c.NLEM = 'NED' then c.RCV_VALUE else 0 end as 'amt_NED',&#13;&#10;c.RCV_VALUE as amt_All                                   &#13;&#10;from &#13;&#10;(&#13;&#10;select&#13;&#10;case when dbo.IS_ED(g.IS_ED)='ED' then 'ED' else 'NED' end  as NLEM,c1.R_S_STATUS,c1.TRADE_CODE,c1.STOCK_ID,c1.R_S_NUMBER,&#13;&#10;SUM(CASE when c1.R_S_STATUS in ('R','I','G','A') then c1.[VALUE]&#13;&#10;when c1.R_S_STATUS in ('B') then c1.[VALUE]*-1    &#13;&#10;else NULL end) as RCV_VALUE,c1.FREE_FLAG                                                                                                     &#13;&#10;from CARD c1   (NOLOCK)       &#13;&#10;left join DRUG_GN g (NOLOCK) on (c1.WORKING_CODE = g.WORKING_CODE)                                                                                                                                                                 &#13;&#10;where c1.R_S_DATE between  :date1  and  :date2 &#13;&#10;and c1.STOCK_ID=:stock          &#13;&#10;and c1.R_S_STATUS in ('R','I','G','A','B')&#13;&#10;and dbo.IS_ED(g.IS_ED) in ('ED','NED')    &#13;&#10;GROUP BY c1.R_S_STATUS,c1.TRADE_CODE,c1.STOCK_ID,c1.R_S_NUMBER,g.IS_ED,c1.FREE_FLAG          &#13;&#10;) as  c&#13;&#10;left join MS_IVO m (nolock) on m.RECEIVE_NO = c.R_S_NUMBER           &#13;&#10;) as rp&#13;&#10;left join BUYCOMMON d (nolock) on (d.COMMON_CODE = rp.COMMON_CODE )    &#13;&#10;WHERE rp.RECEIVE_NO is not null&#13;&#10;GROUP BY rp.COMMON_CODE ,  d.COMMON_DES &#13;&#10;order by  rp.COMMON_CODE&#13;&#10;&#13;&#10;{else}&#13;&#10;&#13;&#10;select  rp.COMMON_CODE , d.COMMON_DES , count(distinct ifnull(rp.POX,'1')) as POX ,&#13;&#10;count(distinct ifnull(rp.INVX,'1')) as INVX ,&#13;&#10;count( rp.item_ED) as item_ED , &#13;&#10;count( rp.item_NED) as item_NED ,&#13;&#10;sum( rp.amt_ED ) as amt_ED ,&#13;&#10;sum( rp.amt_NED ) as amt_NED,&#13;&#10;sum( rp.amt_All ) as amt_All        &#13;&#10;from                          &#13;&#10;(&#13;&#10;select  c.R_S_NUMBER,m.RECEIVE_NO,m.PO_NO as POX,&#13;&#10;m.INVOICE_NO as INVX,CASE when c.FREE_FLAG='Y' then '99' else m.BUY_COMMON end as COMMON_CODE,                &#13;&#10;case when  c.NLEM = 'ED'  then c.TRADE_CODE  else NULL end  as 'item_ED',&#13;&#10;case when c.NLEM = 'NED' then c.TRADE_CODE  else NULL end  as 'item_NED',&#13;&#10;case when c.NLEM = 'ED'  then c.RCV_VALUE else 0 end as 'amt_ED',&#13;&#10;case when c.NLEM = 'NED' then c.RCV_VALUE else 0 end as 'amt_NED',&#13;&#10;c.RCV_VALUE as amt_All                                   &#13;&#10;from &#13;&#10;(&#13;&#10;select&#13;&#10;case when IS_ED(g.IS_ED)='ED' then 'ED' else 'NED' end  as NLEM,c1.R_S_STATUS,c1.TRADE_CODE,c1.STOCK_ID,c1.R_S_NUMBER,&#13;&#10;SUM(CASE when c1.R_S_STATUS in ('R','I','G','A') then c1.VALUE&#13;&#10;when c1.R_S_STATUS in ('B') then c1.VALUE*-1    &#13;&#10;else NULL end) as RCV_VALUE,c1.FREE_FLAG                                                                                                     &#13;&#10;from CARD c1&#13;&#10;left join DRUG_GN g   on (c1.WORKING_CODE = g.WORKING_CODE)                                                                                                                                                                 &#13;&#10;where c1.R_S_DATE between  :date1  and  :date2 &#13;&#10;and c1.STOCK_ID=:stock          &#13;&#10;and c1.R_S_STATUS in ('R','I','G','A','B')&#13;&#10;and IS_ED(g.IS_ED) in ('ED','NED')    &#13;&#10;GROUP BY c1.R_S_STATUS,c1.TRADE_CODE,c1.STOCK_ID,c1.R_S_NUMBER,g.IS_ED,c1.FREE_FLAG          &#13;&#10;) as  c&#13;&#10;left join MS_IVO m   on m.RECEIVE_NO = c.R_S_NUMBER           &#13;&#10;) as rp&#13;&#10;left join BUYCOMMON d   on (d.COMMON_CODE = rp.COMMON_CODE )    &#13;&#10;WHERE rp.RECEIVE_NO is not null&#13;&#10;GROUP BY rp.COMMON_CODE ,  d.COMMON_DES &#13;&#10;order by  rp.COMMON_CODE&#13;&#10;  &#13;&#10;{ENDIF}                " SpecificOptions.Text="" PropData="05704C656674024F0470546F7002230A506172616D657465727301010C54000000204E616D653D226461746531222044617461547970653D226674537472696E67222045787072657373696F6E3D22466F726D61744461746554696D652827595959596D6D6464272C64617465312E64617465292200010C54000000204E616D653D226461746532222044617461547970653D226674537472696E67222045787072657373696F6E3D22466F726D61744461746554696D652827595959596D6D6464272C64617465322E64617465292200010C40000000204E616D653D2273746F636B222044617461547970653D226674537472696E67222045787072657373696F6E3D226362625F646570742E6B657976616C75652200010C54000000204E616D653D226461746531222044617461547970653D226674537472696E67222045787072657373696F6E3D22466F726D61744461746554696D652827595959596D6D6464272C64617465312E64617465292200010C54000000204E616D653D226461746532222044617461547970653D226674537472696E67222045787072657373696F6E3D22466F726D61744461746554696D652827595959596D6D6464272C64617465322E64617465292200010C40000000204E616D653D2273746F636B222044617461547970653D226674537472696E67222045787072657373696F6E3D226362625F646570742E6B657976616C7565220000"/>
    <TfrxUniDACQuery Name="qry_stock" UserName="stock" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="{IF SQLSERVER}                             &#13;&#10;select * from DEPT_ID (NOLOCK) where (HIDE='' or HIDE is null    or HIDE='N')&#13;&#10;and DEPT_TYPE=2&#13;&#10;&#13;&#10;{ELSE}&#13;&#10;&#13;&#10;select * from DEPT_ID  where (HIDE='' or HIDE is null    or HIDE='N')&#13;&#10;and DEPT_TYPE=2&#13;&#10;&#13;&#10;{ENDIF}                " SpecificOptions.Text="" PropData="05704C65667402540470546F7002700A506172616D65746572730100"/>
  </TfrxDataPage>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxReportTitle Name="ReportTitle1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="130.89239333" Left="0" Top="16" Width="718.1107">
      <TfrxMemoView Name="Memo2" Left="2" Top="3.77953" Width="714.33117" Height="34.01577" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="สรุปการรับยาเข้าคลังแยกตามรูปแบบการจัดซื้อ"/>
      <TfrxLineView Name="Line1" Left="1.77953" Top="75.25201" Width="714.33117" Height="0" Color="0" Frame.Color="12632256" Frame.Width="0.5" Diagonal="True"/>
      <TfrxLineView Name="Line2" Left="1.77953" Top="129.92919" Width="714.33117" Height="0" Color="0" Frame.Color="12632256" Frame.Width="0.5" Diagonal="True"/>
      <TfrxMemoView Name="Memo4" Left="7.93846636" Top="88.29066182" Width="124.72449" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="รูปแบบการจัดซื้อ"/>
      <TfrxMemoView Name="Memo5" Left="223.18707545" Top="90.47248" Width="66.44959818" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="จน.ใบ INV"/>
      <TfrxMemoView Name="Memo6" Left="347.80705091" Top="79.25201" Width="79.37013" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="จำนวนรายการ"/>
      <TfrxMemoView Name="Memo7" Left="552.33828182" Top="76.19975273" Width="68.03154" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="มูลค่า"/>
      <TfrxMemoView Name="Memo8" Left="148.19202273" Top="89.10884364" Width="70.27922091" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="จน.ใบ PO"/>
      <TfrxMemoView Name="Memo3" Left="1.77953" Top="42.45671" Width="714.33117" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" ParentFont="False" Text="ตั้งแต่วันที่ [formatdatetime('dd/mm/YYYY',date1.date)] ถึงวันที่  [formatdatetime('dd/mm/YYYY',date2.date)] "/>
      <TfrxMemoView Name="Memo17" Left="340.10410222" Top="105.43568333" Width="27.14790778" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="ED"/>
      <TfrxMemoView Name="Memo18" Left="398.99299111" Top="105.43568333" Width="34.70696778" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="NED"/>
      <TfrxMemoView Name="Memo21" Left="490.21696556" Top="104.43568333" Width="27.14790778" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="ED"/>
      <TfrxMemoView Name="Memo22" Left="575.34209444" Top="104.43568333" Width="34.70696778" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="NED"/>
      <TfrxLineView Name="Line4" Left="337.91651273" Top="104.95640091" Width="98.26778" Height="0" Color="0" Frame.Color="13421772" Diagonal="True"/>
      <TfrxLineView Name="Line5" Left="452.57946909" Top="104.04731" Width="257.68089091" Height="0" Color="0" Frame.Color="13421772" Diagonal="True"/>
      <TfrxMemoView Name="Memo29" Left="664.27272728" Top="106.01144091" Width="47.60204091" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="รวม"/>
    </TfrxReportTitle>
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="30.23624" Left="0" Top="168" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="qry_rp" DataSetName="rp" RowCount="0">
      <TfrxMemoView Name="inv_md_cQTY_ON_HAND" Left="140.5671" Top="1.77953" Width="68.03154" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;POX&#34;]"/>
      <TfrxMemoView Name="inv_md_cTRADE_NAME" Left="1.77953" Top="1.77953" Width="137.58781727" Height="26.45671" DataSet="qry_rp" DataSetName="rp" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" ParentFont="False" Text="[Line#]. [rp.&#34;COMMON_DES&#34;]"/>
      <TfrxMemoView Name="Memo9" Left="299.21645091" Top="2" Width="65.78385909" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;item_ED&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="446.48856" Top="2" Width="83.14966" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;amt_ED&#34;]"/>
      <TfrxMemoView Name="Memo11" Left="215.94867091" Top="2" Width="68.46103909" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;INVX&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="365.64914444" Top="1.67614889" Width="64.25201" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;item_NED&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="532.31931556" Top="2.01473889" Width="86.44959818" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;amt_NED&#34;]"/>
      <TfrxMemoView Name="Memo27" Left="620.72727272" Top="1.98268364" Width="93.52906637" Height="26.45671" DataSet="qry_rp" DataSetName="rp" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[rp.&#34;amt_All&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="26.45671" Left="0" Top="304" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="638.5201" Top="1" Width="75.5906" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[Page#]"/>
    </TfrxPageFooter>
    <TfrxReportSummary Name="ReportSummary1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="64.7201609" Left="0" Top="220" Width="718.1107">
      <TfrxMemoView Name="Memo12" Left="441.07266636" Top="18" Width="88.12461364" Height="30.23624" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;amt_ED&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo13" Left="296.40971" Top="18" Width="68.03154" Height="30.23624" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;item_ED&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo14" Left="211.64873273" Top="18" Width="71.76097727" Height="30.23624" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;INVX&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo15" Left="122.09462" Top="18" Width="83.14966" Height="30.23624" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;POX&#34;&#62;,MasterData1)]"/>
      <TfrxLineView Name="Line3" Left="3.77953" Top="15.77953" Width="710.55164" Height="0" Color="0" Frame.Color="12632256" Frame.Width="0.5" Diagonal="True"/>
      <TfrxMemoView Name="Memo16" Left="68.72449" Top="19.55906" Width="56.69295" Height="22.67718" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="รวม"/>
      <TfrxMemoView Name="Memo20" Left="362.42207788" Top="17.74520667" Width="63.8225109" Height="30.23624" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;item_NED&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo24" Left="531.99299111" Top="17.97268556" Width="85.5906" Height="30.23624" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;amt_NED&#34;&#62;,MasterData1)]"/>
      <TfrxLineView Name="Line6" Left="3.77953" Top="51.57483" Width="710.55164" Height="0" Color="0" Frame.Color="12632256" Frame.Width="0.5" Diagonal="True"/>
      <TfrxMemoView Name="Memo28" Left="619.90909091" Top="18.45578182" Width="94.48825" Height="30.23624" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;rp.&#34;amt_All&#34;&#62;,MasterData1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
  <TfrxDialogPage Name="DialogPage1" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="0" Caption="ѺҤѧٻẺèѴ" Height="281" ClientHeight="243" Left="371" Top="208" Width="531" ClientWidth="515" OnActivate="DialogPage1OnActivate">
    <TfrxDateEditControl Name="date1" Left="168" Top="70" Width="97" Height="25" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" ShowHint="True" Color="-16777211" Date="41559.6971358681" Time="41559.6971358681" WeekNumbers="False"/>
    <TfrxDateEditControl Name="date2" Left="336" Top="70" Width="101" Height="25" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" ShowHint="True" Color="-16777211" Date="41559.6971358681" Time="41559.6971358681" WeekNumbers="False"/>
    <TfrxBitBtnControl Name="" Left="220" Top="172" Width="87" Height="33" Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" ParentFont="False" ShowHint="True" Glyph.PropData="04446174610AE2010000DE010000424DDE01000000000000760000002800000024000000120000000100040000000000680100000000000000000000100000000000000000000000000080000080000000808000800000008000800080800000C0C0C000808080000000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF003333333333333333333333333333333333330000333333333333333333333333F3333333333300003333344333333333333333388F3333333333000033334224333333333333338338F3333333330000333422224333333333333833338F3333333300003342222224333333333383333338F3333333000034222A22224333333338F338F3338F33333300003222A3A2224333333338F3838F338F33333300003A2A333A222433333338F83338F338F33333000033A33333A222433333338333338F338F33330000333333333A222433333333333338F338F33300003333333333A222433333333333338F338F33000033333333333A222433333333333338F338F30000333333333333A222433333333333338F338F00003333333333333A224333333333333338F38F000033333333333333A223333333333333338F830000333333333333333A3333333333333333383300003333333333333333333333333333333333330000" Kind="bkOK" Caption="OK" ModalResult="1" NumGlyphs="2"/>
    <TfrxLabelControl Name="Label1" Left="28" Top="68" Width="125" Height="29" Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" ParentFont="False" ShowHint="True" Caption="ѹѺͧ ѹ" Color="16768462"/>
    <TfrxLabelControl Name="Label2" Left="284" Top="68" Width="41" Height="29" Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" ParentFont="False" ShowHint="True" Caption="֧ѹ" Color="16768462"/>
    <TfrxDBLookupComboBox Name="cbb_dept" Left="164" Top="116" Width="273" Height="25" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" DataSet="qry_stock" DataSetName="stock" ListField="DEPT_NAME" KeyField="DEPT_ID" DropDownWidth="0" DropDownRows="7"/>
    <TfrxLabelControl Name="Label3" Left="114" Top="112" Width="36" Height="29" Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="AngsanaUPC" Font.Style="0" ParentFont="False" ShowHint="True" Caption="ѧ" Color="16768462"/>
  </TfrxDialogPage>
</TfrxReport>
