You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/BookingJieFeng/Views/Booking/SignList.cshtml

106 lines
4.0 KiB
Plaintext

3 years ago
@{
}
<div class="wrapper-content J_mainContent gray-bg-right">
<div class="row">
<div class="ibox">
<div class="ibox-title">
<h5>签单条列表</h5>
</div>
<div class="ibox-content">
<table id="table"
data-toggle="table"
data-show-refresh="false"
data-show-toggle="false"
data-show-columns="false"
data-url="@Url.Action("SignListData")"
data-content-type="application/x-www-form-urlencoded"
data-pagination="true"
data-side-pagination="server"
data-total-field="Total"
data-data-field="DataList"
data-page-number="1"
data-page-size="10"
data-query-params="queryParams"
data-method="post">
<thead>
<tr>
<th data-checkbox="true"></th>
<th data-field="签单条编号" data-sortable="true" data-formatter="operateFormatter">签单条编号</th>
<th data-field="客户名称" data-sortable="true">客户名称</th>
<th data-field="客户类型" data-sortable="true">客户类型</th>
<th data-field="账期" data-sortable="true">账期</th>
<th data-field="状态" data-sortable="true">状态</th>
<th data-field="录入人" data-sortable="true">录入人</th>
<th data-field="录入日期" data-sortable="true">录入日期</th>
<th data-field="录入人电话" data-sortable="true">录入人电话</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
@section styles
{
<link type="text/css" rel="stylesheet" href="~/Content/css/orderlist.css" />
<link type="text/css" rel="stylesheet" href="~/Content/hplus/css/plugins/footable/footable.core.css" />
}
@section scripts{
<script src="~/Content/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="~/Content/hplus/js/plugins/suggest/bootstrap-suggest.min.js"></script>
<script src="~/Content/hplus/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="~/Content/js/validatorConfig.js"></script>
<script src="~/Content/js/jquery.form.js"></script>
<script src="~/Content/js/common.js"></script>
<script>
$(function () {
$("#btn-reset").click(function () {
$(".form-horizontal input").val('');
});
$('#table').bootstrapTable({ height: $(window).height() - 150 });
$("#btnSearch").click(function () {
$('#table').bootstrapTable('refresh')
})
$('#ETD_START,#ETD_END').datepicker({
autoclose: true,
format: "yyyy-mm-dd"
});
$("#btnCopy").click(function () {
var sel = $('#table').bootstrapTable('getSelections')
if (sel.length != 1) {
layer.alert('@Resources.LangOrder.MsgChooseOneToCopy');
return;
}
parent.addMenuTab("@Url.Action("Copy")?srcORDNO=" + sel[0].ORDNO, '@Resources.LangOrder.BtnCopy', 0)
})
});
function queryParams(params) {
return params
} ``
function operateFormatter(value, row, index) {
var signNO = row.签单条编号;
return [
'<a class="tabs" data-url="@Url.Action("SignView")?signNO=' + signNO + '" data-title="签单条' + signNO+'">',
signNO,
'</a>'
].join('');
return '';
}
</script>
}