<!-- include ファイルは、jsp:text が使用できません。  -->
<og:message lbl="GFM0004" val0="{@YEAR}" val1="{@BLOCK}" comment=" 年 地区 営業所別 売上比率 グラフ" />

<og:query command = "{@command}" debug="false" displayMsg="" >
		select BRANCH,SUM(SALES) AS SALES
		from GF43
		where YEAR  = '{@YEAR}'
		and   BLOCK = '{@BLOCK}'
		group by BRANCH
		order by SALES DESC
</og:query>

<og:view useScrollBar="false" />

<hr />
<og:message lbl="GFM0005" val0="{@YEAR}" val1="{@BLOCK}" comment=" 年 地区 営業所別 売上順グラフ" />

<og:query command = "{@command}" debug="false" displayMsg="" >
		select BRANCH,SUM(SALES) AS SALES, SUM(AMOUNT) AS AMOUNT, 
				SUM(SALES-AMOUNT) AS PROFIT
		from GF43
		where YEAR  = '{@YEAR}'
		and   BLOCK = '{@BLOCK}'
		group by BRANCH
		order by SALES DESC
</og:query>

<og:view useScrollBar="false" />

<hr />
<og:message lbl="GFM0006" val0="{@YEAR}" val1="{@BLOCK}" comment=" 年 地区 月別 売上・経費・利益推移グラフ" />

<og:query command = "{@command}" debug="false" displayMsg="" >
		select MONTH,SUM(SALES) AS SALES, SUM(AMOUNT) AS AMOUNT, SUM(SALES-AMOUNT) AS PROFIT
		from GF43
		where YEAR  = '{@YEAR}'
		and   BLOCK = '{@BLOCK}'
		group by MONTH
		order by MONTH
</og:query>

<og:view useScrollBar="false" />
