using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Windows.Forms; namespace DataDictionary.BLL { public class Operation { public static bool IsExit(string Name) { return new DAL.OperationDB().IsExit(Name); } public static void Add(Model.Operation OperationObj) { try { new DAL.OperationDB().Add(OperationObj); MessageBox.Show("增加成功!"); } catch (Exception ex) { MessageBox.Show("增加失败!" + ex.Message); } } public static void Update(Model.Operation OperationObj) { try { new DAL.OperationDB().Update(OperationObj); MessageBox.Show("修改成功!"); } catch (Exception ex) { MessageBox.Show("修改失败!" + ex.Message); } } public static Model.Operation GetModel(int Id) { return new DAL.OperationDB().GetModel(Id); } public static DataTable GetDataTable(string HelpCode) { return new DAL.OperationDB().GetDataTable(HelpCode); } public static DataTable GetDataTable() { return new DAL.OperationDB().GetDataTable(); } } }