<!-- include '../header' -->
<script src="<?= WEB_SITE_GLOBAL ?>js/payments.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
	<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>
	<link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include '../menu' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
                    <!-- include '../admin/receipt_menu' -->
				</div>
			</div>
			<div class="adminContent autoHeight" style="height: 821px;">
				<legend><div class="fR"></div>公司流水所有收入</legend>
				<div class="demandCate">
				
				<form action="/wasteBookExpenditure" id="ira" method="get">
								
					<ul class="cateList">
	  					<li><a class="now" href="/wasteBookExpenditure" >所有支出</a>
	  					<a  href="/wasteBookIncome">所有收入</a></li>
	  					
	  					<li>
	  					<select name='cid'  select-wasteBook >
								<option <!-- if 'ALL' == {{cid}}  --> selected <!-- endif --> value="ALL">所有办事处</option>
								<!-- loop categoryList -->
								<option <!-- if {{categoryList' value.cid}} == {{cid}}  --> selected <!-- endif -->  value="{{categoryList' value.cidKey}}">
								{{categoryList' value.title}}</option>
								<!-- endloop -->
							</select>
	  					
	  					</li>
	  					<li>
	  						<select name="accountType" select-wasteBook >
	  						<option <!-- if 'ALL' == {{accountType}}  --> selected <!-- endif --> value="ALL">所有</option>
	  						<option <!-- if 'PAYMENTS' == {{accountType}}  --> selected <!-- endif --> value="PAYMENTS">日常支出</option>
	  						<option <!-- if 'RECEIPT' == {{accountType}}  --> selected <!-- endif --> value="RECEIPT">费用管理</option>
	  						<option <!-- if 'INVOICE' == {{accountType}}  --> selected <!-- endif --> value="INVOICE">收款退款</option>
	  						</select>
	  					</li>
	  					
	  					<!-- if 'PAYMENTS' == {{accountType}}  -->
	  					<li>
	  						<select name="dailyExpenditureType" select-wasteBook>
	  						<option <!-- if 'ALL' == {{dailyExpenditureType}}  --> selected <!-- endif --> value="ALL">所有</option>
	  						<option <!-- if 'FexW0' == {{dailyExpenditureType}}  --> selected <!-- endif --> value='FexW0'>银行手续费</option>
	  						<option <!-- if 'FWUUC' == {{dailyExpenditureType}}  --> selected <!-- endif --> value='FWUUC'>总部电话费</option>
	  						<option <!-- if 'FJWys' == {{dailyExpenditureType}}  --> selected <!-- endif --> value='FJWys'>缴税</option>
	  						<option <!-- if 'FUUXa' == {{dailyExpenditureType}}  --> selected <!-- endif --> value='FWXPj'>广发理财</option>
	  						<option <!-- if 'FxQPk' == {{dailyExpenditureType}}  --> selected <!-- endif --> value='FxQPk'>工行理财</option>
	  						<option <!-- if 'FyPxV' == {{dailyExpenditureType}}  --> selected <!-- endif --> value='FyPxV'>保证金</option>
	  						</select>
	  					</li>
	  					<!-- endif -->
	  					
	  					<!-- if 'RECEIPT' == {{accountType}}  -->
	  					<li>
	  						
	  						<select name="receiptType" select-wasteBook>
	  						<option <!-- if 'ALL' == {{receiptType}}  --> selected <!-- endif --> value="ALL">所有</option>
	  						<option <!-- if 'FexW0' == {{receiptType}}  --> selected <!-- endif --> value='FexW0'>借款</option>
	  						<option <!-- if 'FJWys' == {{receiptType}}  --> selected <!-- endif --> value='FJWys'>报销</option>
	  						<option <!-- if 'FUUXa' == {{receiptType}}  --> selected <!-- endif --> value='FUUXa'>对公汇款</option>
	  						
	  						</select>
	  					</li>
	  					<!-- endif -->
	  					
	  					<li>
							<div class="search">
								<div class="input-append">
									<input class="datepicker-here span3" name='inputDate' value='{{inputDate}}' placeholder="按时间筛选" type="text" data-range="true"
							    data-multiple-dates-separator=" : "
							    data-language="zh">
							    
							 
							    
									<button class="btn btn-small" type="submit">查询</button>
								</div>
							</div></li>
							
							
	  					<li>{{year}}合计：￥{{sum}}</li>
	  					<li>{{thsDay}}合计：￥{{thsDaySum}}</li>
	  			</ul>
	  			
	  			</form>
	  		</div>
	  		<div class="saeaList">
	  			<!--执行列表-->
	  			<div class="entry">
	  				<table class="table table-bordered table-condensed">
	  					<tr>
	  					<th class="taC">支出项</th>
	  					<!-- if 'INVOICE' == {{accountType}} -->
	  					<th class="taC">退款单位</th>
	  					<!-- endif -->
	  					<th class="taC">金额</th>
	  					<th class="taC">支出银行</th>
	  					<th class="taC">时间</th>
	  					<th class="taC">单号</th>
	  					<th class="taC">提交人</th>
	  					</tr>
	  <!-- loop incomeList -->	
	  
	  <tr>
											<!-- if {{expenditureList' value.accountType}}==5||{{expenditureList' value.accountType}}==9||{{expenditureList' value.accountType}}==10 -->
											<td>日常支出（{{expenditureList' value.data.expenditureTypeMsg}}）</td>
											<!-- elseif {{expenditureList' value.accountType}}==1 -->
											<td>费用管理（借款）</td>
											<!-- elseif {{expenditureList' value.accountType}}==2 -->
											<td>费用管理（借款报销）</td>
											<!-- elseif {{expenditureList' value.accountType}}==3 -->
											<td>费用管理（报销）</td>
											<!-- elseif {{expenditureList' value.accountType}}==4 -->
											<td>费用管理（对公汇款）</td>
											<!-- elseif {{expenditureList' value.accountType}}==11 -->
											<td>收款退款</td>
											<!-- elseif {{expenditureList' value.accountType}}==12 -->
											<td>费用管理（培训班）</td>
											<!-- endif -->
											
											<!-- if 'INVOICE' == {{accountType}} -->
											<td>{{expenditureList' value.data.refundCompany}}</td>
											<!-- endif -->
											
											<td>￥{{expenditureList' value.accountPriceShow}}</td>
											<td>{{expenditureList' value.accountBankMsg}}</td>
											<td>{{expenditureList' value.inputDate}}</td>
											<!-- if {{expenditureList' value.accountType}}==5||{{expenditureList' value.accountType}}==9||{{expenditureList' value.accountType}}==10  -->
											<td><a href="#saea-detail4" node-pay=waste data-key="{{expenditureList' value.data.aidKey}}" data-toggle="modal">{{expenditureList' value.data.bookSerial}}</a></td>
											<!-- elseif {{expenditureList' value.accountType}}==11 -->
											<td><a href="#saea-detail11" node-ir11=waste data-key="{{expenditureList' value.data.iridKey}}" data-toggle="modal">{{expenditureList' value.data.receivablesSerial}}</a></td>	
											<!-- elseif {{expenditureList' value.accountType}}==12 -->
											<td><a href="/receiptTrain/info/{{expenditureList' value.data.ridKey7}}.html" data-toggle="modal">{{expenditureList' value.data.receiptOrder}}</a></td>
			
											<!-- else -->
											<td><a href="#saea-detail1" node-receipt=waste data-key="{{expenditureList' value.data.ridKey}}" data-toggle="modal">{{expenditureList' value.data.receiptOrder}}</a></td>
											<!-- endif -->
											<td>{{expenditureList' value.category}}-{{expenditureList' value.name}}</td>
										</tr>
	  
	  <!-- endloop -->				
	  				</table>
	  			</div>
	  		</div>
			</div>
		</div>
	</div>


	<!--弹出费用详情 借款报销-->
	<div class="modal hide fade" id="saea-detail1">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>费用详情</h3>
				</div>
				<div class="modal-body saeaList">
					<div id="wasteReceipt"></div>
				</div>
				<div class="modal-footer">
					<a href="#" class="button btn-gray" data-dismiss="modal"
						aria-hidden="true">关闭</a>
				</div>
			</div>
		</div>
	</div>
	
	
	<!--弹出日常收支 -->
	<div class="modal hide fade" id="saea-detail4">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>费用详情</h3>
				</div>
				<div class="modal-body saeaList">
					<table class="table table-bordered table-condensed">
						<tboay>
						<tr>
							<th class="taC" colspan="2">支出</th>
						</tr>
						<tr>
							<th class="taC" width="110">收支录入</th>
							<td id='WI-wasteStaff'></td>
						</tr>
						<tr>
							<th class="taC">单号</th>
							<td id='WI-bookSerial'></td>
						</tr>
						<tr>
							<th class="taC">费用类型</th>
							<td id='WI-expenditureMsg'></td>
						</tr>
						<tr>
							<th class="taC">支出金额</th>
							<td id='WI-expenditurePrice'></td>
						</tr>
						<tr>
							<th class="taC">支出银行</th>
							<td id='WI-expenditureBank'></td>
						</tr>
						<tr>
							<th class="taC">银行支付时间</th>
							<td id='WI-expenditureDate'></td>
						</tr>
						<tr>
							<th class="taC">备注</th>
							<td id='WI-remarks'></td>
						</tr>
						</tboay>
					</table>
				</div>
				<div class="modal-footer">
					<a href="#" class="button btn-gray" data-dismiss="modal"
						aria-hidden="true">关闭</a>
				</div>
			</div>
		</div>
	</div>
	
	 <!-- 弹出收入详情 -->
    <div class="modal hide fade" id="saea-detail11">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h3>收款详情</h3>
                </div>
                <div class="modal-body saeaList">
                    <table class="table table-bordered table-condensed">
                        <tboay>
                            <tr><th class="taC" colspan="2">支出</th></tr>
                            <tr><th class="taC" width="110">支出录入</th>
                            <td id='IR11-wasteStaff'></td></tr>
                            <tr><th class="taC">单号</th>
                            <td id='IR11-bookSerial'></td>
                            </tr>
                            <tr><th class="taC">支出信息</th>
                           <td id='IR11-expenditureMsg'></td>
                            </tr>
                            <tr><th class="taC">退款金额</th>
                           <td id='IR11-expenditurePrice'></td>
                            </tr>
                            <tr><th class="taC">支出银行</th>
                            <td id='IR11-expenditureBank'></td>
                            </tr>
                            <tr><th class="taC">银行到帐时间</th>
                           <td id='IR11-expenditureDate'></td>
                            </tr>
                            
                        </tboay>
                    </table>
                </div>
                <div class="modal-footer">
                    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
                </div>
            </div>
        </div>
    </div>
	
	
<script type="text/javascript">autoFlashHeight();</script>
</body>
