54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using System.Data;
|
|
namespace DrugManagement.BLL
|
|
{
|
|
public class DosageUnit
|
|
{
|
|
public static void Add(Model.DosageUnit DosageUnitObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.DosageUnitDB().Add(DosageUnitObj);
|
|
MessageBox.Show("增加成功!");
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!"+ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.DosageUnit DosageUnitObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.DosageUnitDB().Update(DosageUnitObj);
|
|
MessageBox.Show("修改成功!");
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.DosageUnit GetModel(int Id)
|
|
{
|
|
return new DAL.DosageUnitDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable()
|
|
{
|
|
return new DAL.DosageUnitDB().GetDataTable();
|
|
}
|
|
public static DataTable GetDataTable(int UnitType)
|
|
{
|
|
return new DAL.DosageUnitDB().GetDataTable(UnitType);
|
|
}
|
|
}
|
|
}
|