52 lines
1.0 KiB
C#
52 lines
1.0 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Xml;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.IO;
|
|||
|
|
|
|||
|
|
namespace WMS.Attirubte
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 事件日志的处理
|
|||
|
|
/// </summary>
|
|||
|
|
[System.AttributeUsage(System.AttributeTargets.Class |
|
|||
|
|
System.AttributeTargets.Struct)]
|
|||
|
|
public class LogWriteAttribute : Attribute
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 字典---
|
|||
|
|
/// </summary>
|
|||
|
|
private Dictionary<string, string> logText = new Dictionary<string, string>();
|
|||
|
|
|
|||
|
|
|
|||
|
|
public string logErr = string.Empty;
|
|||
|
|
|
|||
|
|
private DataTable table = new DataTable();
|
|||
|
|
|
|||
|
|
public LogWriteAttribute()
|
|||
|
|
{
|
|||
|
|
if (File.Exists(""))
|
|||
|
|
{
|
|||
|
|
Directory.CreateDirectory("");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
XmlDocument doc = new XmlDocument();
|
|||
|
|
//XmlNode xml = new XmlNode();
|
|||
|
|
|
|||
|
|
|
|||
|
|
//XmlElement x = new XmlElement();
|
|||
|
|
//x.Name = "";
|
|||
|
|
|
|||
|
|
doc.LoadXml("phone.xml");
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|