57 lines
1.5 KiB
C#
57 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 DrugManagement.BLL
|
|
{
|
|
public class MedicalDict
|
|
{
|
|
public static void Add(Model.MedicalDict MedicalDictObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicalDictDB().Add(MedicalDictObj);
|
|
MessageBox.Show("增加成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!"+ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.MedicalDict MedicalDictObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicalDictDB().Update(MedicalDictObj);
|
|
MessageBox.Show("修改成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" +ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.MedicalDict GetModel(int Id)
|
|
{
|
|
return new DAL.MedicalDictDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable(int DrugKindId)
|
|
{
|
|
return new DAL.MedicalDictDB().GetDataTable(DrugKindId);
|
|
}
|
|
public static DataTable GetDataTableByName(string Name)
|
|
{
|
|
return new DAL.MedicalDictDB().GetDataTableByName(Name);
|
|
}
|
|
|
|
public static bool Exists(string No)
|
|
{
|
|
return new DAL.MedicalDictDB().Exists(No);
|
|
}
|
|
}
|
|
}
|