149 lines
6.4 KiB
Plaintext
149 lines
6.4 KiB
Plaintext
@using System.Collections;
|
|
@using System.Web.UI.WebControls;
|
|
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
$(function () {
|
|
var search = -1;
|
|
getDate();
|
|
$('#tablist').tablegrid({
|
|
url: '/Level2/L2OrderPayList/GetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onloadsuccess: function (data) {
|
|
//成功
|
|
},
|
|
onloaderror: function () {
|
|
//失败
|
|
$.messager.alert("警告", "信息加载失败!", "error");
|
|
}
|
|
});
|
|
|
|
function getDate() {
|
|
var _date, $stime, $etime;
|
|
_date = CRM_Comon().GetDate();
|
|
$stime = $("#txt_ctime");
|
|
$etime = $("#txt_etime");
|
|
if ($stime.val() == "") {
|
|
$stime.val(_date.getLocalDate({ MinDate: true }));
|
|
} if ($etime.val() == "") {
|
|
$etime.val(_date.getLocalDate({ MaxDate: true }));
|
|
}
|
|
}
|
|
//$('#tablist').tablegrid("Load");
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$("#btnQuery_his").click(function () {
|
|
search = 1;
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
|
|
|
|
$("#btnExport").click(function () {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Level2/L2OrderPayList/ListExport?" + GetQueryStr() + "&" + getPageOptions("tablist"))));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
});
|
|
|
|
|
|
|
|
|
|
function Edit_Click() {
|
|
|
|
}
|
|
|
|
$("#slt_productbigtype").change(function () {
|
|
var selec = $("#slt_productbigtype").val();
|
|
$("#slt_productsmalltype").get(0).options.length = 0;
|
|
$.getJSON("/Level2/L2OrderPayList/JsonProType?code=" + selec, { 'slt_productbigtype': selec }, function (data) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
$("#slt_productsmalltype").append("<option value='" + data[i].Value + "'>" + data[i].Text + "</option>");
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
});
|
|
function BtnExportAll_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Level2/L2OrderPayList/ListExport?" + GetQueryStr() + "&" + getPageOptions("tablist"))));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
|
|
//ifram 返回
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
function getPageOptions(gridID) {
|
|
var option = $("#tablist").tablepage('getPagination');
|
|
var str = "rows=" + option.rows + "&page=" + option.page + "&order=" + option.order + "&sort=" + option.sort;
|
|
return str;
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
</script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
|
|
</div>
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>产品大类:@Html.DropDownList("slt_productbigtype", ViewBag.bplist as IEnumerable<SelectListItem>, new { style = "width:150px" }) </li>
|
|
<li>产品小类:@Html.DropDownList("slt_productsmalltype", ViewBag.splist as IEnumerable<SelectListItem>, new { style = "width:165px" }) </li>
|
|
<li>
|
|
支付类型: @Html.DropDownList("slt_paytype", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="所有",Value=""},
|
|
new SelectListItem(){ Text="支付宝",Value="1"},
|
|
new SelectListItem(){ Text="财付通",Value="2"},
|
|
new SelectListItem(){ Text="银行转账",Value="3"},
|
|
new SelectListItem(){ Text="网银支付",Value="4"},
|
|
new SelectListItem(){ Text="微信支付",Value="5"},
|
|
new SelectListItem(){ Text="支付宝银联",Value="6"},
|
|
new SelectListItem(){ Text="银联",Value="7"},
|
|
new SelectListItem(){ Text="公司赠送",Value="10"}
|
|
}, new { style = "width:80px" })
|
|
</li>
|
|
<li>用户名:<input type="text" name="txt_userName" /> </li>
|
|
<li>订单号:<input type="text" name="txt_OrderId" /> </li>
|
|
<li>支付流水号:<input type="text" name="txt_PayNo" style="width:200px;" /> </li>
|
|
<li>
|
|
支付时间:
|
|
<input type="text" id="txt_ctime" name="txt_ctime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:140px;" />
|
|
~<input type="text" id="txt_etime" name="txt_etime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:140px;" />
|
|
@*<li>
|
|
@Html.ToolButtonPlain("btnQuery", "icon-search", "查询", true, "")
|
|
@Html.ToolButtonPlain("btnExport", "icon-export", "导出", true, "")
|
|
</li>*@
|
|
<li>
|
|
<input type="text" name="txt_protype" hidden="hidden" value=@ViewBag.protype />
|
|
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div> |