79 lines
2.7 KiB
Plaintext
79 lines
2.7 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.js?t=1"></script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.ToolButton("btnExport", "icon-export", "导出", false)
|
|
</div>
|
|
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
@*<li>@Html.Action("UserComBoxByRole", "Control", new { controlName = "nb1", onLoadSucced = "onLoadSucced()", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</li>*@
|
|
@*<li>@Html.Action("UserComBox", "Control")</li>*@
|
|
<li>结算时间:<input type="text" id="txt_STime" name="txt_STime" value=@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd")) onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width:100px;" />-@Html.WdatePickerText("txt_ETime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"))</li>
|
|
</ul>
|
|
</div>
|
|
<div id="tab"></div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
|
|
$("#btnQuery").click(function () {
|
|
//if ($("#txt_SltYearMonth").attr("disabled") != "disabled")
|
|
// $("#txt_SearchType").val(0);
|
|
var sTime = $("#txt_STime").val();
|
|
var eTime = $("#txt_ETime").val();
|
|
if (sTime == "") {
|
|
alert("到账开始时间不能为空!");
|
|
return;
|
|
}
|
|
if (eTime == "") {
|
|
alert("到账结束时间不能为空!");
|
|
return;
|
|
}
|
|
load();
|
|
});
|
|
|
|
$("#btnExport").click(function () {
|
|
window.open("/weiXin/CommissionGroup/NewsOrderReportExport?" + GetQueryStr());
|
|
});
|
|
|
|
load();
|
|
|
|
});
|
|
|
|
function load() {
|
|
var para = GetParams();
|
|
//console.log(para);
|
|
|
|
$.r_post("/weiXin/CommissionGroup/NewsOrderReport", para, function (res) {
|
|
$("#tab").html(res.rowsList);
|
|
});
|
|
}
|
|
|
|
function onLoadSucced() {
|
|
//$('#tablist').tablegrid("Search");
|
|
load();
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
//$("#tablist").tablegrid("Load");
|
|
load();
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
</script>
|