using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Windows.Forms; namespace DataDictionary.BLL { public class SysConfig { public static bool IsExit(string Name) { return new DAL.SysConfigDB().IsExit(Name); } public static void Add(Model.SysConfig DrugsObj) { try { new DAL.SysConfigDB().Add(DrugsObj); MessageBox.Show("药品增加成功!"); } catch { MessageBox.Show("药品增加失败!"); } } public static void Update(Model.SysConfig DrugsObj) { try { new DAL.SysConfigDB().Update(DrugsObj); MessageBox.Show("药品修改成功!"); } catch { MessageBox.Show("药品修改失败!"); } } public static Model.SysConfig GetModel(int Id) { return new DAL.SysConfigDB().GetModel(Id); } public static object GetDataTable() { return new DAL.SysConfigDB().GetDataTable(); } } }