2022-08-23 21:12:59 +08:00

58 lines
1.4 KiB
C#

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<Model.DrugKind> GetModelList()
{
return new DAL.DrugKindDB().GetModelList();
}
public static DataTable GetDataTable(string MedicalItemKindId)
{
return new DAL.DrugKindDB().GetDataTable(MedicalItemKindId);
}
}
}