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

浙公网安备 33010602011771号