摘要: group by 的select 列明如果提示重复 记得as起别名 select name from (SELECT name,count(name) as countFROM Table WHERE (OrgUUId = (select top 1 uuid from org where orgn 阅读全文
posted @ 2016-04-14 15:41 Ace001 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: 1.加载xml字符串 2.直接加载文件: var users = XElement.Load("TemplateUser.config").Elements("user"); var user = users.FirstOrDefault(); var Account = user.Element( 阅读全文
posted @ 2016-04-11 10:56 Ace001 阅读(1240) 评论(0) 推荐(0) 编辑
摘要: 1.webservice方法 2.webservice网站web.config配置 <?xml version="1.0" encoding="utf-8"?><!-- 有关如何配置 ASP.NET 应用程序的详细信息,请访问 http://go.microsoft.com/fwlink/?Link 阅读全文
posted @ 2016-04-08 18:34 Ace001 阅读(3769) 评论(0) 推荐(2) 编辑
摘要: Aspose是一个很强大的控件,可以用来操作word,excel,ppt等文件,用这个控件来导入、导出数据非常方便。其中Aspose.Cells就是用来操作Excel的,功能有很多。我所用的是最基本的功能,读取Excel的数据并导入到Dataset或数据库中。读取Excel表格数据的代码如下:首先要 阅读全文
posted @ 2016-03-22 16:41 Ace001 阅读(15328) 评论(0) 推荐(6) 编辑
摘要: gridstore在设置了autoLoad=false后不会自动加载数据,但是treestore不行,后来发现删掉root里的expanded:true后就可以了。但是界面上树没有展开,需在store的load回调里加上展开根节点的代码:tree.getRootNode().expand(); st 阅读全文
posted @ 2016-03-16 17:04 Ace001 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, us 阅读全文
posted @ 2016-03-16 10:48 Ace001 阅读(12811) 评论(0) 推荐(2) 编辑
摘要: gridpanel显示checkbox: 添加SelectionModel为Checkbox Selection Model { xtype: 'gridpanel', id: 'Grid1', header: false, title: '条线列表', deferRowRender: false, 阅读全文
posted @ 2016-02-26 14:44 Ace001 阅读(1979) 评论(1) 推荐(0) 编辑
摘要: 服务端 bool isRunning = true; MouseKeyBoard mk = new MouseKeyBoard();void InitTcpServer(int port) { Thread t = new Thread(() => ... 阅读全文
posted @ 2015-12-29 11:21 Ace001 阅读(3205) 评论(1) 推荐(0) 编辑
摘要: NewsType结构: Id ParentId Name children(List<NewsType>) public void LoopToAppendChildren(List<NewsType> all, NewsType curItem) { var subItems = all.Wher 阅读全文
posted @ 2015-12-07 19:52 Ace001 阅读(12147) 评论(6) 推荐(5) 编辑
摘要: { xtype: 'gridpanel', region: 'north', height: 150, title: 'My Grid Panel... 阅读全文
posted @ 2015-11-26 16:01 Ace001 阅读(497) 评论(0) 推荐(0) 编辑