report.rdlc自定义数据源连接
来源:互联网 发布:dnf组队队员网络冲突 编辑:程序博客网 时间:2024/05/16 15:04
string str_sql = "select customer_no,baby_name,baby_birthday,baby_sex,dad_name,dad_tel,mum_name,mum_tel from t_customer where customer_no='"+MyModule .customerno +"'";
DataSet DataSet1 = cls.Getds(str_sql, "customer");
string str_sql2 = "select t_order.remark,t_order.order_no,t_order.booking_date,t_order.ms,t_package.package_name,t_order.booking_price,t_order.pre_camera_date,t_order.clother_num,t_order.pic_num from t_order inner join t_package on t_order.package_no=t_package.package_no where order_no='"+MyModule .orderno +"'";
DataSet DataSet2 = cls.Getds(str_sql2, "order");
string str_sql3 = "select t_product.product_name,t_orderitem.product_num,t_orderitem.pages,t_orderitem.photo_num from t_orderitem inner join t_product on t_orderitem.product_no=t_product.product_no where order_no='"+MyModule .orderno +"' ";
DataSet DataSet3 = cls.Getds(str_sql3, "orderitem");
string str_sql4 = "select store_name,store_tel,store_address from t_store where store_no='" + MyModule.Store_No + "'";
DataSet DataSet4 = cls.Getds(str_sql4, "store");
//ReportDataSource rds = new ReportDataSource();
//rds.Value = ds.Tables[0];
//rds.Name = "order";
//this.reportViewer1.LocalReport.DataSources.Add(rds);
//reportViewer1.ProcessingMode = ProcessingMode.Local;
ReportDataSource rds = new ReportDataSource("DataSet1", DataSet1.Tables[0]);
ReportDataSource rds2 = new ReportDataSource("DataSet2", DataSet2.Tables[0]);
ReportDataSource rds3 = new ReportDataSource("DataSet3", DataSet3.Tables[0]);
ReportDataSource rds4 = new ReportDataSource("DataSet4", DataSet4.Tables[0]);
//reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(rds);
reportViewer1.LocalReport.DataSources.Add(rds2);
reportViewer1.LocalReport.DataSources.Add(rds3);
reportViewer1.LocalReport.DataSources.Add(rds4);
this.reportViewer1.RefreshReport();
- report.rdlc自定义数据源连接
- report rdlc 动态加载 数据源、参数
- vs2008 report rdlc 数据源 提示未加载文件或程序集
- Report Service 之 RDLC(一)
- Report Service 之 RDLC(二)
- Report Service 之 RDLC(三)
- Report Service 之 RDLC(四)
- 关于Report.rdlc的使用
- 关于rdlc报表的数据源
- rdlc报表添加object数据源
- report viewer 动态数据源
- SQL Server Report Service rdlc报表
- 微软RDLC的Report也精彩
- ReportViewer : RDLC自定义工具栏
- SharePoint 2013 BI之report service 常用功能 连接到SharePoint List 数据源
- VS2005中为RDLC动态创建数据源
- Vs2010中rdlc报表绑定DataTable数据源
- Vs2010中rdlc报表绑定DataTable数据源
- HTML5技术要点
- 顿饭,在饭桌上顿饭,在饭桌上
- android Handler的使用(一)
- Cocos2d-x 3.0 红孩儿私家必修 - 第二章 cpp-empty-test
- windows各种消息的详细用法及资料
- report.rdlc自定义数据源连接
- leetcode-Search for a Range
- C++中数组名作为函数的形参和实参
- Android 资源文件中的符号含义与说明: @ ?
- MySql数据主从同步配置
- Linux 终端访问 FTP 及 上传下载 文件
- 女人,百花千红你最美
- Poj2602 Superlong sums
- C++内存分配秘籍—new,malloc,GlobalAlloc详解