<#import "../../ftllib/spring_new.ftl" as spring />
<#import "../../ftllib/pagecom.ftl" as page />
<#import "../../ftllib/frame.ftl" as frame />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href='<@spring.url ""/>'/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>补货向导</title>
<link type="text/css" href="css/blue.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="javascript/jquery_easy_ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="javascript/jquery_easy_ui/themes/icon.css">
<style>
	fieldset{width:96%;margin:20px 0px;text-align:left;padding:10px 10px;}
	fieldset legend{font-weight:bold;}
	fieldset p{height:30px;line-height:30px;}
	fieldset button{padding:3px 5px;}
</style>
<script type='text/javascript' src="javascript/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="javascript/jquery_easy_ui/jquery.easyui.min.js" charset="utf-8"></script>
</head>
<script language="javascript"> 
function cpxs(){
  window.location.href = "<@spring.url "kc/guide/sale.html"/>";
};
function cpdh(){
  window.location.href = "<@spring.url "kc/guide/guide_menu.html"/>";
};
function safestock(){
  window.location.href = "<@spring.url "kc/guide/safe_stock.html"/>";
};
function qyyl(){
  window.location.href = "<@spring.url "kc/guide/guide_qyyl.html"/>";
}
function makeOrder(){
  window.location.href = "<@spring.url "kc/guide/guide_make_order.html"/>";
}
</script>
<body class="easyui-layout">
<div id="header_div" region="north" border="false" style="height:40px;width:99%;overflow:hidden;">
<@page.bodyTop>
	<@page.bodyTopLink>
		<@page.link "物流管理平台","kc/main_page.html"/>&nbsp;&gt;&nbsp;补货向导
	</@page.bodyTopLink>
	<@page.bodyTopImage>
	<@page.topImage "back",""/>
	</@page.bodyTopImage>
</@page.bodyTop>
</div>
<div region="center" border="false" style="text-align:center;">
	<#if loginUser.getUserType()==1>
	<fieldset>
    	<legend>按菜品销售</legend>
    	
    	<p>根据特定时间段内的菜品销售数量和菜品成本卡来推算原材料的采购需求量。</p>
    	
   		<button onclick="cpxs();">进入向导 >></button>
  	</fieldset>
  	</#if>
	<#if loginUser.getUserType()==1>
	<fieldset>
    	<legend>按菜品订货</legend>
    	<p>根据特定时间段内的菜品订货数量和菜品成本卡来推算原材料的采购需求量。</p>
   		<button onclick="cpdh();">进入向导 >></button>
  	</fieldset>
  	</#if>
  	
  	<#if loginUser.getUserType()==1>
  	<fieldset>
    	<legend>按千元用量</legend>
    	<p>根据特定时间段内的菜品销售数量和菜品成本卡来推算原材料的千元用量。</p>
   		<button onclick="qyyl();">进入向导 >></button>
  	</fieldset>	
  	</#if>
  	
  	<fieldset>
   	 	<legend>按安全库存</legend>
   	 	<p>根据材料的当前库存量及材料的安全库存来生成采购计划。</p>
   		<button onclick="safestock()">进入向导  >></button>
  	</fieldset> 
  	<#if loginUser.getUserType()!=1>
  	<fieldset>
   	 	<legend>按生产任务总单</legend>
   	 	<p>根据材料的生产任务总单来生成采购计划。</p>
   		<button onclick="makeOrder()">进入向导  >></button>
  	</fieldset> 
  	</#if>
</div>

</body>
</html>
