随笔分类 -  Helper

摘要:应用场景:在项目中,经常遇到将数据库数据导出到Excel,针对这种情况做了个程序封装。工作原理:利用NPOI将SQL语句查询出的DataTable数据导出到Excel,所见即所得。程序界面:源代码:http://download.csdn.net/detail/a497785609/8119729点... 阅读全文
posted @ 2014-11-04 16:06 清山博客 阅读(222) 评论(0) 推荐(0) 编辑
摘要:应用场景:在项目中,经常遇到将数据库数据导出到Excel,针对这种情况做了个程序封装。工作原理:利用NPOI将SQL语句查询出的DataTable数据导出到Excel,所见即所得。程序界面:源代码:http://download.csdn.net/detail/a497785609/8119729点... 阅读全文
posted @ 2014-11-04 16:06 清山博客 阅读(158) 评论(0) 推荐(0) 编辑
摘要:using System.Collections.Generic;using System.DirectoryServices;using System.Linq;using Microsoft.Web.Administration;//位于:C:\Windows\System32\inetsrv\... 阅读全文
posted @ 2014-07-19 09:50 清山博客 阅读(146) 评论(0) 推荐(0) 编辑
摘要:using System.Collections.Generic;using System.DirectoryServices;using System.Linq;using Microsoft.Web.Administration;//位于:C:\Windows\System32\inetsrv\... 阅读全文
posted @ 2014-07-19 09:50 清山博客 阅读(173) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Configuration;using System.Web;using System.Web.Configuration;namespace Whir.ezEIP{ /// /// WebConfig读写辅助类 /// ... 阅读全文
posted @ 2014-06-04 11:32 清山博客 阅读(2701) 评论(1) 推荐(0) 编辑
摘要:using System;using System.Data;using System.Data.SqlClient;namespace Whir.Software.Framework.Ultimate{ /// /// 数据库访问助手 /// public cl... 阅读全文
posted @ 2014-06-01 15:06 清山博客 阅读(438) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.IO;using System.Text;namespace Whir.Software.Framework{ /// /// 文件辅助类 /// ... 阅读全文
posted @ 2014-06-01 15:02 清山博客 阅读(4696) 评论(0) 推荐(0) 编辑
摘要:using System.Collections.Generic;using System.DirectoryServices;using System.Linq;using Microsoft.Web.Administration; //位于:C:\Windows\System32\inetsrv... 阅读全文
posted @ 2014-05-31 11:15 清山博客 阅读(1118) 评论(0) 推荐(0) 编辑
摘要:using System;using System.IO;using System.Linq;using System.Net;using System.Text;using System.Text.RegularExpressions;namespace Whir.Software.DocumentDownLoader.Library{ /// /// 模拟HTTP操作 /// public class HttpOperater { /// /// 发起Http请求 /// /// ... 阅读全文
posted @ 2013-11-08 17:21 清山博客 阅读(220) 评论(0) 推荐(0) 编辑
摘要:using System;using System.IO;using System.Net;using System.Text;namespace Whir.Software.DataSyncTools.Library.Helper{ /// /// Ftp辅助类 /// public class FtpHelper { private const int BufferSize = 2048; private readonly string _host; private readonly string _pas... 阅读全文
posted @ 2013-10-21 13:42 清山博客 阅读(222) 评论(0) 推荐(0) 编辑
摘要:using Microsoft.Win32;namespace PowerEasy.Software.OfficeConvertService{ /// /// 注册表辅助类 /// public class RegistryHelper { private const string SoftName = "OfficeConvertService";//您的软件所用到的注册表节点,所有键值对将在该节下创建 /// /// 取得注册表值 /// /// /... 阅读全文
posted @ 2013-06-15 21:13 清山博客 阅读(145) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Configuration.Install;using System.ServiceProcess;namespace PowerEasy.Software.OfficeConvertHelper{ /// /// Windows服务辅助类 /// internal class ServiceHelper { /// /// 检查服务存在的存在性 /// /// 服务名 /// ... 阅读全文
posted @ 2013-06-15 21:02 清山博客 阅读(149) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Data;using System.Web.Script.Serialization;using System.Xml;namespace PowerEasy.Software.OrderSyncLibrary.Commom.Helper{ /// /// JSON数据格式转换 /// public class JsonHelper { /// /// 将JSON解析成DataSet(只限标准的JS... 阅读全文
posted @ 2013-06-07 11:39 清山博客 阅读(372) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.IO;using ICSharpCode.SharpZipLib.Zip;namespace TestConsole{ internal class Program { private static void Main() { //CreateZipFile(@"d:\", @"d:\a.zip"); UnZipFile(@"E:\我的桌面.zip"); Console.... 阅读全文
posted @ 2013-05-30 15:29 清山博客 阅读(401) 评论(0) 推荐(0) 编辑
摘要:1.简单替换##这是注释Wellcome ${userName}! Now:$date2.申明变量:#set( $iAmVariable = "good!" )Welcome $name to Javayou.com!today is $date.$iAmVariable3.if语句:#set ($admin = "admin")#set ($user = "user")#if ($admin == $user)Welcome admin!#elseWelcome user!#end4.遍历对象:#foreach( $product 阅读全文
posted @ 2013-05-18 21:24 清山博客 阅读(299) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Globalization; using System.IO; using System.Security; using System.Security.Cryptography; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Helper { /// <summary> /// 配置文件辅助类 /// </summary> public class ConfigHelper { ... 阅读全文
posted @ 2013-05-04 17:59 清山博客 阅读(845) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Data; using System.Text.RegularExpressions; using System.Xml; using System.IO; using System.Collections; using System.Data.SQLite; namespace SQLiteHelper { /// <summary> /// SQLiteHelper is a utility class similar to "SQLHelper" in MS /// Data Access Applic 阅读全文
posted @ 2012-01-05 20:15 清山博客 阅读(931) 评论(0) 推荐(0) 编辑
摘要:namespace Framework { using System; using System.Collections; using System.IO; using KTDictSeg; /// <summary> /// 关键字辅助类 /// </summary> public class KeyWordHelper { public static CSimpleDictSeg m_SimpleDictSeg; /// <summary> /// 提取关键字 ... 阅读全文
posted @ 2011-12-15 13:21 清山博客 阅读(650) 评论(0) 推荐(0) 编辑
摘要:namespace Framework { using System; using System.Globalization; using System.Text; /// <summary> /// 随机数辅助类 /// </summary> public sealed class RandomHelper { private static readonly char[] RandChar = { '0', '1', '2', '3', '4', '5', '6&# 阅读全文
posted @ 2011-12-15 13:18 清山博客 阅读(384) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Text; using System.Globalization; using System.Text.RegularExpressions; namespace Framework { /// <summary> /// 字符串辅助类 /// </summary> public static class StringHelper { /// <summary> /// 截取字符串的后部分 ... 阅读全文
posted @ 2011-12-15 13:17 清山博客 阅读(1121) 评论(0) 推荐(0) 编辑

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