128 lines
5.7 KiB
Plaintext
128 lines
5.7 KiB
Plaintext
@using System.Collections;
|
|
@using System.Web.UI.WebControls;
|
|
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "L2OrderStOrExDetail";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
function onLoadSucced() {
|
|
$('#detailtablist').tablegrid("Search");
|
|
}
|
|
$(function () {
|
|
var search = -1;
|
|
$('#detailtablist').tablegrid({
|
|
url: '/Level2/Leve2Order/L2OSOEDGetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onloadsuccess: function (data) {
|
|
//成功
|
|
},
|
|
onloaderror: function () {
|
|
//失败
|
|
$.messager.alert("警告", "信息加载失败!", "error");
|
|
}
|
|
});
|
|
|
|
//$('#detailtablist').tablegrid("Load");
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#detailtablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
$("#btnQuery").click(function () {
|
|
$('#detailtablist').tablegrid("Search");
|
|
});
|
|
$("#btnQuery_his").click(function () {
|
|
search = 1;
|
|
$('#detailtablist').tablegrid("Search");
|
|
});
|
|
|
|
|
|
$("#btnExport").click(function () {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Level2/Leve2Order/L2OrderStOrExDetailListExport?" + GetQueryStr() + "&" + getPageOptions("detailtablist"))));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
});
|
|
|
|
|
|
|
|
|
|
function Edit_Click() {
|
|
|
|
}
|
|
|
|
});
|
|
function BtnExportAll_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Level2/Leve2Order/L2OrderStOrExDetailListExport?" + GetQueryStr() + "&" + getPageOptions("detailtablist"))));
|
|
$("#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) {
|
|
$("#detailtablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
function getPageOptions(gridID) {
|
|
var option = $("#detailtablist").tablepage('getPagination');
|
|
var str = "rows=" + option.rows + "&page=" + option.page + "&order=" + option.order + "&sort=" + option.sort;
|
|
return str;
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#detailtablist').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;display:none" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>
|
|
<input type="text" name="txt_stime" hidden="hidden" value=@ViewBag.Stime />
|
|
<input type="text" name="txt_etime" hidden="hidden" value=@ViewBag.Etime />
|
|
<input type="text" name="txt_productbigtype" hidden="hidden" value=@ViewBag.Productbigtype />
|
|
<input type="text" name="txt_regCampainid" hidden="hidden" value=@ViewBag.RegCampainid />
|
|
</li>
|
|
@*<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>
|
|
<input type="text" name="txt_protype" hidden="hidden" value=@ViewBag.protype />
|
|
|
|
</li>*@
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div> |