- 注册时间
- 2013-2-27
- 最后登录
- 2024-9-11
- 阅读权限
- 10
- 积分
- 1829
- 精华
- 0
- 帖子
- 481
|
factory 发表于 2013-3-26 09:29
那你更新下miniui,或者你做个可以重现问题的页面打包上传,我们看下
页面代码。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowReport.aspx.cs" Inherits="Dluxe_OA.Web.ReportCenter.ShowReport" %>
<%@ Import Namespace="Dluxe_OA.CommResource" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="../../UI/js/jquery-1.9.1.min.js"></script>
<script src="../../UI/js/jquery-migrate-1.1.1.min.js"></script>
<script src="../../UI/miniui/miniui.js"></script>
<link href="../../UI/miniui/themes/icons.css" rel="stylesheet" />
<script src="../../UI/miniui/boot.js"></script>
<script src="../../UI/miniui/core.js"></script>
<style type="text/css">
body
{
margin: 0;
padding: 0;
border: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
<script type="text/javascript">
var grid;
var tree;
var form;
var winDB;
var loading;
var IsPreviewer = false;
var ReportID;
var GolParams;
$(function () {
tree = mini.get("tree1");
$("#btnDBOK").click(function () {
form.validate();
if (form.isValid() == false) {
return;
}
var data = form.getData();
GolParams = JSON.stringify(data);
winDB.hide();
loading = mini.loading("Loading...", "Info");
$.post("ReportCenter.ashx", { type: "RunReport", ReportID: ReportID, Params: GolParams }, function (res) {
res = eval("(" + res + ")");
if (res.res == "false") {
mini.showMessageBox({ title: 'Tip', message: res.msg, buttons: ["ok"], iconCls: 'mini-messagebox-info' });
}
if (res.res == "empty") {
mini.showMessageBox({ title: 'Tip', message: '<%=LanguageManager.GetString("CurrSearchNoData")%>', buttons: ["ok"], iconCls: 'mini-messagebox-info' });
} else {
ShowRes(res.cols, res.datas);
}
mini.hideMessageBox(loading);
});
});
});
function Preview() {
GolParams = "";
GetReportParams("Preview");
}
function PreviewExport() {
GetReportParams("PreviewExport");
}
function Export() {
GetReportParams("Export");
}
function ShowRes(cols, datas) {
grid = mini.get("gridParam");
grid.setColumns(mini.decode(cols));
grid.setData(mini.decode(datas));
IsPreviewer = true;
}
function SetReportParams(params) {
$("#tabDB tr").empty();
$("#tabDB").append(params);
mini.parse();
form = new mini.Form("#tabDB");
winDB = mini.get("winDB");
winDB.show();
}
function GetReportParams(type) {
var data = tree.getSelectedNode();
if (data == null || data.children != undefined) {
mini.showMessageBox({ title: 'warning', message: '<%=LanguageManager.GetString("NoSelectReport")%>', buttons: ["ok"], iconCls: 'mini-messagebox-warning' });
return;
}
ReportID = data.id;
switch (type) {
case "Preview":
loading = mini.loading("loading...", "Info");
$.post("ReportCenter.ashx", { type: "GetReportParams", ReportID: ReportID }, function (data) {
var res = eval("(" + data + ")");
if (res.res == "Report") {
ShowRes(res.cols, res.datas);
} else {
SetReportParams(res.params);
}
mini.hideMessageBox(loading);
});
break;
case "PreviewExport":
if (IsPreviewer == false) {
mini.showMessageBox({ title: 'warning', message: '<%=LanguageManager.GetString("NoSelectReport")%>', buttons: ["ok"], iconCls: 'mini-messagebox-warning' });
} else {
loading = mini.loading("loading...", "Info");
$.post("ReportCenter.ashx", { type: "PreviewExport", ReportID: ReportID, Params: GolParams }, function (res) {
res = eval("(" + res + ")");
if (res.res == "ok") {
window.location.href = "../FileDownload.ashx?FileName=" + res.msg + "";
}
mini.hideMessageBox(loading);
});
}
break;
GolParams = "";
}
}
</script>
</head>
<body>
<div class="mini-splitter" style="width: 100%; height: 100%;">
<div size="200" showcollapsebutton="true">
<div class="mini-fit">
<ul id="tree1" class="mini-tree" url="ReportCenter.ashx?type=GetReportMenu" style="width: 100%; height: 100%;"
showtreeicon="true" textfield="name" idfield="id" parentfield="pid" resultastree="false">
</ul>
</div>
</div>
<div showcollapsebutton="true">
<div class="mini-fit">
<div class="mini-toolbar" style="padding: 2px; border-top: 0; border-left: 0; border-right: 0;">
<a class="mini-button" iconcls="icon-tip" plain="true" onclick="Preview()"><%=LanguageManager.GetString("Preview") %></a>
<span class="separator"></span>
<a class="mini-button" iconcls="icon-excel" plain="true" onclick="PreviewExport()"><%=LanguageManager.GetString("PreviewExport") %></a>
<span class="separator"></span>
<a class="mini-button" iconcls="icon-excel" plain="true" onclick="Export()"><%=LanguageManager.GetString("Export") %></a>
</div>
<div id="gridParam" class="mini-datagrid" style="width: 100%; height: 93%;" borderstyle="border:0;" showcolumnsmenu="true" sizelist="[20,50,100]" pagesize="20" showreloadbutton="false">
</div>
</div>
</div>
</div>
<div id="winDB" class="mini-window" title="DataBase" style="width: 400px; height: auto;" showfooter="true" showclosebutton="true">
<table id="tabDB">
</table>
<input type="button" id="btnDBOK" value="<%=LanguageManager.GetString("Submit") %>" />
</div>
</body>
</html>
|
|