摘要: string goodsList = context.Request.Form["goodsList"]; if (!string.IsNullOrEmpty(goodsList)) { //同步过来物品数据,删除后修改 Li... 阅读全文
posted @ 2015-04-23 16:35 beau 阅读(554) 评论(0) 推荐(0) 编辑
摘要: InBoxInfo boxInfo = boxList.Find(p => p.GoodsID == goods.GoodsID.ToString().Trim() && p.StorageID == goods.StorageID); 阅读全文
posted @ 2015-04-23 16:32 beau 阅读(376) 评论(0) 推荐(0) 编辑
摘要: private List GetSame(List lst) { List newlst = new List(); newlst = (from n in lst group n by new { subFarmID = n.... 阅读全文
posted @ 2015-04-23 16:30 beau 阅读(8172) 评论(0) 推荐(0) 编辑
摘要: 在日常的编程过程中,很多学员对于使AspNetPager控件中文显示分页信息不是很清楚,本文将由达内的老师为各位学员介绍一下使AspNetPager控件中文显示分页信息的内容。AspNetPager是一款大家使用的比较多的分页控件,通过这个控件可以实现PostBack分页与Url分页两种方式。但默认... 阅读全文
posted @ 2014-05-06 13:13 beau 阅读(905) 评论(0) 推荐(0) 编辑
摘要: @echo offecho 正在清理系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %system... 阅读全文
posted @ 2014-04-28 11:08 beau 阅读(411) 评论(0) 推荐(0) 编辑
摘要: Linq Distinct List 去重复 阅读全文
posted @ 2014-04-18 15:23 beau 阅读(742) 评论(0) 推荐(0) 编辑
摘要: jQuery IE缓存问题解决方法:1.在AJAX请求的页面后加个随机函数,我们可以使用随机时间函数 在javascript发送的URL后加上t=Math.random() 例如这样:URL+”&”+”t=”+Math.random();或者new Date(); 在URL参数后加上 “?timestamp=” + new Date().getTime();2.$.ajaxSetup({cache:false})设置全局ajax变量,将cache设为false 这样页面中所有的ajax请求时,都执行这个。就不必改很多地方。。。 阅读全文
posted @ 2014-03-12 17:11 beau 阅读(279) 评论(0) 推荐(0) 编辑
摘要: //日期转换 function ChangeDateFormat(time) { if (time != null) { var date = new Date(parseInt(time.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; var ... 阅读全文
posted @ 2014-03-04 15:28 beau 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 由于最近做自动执行的程序,开始做windows服务程序,在windows服务中如何使用定时器的时候一直失效,以前是直接拖入timer控件,但是不能直接运行,后来在网上找了一段程序,好使了。 //开始事件 protected override void OnStart(string[] args) { //定时事件 MyTimer(); } //结束事件 protected override void OnStop() { writeLog(... 阅读全文
posted @ 2013-12-25 17:06 beau 阅读(7482) 评论(0) 推荐(1) 编辑
摘要: 收信:kally32@163.com 主题:测试主题 内容:测试内容 以上是前台代码以下是后台代码using System;using System.Collections.Gener... 阅读全文
posted @ 2013-07-03 11:01 beau 阅读(2294) 评论(0) 推荐(0) 编辑