2015年6月5日

Linq 实现普通sql中 where in 的功能

摘要: user.ProjectIds 的值是使用逗号分隔的 例如:1,2,3projectList = (from a in projectList where (user.ProjectIds.Split(',')).Contains(a.ProjectId) select a).ToList(); 阅读全文

posted @ 2015-06-05 11:58 hellofking 阅读(920) 评论(0) 推荐(0) 编辑

2015年5月26日

C# 操作电脑 关机 重启 注销 休止 休眠

摘要: // 关机 强制电脑10秒之内关机 //System.Diagnostics.Process.Start("shutdown", "-s -f -t 10");// 重启 强制电脑10秒之内关机//System.Diagnostics.Process.Start("s... 阅读全文

posted @ 2015-05-26 11:19 hellofking 阅读(273) 评论(0) 推荐(0) 编辑

2015年4月10日

批处理备份和恢复mysql数据库

摘要: 备份set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%" md "D:\databackup\%Ymd%" "C:\Program Files\MySQL\MySQL Server 5.5\bin\my... 阅读全文

posted @ 2015-04-10 15:27 hellofking 阅读(367) 评论(0) 推荐(0) 编辑

2015年1月20日

使用C#代码追加和提交文件到SVN服务器

摘要: windows系统下使用svn的命令需要安装一个插件,下载地址:http://sourceforge.net/projects/win32svn/?source=typ_redirect安装后程序会自动把安装目录下的bin文件夹设置到系统的环境变量中,为了svn的commit命令可用,我们需要手动配... 阅读全文

posted @ 2015-01-20 08:24 hellofking 阅读(1750) 评论(0) 推荐(0) 编辑

2015年1月18日

access 2007 vba (亖)

摘要: OpenReport方法执行 OpenReport 操作在 Visual Basic 中。语法表达式.OpenReport(ReportName,View,FilterName,WhereCondition,WindowMode,OpenArgs)表达式一个代表DoCmd对象的变量。参数名称必需/可... 阅读全文

posted @ 2015-01-18 19:33 hellofking 阅读(366) 评论(0) 推荐(0) 编辑

access 2007 vba 开发中学到的知识(三)

摘要: 打开文件或程序'API函数声明Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lp... 阅读全文

posted @ 2015-01-18 12:33 hellofking 阅读(201) 评论(0) 推荐(0) 编辑

access 2007 vba 开发中学到的知识(二)

摘要: 文件的导入和导出excel'excel导入Private Sub btnInExcel_Click() Dim strSelectFile As StringWith Application.FileDialog(3) .AllowMultiSelect = False .Init... 阅读全文

posted @ 2015-01-18 11:31 hellofking 阅读(225) 评论(0) 推荐(0) 编辑

2014年12月23日

ajax调用action后返回list给list.jsp,显示为xml文档

摘要: struts2中使用的是map来保存数据的,所以这里绑定的值是key和value1 2 3 4 5 6 7 8 阅读全文

posted @ 2014-12-23 19:06 hellofking 阅读(237) 评论(0) 推荐(0) 编辑

javascript判断浏览器

摘要: 1 function getExplorer() { 2 //IE 3 if (navigator.userAgent.indexOf("MSIE")>=0) 4 { 5 9 }10 //Firefox11 else i... 阅读全文

posted @ 2014-12-23 19:06 hellofking 阅读(119) 评论(0) 推荐(0) 编辑

使用poi3.9的jar输出excel

摘要: // 取得模板文件存放的路径ReadFilePath = ServletActionContext.getServletContext().getRealPath(ExcelTemplateFilePath);// 取得临时模板文件存放的路径SaveFilePath = ServletActionC... 阅读全文

posted @ 2014-12-23 19:04 hellofking 阅读(1132) 评论(0) 推荐(0) 编辑

导航