摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Text;using System.Windows.Forms;using DevExpress.XtraEditors;namespac... 阅读全文
posted @ 2012-07-18 16:56 Hsppl 阅读(441) 评论(0) 推荐(0) 编辑
摘要: public class BaseBLL { /// <summary> /// 把DataTable转换成泛型实体List /// </summary> /// <typeparam name="T">泛型实体</typeparam> /// <param name="dt">DataTable数据</param> ... 阅读全文
posted @ 2012-07-18 16:37 Hsppl 阅读(351) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Runtime.InteropServices;using System.Data.OleDb;using System.IO;using System.Windows.Forms;using Syste... 阅读全文
posted @ 2012-07-18 16:33 Hsppl 阅读(671) 评论(0) 推荐(0) 编辑
摘要: public DataTable GetAccInfoList(string typeId, int beginIndex, int pageSize, out int recordCount){ DataTable dt = null; recordCount = 0; try { StringBuilder sb = new StringBuilde... 阅读全文
posted @ 2012-07-18 16:31 Hsppl 阅读(582) 评论(0) 推荐(0) 编辑
摘要: private void simpleButton1_Click(object sender, EventArgs e){ string dbpath = Application.StartupPath @"\db"; string backuppath=Application.StartupPath @"\backup"; zipdbfile(dbpath, back... 阅读全文
posted @ 2012-07-18 16:29 Hsppl 阅读(334) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Collections;using System.IO;using System.Reflection;namespace FrmUpdate{ public class XmlHelper { /// <summary>--检查XML文件是否存在,不存在则先创建-- /// Guo Jin /// </summary> /// <param... 阅读全文
posted @ 2012-07-18 16:25 Hsppl 阅读(234) 评论(0) 推荐(0) 编辑
摘要: radioGroup3.Properties.Items.AddRange( new DevExpress.XtraEditors.Controls.RadioGroupItem[] { new DevExpress.XtraEditors.Controls.RadioGroupItem("","合格"), new DevExpress.XtraEditors.Controls.RadioGroupItem("","一般隐患"), new DevExpress.XtraEditors.Controls.RadioG 阅读全文
posted @ 2012-07-18 16:21 Hsppl 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 先要在代码的最前面声明一下事件、委托 delegate TreeListNode SetTreeNodeHandler(object data, TreeListNode node);event SetTreeNodeHandler AddTreeNode;在窗体类的构造函数中绑定事件 public UserCheckItem(){ InitializeComponent(); ... 阅读全文
posted @ 2012-07-18 16:12 Hsppl 阅读(515) 评论(0) 推荐(0) 编辑
摘要: private void ChartZhu() { try { string beginTime, endTime, townCode; int count = 0, degree = -1, state = 0; bool isDegree =... 阅读全文
posted @ 2012-07-18 16:04 Hsppl 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 爲什麽我會寫這篇日誌呢?我也不知道,但是兩天不碰鍵盤的感覺很不爽,不知道爲什麽,本來想在清明的時候把在學校沒做完的項目拿回家做,但是又想做,但是有想做點什麽小程序,是不是很糾結。。。其實我都不知道我爲什麽要寫這篇日誌。。。 阅读全文
posted @ 2012-04-03 00:51 Hsppl 阅读(185) 评论(0) 推荐(0) 编辑