摘要: 参考 http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx public ActionResult JqgridLoadonce() { return View(); }public JsonResult GetAllUserList() { /* JqgridUserModel jqgridUser = new JqgridUserModel { rows = jqgirdRepository.GetAllUserList(), page = 1, records = 3, total = 阅读全文
posted @ 2012-05-07 20:24 Ry5 阅读(955) 评论(0) 推荐(0) 编辑
摘要: <!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 阅读(194) 评论(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 阅读(5258) 评论(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 阅读(1114) 评论(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 阅读(231) 评论(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 阅读(401) 评论(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 阅读(292) 评论(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 阅读(1176) 评论(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 阅读(444) 评论(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 阅读(170) 评论(2) 推荐(0) 编辑
摘要: private iRepostion aReposition{get {return DependencyResolver.Current.GetService<iRepostion>();} 阅读全文
posted @ 2012-03-12 12:29 Ry5 阅读(291) 评论(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 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 最近为EF的事情 被搞的很窝火 软件公司 居然还在用VSS 窝火 被琐碎的事折腾的没法写代码更窝火那么小的显示器 看个东西费劲窝火整天被催进度 窝火折腾那么久 架子怎么丑 增加工作量 窝火 阅读全文
posted @ 2012-03-06 23:09 Ry5 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 一次死机 重新打开项目 无法加载Autofac的引用把整个项目换到别的目录就可以了 阅读全文
posted @ 2012-03-06 22:12 Ry5 阅读(308) 评论(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 阅读(581) 评论(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 阅读(183) 评论(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 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 第一步骤 Model public class Person { [Required(ErrorMessage = "请输入姓名")] public string FirstName { get; set; } [Required(ErrorMessage = "请输入名字")] public string LastName { get; set; } [Range(18, 100, ErrorMessage = "请输入{1}到{2}之间")] public int age { get; set; } [DataType(DataT 阅读全文
posted @ 2012-02-28 00:33 Ry5 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 只需要1步View 注意红色部分@{var chart = new Chart(width:450,height:300).AddTitle("数据分析").AddTitle(name:"X",xValue:new[]{"2","3","4"}).AddTitle(name:"Y",yValue:new[]{"2","3","4"}).Save("~/Content/Images/tem.png" 阅读全文
posted @ 2012-02-27 12:47 Ry5 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Action public ActionResult Index() { return this.RazorView(); }ControllerExtensionspublic static class ControllerExtensions { public static ViewResult RazorView(this Controller controller) { return RazorView(controller, null, null); } public static ViewResult RazorView(this Controller controller, ob 阅读全文
posted @ 2012-02-25 19:39 Ry5 阅读(358) 评论(0) 推荐(0) 编辑
摘要: Model public class SpreadsheetModel { public String fileName { get; set; } public String[,] contents { get; set; } }ACTION public ActionResult Excel() { SpreadsheetModel mySpreadsheet = new SpreadsheetModel(); mySpreadsheet.contents = new String[2, 2] { {"Cell11","Cell12"}, {&quo 阅读全文
posted @ 2012-02-25 19:08 Ry5 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 1 下载别人的项目 提取数据库名称Test2 建Console程序 创建Test数据库 private void testc() { string link = @"Data Source=AA-158B22BD91A6\SQLEXPRESS;Initial Catalog=master;Integrated Security=True"; SqlConnection Conn = new SqlConnection(link); Conn.Open(); string commandText = @"Create database Test"; Sql 阅读全文
posted @ 2012-02-05 00:58 Ry5 阅读(280) 评论(0) 推荐(0) 编辑
摘要: VS2010 VS2010 SP1 (FOR HTML5)SQL EXPRESS CEMVCMUSIC ( ... )IE9 (FOR HTML5) 阅读全文
posted @ 2012-02-03 12:01 Ry5 阅读(186) 评论(1) 推荐(0) 编辑
摘要: 表public class Customer { public virtual int CustomerId { get; set; } public virtual string FirstName { get; set; } public virtual string LastName { get; set; } }测试数据insert into Customer values(1,'张','三');insert into Customer values(2,'张','四');insert into Customer valu 阅读全文
posted @ 2011-10-22 22:50 Ry5 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 驱动类型mysql2连接字符串Database=Test;Data Source=localhost;User Id=root;Password=123456 阅读全文
posted @ 2011-10-22 17:08 Ry5 阅读(195) 评论(0) 推荐(0) 编辑
摘要: mygeneration_1303.rar (.NET 2.0)下载地址 http://dldx.csdn.net/fd.php?i=58033876201326&s=e2f8dcbbaf52b4e93edcad1afe7054c5mygeneration_131_20110102.exe (.NET 4.0)http://downloads.sourceforge.net/project/mygeneration/MyGeneration%201.3/2011-01-02%201.3.1%20Dev%20Build%20(buggy)/mygeneration_131_2011010 阅读全文
posted @ 2011-10-22 16:48 Ry5 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 看完本文能运行 不能调试,若您能不吝赐教 非常感谢下载 Jcx.Software.VS.PHP.for.Visual.Studio.2008.v2.6.3.5601.rar 安装文件Jcx.Software.VS.PHP.for.Visual.Studio.2008.v2.6.3.5601.KeyMaker.and.Patch-DVT.rar Key注册码破解 生成KEY的时候 务必PATCH掉原来的 vsphp_svc.exe(D:\Program Files\Jcx.Software\VS.Php\2008\2.6\vsphp_svc.exe) 安装后 打开Vs2008->新建项目- 阅读全文
posted @ 2011-10-22 00:05 Ry5 阅读(2336) 评论(0) 推荐(0) 编辑
摘要: 下载 php-5.2.6.win32.zip下载地址 http://ishare.down.sina.com.cn/20386582.zip?ssig=gpGlENmRhi&Expires=1319212800&KID=sina,ishare&ip=1319097645,119.123.147.解压路径 “D:\Program Files\Php”php.ini-recommended 更名 php.ini拷贝libmysql.dll 到 “C:\windows\system32”下面打开apache配置文件添加红色语句#LoadModule version_modul 阅读全文
posted @ 2011-10-20 16:58 Ry5 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 下载httpd-win32-src.zip http://9.duote.org/httpd-win32-src.zip安装路径 D:\Program Files\Apache Software Foundation\Apache2.2完毕后。修改配置文件的 Apache2.2\conf\httppd.conf 端口号Listen 80 -> Listen 8080输入 http://127.0.0.1:8080/index.html出现 itworks访问的文件是 Apache2.2\htdocs\index.htmlDocumentRoot "D:/Program File 阅读全文
posted @ 2011-10-20 12:52 Ry5 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 1 下载 DbLinq-0[1].20.1.zip(必须) 和 DbLinq-0[1].20.1-src.zip2 解压DbLinq-0[1].20.1.zip并添加MySql.Data.dll(可从网上或者后面的项目中找)3 准备mysql localost root 123456 3306 test mytable4 DbLinq 的解压路径 C:\Documents and Settings\Administrator\桌面\DbLinq-0.20.1 里面有这个文件DbMetal.exe 需要在DOS中执行 相关命令 DbMetal.exe -provider=MySql -dat.. 阅读全文
posted @ 2011-09-03 12:27 Ry5 阅读(400) 评论(0) 推荐(0) 编辑
摘要: http://topic.csdn.net/u/20110517/18/6084ddbc-74ba-409e-8423-eeb61b40429a.htmlhttp://blogs.msdn.com/b/aconrad/archive/2007/09/07/science-project.aspxclassSample{staticvoidMain(string[]args){//createsequenceItem[]items=newItem[]{newBook{Id=1,Price=13.50,Genre="Comedy",Author="JimBob&quo 阅读全文
posted @ 2011-08-08 13:58 Ry5 阅读(6601) 评论(1) 推荐(0) 编辑
摘要: 处理TEXTBOX 改动后将值保存到TAG中BUTTONEDIT 改动后将值保存到OLDVALUE中foreach(ControlaControlinpanelBottom.Controls){if(aControlisButtonEdit){//aControl.Enabled=false;((BaseEdit)aControl).TextChanged+=delegate(objectsender1,EventArgse1){//if(!(Sheetid.Text==null||Sheetid.Text.Equals("")))if(((BaseEdit)sender1 阅读全文
posted @ 2011-07-30 08:25 Ry5 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 这段程序 无奈完成不了功能了程序目的 把修旧数值放在TAG当中 然后还原这段写在FORMLOAD中foreach(ControlaControlinlayoutControl1.Controls){if(aControlisBaseEdit){//2010-07-25初始EnabledfalseaControl.Enabled=false;((TextEdit)aControl).TextChanged+=delegate(objectsender2,EventArgse2){if(!(SheetID.Text==null||SheetID.Text.Equals("")) 阅读全文
posted @ 2011-07-29 18:40 Ry5 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 其实一个COMBOX就能完成的功能但是数据源 非得输入自动匹配 又得点按钮弹对话框加数据源没办法 只有吧要保存的东西放在控件的TAG里面一个数据源字段弄这么多 里面不下10个呀 而且 这样一改 以前一段很精彩的程序也得另谋其他的出路privatevoidSaleCompany_EditValueChanged(objectsender,EventArgse){}privatevoidSaleCompany_KeyPress(objectsender,KeyPressEventArgse){if(e.KeyChar!=13)return;if(dt6==null)dt6=SqlHelper.Ex 阅读全文
posted @ 2011-07-29 18:36 Ry5 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 具体的取值赋值在这个方法也有很大的作用 1privatevoidSheetHeadSetValue(DataRowSheetHead)2{3DataRow[]rows;45Sheetid.Text=SheetHead["SheetID"].ToString();6OrderDate.EditValue=SheetHead["orderdate"];7MannueOrder.Text=SheetHead["MannueOrder"].ToString();;8DeliveryDate.EditValue=SheetHead[" 阅读全文
posted @ 2011-07-29 18:30 Ry5 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 这个才是根据单据查询按钮的主要逻辑当然这个允许恶心不到人 看下一篇吧1#regionsheetSearch--2privatevoidGetSheet(stringgetCurrentSheetid,DataRowRow)3{4//step25DataTabletable=SqlHelper.ExecuteDataTable(connString,@"select*fromUld_od_OrderHeadwheresheetid='"+getCurrentSheetid+"'");67if(table.Rows.Count==0)8ret 阅读全文
posted @ 2011-07-29 18:28 Ry5 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 查单上单 下单 首单 末单这几个都是小角色一看就明白1privateboolhasSheet()2{3returndt11==null||Sheetid.Text.Equals("")?false:true;4}5678privatevoidSheetSetValue(DataRowRow,ControlparentControl)9{10DataColumnCollectioncolumns=Row.Table.Columns;11foreach(ControlaControlinparentControl.Controls)12{13BaseEditedit=aCont 阅读全文
posted @ 2011-07-29 18:25 Ry5 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 按钮的状态 1privatevoidUpdateAcitonState(AcitonStateState)2{34switch(State)5{6caseAcitonState.Init:7{8Add.Enabled=true;9Save.Enabled=Delete.Enabled=Cancel.Enabled=false;10Edit.Enabled=false;1112FirstSheet.Enabled=LastSheet.Enabled=PriviewSheet.Enabled=NextSheet.Enabled=false;1314}15break;1617caseAcitonSt 阅读全文
posted @ 2011-07-29 18:23 Ry5 阅读(259) 评论(0) 推荐(0) 编辑
摘要: SQL操作数据库的 #region save dbsql ....public void SaveSheet()private void SaveSheetList()private void SaveSheetListDetails()private void SaveGridListDetails()#endregion窗体关闭 protected override void OnFormClosing(FormClosingEventArgs e) { if (hasDataChange) { DialogResult result = MessageBox.Show("数据有 阅读全文
posted @ 2011-07-29 18:20 Ry5 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1 检查SQL的纪录是不是存在2 时间比较前后3 判断字符是否在字符数组当中 4 SQL语句中的2个参数帮助方法 【在参数中判断来判断去的蛋疼】 Object SqlParaHelperDev(Object AObject) { if (AObject == null || AObject.ToString() == "") return DBNull.Value; return (Object)AObject; } string SqlParaHelper(string AObject) { return AObject.Trim(); } private bool Tr 阅读全文
posted @ 2011-07-29 18:14 Ry5 阅读(176) 评论(0) 推荐(0) 编辑