07 2016 档案

摘要:1.WCF提交时间时,若需接受DateTime需转换为"\/Date(928120800000+0800)\/"这种格式 var DateToJson = function (jsDate) { return "\/Date(" + jsDate.getTime() + "+0800)\/"; } 阅读全文
posted @ 2016-07-26 15:32 garsonguo 阅读(413) 评论(0) 推荐(0) 编辑
摘要:不断总结中................. 1.等于land.djsj=to_date('2016/7/26','yyyy-MM-dd')2.大于等于land.djsj>=to_date('2016/7/26','yyyy-MM-dd')3.小于等于land.djsj<=to_date('2016 阅读全文
posted @ 2016-07-26 15:29 garsonguo 阅读(137) 评论(0) 推荐(0) 编辑
摘要:不断整理中。。。 获取当前时间DateTime.Now.ToString("d") ;//获取到的日期格式为eg :2013/11/14 时间格式只取年月日DateTime.Now.ToShortDateString(); //2013/11/14 获取年份/月份DateTime.Now.Year. 阅读全文
posted @ 2016-07-26 14:59 garsonguo 阅读(152) 评论(0) 推荐(0) 编辑
摘要:首先定义一个静态类 定义Page类 查询方法 阅读全文
posted @ 2016-07-15 17:07 garsonguo 阅读(5221) 评论(1) 推荐(0) 编辑
摘要:AngularJS 提供了很好的 $cookie 和 $cookieStore API 用来处理 cookies 。这两个服务都能够很好的发挥HTML5 cookies,当HTML5 API可用时浏览器会选择使用HTML5提供的API,如果不可用则默认选择document.cookies。无论那种方 阅读全文
posted @ 2016-07-05 21:05 garsonguo 阅读(385) 评论(0) 推荐(0) 编辑
摘要:1.ng-router: 获取路由参数(冒号后面的参数):$routeParams.casenumber 2.请求服务get请求:$http({ method: 'get', url: 'http://camnpr.com/getAPI/', params:{id: 1}, headers: {"C 阅读全文
posted @ 2016-07-05 21:03 garsonguo 阅读(334) 评论(0) 推荐(0) 编辑
摘要:项目查询中,常常需要返回指定的字段,下面是三种Nhibernate的方法1.linq to Nhibernatepublic class NameID{ public int Id { get; set; } public string Name { get; set; }}var disconti 阅读全文
posted @ 2016-07-05 11:27 garsonguo 阅读(706) 评论(0) 推荐(0) 编辑
摘要:只需修改App_Start文件夹下RouteConfig中RegisterRoutes方法 增加DataTokens.Add("Area","SysManage"); 其中SysManage为Area文件夹的名称,defaults中的控制器和action为SysManage文件夹下控制器名称和其中的 阅读全文
posted @ 2016-07-03 17:36 garsonguo 阅读(2976) 评论(0) 推荐(1) 编辑
摘要:1、常用指令 ng-class、ng-show、ng-disabled、ng-if、ng-hide加载页面时赋值(重点:ng-class的css赋值操作)$scope.clickValue = '受理';$scope.clickValue1='登记';$scope.IsDisable=true; 2 阅读全文
posted @ 2016-07-03 15:00 garsonguo 阅读(5763) 评论(0) 推荐(0) 编辑
摘要:开发中有时候会需要控制器之间的传值操作:下面几个操作可以达到所需, 注:无平级之间的操作 $emit只能向父 controller传递event与data$broadcast只能向子 controller传递event与data$on用于接收event与data 阅读全文
posted @ 2016-07-03 14:48 garsonguo 阅读(199) 评论(0) 推荐(0) 编辑
摘要:静态页面: controllers中的方法: 模态框所需控制器,其中items即为TQZJDFG()方法中传递过来的data: 创建可拖动指令见:http://www.cnblogs.com/bobo-show/p/5106204.html 阅读全文
posted @ 2016-07-03 14:45 garsonguo 阅读(618) 评论(0) 推荐(0) 编辑
摘要:html页面: 过滤器: html页面所需的控制器: 阅读全文
posted @ 2016-07-03 14:39 garsonguo 阅读(185) 评论(0) 推荐(0) 编辑
摘要:常用的表单验证1.必须字段html5特性 增加required 2.最小长度和最大长度 3.模式匹配——正则表达式 4.邮件模式 将type设置为email 5.数字 将type设置为number 6.url 将type设置为url 不常用(以下属性在form表单中) 1.屏蔽对表单的验证noval 阅读全文
posted @ 2016-07-01 13:35 garsonguo 阅读(210) 评论(0) 推荐(0) 编辑
摘要:在开发中,有时会需要指定字段去重,以下为实现方法: 假设有个房地产权的类,其中宗地代码ZDDM值重复,而我们在前端页面显示时,只需要一条数据,因为公共字段都一样; IEqualityComparer需引入程序集——using System.Collections; 阅读全文
posted @ 2016-07-01 11:40 garsonguo 阅读(1682) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示