123456789101112131415161718192021222324252627 |
- @{
- ViewBag.Title = "ReportViewer";
- }
- <form id="reportForm" method="post" action="@Url.Content("~/ReportViewer/Page.aspx")">
-
- </form>
- @section scripts{
- <script type="text/javascript">
- $(function () {
- var html = new Array();
- html.push('<input type="hidden" name="ReportFolder" value="' + $.SystemGeneral.getUrlParam("ReportFolder") + '"/>');
- if (top.ReportParameter) {
- for (var prop in top.ReportParameter) {
- if (prop.toString() == "BackGroundImage") {
- html.push('<input type=hidden name="' + prop.toString() + '" value="' + (top.ReportParameter[prop] ? top.ReportParameter[prop] : "").toString() + '"/>');
- } else {
- html.push('<input type=hidden name="' + prop.toString() + '_RAP" value="' + ((top.ReportParameter[prop] || top.ReportParameter[prop] == 0) ? top.ReportParameter[prop] : "").toString() + '"/>');
- }
- }
- $("#reportForm").html(html.join(''));
- $("#reportForm").submit();
- }
- });
- </script>
- }
|