会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
garsonguo
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2016年1月18日
WCF存储图片到指定文件夹下
摘要: string path = System.IO.Directory.GetCurrentDirectory() + @"\POIImages\"; Guid imgid = Guid.NewGuid(); byte[] ImageByte = Convert.FromBase64String(pic); /// /...
阅读全文
posted @ 2016-01-18 13:24 garsonguo
阅读(288)
评论(0)
推荐(0)
2016年1月15日
Nhibernate主子表查询
摘要: 假如有AB两表,A为主,B为子:已知A表ID,查B表数据ICriteria criteriaTotal = session.CreateCriteria().CreateCriteria("A"); criteriaTotal.Add(Restrictions....
阅读全文
posted @ 2016-01-15 10:21 garsonguo
阅读(377)
评论(0)
推荐(0)
FluentNHibernate当数据库设置默认值时,使用插入操作,导致默认值没有写入问题
摘要: 需要再映射属性字段增加Not.Insert()Map(x => x.Provrince, "PROVRINCE").Not.Insert(); Map(x => x.City, "CITY").Not.Insert();
阅读全文
posted @ 2016-01-15 10:06 garsonguo
阅读(251)
评论(0)
推荐(0)
2016年1月13日
angularjs 利用filter进行表单查询及分页查询
摘要: 页面: {{item.imageLength/1024 | number:0}}KB{{item.imageName}} 下载 --> {...
阅读全文
posted @ 2016-01-13 11:46 garsonguo
阅读(857)
评论(0)
推荐(0)
2016年1月12日
angular调用WCF服务,读取文件夹下图片显示列表,下载另存为图片
摘要: 读取文件夹下的文件public string ReadImagesPaths() { string result = string.Empty; try { string path = ...
阅读全文
posted @ 2016-01-12 18:34 garsonguo
阅读(737)
评论(0)
推荐(0)
2016年1月8日
angularjs 遇到Error: [$injector:unpr] Unknown provider: tdpicnews-serviceProvider <- tdpicnews-service <- tdpic-controller 错误
摘要: define(['modules/tdpic-module', 'services/news-service', 'utilities/cryto'], function (app) { 'use strict'; app.controller('tdpic-controller', [...
阅读全文
posted @ 2016-01-08 14:07 garsonguo
阅读(2539)
评论(0)
推荐(0)
2016年1月6日
angularjs modal模态框----创建可拖动的指令
摘要: //最近项目中需要将angular-ui-bootstrap中用到的弹出框,使之可拖动,由于源文件中没有实现,需要自己实现指令,以下即为该指令,亲测可以实现。.directive('draggable', ['$document', function($document) { ...
阅读全文
posted @ 2016-01-06 17:14 garsonguo
阅读(3401)
评论(8)
推荐(1)
2015年12月23日
anjularjs slider控件替代方案
摘要: 做项目需要一个slider控件,找了很久没有找到合适的指令集,无意间看到可以直接用range替代,不过样式有点丑。 其中step指拉动的时候一次多大范围。
阅读全文
posted @ 2015-12-23 13:39 garsonguo
阅读(247)
评论(0)
推荐(0)
2015年12月18日
requirejs+anjularjs+express框架
摘要: 1.目录2.首页login.html如下: 登录界面 用户登录 用户名 ...
阅读全文
posted @ 2015-12-18 11:46 garsonguo
阅读(373)
评论(0)
推荐(0)
2015年12月17日
ng-view和ng-include之间的区别
摘要: ng-view通过使用路由控制,可以方便的实现页面组合,但一个html文件中,只能有一个ng-view,他是可以被ctl控制的。ng-include就是将多个页面的公共页面提取出来,如header.html,footer.html等,在每个页面用来引入。
阅读全文
posted @ 2015-12-17 13:50 garsonguo
阅读(589)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告