101 lines
3.4 KiB
Plaintext
101 lines
3.4 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<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.Action("UserComBoxByRole", "Control", new { type = "2", onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId })</li>
|
|
<li>
|
|
年:<select id="SltYear">
|
|
<option>2016</option>
|
|
<option>2017</option>
|
|
<option>2018</option>
|
|
<option>2019</option>
|
|
<option>2020</option>
|
|
<option>2021</option>
|
|
<option>2022</option>
|
|
<option>2023</option>
|
|
<option>2024</option>
|
|
<option>2025</option>
|
|
<option>2026</option>
|
|
<option>2027</option>
|
|
<option>2028</option>
|
|
<option>2029</option>
|
|
<option>2030</option>
|
|
</select>
|
|
月:<select id="SltMonth">
|
|
<option>01</option>
|
|
<option>02</option>
|
|
<option>03</option>
|
|
<option>04</option>
|
|
<option>05</option>
|
|
<option>06</option>
|
|
<option>07</option>
|
|
<option>08</option>
|
|
<option>09</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
</select>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
var today = new Date();
|
|
$("#SltYear").val(today.getFullYear());
|
|
var m = "0000" + today.getMonth() + "";
|
|
$("#SltMonth").val(m.substring(m.length - 2));
|
|
|
|
$('#tablist').tablegrid({
|
|
url: '/weiXin/CommissionGroupAssess/index',
|
|
height: $(window).height() - 130,
|
|
loadNow: false,
|
|
isPage: false,
|
|
data: GetControlValue,
|
|
onLoadSuccess: function (data) {
|
|
//$("#lbInitDatetime").text(data.initTime);
|
|
}
|
|
});
|
|
function GetControlValue() {
|
|
return { gid: $("#nb1_uc_org_groups").val(), year: $("#SltYear").val(), month: $("#SltMonth").val() };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
});
|
|
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
</script>
|