摘要: 首先引用ThoughtWorks.QRCode.dll代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using ThoughtWork... 阅读全文
posted @ 2014-10-28 11:37 0611163 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 代码:1、AES加密类using System;using System.IO;using System.Security.Cryptography;using System.Text;namespace Utils{ /// /// AES加密解密 /// public... 阅读全文
posted @ 2014-10-17 08:53 0611163 阅读(561) 评论(0) 推荐(2) 编辑
摘要: 代码(该AES加密解密代码可以和Java互通): using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace Utils { /// <summary> /// AES 阅读全文
posted @ 2014-10-16 14:36 0611163 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 代码:/// /// 分类检索 查询selectname/// public static DataTable GetSelectName_FLJS(string thing_type_id, string men_id, string gang_id, string mu_id, string k... 阅读全文
posted @ 2014-10-13 14:53 0611163 阅读(1816) 评论(0) 推荐(0) 编辑
摘要: 代码:using System.Data;using System.IO;using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;namespace ahwildlife.Utils{ /// /// Excel工具类 /// 利用NP... 阅读全文
posted @ 2014-10-13 14:28 0611163 阅读(872) 评论(3) 推荐(0) 编辑
摘要: 1、跨线程访问控件委托和类的定义using System;using System.Windows.Forms;namespace ahwildlife.Utils{ /// /// 跨线程访问控件的委托 /// public delegate void InvokeDe... 阅读全文
posted @ 2014-10-13 14:04 0611163 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 项目框架中有一个很实用的方法,它用来获取客户端post的数据,并自动赋值到对象各属性,这样后台少写了很多代码。但是对于有主表、子表的表单,框架中没有提供自动给子表对象各属性赋值的方法,每次都要写很多代码,各种判断,各种循环,一个属性一个属性地赋值,很不方便,所以我就尝试写了一个自动赋值的方法,用... 阅读全文
posted @ 2014-09-12 22:21 0611163 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 工具类定义: /** * 日期范围工具类 */ var dateRangeUtil = (function () { /*** * 获得当前时间 */ this.getCurrentDate = function () { return new Date(); }; /*** * 获得本周起止时间 阅读全文
posted @ 2014-06-06 09:19 0611163 阅读(1490) 评论(0) 推荐(1) 编辑
摘要: 日期时间对象转字符串 // 对Date的扩展,将 Date 转化为指定格式的String // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) // 例子: / 阅读全文
posted @ 2014-06-06 09:12 0611163 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 一、引用CSS和JS二、HTML代码三、JS代码$('#dept').combotree({ url: '#{GetDeptTree}', required: false, onSelect: function (node) { $.ajax({ ... 阅读全文
posted @ 2014-05-24 12:11 0611163 阅读(607) 评论(0) 推荐(0) 编辑