摘要: string path = System.IO.Directory.GetCurrentDirectory() + @"\POIImages\"; Guid imgid = Guid.NewGuid(); byte[] ImageByte = Convert.FromBase64String(pic); /// /... 阅读全文
posted @ 2016-01-18 13:24 garsonguo 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 假如有AB两表,A为主,B为子:已知A表ID,查B表数据ICriteria criteriaTotal = session.CreateCriteria().CreateCriteria("A"); criteriaTotal.Add(Restrictions.... 阅读全文
posted @ 2016-01-15 10:21 garsonguo 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 需要再映射属性字段增加Not.Insert()Map(x => x.Provrince, "PROVRINCE").Not.Insert(); Map(x => x.City, "CITY").Not.Insert(); 阅读全文
posted @ 2016-01-15 10:06 garsonguo 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 页面: {{item.imageLength/1024 | number:0}}KB{{item.imageName}} 下载 --> {... 阅读全文
posted @ 2016-01-13 11:46 garsonguo 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 读取文件夹下的文件public string ReadImagesPaths() { string result = string.Empty; try { string path = ... 阅读全文
posted @ 2016-01-12 18:34 garsonguo 阅读(725) 评论(0) 推荐(0) 编辑
摘要: define(['modules/tdpic-module', 'services/news-service', 'utilities/cryto'], function (app) { 'use strict'; app.controller('tdpic-controller', [... 阅读全文
posted @ 2016-01-08 14:07 garsonguo 阅读(2499) 评论(0) 推荐(0) 编辑
摘要: //最近项目中需要将angular-ui-bootstrap中用到的弹出框,使之可拖动,由于源文件中没有实现,需要自己实现指令,以下即为该指令,亲测可以实现。.directive('draggable', ['$document', function($document) { ... 阅读全文
posted @ 2016-01-06 17:14 garsonguo 阅读(3370) 评论(8) 推荐(1) 编辑
摘要: 做项目需要一个slider控件,找了很久没有找到合适的指令集,无意间看到可以直接用range替代,不过样式有点丑。 其中step指拉动的时候一次多大范围。 阅读全文
posted @ 2015-12-23 13:39 garsonguo 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.目录2.首页login.html如下: 登录界面 用户登录 用户名 ... 阅读全文
posted @ 2015-12-18 11:46 garsonguo 阅读(363) 评论(0) 推荐(0) 编辑
摘要: ng-view通过使用路由控制,可以方便的实现页面组合,但一个html文件中,只能有一个ng-view,他是可以被ctl控制的。ng-include就是将多个页面的公共页面提取出来,如header.html,footer.html等,在每个页面用来引入。 阅读全文
posted @ 2015-12-17 13:50 garsonguo 阅读(581) 评论(0) 推荐(0) 编辑