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

41 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using Stone.Entity;
using Gm_WMS.DataAccess.DataService;
namespace Stone.WinBiz.BasicData
{
public class F_Log : F_Base
{
public F_Log()
{
this.type = "Log";
this.name = "系统管理_系统日志";
this.entity = new Entity_t_Sys_Log();
this.strOrder = "id desc";
}
public override void GetView(DataGridView dgv)
{
base.GetView(dgv);
dgv.Columns["UserName"].HeaderText = "操作员";
dgv.Columns["Message"].HeaderText = "日志内容";
dgv.Columns["AddTime"].HeaderText = "操作时间";
}
public static void WriteLog(string Message)
{
Entity_t_Sys_Log t_Sys_Log = new Entity_t_Sys_Log();
DataRow drLog = t_Sys_Log.Table.NewRow();
drLog["UserName"] = User.UserInfo.UserName;
drLog["Message"] = Message;
t_Sys_Log.Add(drLog);
}
}
}