医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM

导航

给reportview传参数的操作过程

Posted on 2010-07-15 15:35  hhq80  阅读(480)  评论(0编辑  收藏  举报

 

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();