85 lines
3.2 KiB
Plaintext
85 lines
3.2 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "excel导入日志";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.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>文件类型:@Html.DropDownList("slt_excelType", new WX.CRM.WEB.Handler.ControlResource().GetExcelTypeList(1)) </li>
|
|
<li>
|
|
处理状态:
|
|
<select name="slt_doneStatus">
|
|
<option value="">全部</option>
|
|
<option value="200">数据生成成功</option>
|
|
<option value="110">已计算</option>
|
|
<option value="100">文件已导入</option>
|
|
<option value="70">无效</option>
|
|
</select>
|
|
|
|
</li>
|
|
<li style="display:none;">创建时间:@Html.WdatePickerText("txt_stime", "")~@Html.WdatePickerText("txt_etime", "")</li>
|
|
<li>
|
|
@*@Html.ToolButtonPlain("btnQuery", "icon-search", "查询", false, "")*@
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Base/ExcelImportLog/GetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onLoadSuccess: function () {
|
|
//成功
|
|
}, onLoadError: function () {
|
|
$.messager.alert("警告", "查询出现错误", "error");
|
|
//失败
|
|
}
|
|
});
|
|
|
|
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
</script>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
function Continue_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
if (row.DONESTATUS == "200") {
|
|
$.messageBox5s('提示', '该记录已经完成导入!不能再导入!');
|
|
return;
|
|
}
|
|
window.parent.addTab("继续导入", "/Import/ExcelImport/ContinueImport?excelType=" + row.EXCELTYPE + "&importId=" + row.IMPORTID, "");
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
</script>
|