145 lines
5.0 KiB
Plaintext
145 lines
5.0 KiB
Plaintext
@using System.Collections;
|
|
@using System.Web.UI.WebControls;
|
|
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "L2OrderStOrEx";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<style>
|
|
.txt-expand {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.expand-activity {
|
|
background: url("/Content/Images/tools.png") no-repeat scroll 0 0;
|
|
}
|
|
|
|
.close-activity {
|
|
background: url("/Content/Images/icon/edit_remove.png") no-repeat;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
$(function () {
|
|
var search = -1;
|
|
getDate();
|
|
$('#tablist').tablegrid({
|
|
url: '/Level2/Leve2Order/L2OrderStOrExHtmlList',
|
|
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 }));
|
|
$stime.val(_date.AddDays(-7, { 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/Leve2Order/ListOrderStExport?" + GetQueryStr() + "&" + getPageOptions("tablist"))));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
});
|
|
|
|
|
|
$(".txt-expand").live("click", function () {
|
|
if ($(this).hasClass("expand-activity")) {
|
|
$(this).removeClass("expand-activity").addClass("close-activity");
|
|
$("[typeName='" + $(this).attr("title") + "']").css("display", "");
|
|
}
|
|
else {
|
|
$(this).removeClass("close-activity").addClass("expand-activity");
|
|
$("[typeName='" + $(this).attr("title") + "']").css("display", "none");
|
|
}
|
|
});
|
|
|
|
|
|
function Edit_Click() {
|
|
|
|
}
|
|
|
|
|
|
});
|
|
function BtnExportAll_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Level2/Leve2Order/ListOrderStExport?" + 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>
|
|
支付时间:
|
|
<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>
|
|
@*<li>
|
|
<input type="text" name="txt_protype" hidden="hidden" value=@ViewBag.protype />
|
|
|
|
</li>*@
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div> |