154 lines
6.3 KiB
Plaintext
154 lines
6.3 KiB
Plaintext
@using WX.CRM.WebHelper
|
|
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<style type="text/css">
|
|
#dlg4 ul li {
|
|
height:20px;
|
|
line-height:20px;
|
|
}
|
|
</style>
|
|
<script src="~/Scripts/op/tablegrid.sort.js"></script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.ToolButton("btnExport", "icon-export", "主管组业绩导出", true)
|
|
@Html.ToolButton("btnExport2", "icon-export", "主管个人业绩导出", 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>
|
|
年:<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>
|
|
<li><span id="checkTip"></span></li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
主管个人业绩:
|
|
<div class="bas_datagrid">
|
|
@Html.Raw(ViewBag.gridTable2)
|
|
</div>
|
|
<div id="dlg4" class="easyui-dialog" closed="true" style="width: 600px; height: 400px; padding: 10px;">
|
|
<ul>
|
|
<li>出单人数:<span id="orderRate"></span></li>
|
|
<li>出单提成比例:<span id="orderCommissionRate" style="color:red"></span></li>
|
|
<li>缺勤人数:<span id="chuqinGroupRate"></span></li>
|
|
<li>全勤提成比例:<span id="chuqinGroupCommissionRate" style="color:red"></span></li>
|
|
<li>离职人数:<span id="dismissRate"></span></li>
|
|
<li>无离职提成比例:<span id="dismissCommissionRate" style="color:red"></span></li>
|
|
</ul>
|
|
</div>
|
|
<input type="hidden" id="tableId" />
|
|
<script type="text/javascript">
|
|
/*=================================================================*/
|
|
$(document).ready(function () {
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
|
|
var today = new Date();
|
|
var year = date.getFullYear();
|
|
var month = date.getMonth();
|
|
if (month == 0) {
|
|
year = year - 1;
|
|
month = 12;
|
|
}
|
|
$("#SltYear").val(year);
|
|
$("#SltMonth").val(month);
|
|
|
|
LoadData();
|
|
|
|
$("#btnExport").click(function () {
|
|
$("#tableId").val("tablist1")
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport_cookie?Query=" + encodeURIComponent("/WeiXin/MonthSettlementGrouper/Export?year=" + $("#SltYear").val() + "&month=" + $("#SltMonth").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
});
|
|
$("#btnExport2").click(function () {
|
|
$("#tableId").val("tablist2")
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport_cookie?Query=" + encodeURIComponent("/WeiXin/MonthSettlementGrouper/Export2?year=" + $("#SltYear").val() + "&month=" + $("#SltMonth").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
});
|
|
});
|
|
function LoadData() {
|
|
$("#tablist1").tablegrid({
|
|
url: '/WeiXin/MonthSettlementGrouper/Index',
|
|
height: $(window).height()/2 - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
$("#tablist2").tablegrid({
|
|
url: '/WeiXin/MonthSettlementGrouper/Index2',
|
|
height: $(window).height()/2 - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
}
|
|
function Show(orderRate, orderCommissionRate, chuqinGroupRate, chuqinGroupCommissionRate, dismissRate, dismissCommissionRate) {
|
|
$("#orderRate").html(orderRate);
|
|
$("#orderCommissionRate").html(orderCommissionRate);
|
|
$("#chuqinGroupRate").html(chuqinGroupRate);
|
|
$("#chuqinGroupCommissionRate").html(chuqinGroupCommissionRate);
|
|
$("#dismissRate").html(dismissRate);
|
|
$("#dismissCommissionRate").html(dismissCommissionRate);
|
|
|
|
$('#dlg4').dialog({ title: "奖励提成", width: 550, height: 250, closed: false, cache: false, modal: true });
|
|
}
|
|
function GetControlValue() {
|
|
return { year: $("#SltYear").val(), month: $("#SltMonth").val() };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
LoadData();
|
|
});
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
function getDataGridHeader() {
|
|
var tableId = $("#tableId").val();
|
|
var columns = $("#" + tableId).tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function GetRefundInfo(gid, yearmonth, eid) {
|
|
if (gid != undefined && gid.length != 0 && gid != 0) {
|
|
$("#modalwindow").html(GetIframeHtml("/WeiXin/SzzyOrderRefund/Info?gid=" + gid + "&yearmonth=" + yearmonth + "&eid=" + eid + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '退款信息', width: 830, height: 550, iconCls: 'icon-edit' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
</script>
|