打赏
摘要: #region 报表加载数据通用类 public class LoadReportData { /// <summary> /// 记录对应关系的结构 /// </summary> private struct MatchFieldPairType { public IGRField grField; public int MatchColumnIndex; } /// <summary> /// 将 DataReader 的数据转储到 Grid++Report 的数据集中 /// </summary> /// <param name=&q 阅读全文
posted @ 2011-11-19 10:15 loring 阅读(529) 评论(3) 推荐(0) 编辑
摘要: public DataTable ExcelToDataTable(string strExcelFileName, string strSheetName) { string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + strExcelFileName + ";" + "Extended Properties=Excel 5.0;"; string strExcel = string.Format("select * 阅读全文
posted @ 2011-11-19 10:15 loring 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #region TreeView相关类 /// <summary> /// 根据DATATABLE加载目录树 /// </summary> /// <param name="parentID">最顶级节点父节点的值</param> /// <param name="pNode">一般为NULL</param> /// <param name="dt">存放子父节点的数据表</param> /// <param name="t 阅读全文
posted @ 2011-11-19 10:13 loring 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #region 字符操作通用类 /// <summary> /// 有关对字符操作公用组件 /// </summary> public class StringOption { private const string Str1 = "&@%FwG122*"; private const string Str2 = "%@&122*FwG"; /// <summary> /// 参数替换函数 /// </summary> /// <param name="SourceStri 阅读全文
posted @ 2011-11-19 10:13 loring 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #region 界面通用功能 /// <summary> /// 应用系统界面通用事件 /// </summary> public class FormFunction { /// <summary> /// 关闭窗体时执行的代码 /// </summary> /// <param name="MdiForm">要关闭的窗体:为MDI窗体</param> public static void CloseingForm(Form MdiForm) { try { TabControl TC = (TabC 阅读全文
posted @ 2011-11-19 10:12 loring 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #region 查找替换通用类 /// <summary> /// 在集合内控件中查找及替换文本的组件 /// </summary> public class SearchSelect { /// <summary> /// 查找文本选项(查找\替换) /// </summary> public enum FindOption { /// <summary> /// 查找文本 /// </summary> FindText, /// <summary> /// 查找并替换文本 /// </summary& 阅读全文
posted @ 2011-11-19 10:12 loring 阅读(363) 评论(0) 推荐(0) 编辑
摘要: #region 反射调用功能组件 /// <summary> /// 反射组件通用事件 /// </summary> public class ReflectionFunction { /// <summary> /// 反射调用Mdi窗体 /// </summary> /// <param name="FunctionAssemblyFileName">功能程序集文件名称</param> /// <param name="AssemblyNamespaceAndClass"& 阅读全文
posted @ 2011-11-19 10:11 loring 阅读(337) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using System.IO;using System.Drawing.Imaging;us... 阅读全文
posted @ 2011-11-19 10:09 loring 阅读(405) 评论(0) 推荐(0) 编辑
摘要: thisMonth() //返回月初thisMonthEnd() //返回月末thisSeason() //返回季度初thisSeasonEnd() //返回季度末thisYear() //返回年初thisYearEnd() //返回年末public String thisMonth(DateTime date) { String strY = null; int x, y; x = Convert.ToInt32(date.Year.ToString()); y = Convert.ToInt32(date.Month.ToString()); strY = y >= 10 ? y.T 阅读全文
posted @ 2011-11-19 10:07 loring 阅读(170) 评论(0) 推荐(0) 编辑