随笔分类 -  代码收藏

平时工作中或业余时编写的一些代码
摘要:select distinct stu.*,dbo.GetClassNameByStudentCode(stu.Code) as ClassName,dbo.GetCourseNameByStudentCode(stu.Code) as CourseName,dbo.GetLinkmanByStud... 阅读全文
posted @ 2014-05-23 22:59 0611163 阅读(1696) 评论(0) 推荐(0)
摘要:USE [FM_Dev]GO/****** 对象: UserDefinedFunction [dbo].[GetClassNameByStudentCode] 脚本日期: 05/23/2014 17:20:43 ******/SET ANSI_NULLS ONGOSET QUOTED_IDE... 阅读全文
posted @ 2014-05-23 22:49 0611163 阅读(1251) 评论(0) 推荐(0)
摘要:步骤: 一、前台JS取HtmlTable数据,根据设定的分隔符把数据拼接起来 <!--导出Excel--> <script type="text/javascript"> //导出Excel function exportExcel() { var data = ""; $("#divRptTabl 阅读全文
posted @ 2014-04-02 22:06 0611163 阅读(1203) 评论(2) 推荐(1)
摘要:关键代码如下:/// /// 估算中英文字符串的宽度/// /// public static double GetWidthUnitCount(string value){ double count = 0; for (var i = 0; i /// 是否汉字或中文标点/// pri... 阅读全文
posted @ 2014-04-02 21:43 0611163 阅读(606) 评论(0) 推荐(0)
摘要://全屏function fullScreen() { var el = document.documentElement; var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFull... 阅读全文
posted @ 2014-03-24 16:03 0611163 阅读(429) 评论(1) 推荐(2)
摘要:代码如下:/// /// 附件下载/// /// 附件IDpublic void DownloadAttach(int attachId){ Edu_Attach edu_Attach = edu_AttachService.findById(attachId); if (edu_Att... 阅读全文
posted @ 2014-03-15 13:45 0611163 阅读(616) 评论(2) 推荐(0)
摘要:使用的dll:ICSharpCode.SharpZipLib下载地址http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx/// /// 下载资料/// public void DownloadCourseData(){ ... 阅读全文
posted @ 2014-03-15 13:42 0611163 阅读(622) 评论(0) 推荐(0)
摘要:自己写的DES加密解密类,加密后生成Base64字符串,并去除'='字符。加密后替换掉'+',这样加密后的字符串可以作为url参数传递。using System;using System.IO;using System.Security.Cryptography;using System.Text;... 阅读全文
posted @ 2014-03-14 22:59 0611163 阅读(448) 评论(0) 推荐(1)