zoukankan      html  css  js  c++  java
  • 给reportview传参数的操作过程

    rdlc中定义导航
    =Parameters!url.Value & "/orders/ImportCurrentOrderSales.aspx?OrderID="& Fields!ddbh.Value


            //将第一个框架中的日期转换成从00点开始
            ObjectDataSource1.SelectParameters["startddrq"].DefaultValue = StartTime;
            ObjectDataSource1.SelectParameters["endddrq"].DefaultValue = EndTime;
            ObjectDataSource1.SelectParameters["QueryCode"].DefaultValue = QueryCode;
            ObjectDataSource1.SelectParameters["proxyid"].DefaultValue = base.GetUserID();
            //将第二个框中的日期转换成从23点结束
    //传参数
            ReportParameter urlParm = new ReportParameter();
            urlParm.Name = "url";
            string sDomain;
            if (ConfigurationSettings.AppSettings["SystemDomain"] != null)
                sDomain = ConfigurationSettings.AppSettings["SystemDomain"].ToString();
            else
                sDomain = "http://127.0.0.1/resin";

            urlParm.Values.Add(sDomain);

            ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { urlParm });//传入url参数
    //结束
            ObjectDataSource1.CacheDuration = 0;
            ObjectDataSource1.DataBind();
            ReportViewer1.LocalReport.EnableHyperlinks = true;
            ReportViewer1.LocalReport.Refresh();

  • 相关阅读:
    2018 ICPC 徐州网络赛
    2018 CCPC网络赛
    2013 NEERC
    2015 Dhaka
    2018ICPC南京网络赛
    Codeforces Round #505
    Codeforces Round #504 E. Down or Right
    Codeforces Round #504 D. Array Restoration
    2018 Multi-University Training Contest 3
    2018 Multi-University Training Contest 2
  • 原文地址:https://www.cnblogs.com/hhq80/p/1778109.html
Copyright © 2011-2022 走看看