|
using System;
|
using System.Collections.Generic;
|
|
namespace HH.TOOLS.LOG
|
{
|
public class LogPara1
|
{
|
private int logType = 0;
|
|
public int index { get; set; }
|
|
public string title { get; set; }
|
|
public string type { get; set; }
|
|
public string from { get; set; }
|
|
public bool isExistMst { get; set; }
|
|
public DateTime create { get; set; }
|
|
public TN_AB_LOGMSTEntity logMst { get; set; }
|
|
public List<TN_AB_LOGDTLEntity> logDtls { get; set; }
|
|
public LogPara1(string title, string type = "INFO", string from = "API")
|
{
|
this.title = title;
|
this.type = type;
|
this.from = from;
|
create = DateTime.Now;
|
isExistMst = false;
|
logMst = new TN_AB_LOGMSTEntity
|
{
|
CN_S_GUID = Guid.NewGuid().ToString(),
|
CN_S_LOG_TYPE = type,
|
CN_S_LOG_FROM = from,
|
CN_S_LOG_TITLE = title,
|
CN_T_CREATE = DateTime.Now
|
};
|
logDtls = new List<TN_AB_LOGDTLEntity>();
|
index = 1;
|
}
|
}
|
}
|