http://expert.csdn.net/Expert/topic/2291/2291055.xml?temp=.7053186
解决方案 »
- Setup Factory7将FrameWork4.0打包问题
- c#连接MYSQL
- 关于升级程序的关闭旧版本,运行新版本问题,请高手解答!
- Access 2003 c#? 看看有没有语法错误啊
- C# 使用连接FreeBSD上的FTP出现问题
- LoadControl动态加载后按钮事件在没有丢失的情况下,触发刷新(PostBack),但没有执行事件
- liaojie
- 这个栏目我喜欢,但我要出租房子
- 我用Dropdowlist绑定了数据库,显示的是第一栏数据,如果我要存入数据库的是另外一栏的该怎么做?
- 怎样使一个窗口由小变大
- 求取得文件图标,并将图标显示在Picture控件的方法,各位帮忙了,谢谢了!!!
- SOS!!要求解析xml文件,所有节点显示为treeview的节点(包括子节点),,用xmltextreader还是xmldocument??
if (this.Drop_count.SelectedItem.Text=="职务统计")
{
//实例化报表类
dutyReport Duty=new dutyReport();
//查询SQL语句
StrSql="select id,emp_id,name,duty_id,dep_id,address,nationality,locate,";
StrSql+="folk,government,sex,birthday,home_tel,postal_code,office_tel,mobil,";
StrSql+="email,recored,lang_type,specialty,school,sch_date,card_id,write_date,";
StrSql+="res,case flag when 'a' then '在职' when 'b' then '试用' when 'c' then '离职' end as flag,";
StrSql+="photo from hr_employee where flag<>'c'";
//读出数据
Adapter=new SqlDataAdapter(StrSql,Connection.SqlConn);
//将数据保存在数据集中
Adapter.Fill(CountSet,"hr_employee");
//给报表绑定数据
Duty.SetDataSource(CountSet);
//显示报表
this.Report.ReportSource=Duty;
}