摘要: http://www.cnblogs.com/killers/articles/2133180.html 阅读全文
posted @ 2012-07-20 14:52 RyanRuan 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 引用至:http://www.cnblogs.com/Little-Li/archive/2011/06/30/2094230.html在项目开发过程中,应该按要求编写好十三种文档,文档编制要求具有针对性、精确性、清晰性、完整性、灵活性、可追溯性。 ◇可行性分析报告:说明该软件开发项目的实现在技术上、经济上和社会因素上的可行性,评述为了合理地达到开发目标可供选择的各种可能实施方案,说明并论证所选定实施方案的理由。 ◇项目开发计划:为软件项目实施方案制订出具体计划,应该包括各部分工作的负责人员、开发的进度、开发经费的预算、所需的硬件及软件资源等。 ◇软件需求说明书(软件规格说明书):对所开... 阅读全文
posted @ 2012-07-18 15:23 RyanRuan 阅读(729) 评论(0) 推荐(0) 编辑
摘要: AppDomain.CurrentDomain.BaseDirectory 获得应用程序根目录 假如你的项目在d:\项目名用AppDomain.CurrentDomain.BaseDirectory取得值就是d:\项目名\bin 阅读全文
posted @ 2012-07-18 15:16 RyanRuan 阅读(130) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE DeleteNews @ID nvarchar(500)as DECLARE @PointerPrev int DECLARE @PointerCurr int DECLARE @TId int Set @PointerPrev=1 while (@PointerPrev < LEN(@ID)) Begin Set @PointerCurr=CharIndex(',',@ID,@PointerPrev) if(@PointerCurr>0) Begin set @TId=cast(SUBSTRING(@ID,@PointerPrev 阅读全文
posted @ 2012-07-17 17:41 RyanRuan 阅读(688) 评论(0) 推荐(0) 编辑
摘要: declare @num int, @sqls nvarchar(4000) set@sqls='select @a=count(*) from tableName ' exec sp_executesql @sqls,N'@a int output',@num output select@num详细参见:http://www.cnblogs.com/zhhe0800/archive/2011/07/21/2113346.html 阅读全文
posted @ 2012-07-17 17:01 RyanRuan 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 原句:select * from aa where id not in(select id from bb)替换:select cc.id,cc.value from (select aa.*,bb.id as tempcolum from aa left join bb on aa.id=bb.id) as cc where cc.tempcolum is null 阅读全文
posted @ 2012-07-16 09:44 RyanRuan 阅读(207) 评论(0) 推荐(0) 编辑
摘要: View Code public static IEnumerable<T> GetIEnumberable(IEnumerable<T> list,Func<T,bool> FuncWhere,Func<T,String> FuncOrder,int PageSize,int PageIndex){ var rance= List.Where(FuncWhere).OrderByDescending(FuncOrder).Select(t=>t).Skip((PageIndex-1)*PageSize).Take(PageSize);}/ 阅读全文
posted @ 2012-07-13 15:43 RyanRuan 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 创建lucene索引View Code 1 //1. path 2 string indexPath=@"/ui/index/"; 3 4 //2. StandarAnalyzer 5 Lucene.Net.Analysis.Standard.StandarAnalyzer sa=new StandarAnalyzer(); 6 7 //3. IndexWriter 8 IndexWriter iw=new IndexWriter(mapPath(indexPath),sa,true); 9 10 //4. Document11 Document doc=new Docum 阅读全文
posted @ 2012-07-13 15:35 RyanRuan 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 因为在用DNN框架,所以,用到大部分是皮肤和模块,每个模块都是各自隔离的。测试人员,就指出了BUG:页面按ENTER指向不明确个人解决方法:在每一个textbox里,添加onfocus,onblur,onkeydown方法,在每次onfocus时添加cookie,然后其他模块(用户控件)在搜索的时候,就判断这个cookie是否为空,不为空才操作,onblur删除这个cookie,onkeydwon,执行该模块的button方法。SetEnterCookie=function(){ var name="enterType", value="material" 阅读全文
posted @ 2012-07-13 15:06 RyanRuan 阅读(205) 评论(0) 推荐(0) 编辑
摘要: http://www.oschina.net/code/snippet_156736_4923 阅读全文
posted @ 2012-07-13 14:55 RyanRuan 阅读(140) 评论(0) 推荐(0) 编辑
View Code