07 2012 档案

摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace AddressList{ public partial class FrmAccessUse : Form { public FrmAccessUse() { InitializeComponent(); } #re 阅读全文
posted @ 2012-07-26 10:11 RyanRuan 阅读(1262) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/killers/articles/2133180.html 阅读全文
posted @ 2012-07-20 14:52 RyanRuan 阅读(118) 评论(0) 推荐(0)
摘要:引用至:http://www.cnblogs.com/Little-Li/archive/2011/06/30/2094230.html在项目开发过程中,应该按要求编写好十三种文档,文档编制要求具有针对性、精确性、清晰性、完整性、灵活性、可追溯性。 ◇可行性分析报告:说明该软件开发项目的实现在技术上、经济上和社会因素上的可行性,评述为了合理地达到开发目标可供选择的各种可能实施方案,说明并论证所选定实施方案的理由。 ◇项目开发计划:为软件项目实施方案制订出具体计划,应该包括各部分工作的负责人员、开发的进度、开发经费的预算、所需的硬件及软件资源等。 ◇软件需求说明书(软件规格说明书):对所开... 阅读全文
posted @ 2012-07-18 15:23 RyanRuan 阅读(754) 评论(0) 推荐(0)
摘要:AppDomain.CurrentDomain.BaseDirectory 获得应用程序根目录 假如你的项目在d:\项目名用AppDomain.CurrentDomain.BaseDirectory取得值就是d:\项目名\bin 阅读全文
posted @ 2012-07-18 15:16 RyanRuan 阅读(150) 评论(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 阅读(715) 评论(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 阅读(788) 评论(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 阅读(222) 评论(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 阅读(288) 评论(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 阅读(249) 评论(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 阅读(212) 评论(0) 推荐(0)
摘要:http://www.oschina.net/code/snippet_156736_4923 阅读全文
posted @ 2012-07-13 14:55 RyanRuan 阅读(152) 评论(0) 推荐(0)
摘要:DNN的路径问题,个人纠结好久,特别写出来1.取整个站点的文件路径:比如你可能会在模块中引用样式文件或者js文件 解决:前台引用 <%# ResolveUrl('~/DesktopModules/你的模块集合文件夹名/XXX.CSS') %>2.皮肤路径 后台类,继承skinBase 可调用属性 SkinPath3.模块路径 后台类,继承PortalModuleBase ,其属性 ModulePath,特指当前模块所在路径 题外:如何创建模块,1.在自定义控件cs里 添加命名空间namespace A{},前台inherit=A.模块名 阅读全文
posted @ 2012-07-03 18:04 RyanRuan 阅读(259) 评论(0) 推荐(0)
摘要:一、重写DNN注册创建新注册页面 MyRegiseter.aspx添加相应皮肤创建注册模块(样式排版好)实现注册功能 概要说明重写DNN注册页面需要更改的内容后台:MyRegister:UserUserControlBase为了方便,可将DesktopModules/Admin/Security/Register.ascx.cs相应的拷贝主要拷贝这几个方法CreateUser(),UpdateDisplayName() 以及属性RedirectURL,CreateStatus,AuthenticationType,UserToken这样只要在你的注册按钮事件 上 调用createUser... 阅读全文
posted @ 2012-07-02 18:14 RyanRuan 阅读(511) 评论(0) 推荐(0)

View Code