摘要: 报表有两个参数 para1,para2,设置两参数的值:ReportParameter para1 = new ReportParameter("paraName1", paraValue1);ReportParameter para2 = new ReportParameter("paraName2", paraValue2);reportViewer.LocalReport.SetParame... 阅读全文
posted @ 2009-06-29 11:05 NanKe Sir's Blog 阅读(1001) 评论(0) 推荐(1) 编辑
摘要: 表 tday qty1 42 13 7SELECT t1.day, (SELECT SUM(t2.qty) FROM t AS t2 WHERE t2.day <= t1.day) as acqty -- 累计数量FROM t AS t1查询结果day qty1 42 53 12 阅读全文
posted @ 2009-06-26 14:19 NanKe Sir's Blog 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: // ===========================================================// 作者:ZhiQiao | MSN:zhiqiao84☆hotmail.com// 日期: 2009/06/25// 作用: 实用工具类,用于简化存储过程的调用。// 备注: .Net Framework 2.0 SQL Server 2005// =====... 阅读全文
posted @ 2009-06-26 12:50 NanKe Sir's Blog 阅读(1193) 评论(1) 推荐(0) 编辑
摘要: 给要实现拖动的控件添加如下的 MouseDown 和 MouseMove 事件即可。privatePointstartPoint;privatevoidMouseDown(objectsender,MouseEventArgse){startPoint.X=e.X;startPoint.Y=e.Y;}privatevoidMouseMove(objectsender,MouseEventArgse... 阅读全文
posted @ 2009-06-18 10:00 NanKe Sir's Blog 阅读(754) 评论(0) 推荐(1) 编辑
摘要: 使用时,在界面上添加一个 TextBox 用于输入查询字符串,再添加一个 ButtonprivatevoidsearchButton_Click(objectsender,EventArgse){tree.SelectedNode=Functions.TreeSearch(tree.SelectedNode,searchTextBox.Text);tree.Focus();}下载源代码 阅读全文
posted @ 2009-05-13 10:07 NanKe Sir's Blog 阅读(564) 评论(0) 推荐(1) 编辑