57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
namespace DataDictionary.BLL
|
|
{
|
|
public class Events
|
|
{
|
|
public static bool IsExit(string Name)
|
|
{
|
|
return new DAL.EventsDB().IsExit(Name);
|
|
}
|
|
public static void Add(Model.Events EventsObj)
|
|
{
|
|
new DAL.EventsDB().Add(EventsObj);
|
|
}
|
|
|
|
public static void Update(Model.Events EventsObj)
|
|
{
|
|
new DAL.EventsDB().Update(EventsObj);
|
|
}
|
|
public static void UpdateUseRate(int Id)
|
|
{
|
|
new DAL.EventsDB().UpdateUseRate(Id);
|
|
}
|
|
|
|
public static void Delete(int Id)
|
|
{
|
|
new DAL.EventsDB().Delete(Id);
|
|
}
|
|
|
|
public static Model.Events GetModel(int Id)
|
|
{
|
|
return new DAL.EventsDB().GetModel(Id);
|
|
}
|
|
public static Model.Events GetModelByName(string Name)
|
|
{
|
|
return new DAL.EventsDB().GetModelByName(Name);
|
|
}
|
|
public static DataTable GetDataTable(string HelpCode)
|
|
{
|
|
return new DAL.EventsDB().GetDataTable(HelpCode);
|
|
}
|
|
|
|
public static DataTable GetEventDataTable()
|
|
{
|
|
return new DAL.EventsDB().GetEventDataTable();
|
|
}
|
|
|
|
public static DataTable GetDataTable()
|
|
{
|
|
return new DAL.EventsDB().GetDataTable();
|
|
}
|
|
}
|
|
}
|