会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WarCraftIII
No time to play,We have war to fight!
博客园
首页
新随笔
联系
管理
订阅
2010年5月6日
vs2008报表笔记
摘要: 1,数据两列显示主体--属性--cloumns=22,分组合计,拼字符串需格式转换+" 合计:"&Format(Sum(CDbl(Fields!sf.Value)),"")
阅读全文
posted @ 2010-05-06 16:26 WarCraftIII
阅读(243)
评论(0)
推荐(0)
2010年3月26日
ActiveReports动态添加列
摘要: //在报表内签了列是固定的,查询的数据字段不定,以前两列为坐标添加后面的列,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
阅读(670)
评论(1)
推荐(0)
2009年10月16日
比较笨的1--100随机数
摘要: 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
阅读(300)
评论(0)
推荐(0)
2009年9月10日
获取日期对应的农历年天干地支,生肖 范围1900-2100
摘要: using System.Globalization;//获取某年是天干地支年,猫年狗年 /// <summary> /// 获取年份天干地支,生肖 /// </summary> /// <param name="dt">年月日:2009-09-09</param> /// <returns>甲子,鼠</returns> p...
阅读全文
posted @ 2009-09-10 14:21 WarCraftIII
阅读(2072)
评论(0)
推荐(0)
2009年9月6日
Winfrom 中的timer应用
摘要: 新做的winform东西,用timer解决了几个问题Main页面包含数据列表页InfoList,添加Info数据按钮(打开InfoAdd页面),打开InfoList的菜单遇到的问题:因为需要,在InfoList中对特殊数据要设置背景颜色是红色,默认绑定没问题,在点添加按钮添加数据时,因为InfoList与InfoAdd没有直接联系,数据没有得到及时更新。另外,当通过main中的Infolist菜单...
阅读全文
posted @ 2009-09-06 16:04 WarCraftIII
阅读(590)
评论(0)
推荐(0)
自己用到的一句SQL语句
摘要: ///查询按数据量多少倒序的字段,不知为什么加top不管用?谁知道取前5条该怎么写?select kind,count(id) from tbinfolist group by kind order by count(id) desc
阅读全文
posted @ 2009-09-06 00:50 WarCraftIII
阅读(256)
评论(4)
推荐(0)
2009年9月5日
WinForm 的dataGridView全选,反选
摘要: 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
阅读(3374)
评论(0)
推荐(0)
公告