01 2016 档案

摘要:ng.module('index-filters', []).filter('trustHtml', function ($sce) { return function (input) { return $sce.trustAsHtml(input... 阅读全文
posted @ 2016-01-20 11:33 garsonguo 阅读(996) 评论(0) 推荐(0) 编辑
摘要:string path = System.IO.Directory.GetCurrentDirectory() + @"\POIImages\"; Guid imgid = Guid.NewGuid(); byte[] ImageByte = Convert.FromBase64String(pic); /// /... 阅读全文
posted @ 2016-01-18 13:24 garsonguo 阅读(284) 评论(0) 推荐(0) 编辑
摘要:假如有AB两表,A为主,B为子:已知A表ID,查B表数据ICriteria criteriaTotal = session.CreateCriteria().CreateCriteria("A"); criteriaTotal.Add(Restrictions.... 阅读全文
posted @ 2016-01-15 10:21 garsonguo 阅读(373) 评论(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 阅读(242) 评论(0) 推荐(0) 编辑
摘要:页面: {{item.imageLength/1024 | number:0}}KB{{item.imageName}} 下载 --> {... 阅读全文
posted @ 2016-01-13 11:46 garsonguo 阅读(853) 评论(0) 推荐(0) 编辑
摘要:读取文件夹下的文件public string ReadImagesPaths() { string result = string.Empty; try { string path = ... 阅读全文
posted @ 2016-01-12 18:34 garsonguo 阅读(728) 评论(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 阅读(2521) 评论(0) 推荐(0) 编辑
摘要://最近项目中需要将angular-ui-bootstrap中用到的弹出框,使之可拖动,由于源文件中没有实现,需要自己实现指令,以下即为该指令,亲测可以实现。.directive('draggable', ['$document', function($document) { ... 阅读全文
posted @ 2016-01-06 17:14 garsonguo 阅读(3375) 评论(8) 推荐(1) 编辑

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