摘要: /// <summary> /// Excel操作 /// </summary> public class ExcelHelper { /// <summary> /// DataTable导出到Excel的MemoryStream /// </summary> /// <param name="dtSource">源DataTable</param> /// <param name="strHeaderText">表头文本</param> public st 阅读全文
posted @ 2012-08-29 15:38 暗尘掩月 阅读(389) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 加解密密钥 /// </summary> public static string DesKey { get { try { return ConfigurationManager.AppSettings["DESKey"].ToString(); } catch { ... 阅读全文
posted @ 2012-08-29 15:35 暗尘掩月 阅读(241) 评论(0) 推荐(0) 编辑
摘要: public class DateHelper { /// <summary> /// 获取指定年份的最大周数 /// </summary> /// <param name="year">年份</param> /// <returns>周数</returns> public static int GetMaxWeekOfYear(int year) { DateTime tempDate = new DateTime(year, 12, 31); ... 阅读全文
posted @ 2012-08-29 15:34 暗尘掩月 阅读(315) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取、绑定、校验控件值的操作方法类 /// </summary> public class ControlHelper { /// <summary> /// 文本框不能为空值 /// </summary> /// <param name="txt">文件框控件ID</param> /// <param name="txtName">文本框控件名称</param> /// <returns></return 阅读全文
posted @ 2012-08-29 15:33 暗尘掩月 阅读(697) 评论(0) 推荐(0) 编辑
摘要: /// <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... 阅读全文
posted @ 2012-08-29 15:32 暗尘掩月 阅读(354) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 生成Code128A,Code128B,Code128C,EAN128条码 /// </summary> public class BarCode { /// <summary> /// 生成条形码 /// </summary> /// <param name="barNumber">条形码,位数必须为2的倍数</param> public void CreateBarCode(string barNumber) { if (b... 阅读全文
posted @ 2012-08-29 15:30 暗尘掩月 阅读(1796) 评论(0) 推荐(0) 编辑
摘要: --测试数据如下create table tbla( typename varchar(50))insert into tblaselect 'dt-051' union allselect 'dt-052' union allselect 'dt-053' union allselect 'dt-054' union allselect 'dt-055' union allselect 'dt-056'create table tblb( typename varchar(50), num int 阅读全文
posted @ 2012-08-16 17:53 暗尘掩月 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> $(function () { $("#numPerPageStuClass").change(function () { navTabPageBreak({ numPerPage: this.value }, 'jbsxBox'); }); });</script>在解析的时候会被默认的编码,利用Jquery来绕过 阅读全文
posted @ 2012-08-03 15:41 暗尘掩月 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 将themes 文件移到js文件index.html 阅读全文
posted @ 2012-08-03 14:34 暗尘掩月 阅读(189) 评论(0) 推荐(0) 编辑
摘要: <div class="pages"> <span>显示</span> <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'jbsxBox')"> <option value="20">20</option> <option value="50"> 阅读全文
posted @ 2012-08-03 14:25 暗尘掩月 阅读(180) 评论(0) 推荐(0) 编辑