Commit 3b2b762f by liulongfei

操作日志

parent 55ec99ae
......@@ -78,6 +78,8 @@ namespace VIZ.Package.Service
this.streamWriter = new StreamWriter(this.GetFileName(), false, Encoding.Default);
this.csvWriter = new CsvWriter(this.streamWriter, CultureInfo.InvariantCulture);
this.csvWriter.WriteHeader<RecordLog>();
this.csvWriter.NextRecord();
}
/// <summary>
......@@ -165,6 +167,8 @@ namespace VIZ.Package.Service
this.streamWriter = new StreamWriter(this.GetFileName(), false, Encoding.Default);
this.csvWriter = new CsvWriter(this.streamWriter, CultureInfo.InvariantCulture);
this.csvWriter.WriteHeader<RecordLog>();
this.csvWriter.NextRecord();
this.writeCount = 0;
}
}
......
......@@ -17,39 +17,46 @@ namespace VIZ.Package.Storage
/// <summary>
/// 编号
/// </summary>
[Name("编号")]
public int ID { get; set; }
/// <summary>
/// 时间
/// </summary>
[Name("时间")]
[Format("yyyy-MM-dd HH:mm:ss")]
public DateTime DateTime { get; set; }
/// <summary>
/// 插件
/// </summary>
[Name("插件")]
public string Plugin { get; set; }
/// <summary>
/// 操作
/// 日志类型
/// </summary>
/// <see cref="RecordLogOperate"/>
[Name("日志类型")]
public string Operate { get; set; }
/// <summary>
/// 触发
/// 触发方式
/// </summary>
/// <see cref="RecordLogTrigger"/>
[Name("触发方式")]
public string Trigger { get; set; }
/// <summary>
/// 描述
/// </summary>
[Name("描述")]
public string Detail { get; set; }
/// <summary>
/// 备注
/// </summary>
[Name("备注")]
public string Remark { get; set; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment