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