50 lines
1.3 KiB
C#
50 lines
1.3 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 MedicalItemKind
|
|
{
|
|
public static void Add(Model.MedicalItemKind MedicalItemKindObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicalItemKindDB().Add(MedicalItemKindObj);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加成功!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.MedicalItemKind MedicalItemKindObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.MedicalItemKindDB().Update(MedicalItemKindObj);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改成功!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.MedicalItemKind GetModel(int Id)
|
|
{
|
|
return new DAL.MedicalItemKindDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable()
|
|
{
|
|
return new DAL.MedicalItemKindDB().GetDataTable();
|
|
}
|
|
public static DataTable GetTreeViewDataTable()
|
|
{
|
|
return new DAL.MedicalItemKindDB().GetTreeViewDataTable();
|
|
}
|
|
}
|
|
}
|