106 lines
3.9 KiB
Plaintext
106 lines
3.9 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "高级查询导出";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
var attribute = Request.QueryString["Attribute"];
|
|
}
|
|
<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;
|
|
}
|
|
|
|
.bodyDiv {
|
|
padding: 0px;
|
|
}
|
|
</style>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.ToolButton("btnSave", "icon-save", "导出", true)
|
|
</div>
|
|
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>开始时间:@Html.WdatePickerText("txt_stime", Request.QueryString["stime"]) </li>
|
|
<li>结束时间:@Html.WdatePickerText("txt_etime", Request.QueryString["etime"]) </li>
|
|
<li>是否有工单:@Html.RadioButton("rdo_hasMemo", true) 是 @Html.RadioButton("rdo_hasMemo", false)否</li>
|
|
<li>已注册软件:@Html.RadioButton("rdo_hasRegisterSoftware", true) 是 @Html.RadioButton("rdo_hasRegisterSoftware", false)否</li>
|
|
<li>开户:@Html.RadioButton("rdo_hasOpenFuturesAccount", true) 是 @Html.RadioButton("rdo_hasOpenFuturesAccount", false)否</li>
|
|
<li>
|
|
开户:@Html.RadioButton("rdo_hasOpenSilverAccount", true) 是 @Html.RadioButton("rdo_hasOpenSilverAccount", false)否
|
|
@Html.Hidden("txt_ResTypeId", Request.QueryString["ResTypeId"])
|
|
@Html.Hidden("txt_ActivityId", Request.QueryString["ActivityId"])
|
|
</li>
|
|
<li>
|
|
@*@Html.ToolButtonPlain("btnQuery" , "icon-search", "查询", false, "")*@
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
var istg = '@attribute';
|
|
function getUrl() {
|
|
var addr = "GetStaHtmlListch";
|
|
if (istg = "1")
|
|
addr = "GetStaHtmlList3g";
|
|
if (istg = "0")
|
|
addr = "GetStaHtmlListch";
|
|
if (istg = "2")
|
|
addr = "GetStaHtmlListpc";
|
|
if (istg = "3")
|
|
addr = "GetStaHtmlListappzc";
|
|
if (istg = "4")
|
|
addr = "GetStaHtmlListqt";
|
|
if (istg = "5")
|
|
addr = "GetStaHtmlListpczc";
|
|
return addr;
|
|
}
|
|
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Res/Activity/' + getUrl(),
|
|
height: $(window).height() - 110,
|
|
loadNow: true
|
|
});
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
//展开特效
|
|
$(".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");
|
|
}
|
|
});
|
|
$("#btnSave").click(function () {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#txt_ResTypeId").val(row.ResTypeId);
|
|
$("#txt_ActivityId").val(row.ActivityId);
|
|
}
|
|
window.open("/Res/Activity/AdvancedResourceExport?" + GetQueryStr());
|
|
});
|
|
});
|
|
</script>
|