using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Windows.Forms; namespace DrugManagement.BLL { public class DrugKind { public static void Add(Model.DrugKind DrugKindObj) { try { new DAL.DrugKindDB().Add(DrugKindObj); MessageBox.Show("增加成功!"); } catch (Exception ex) { MessageBox.Show("增加失败!" + ex.Message); } } public static void Update(Model.DrugKind DrugKindObj) { try { new DAL.DrugKindDB().Update(DrugKindObj); MessageBox.Show("修改成功!"); } catch (Exception ex) { MessageBox.Show("修改失败!" + ex.Message); } } public static Model.DrugKind GetModel(int Id) { return new DAL.DrugKindDB().GetModel(Id); } public static DataTable GetDataTable() { return new DAL.DrugKindDB().GetDataTable(); } public static List GetModelList() { return new DAL.DrugKindDB().GetModelList(); } public static DataTable GetDataTable(string MedicalItemKindId) { return new DAL.DrugKindDB().GetDataTable(MedicalItemKindId); } } }