<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<section data-page="contract_add" data-title="添加合同">
	<div class="path1"><span>您的位置：</span>添加合同</div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th>合同编号：</th>
					<td><input type="text" name="No" value="<%=DateTime.Now.ToString("yyyyMMddhhmmss")%>" size="40" maxlength="150" class="ali-input ali-input-required"></td>
				</tr>
				<tr>
					<th>供应商：</th>
					<td><input type="text" name="SupplierName" size="40" maxlength="50" disabled class="ali-input ali-input-required <%=ContentLang%>Font"><input type="hidden" name="SupplierID"> <a class="ali-button" data-operation="SelectSupplier">选择</a></td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" size="40" maxlength="150" class="ali-input ali-input-required <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>合同扫描件：</th>
					<td><input type="text" name="File" size="55" class="ali-input"><a class="ali-button ali-uploader">浏览...</a></td>
				</tr>
				<tr>
					<th>签订日期：</th>
					<td><input type="text" name="SigningDate" size="18" maxlength="255" class="ali-input" readonly data-ali-widget="calendar"></td>
				</tr>
				<tr>
					<th>到期日期：</th>
					<td><input type="text" name="ExpirationDate" size="18" maxlength="255" class="ali-input" readonly data-ali-widget="calendar"></td>
				</tr>
				<tr>
					<th>发货运费类型：</th>
					<td>
						<select name="DeliverFreightType" data-ali-widget="combo">
							<option value="Seller">卖家承担</option>
							<option value="Collect">运费到付</option>
							<option value="Prepaid">运费预付</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>退货运费类型：</th>
					<td>
						<select name="ReturnFreightType" data-ali-widget="combo">
							<option value="Buyer">买家承担</option>
							<option value="Collect">运费到付</option>
							<option value="Prepaid">运费预付</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>税率：</th>
					<td><input type="text" name="TaxRate" value="0" size="10" maxlength="10" class="ali-input">%</td>
				</tr>
			</table>

			<div class="ali-panel margin3" data-height-style="content">
				<div class="ali-panel-header">商品列表</div>
				<div class="ali-panel-body">
					<a class="ali-button" data-operation="SelectGoods">选择商品</a>
					<table data-ali-widget="grid" class="grid1">
						<thead>
							<tr>
								<th data-name="GoodsName">商品名称</th>
								<th data-name="GoodsSpec">商品规格</th>
								<th width="100" data-name="PurchasePrice">进货价</th>
								<th width="100" data-name="ReturnPrice">退货价</th>
								<th data-name="Memo">备注</th>
								<th width="100" data-name="Operation">删除</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">添 加</button></div>
	</form>
</section>