摘要:
/// <summary> /// Excel操作 /// </summary> public class ExcelHelper { /// <summary> /// DataTable导出到Excel的MemoryStream /// </summary> /// <param name="dtSource">源DataTable</param> /// <param name="strHeaderText">表头文本</param> public st 阅读全文
摘要:
/// <summary> /// 加解密密钥 /// </summary> public static string DesKey { get { try { return ConfigurationManager.AppSettings["DESKey"].ToString(); } catch { ... 阅读全文
摘要:
public class DateHelper { /// <summary> /// 获取指定年份的最大周数 /// </summary> /// <param name="year">年份</param> /// <returns>周数</returns> public static int GetMaxWeekOfYear(int year) { DateTime tempDate = new DateTime(year, 12, 31); ... 阅读全文
摘要:
/// <summary> /// 获取、绑定、校验控件值的操作方法类 /// </summary> public class ControlHelper { /// <summary> /// 文本框不能为空值 /// </summary> /// <param name="txt">文件框控件ID</param> /// <param name="txtName">文本框控件名称</param> /// <returns></return 阅读全文
摘要:
/// <summary> /// 缓存管理 /// </summary> public class CacheHelper { //>> Based on Factor = 5 default value public static readonly int DayFactor = 17280; public static readonly int HourFactor = 720; public static readonly int MinuteFactor = 12; public s... 阅读全文
摘要:
/// <summary> /// 生成Code128A,Code128B,Code128C,EAN128条码 /// </summary> public class BarCode { /// <summary> /// 生成条形码 /// </summary> /// <param name="barNumber">条形码,位数必须为2的倍数</param> public void CreateBarCode(string barNumber) { if (b... 阅读全文