- 博客(15)
- 资源 (1)
- 收藏
- 关注
原创 NPOI excel导入到table,excel2007
//post接受数据HttpFileCollection fileColl = context.Request.Files; if (fileColl != null && fileColl.Count > 0) { HttpPostedFile postedFile = fileCo
2016-06-12 09:10:43
386
转载 页面打水印方法
function watermark(settings) { //获取页面最大宽度 var page_width = Math.max(document.body.scrollWidth, document.body.clientWidth); //获取页面最大长度 var page_h
2016-05-23 10:43:35
396
转载 WCF、WebAPI、WCFREST、WebService之间的区别
注明:转载在.net平台下,有大量的技术让你创建一个HTTP服务,像Web Service,WCF,现在又出了Web API。在.net平台下,你有很多的选择来构建一个HTTP Services。我分享一下我对Web Service、WCF以及Web API的看法。 Web Service 1、它是基于SOAP协议的,数据格式是XML 2、只支持HTTP协议 3、它不是
2016-04-13 09:59:54
362
1
转载 NPOI导出到Excel
private static void GridToExcelByNPOI(DataTable dt, string strExcelFileName) { try { HSSFWorkbook workbook = new HSSFWorkbook(); IS
2016-03-30 14:26:19
398
原创 动态类,把两个类写在一个类里面
动态类:一个集合类里面包含多个类。 List info = new List(); foreach (var item in ins) { dynamic usinfo = new ExpandoObject(); usinfo.Invite = i
2016-03-30 11:06:57
306
转载 C#的异步请求
public async Task SendMailAsync(long userId) { UserAccount ua = this.appUsersService.GetUserAccountById(userId); var user = this.appUsersService.GetAppUserById(userI
2016-03-08 17:40:10
367
转载 apicontroller拦截器
public class ApiPermissionFilter : ActionFilterAttribute { #region 属性 /// /// 数据权限编码 /// public string Code { get; set; } #end
2016-03-08 16:40:27
1122
转载 js获取当前日期的前7天
//设置日期,当前日期的前七天var myDate = new Date();//获取今天日期myDate.setDate(myDate.getDate() - 7);var dateArray = []; var dateTemp; var flag = 1; for (var i = 0; i dateTemp = (myDate.g
2016-02-18 15:15:14
438
原创 Mysql where in中的参数传入字符串(字符串拼接)
SET @ids=ids; SET @sel1='select HOUR(DateTime) Time,COUNT(HOUR(DateTime)) Num from shakerecord where TO_DAYS(NOW())-TO_DAYS(DateTime) SET @sel2=') GROUP BY HOUR(DateTime)'; set @sentenc
2016-02-16 15:32:06
1324
原创 部署时System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
IIS 应用程序池--选中你网站的所配置的应用程序池--右键 选择 “高级配置” --将“加载用户配置文件” 设置为True
2015-12-21 10:18:32
1430
2
原创 上传图片可在页面查看
html js$('#file').change(function () { var f = document.getElementById('file').files[0]; var src = window.URL.createObjectURL(f); document.getElementById('preview
2015-10-28 14:32:22
444
原创 anjular js 涉及的数据循环
-1" rel="{{vm.InternetSceneArr}}" id="baseInternetScene{{$index}}" value="{{$index+1}}" /> {{scene}} scene in vm.InternetScene 进行遍历
2015-10-28 14:23:51
403
原创 angular js 传递集合参数
vm.selection = selection;//获取集合变量 vm.list = [];//新建集合参数技数组 //遍历将对象加载到数组中 $.each(selection, function (index) { var o = {};//新建对象 o.invMoney = this
2015-10-28 14:19:52
1569
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人