05 2011 档案
摘要:View Code delete from StationInfo where StationID in (select StationID from StationInfo group by StationID having COUNT(StationID)>1)
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:在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=
阅读全文
摘要:if (ContentByte == null) return; string downLoadFileName = Name + "." + ByteUitl.FileType(ContentByte); Response.ContentType = "application/octet-stream"; //通知浏览器下载文件而不是打开 Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode
阅读全文