摘要: using System.Text.RegularExpressions; string drugComment = "药品价格及供应商:1.3,0001,药品供应商; 其他"; //字符串格式示例:价格,供应商代码,供应商名称 //正则截取 Regex regSupply = new Regex(@"供应商代码(... 阅读全文
posted @ 2016-05-17 23:49 幻影K 阅读(159) 评论(0) 推荐(0) 编辑
摘要: --添加表的说明 EXECUTE sys.sp_addextendedproperty N'MS_Description', '表说明', N'user', N'dbo', N'table', N'表名', NULL, NULL; --删除表的说明 EXECUTE sys.sp_dropextendedproperty N'MS_Description', 'user', 'dbo... 阅读全文
posted @ 2016-05-17 23:30 幻影K 阅读(846) 评论(0) 推荐(0) 编辑
摘要: -----------原表------------------- student classes score 张三 语文 74 张三 数学 83 张三 物理 93 李四 语文 74 李四 数学 84 李四 物理 94 ---------------------------------- --1、pivot S... 阅读全文
posted @ 2016-05-17 23:28 幻影K 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #region 汉字转拼音静态类,包括功能全拼和缩写,方法全部是静态的 //属性数据定义 private static readonly Dictionary CodeCollections = new Dictionary { {-20319,"a"},{-20317,"ai"},{-20304,"an"},{-202... 阅读全文
posted @ 2016-05-17 23:24 幻影K 阅读(460) 评论(0) 推荐(0) 编辑
摘要: #region /// /// 汉字转首拼 /// /// 字符串 /// 是否忽略数字 /// 首拼 public string HZ2FirstPYString(string strText, bool isIgnoreNumber) { ... 阅读全文
posted @ 2016-05-17 23:22 幻影K 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 添加引用 NPOI.dll 阅读全文
posted @ 2016-05-17 23:17 幻影K 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 需要添加office的引用,并且引用命名空间 部署网站的时候,有些权限需要修改,这点比较麻烦,后来换用NPOI 阅读全文
posted @ 2016-05-17 23:09 幻影K 阅读(368) 评论(0) 推荐(0) 编辑