04 2013 档案

摘要:<summary> 生成json数据 </summary> <param name="query"></param> <returns></returns> private string BuildJsonForOrganization(IQueryable<Organization> query) { StringBuilder Json = new StringBuilder(); if (query.Count() > 0) { Json.Append("[" 阅读全文
posted @ 2013-04-26 14:04 soulfree 阅读(383) 评论(0) 推荐(0)
摘要:/// /// 根据方法名称反射调用相应的方法 /// /// public string InitCombox(string method) { Type type = this.GetType(); MethodInfo m = type.GetMethod(method); if (m == null) throw new Exception("method is null"); try { //如果需要传递参数 //object[] objs = { "参数1", "参数2", "参数3" };//objs 阅读全文
posted @ 2013-04-26 11:31 soulfree 阅读(334) 评论(0) 推荐(0)
摘要:bootstarp 响应式布局:通过官方的DEMO,不难看出这套前端框架的样式、功能都非常强大,基本覆盖了我们开发中常用的按钮、文本、下拉框、列表、树形结构、导航等等。甚至如果你想快速搭建一个页面,也有布局控件可以参考。当然仅仅是布局的话还是推荐使用bootstrap传送门:http://wrongwaycn.github.io/bootstrap/docs/index.html。因为专业才是王道,还有它不收费json:http://json.codeplex.com json 编译器 阅读全文
posted @ 2013-04-14 19:57 soulfree 阅读(218) 评论(0) 推荐(0)
摘要:var orderCode = getCode("orderCode");--js 获取url参数值function getCode(orderCode) { new RegExp("(^|&)" + orderCode + "=([^&]*)").exec(window.location.search.substr(1)); return RegExp.$2 } /// <summary> /// 取HttpRequest请求中名称为ParamName的参数的值,包括QueryString和Form参数, 阅读全文
posted @ 2013-04-07 09:35 soulfree 阅读(2124) 评论(1) 推荐(0)
摘要:<script type="text/javascript" src="http://www.google.com/jsapi"></script>google.load("language", "1");function translate_keyword(){var text = document.getElementById("Laws_keyword").value;google.language.detect(text, function(result){if 阅读全文
posted @ 2013-04-07 09:34 soulfree 阅读(449) 评论(0) 推荐(0)
摘要:安装window server 程序:C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil DataUpdateService.exe net start LuceneServer卸载window server 程序:net stop L... 阅读全文
posted @ 2013-04-07 09:33 soulfree 阅读(298) 评论(0) 推荐(0)
摘要:WITH RBoardDiscuss_Table(OpenBoardDiscussID,AssociateItemDefinitionID,AssociateItemID) AS(SELECT OpenBoardDiscussID,AssociateItemDefinitionID,Associat... 阅读全文
posted @ 2013-04-07 09:32 soulfree 阅读(1502) 评论(0) 推荐(0)
摘要:1.往一个表中添加新的一列并添加默认值alter table ClassToCourse add StuYear int not null default 0 with values;2. 查询分组后的多余的一条数据select * from ChargeStardSet where id in (select max(id) from ChargeStardSet group by ChargeItemId,StuAttendSchool,OgId having count(*) > 1) 阅读全文
posted @ 2013-04-07 09:30 soulfree 阅读(130) 评论(0) 推荐(0)
摘要:--设置mysql 远程连接访问grant select,update,insert,delete on *.* to root@192.168.11.30 identified by "root";GRANT ALL PRIVILEGES ON *.* TO 'root'@'websv';--语句查询Insert into ori_qk_issue(qcode, year,issue) select 'chenjt','2012','12' from dualwhere not exists( 阅读全文
posted @ 2013-04-07 09:28 soulfree 阅读(150) 评论(0) 推荐(0)
摘要:1.文本框加上文字水印效果: $("#searchtxt").Watermark({ text: "产品、学科或学段关键字" });2.jQuery对下拉框的操作/获取第一个option的值 $('#test option:first').val(); //最后一个option的值 $('#test option:last').val(); //获取第二个option的值 $('#test option:eq(1)').val(); //获取选中的值 $('#test').val(); $( 阅读全文
posted @ 2013-04-07 09:23 soulfree 阅读(128) 评论(0) 推荐(0)