DODONG

博客园 首页 新随笔 联系 订阅 管理

2012年5月9日 #

摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingiTextSharp.text.html.simpleparser;usingiTextSharp.text.pdf;usingiTextSharp.text;usingSystem.IO;usingSystem.Web.UI.HtmlControls;usingSystem.Drawing;//itextsharp.dll vers 阅读全文
posted @ 2012-05-09 10:41 DODONG 阅读(5008) 评论(1) 推荐(0) 编辑

2011年11月7日 #

摘要: usingSystem;usingSystem.Management;namespaceSoyee.Comm{///<summary>///ComputerInformation///</summary>publicclassComputer{publicstringCpuID;publicstringMacAddress;publicstringDiskID;publicstringIpAddress;publicstringLoginUserName;publicstringComputerName;publicstringSystemType;publicstri 阅读全文
posted @ 2011-11-07 17:50 DODONG 阅读(5301) 评论(0) 推荐(0) 编辑

摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Text;namespaceCSVDemo{///<summary>///CSVUtilisahelperclasshandlingcsvfiles.///</summary>publicclassCSVUtil{privateCSVUtil(){}//writeanewfile,existedfilewillbeoverwrittenpublicstaticvoidWriteCSV(stringfilePathName,List 阅读全文
posted @ 2011-11-07 17:49 DODONG 阅读(8633) 评论(0) 推荐(0) 编辑

摘要: //加载ExcelpublicstaticDataSetLoadDataFromExcel(stringfilePath){try{stringstrConn;strConn="Provider=Microsoft.Jet.OLEDB.4.0;DataSource="+filePath+";ExtendedProperties='Excel8.0;HDR=False;IMEX=1'";OleDbConnectionOleConn=newOleDbConnection(strConn);OleConn.Open();Stringsql=&q 阅读全文
posted @ 2011-11-07 17:48 DODONG 阅读(750) 评论(0) 推荐(0) 编辑

2011年4月26日 #

摘要: View Code 1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Web;5usingSystem.Runtime.InteropServices;6usingMicrosoft.Win32;78namespaceWebApplication39{10publicclassClass111{12[StructLayout(LayoutKind.Sequential)]13publicstructSYSTEMTIME14{15publicshortYear;16publicshortMo. 阅读全文
posted @ 2011-04-26 18:02 DODONG 阅读(1398) 评论(0) 推荐(0) 编辑

2009年6月10日 #

摘要: 当Reporting Service 为Windows集成验证;解决域验证HTTP:401错误.1.新建Report_ExcessQty.aspx; 通过VS.Net工具栏拖入ReportViewer控件[代码]2.创建类:MyReportViewerCredential.cs,实现接口方法IReportServerCredentials[代码]3.实现Report_ExcessQty.aspx.... 阅读全文
posted @ 2009-06-10 13:44 DODONG 阅读(1699) 评论(2) 推荐(1) 编辑

2008年4月2日 #

摘要: 遍历获取控件上的值#region 遍历获取控件上的值 /**//// 字符串首字母大写 /// private static string ToProperCase(string s) { string revised = ""; if (s.Length > 0) { revised = ... 阅读全文
posted @ 2008-04-02 15:12 DODONG 阅读(421) 评论(0) 推荐(0) 编辑

2007年12月13日 #

摘要: SELECT AccountId AS Expr1, COUNT(AccountId) AS Expr2 FROM dbo.SCM_Employee GROUP BY AccountId, AccountId HAVING (COUNT(AccountId) > 1) 阅读全文
posted @ 2007-12-13 10:35 DODONG 阅读(276) 评论(0) 推荐(0) 编辑

2007年9月29日 #

摘要: IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'sp_CVS2DB') BEGIN PRINT N'删除存储过程 sp_CVS2DB' DROP Procedure sp_CVS2DB END GO PRINT N'生成存储过程 sp_CVS2DB' GO /... 阅读全文
posted @ 2007-09-29 14:56 DODONG 阅读(3286) 评论(1) 推荐(0) 编辑

2007年4月25日 #

摘要: .aspx 1 2 323 .cs using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;u... 阅读全文
posted @ 2007-04-25 22:07 DODONG 阅读(1871) 评论(0) 推荐(0) 编辑

2006年10月24日 #

摘要: // Abstract Factory pattern -- Structural example using System;// "AbstractFactory"abstract class AbstractFactory{ // Methods abstract public AbstractProductA CreateProductA(); abstract public Abs... 阅读全文
posted @ 2006-10-24 23:16 DODONG 阅读(210) 评论(0) 推荐(0) 编辑

摘要: using System;public abstract class Light{ public abstract void TurnOn(); public abstract void TurnOff();}public class BulbLight : Light{ public override void TurnOn() { Console.WriteLine(... 阅读全文
posted @ 2006-10-24 23:15 DODONG 阅读(217) 评论(0) 推荐(0) 编辑

摘要: 1 using System; 2 3 public abstract class Light 4 { 5 public abstract void TurnOn(); 6 public abstract void TurnOff(); 7 } 8 9 public class BulbLight : Light10 {11 public override void T... 阅读全文
posted @ 2006-10-24 23:13 DODONG 阅读(260) 评论(0) 推荐(0) 编辑

2006年8月20日 #

摘要: 我们将研究如何创建一个作为Windows服务的应用程序。内容包含什么是Windows服务,如何创建、安装和调试它们。会用到System.ServiceProcess.ServiceBase命名空间的类。 什么是Windows服务? Windows服务应用程序是一种需要长期运行的应用程序,它对于服务器环境特别适合。它没有用户界面,并且也不会产生任何可视输出。任何用户消息都会被写进Windows事件... 阅读全文
posted @ 2006-08-20 22:33 DODONG 阅读(248) 评论(0) 推荐(0) 编辑

2006年6月30日 #

摘要: SPWeb web = SPControl.GetContextWeb(this.Context); SPList tasks = web.Lists[this.ListName]; SPQuery query = new SPQuery(); query.Query ... 阅读全文
posted @ 2006-06-30 17:50 DODONG 阅读(463) 评论(1) 推荐(0) 编辑