133 lines
5.2 KiB
Plaintext
133 lines
5.2 KiB
Plaintext
@using WX.CRM.WebHelper
|
|
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.js"></script>
|
|
<script src="~/Scripts/op/ofixedtable.js"></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>
|
|
年:<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>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</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 id="dlg1" class="easyui-dialog" closed="true" style="width: 600px; height: 400px; padding: 10px;">
|
|
<ul>
|
|
<li>底薪:<span id="dixing" style="color:red">2000</span></li>
|
|
<li>交通补贴:<span id="jiaotong" style="color:red">200</span></li>
|
|
<li>岗位补贴:<span id="gangwei" style="color:red"></span></li>
|
|
<li id="haszhengshu" style="display: none">有证书:<span id="zhengshu" style="color:red"></span></li>
|
|
</ul>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/*=================================================================*/
|
|
$(document).ready(function () {
|
|
var ofix1 = null;
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
if (ofix1 != null)
|
|
ofix1.resize();
|
|
});
|
|
|
|
var today = new Date();
|
|
var year = today.getFullYear();
|
|
var month = today.getMonth();
|
|
if (month == 0) {
|
|
year = year - 1;
|
|
month = 12;
|
|
}
|
|
$("#SltYear").val(year);
|
|
$("#SltMonth").val(month);
|
|
|
|
$("#tablist").tablegrid({
|
|
url: '/WeiXin/MonthSettlement/Index',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
data: GetControlValue,
|
|
onLoadSuccess: function (data) {
|
|
if (ofix1 == null) {
|
|
ofix1 = new oFixedTable('ofix1', document.getElementById('tablist'), {});
|
|
} else {
|
|
ofix1.resize();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
function GetControlValue() {
|
|
return { year: $("#SltYear").val(), month: $("#SltMonth").val() };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function ExportAllPage_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport_cookie?Query=" + encodeURIComponent("/WeiXin/MonthSettlement/Export?year=" + $("#SltYear").val() + "&month=" + $("#SltMonth").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
function GetRefundInfo(inneruserid,yearmonth) {
|
|
if (inneruserid != undefined && inneruserid.length != 0 && inneruserid != 0) {
|
|
$("#modalwindow").html(GetIframeHtml("/WeiXin/SzzyOrderRefund/Info?inneruserid=" + inneruserid + "&yearmonth=" + yearmonth + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '退款信息', width: 830, height: 550, iconCls: 'icon-edit' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
function ShowDiXing(gangwei, zhengshu) {
|
|
$("#gangwei").html(gangwei);
|
|
$("#zhengshu").html(zhengshu);
|
|
if (zhengshu > 0) {
|
|
$("#haszhengshu").show();
|
|
} else {
|
|
$("#haszhengshu").hide();
|
|
}
|
|
$('#dlg1').dialog({ title: "底薪明细", width: 550, height: 250, closed: false, cache: false, modal: true });
|
|
}
|
|
</script>
|