03 2012 档案

摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><html><head><title>CSS Dropdown</title><style type="text/css& 阅读全文
posted @ 2012-03-26 21:32 Ry5 阅读(201) 评论(0) 推荐(0)
摘要:赋值 取值 // Redefine the banner var storeName_value = '@ViewBag.StoreName'; var department_value = '@ViewBag.Department'; var changeDate_value = '@ViewBag.ChangeDate'; $('#StoreName option:selected').text(storeName_value); $('#Department option:selected').text(de 阅读全文
posted @ 2012-03-26 17:09 Ry5 阅读(5291) 评论(0) 推荐(0)
摘要:private static void GetTableSchema( string connstring,string commandText ) { string TatableName = "test_table_" + DateTime.Now.ToString("mmss"); string outfilepath=@"C:\OUTFILE.TXT"; using (SAConnection connection = new SAConnection(connstring)) { connection.Open(); SAC 阅读全文
posted @ 2012-03-24 21:28 Ry5 阅读(1136) 评论(0) 推荐(0)
摘要://DeleteScc(); //清除VSS的引用 private static void DeleteScc() { string path = @"E:\FormD"; DirectoryInfo Infos = new DirectoryInfo(path); DeleteDirectoryInfo(Infos); } private static void DeleteDirectoryInfo(DirectoryInfo dInfo) { FileInfo[] fs = dInfo.GetFiles(); foreach (FileInfo finfo in fs 阅读全文
posted @ 2012-03-24 21:25 Ry5 阅读(243) 评论(1) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>Zebra Tables Demo</title><script type="text/javascript">var Event = { add: function(obj,type,fn) { if (obj 阅读全文
posted @ 2012-03-24 19:00 Ry5 阅读(411) 评论(1) 推荐(0)
摘要:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>表格排序 - Liehuo.Net</title></head><STYLE type=text/css>TABLE {BORDER-RIGHT: #000000 2px solid; BORDER-TOP: #000000 2px solid; BORDER-LEFT: #000000 2px so 阅读全文
posted @ 2012-03-24 17:59 Ry5 阅读(298) 评论(0) 推荐(0)
摘要:link http://apps.hi.baidu.com/share/detail/19111146html <button id="this_submit" class=button_mouseout onmouseover="this.className='button_mouseover'"onmouseout="this.className='button_mouseout'"onmousedown="this.className='button_mousedown&# 阅读全文
posted @ 2012-03-24 17:32 Ry5 阅读(1188) 评论(3) 推荐(0)
摘要:http://www.cnblogs.com/blusehuang/archive/2007/07/13/816970.html ParameterExpression c = Expression.Parameter(typeof(Customer), "c"); Expression condition = Expression.Constant(True); if(srtring.sinullorempty(S)){ Expression con = Expression.Call( Expression.Property(c, typeof(Customer).G. 阅读全文
posted @ 2012-03-13 18:34 Ry5 阅读(457) 评论(1) 推荐(0)
摘要:$.ajax({type:"post",dataType:"text",http://www.cnblogs.com/ruyi/admin/'../ /',data:"value=123",success:fucntion(data){ var result =eval(data); var s=""; jQuery.each(result,function(i,n){ s+="<option value>"+n.Name+"</option>& 阅读全文
posted @ 2012-03-12 17:59 Ry5 阅读(176) 评论(2) 推荐(0)
摘要:private iRepostion aReposition{get {return DependencyResolver.Current.GetService<iRepostion>();} 阅读全文
posted @ 2012-03-12 12:29 Ry5 阅读(299) 评论(0) 推荐(0)
摘要:int sum = Respository.getSum();viewdata["sum"] =sumviewdata["prevpage"] = Math.Max(page-1,1)viewdata["nextpage"] = Math.Min(page+1,sum/size==0?1:sum/size)viewdata["end"] = sum/size==0?1:sum/size;viedata[size]=size;viedata[start]=sum==0?sum:(page-1)*size+1;vied 阅读全文
posted @ 2012-03-12 12:25 Ry5 阅读(519) 评论(0) 推荐(0)
摘要:最近为EF的事情 被搞的很窝火 软件公司 居然还在用VSS 窝火 被琐碎的事折腾的没法写代码更窝火那么小的显示器 看个东西费劲窝火整天被催进度 窝火折腾那么久 架子怎么丑 增加工作量 窝火 阅读全文
posted @ 2012-03-06 23:09 Ry5 阅读(227) 评论(0) 推荐(0)
摘要:一次死机 重新打开项目 无法加载Autofac的引用把整个项目换到别的目录就可以了 阅读全文
posted @ 2012-03-06 22:12 Ry5 阅读(320) 评论(0) 推荐(0)
摘要:public class PartViewController : Controller{// GET: /PartView/public ActionResult PartView(){ViewBag.Message = "Common";return View();}[ChildActionOnly]public ActionResult PartViewToLayout(){return PartialView("PartViewToLayout");}[ChildActionOnly]public ActionResult PartViewA() 阅读全文
posted @ 2012-03-04 16:23 Ry5 阅读(590) 评论(0) 推荐(0)
摘要:private static void DeleteScc(){string path = @"C:\FormD";DirectoryInfo Infos = new DirectoryInfo(path);DeleteDirectoryInfo(Infos);}private static void DeleteDirectoryInfo(DirectoryInfo dInfo){FileInfo[] fs= dInfo.GetFiles();foreach(FileInfo finfo in fs)if(finfo.FullName.ToUpper().EndWith( 阅读全文
posted @ 2012-03-03 15:16 Ry5 阅读(187) 评论(0) 推荐(0)
摘要:默认Views下面对应的各个Controller对应的xxx.cshtml实际情况中情况1 : 如果多站在一起的时候,用Area来分类 效果 ~Areas/OA/Views/Controller/Action.cshtml 情况2 : 如果在Views下建立OA文件夹Action.cshtml 效果~/Views/Controller/OA/Action.cshtml 这样的情况用自定义viewEngine通常我们想要的是第3中情况 先上效果 ~/Views/OA/Controller/Action.cshtml 解决办法是 用继承RazorViewEngine 首先明确三点1 MVC默认一. 阅读全文
posted @ 2012-03-02 01:40 Ry5 阅读(449) 评论(0) 推荐(0)