随笔分类 - c#类库
摘要://判断输入是否包含中文 不管你有没有输入英文,只要包含中文,就返回 true public static bool HasChinese(string content) { //判断是不是中文 string regexstr = @"[\u4e00-\u9fa5]"; if (Regex.IsMatch(content, rege...
阅读全文
摘要:public class ConvertX { #region 将集合类转换成DataTable /// /// 将集合类转换成DataTable /// /// 集合 /// public static System.Data.DataTable ToDataTa...
阅读全文
摘要:using System;using System.Text.RegularExpressions;using System.Text;using System.IO;using System.Security.Cryptography;namespace Chen.Common{ /// /// 数组拓展方法 /// public static class St...
阅读全文
摘要:参考的样式如下, 上传成功后 上传成功后,多出一个截图切图功能 前台 上传脚本 fine uploader.js 前台切图脚本 jcrop.js 前台上传脚本 fine uploader 网址:http://fineuploader.com/fine-uploader-basic-demo.html 前台Jcrop切图脚本 http://upload.c...
阅读全文
摘要:应用场景举例 1.按指定日期查询 (1)用户在UI上选择日期; (2)系统计算出今天的起始时间(****年**月**日 00:00:00)和今天的结束时间(****年**月**日 23:59:59); (3)系统根据根据该日期范围到数据库取出该日期范围的数据。 如下图所示,查询指定日期的航班及机票数量: 2.按时间范围查询 (1)用户在UI上选择“起始日期”和“结束日期”; (...
阅读全文