05 2011 档案

摘要:View Code delete from StationInfo where StationID in (select StationID from StationInfo group by StationID having COUNT(StationID)>1) 阅读全文
posted @ 2011-05-23 13:14 Wythe 阅读(243) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO.Pipes;using System.Security.Principal;namespace TopInfo.Metevation.Common{ public class PipeMessageUtil { private const string PipeName = "TopInfoPipe"; public static bool NeedSendMessage = fa 阅读全文
posted @ 2011-05-20 16:35 Wythe 阅读(3665) 评论(1) 推荐(0) 编辑
摘要:public class SystemEventLog { private static EventLog mLog; /// <summary> /// 返回操作Windows日志的类。 /// </summary> public static EventLog Log { get { if (mLog == null) { InitSystemEventLog(); } return mLog; } } /// <summary> /// 初始化系统事件日志 /// </summary> private static void InitSys 阅读全文
posted @ 2011-05-20 13:38 Wythe 阅读(347) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.Diagnostics;namespace TopInfo.Metevation.Common{ //WM_COPYDATA消息所要求的数据结构 public struct CopyDataStruct { public IntPtr dwData; public int cbData; [MarshalAs(UnmanagedTyp 阅读全文
posted @ 2011-05-20 13:29 Wythe 阅读(3708) 评论(5) 推荐(1) 编辑
摘要:在web.config中添加:<httpHandlers> <add verb="POST,GET" path="*.ashx" type="Ajax.PageHandlerFactory, Ajax"/> </httpHandlers><system.webServer> <handlers> <add name="Ajax" verb="POST,GET" path ="ajax/*.ashx" type= 阅读全文
posted @ 2011-05-12 14:27 Wythe 阅读(2293) 评论(0) 推荐(0) 编辑
摘要:if (ContentByte == null) return; string downLoadFileName = Name + "." + ByteUitl.FileType(ContentByte); Response.ContentType = "application/octet-stream"; //通知浏览器下载文件而不是打开 Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode 阅读全文
posted @ 2011-05-09 16:59 Wythe 阅读(705) 评论(0) 推荐(0) 编辑