55 lines
1.4 KiB
C#
55 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 MedicamentPrice
|
|
{
|
|
public static bool Exists(int Id)
|
|
{
|
|
return new DAL.MedicamentPriceDB().Exists(Id);
|
|
}
|
|
|
|
public static void Add(Model.MedicamentPrice MedicamentPriceObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicamentPriceDB().Add(MedicamentPriceObj);
|
|
MessageBox.Show("增加成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.MedicamentPrice MedicamentPricObj)
|
|
{
|
|
|
|
try
|
|
{
|
|
new DAL.MedicamentPriceDB().Update(MedicamentPricObj);
|
|
MessageBox.Show("修改成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.MedicamentPrice GetModel(int Id)
|
|
{
|
|
return new DAL.MedicamentPriceDB().GetModel(Id);
|
|
}
|
|
|
|
|
|
public static DataTable GetDataTable(int MedicalItemId)
|
|
{
|
|
return new DAL.MedicamentPriceDB().GetDataTable(MedicalItemId);
|
|
}
|
|
}
|
|
}
|