TG.WXCRM.V4/WEB/Views/WeiXin/OrderPay/Index.cshtml

91 lines
3.9 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "RefundApplyList";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
@*@Html.ToolButton("btnExport", "icon-export", "导出", "Export_Click", true)*@
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>订单ID<input type="text" name="txt_orderId" id="txt_orderId" style="width:150px" value="@Request.QueryString["orderid"]" /></li>
<li>流水号:<input type="text" name="txt_payno" id="txt_payno" /></li>
@{
if (!string.IsNullOrEmpty(Request.QueryString["orderid"]))
{
<li>到账时间:@Html.WdatePickerText("txt_sTime", string.Empty)-@Html.WdatePickerText("txt_eTime", string.Empty)</li>
}
else
{
<li>到账时间:@Html.WdatePickerText("txt_sTime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_eTime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"))</li>
}
}
<li>审核状态:<select name="slt_status"><option value="">全部</option><option value="1">已审核</option><option value="0">未审核</option><option value="-1">驳回</option></select></li>
<li>审核时间:@Html.WdatePickerText("txt_aTime", "")-@Html.WdatePickerText("txt_zTime", "")</li>
<li>
支付类型:@Html.DropDownList("slt_paytype", new List<SelectListItem>() { new SelectListItem() { Text = "", Value = "" }, new SelectListItem() { Text = "支付宝", Value = "1" }, new SelectListItem() { Text = "银行转账", Value = "3" }, new SelectListItem() { Text = "微信支付", Value = "5" } })
</li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
loadtablegrid();
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
function loadtablegrid() {
$('#tablist').tablegrid({
url: '/WeiXin/OrderPay/Index',
height: $(window).height() - 110,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
}
//function ApplyDepositRefund(id) {
// $("#modalwindow").html(GetIframeHtml("/WeiXin/OrderDeposit/Refund?id=" + id));
// $("#modalwindow").window({ title: "订金退款申请", width: 500, height: 400, iconCls: 'icon-add', resizable: false }).window('open');
//}
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
function getDataGridHeader() {
var columns = $('#tablist').tablegrid("getAllHead");
return columns;
}
function Export_Click() {
var para = GetQueryStr();
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/WeiXin/OrderPay/Export?" + para)));
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
}
</script>