61 lines
1.1 KiB
C#
61 lines
1.1 KiB
C#
|
|
/// <summary>
|
|
///INTERFACE CLASS FOR TABLE t_Log
|
|
///By wm with codesmith.
|
|
///on 04/18/2017
|
|
/// </summary>
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
|
|
namespace DeiNiu
|
|
{
|
|
[Serializable]
|
|
public class Log : Log_base
|
|
{
|
|
public Log()
|
|
{
|
|
|
|
}
|
|
|
|
public Log(int id): base(id)
|
|
{
|
|
|
|
}
|
|
|
|
//begin cust db operation, query, excute sql etc.
|
|
public void logTimeOut(int empid)
|
|
{
|
|
cmdParameters[0] = empid;
|
|
if (CustOper(100) == 1)
|
|
{
|
|
_log_empid = empid;
|
|
_log_method = "Time out";
|
|
Add();
|
|
}
|
|
|
|
}
|
|
public void logOut(int empid)
|
|
{
|
|
cmdParameters[0] = empid;
|
|
if (CustOper(100) == 1)
|
|
{
|
|
_log_empid = empid;
|
|
_log_method = "logon Out";
|
|
Add();
|
|
}
|
|
|
|
}
|
|
protected override void getImp()
|
|
{
|
|
|
|
Log_Imp obj = new Log_Imp();
|
|
model_imp = obj;
|
|
}
|
|
|
|
}
|
|
}
|