摘要: /// /// 商品价格格式 /// /// /// /// public static string GetPrice(this decimal price, int? n = 0) { ... 阅读全文
posted @ 2015-12-14 09:55 霸气庚心 阅读(221) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Configuration;using System.Web;using System.Web.Caching;namespace Meb.Common.Extensions{ //缓存写入 ... 阅读全文
posted @ 2015-11-13 09:25 霸气庚心 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 代码列子: public ActionResult FindUserByUserId(SysMessageDTO model) { CustomResultMsg customResult = new CustomResultMsg() { ResultValue =... 阅读全文
posted @ 2015-11-11 17:10 霸气庚心 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 图片压缩1.调用:var result = PictureService.Upload(System.Web.HttpContext.Current.Request, 20);2.定义:public static FileResult Upload(HttpRequest request, int ... 阅读全文
posted @ 2015-10-28 10:25 霸气庚心 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Reference Link:http://www.yjbys.com/bbs/326026.htmlconst关键字用来声明编译时常量,readonly用来声明运行时常量密封类不能同时为抽象类可以覆写私有的虚方法吗? 答:不可以,甚至子类中无法访问父类中的私有方法base 表示当前对象基类的实例(... 阅读全文
posted @ 2015-03-17 23:59 霸气庚心 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 用openxml 生成Excel:private void GenerateExcelUsingOpenxml(DataTable dataTable, string GeneratePath) { using (var workbook = SpreadsheetDocument.Create(G... 阅读全文
posted @ 2015-03-12 17:28 霸气庚心 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: netsh http add iplisten ipaddress=0.0.0.0:15901sc.exe create "FPPService" binPath= "D:\apps\apps_srv\FPP\FPPService.exe" displayname= "FPPService" dep... 阅读全文
posted @ 2015-03-12 14:42 霸气庚心 阅读(193) 评论(0) 推荐(0) 编辑
摘要: USE [EUC]GO/****** Object: StoredProcedure [dbo].[SP_SME_QueryAuditLog] Script Date: 02/05/2015 15:54:16 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFI... 阅读全文
posted @ 2015-02-05 15:58 霸气庚心 阅读(208) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-01-20 17:58 霸气庚心 阅读(1) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-01-20 17:54 霸气庚心 阅读(1) 评论(0) 推荐(0) 编辑