摘要: 1,数据两列显示主体--属性--cloumns=22,分组合计,拼字符串需格式转换+" 合计:"&Format(Sum(CDbl(Fields!sf.Value)),"") 阅读全文
posted @ 2010-05-06 16:26 WarCraftIII 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //在报表内签了列是固定的,查询的数据字段不定,以前两列为坐标添加后面的列,private void ReportPage_ReportStart(object sender, System.EventArgs e){//病原菌抗生素实验数据DataTable byjdt=lansoft.getByjSy("9999");DataTable dt=lansoft.getDateTest();#re... 阅读全文
posted @ 2010-03-26 00:08 WarCraftIII 阅读(657) 评论(1) 推荐(0) 编辑
摘要: private string Random100() { DateTime datetime1 = DateTime.Now; ArrayList intList = new ArrayList(); for (int i = 0; i < 100; i++) { intList.Add(i + 1); } int[] ResList = new int[100]; DateTime tim... 阅读全文
posted @ 2009-10-16 22:10 WarCraftIII 阅读(296) 评论(0) 推荐(0) 编辑
摘要: using System.Globalization;//获取某年是天干地支年,猫年狗年 /// <summary> /// 获取年份天干地支,生肖 /// </summary> /// <param name="dt">年月日:2009-09-09</param> /// <returns>甲子,鼠</returns> p... 阅读全文
posted @ 2009-09-10 14:21 WarCraftIII 阅读(2028) 评论(0) 推荐(0) 编辑
摘要: 新做的winform东西,用timer解决了几个问题Main页面包含数据列表页InfoList,添加Info数据按钮(打开InfoAdd页面),打开InfoList的菜单遇到的问题:因为需要,在InfoList中对特殊数据要设置背景颜色是红色,默认绑定没问题,在点添加按钮添加数据时,因为InfoList与InfoAdd没有直接联系,数据没有得到及时更新。另外,当通过main中的Infolist菜单... 阅读全文
posted @ 2009-09-06 16:04 WarCraftIII 阅读(581) 评论(0) 推荐(0) 编辑
摘要: ///查询按数据量多少倒序的字段,不知为什么加top不管用?谁知道取前5条该怎么写?select kind,count(id) from tbinfolist group by kind order by count(id) desc 阅读全文
posted @ 2009-09-06 00:50 WarCraftIII 阅读(251) 评论(4) 推荐(0) 编辑
摘要: dataGridView添加checkbox列,全选和反选,不用不知道,winform还真特别//全选, private void CheckAll_CheckedChanged(object sender, EventArgs e) { if (dataGridView1.Rows.Count>0) { for (int i = 0; i < dataGridView1.Rows.C... 阅读全文
posted @ 2009-09-05 22:15 WarCraftIII 阅读(3362) 评论(0) 推荐(0) 编辑