You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.1 KiB
C#

10 months ago
using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.CommMng.Models
{
[JsonObject]
public class FieldModel
{
#region private Fields
private string _fieldname = String.Empty;
private string _fieldvalue = String.Empty;
#endregion
#region Public Properties
public string FieldName
{
get { return _fieldname; }
set { _fieldname = value; }
}
public string FieldValue
{
get { return _fieldvalue; }
set { _fieldvalue = value; }
}
#endregion
}
[JsonObject]
public class Sys_Logmd : ModelObjectBillHead
{
#region private Fields
private string _GID = string.Empty;
private string _NAME = string.Empty;
private string _LOGTYPE = string.Empty;
private string _LOGTIME = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
private string _LOGCONTENT = string.Empty;
private string _CREATEUSER = string.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
[ModelDB]
public string LOGTYPE
{
get { return _LOGTYPE; }
set { _LOGTYPE = value; }
}
[ModelDB]
public DateTime? LOGTIME{ get; set; }
[ModelDB]
public string LOGCONTENT
{
get { return _LOGCONTENT; }
set { _LOGCONTENT = value; }
}
[ModelDB]
public string CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
public Sys_Logmd ( )
{
TableName = "Sys_Log";
}
public override string GetBillNoFieldName()
{
return "GID";
}
#endregion
}
}