62 lines
1.5 KiB
C#
62 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
using System.Windows.Forms;
|
|
namespace DataDictionary.BLL
|
|
{
|
|
public class Drugs
|
|
{
|
|
public static void Add(Model.Drugs DrugsObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.DrugsDB().Add(DrugsObj);
|
|
MessageBox.Show("药品增加成功!");
|
|
}
|
|
catch
|
|
{
|
|
MessageBox.Show("药品增加失败!");
|
|
}
|
|
}
|
|
public static void Update(Model.Drugs DrugsObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.DrugsDB().Update(DrugsObj);
|
|
|
|
MessageBox.Show("药品修改成功!");
|
|
}
|
|
catch
|
|
{
|
|
MessageBox.Show("药品修改失败!");
|
|
}
|
|
}
|
|
|
|
public static Model.Drugs GetModel(int Id)
|
|
{
|
|
return new DAL.DrugsDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable(string DrugKind)
|
|
{
|
|
return new DAL.DrugsDB().GetDataTable(DrugKind);
|
|
}
|
|
public static DataTable GetDosageUnitDataTable(int UnitType)
|
|
{
|
|
return new DAL.DrugsDB().GetDosageUnitDataTable(UnitType);
|
|
}
|
|
|
|
public static DataTable GetDataTableByHelpCode(string HelpCode)
|
|
{
|
|
return new DAL.DrugsDB().GetDataTableByHelpCode(HelpCode);
|
|
}
|
|
|
|
public static DataTable GetDrugsDataTable()
|
|
{
|
|
return new DAL.DrugsDB().GetDrugsDataTable();
|
|
}
|
|
}
|
|
}
|