51 lines
1.2 KiB
C#
51 lines
1.2 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 PharmaCology
|
|
{
|
|
public static void Add(Model.PharmaCology PharmaCologyObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.PharmaCologyDB().Add(PharmaCologyObj);
|
|
MessageBox.Show("增加成功!");
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.PharmaCology PharmaCologyObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.PharmaCologyDB().Update(PharmaCologyObj);
|
|
MessageBox.Show("修改成功!");
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.PharmaCology GetModel(int Id)
|
|
{
|
|
return new DAL.PharmaCologyDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable()
|
|
{
|
|
return new DAL.PharmaCologyDB().GetDataTable();
|
|
}
|
|
}
|
|
|
|
}
|