66 lines
1.8 KiB
C#
66 lines
1.8 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 MedicalItem
|
|
{
|
|
public static bool Exists(string No)
|
|
{
|
|
return new DAL.MedicalItemDB().Exists(No);
|
|
}
|
|
|
|
public static void Add(Model.MedicalItem MedicalItemObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicalItemDB().Add(MedicalItemObj);
|
|
MessageBox.Show("增加成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!"+ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.MedicalItem MedicalItemObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicalItemDB().Update(MedicalItemObj);
|
|
MessageBox.Show("修改成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.MedicalItem GetModel(int Id)
|
|
{
|
|
return new DAL.MedicalItemDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable()
|
|
{
|
|
return new DAL.MedicalItemDB().GetDataTable();
|
|
}
|
|
public static DataTable GetMedicalItemDrugDataTable(string HelpCode, int IsValid)
|
|
{
|
|
return new DAL.MedicalItemDB().GetMedicalItemDrugDataTable(HelpCode, IsValid);
|
|
}
|
|
public static DataTable GetMedicalItemByDrugKindId(int DrugKindId)
|
|
{
|
|
return new DAL.MedicalItemDB().GetMedicalItemByDrugKindId(DrugKindId);
|
|
}
|
|
public static int GetMedicalItemByDictNo(string MedicalDictNo)
|
|
{
|
|
return new DAL.MedicalItemDB().GetMedicalItemByDictNo(MedicalDictNo);
|
|
}
|
|
|
|
}
|
|
}
|