AIMS/AIMSEntity/OldEntity/BLL/AnaesthesiaMethod.cs
2022-08-23 21:12:59 +08:00

48 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 AnaesthesiaMethod
{
public static void Add(Model.AnaesthesiaMethod AnaesthesiaMethodObj)
{
try
{
new DAL.AnaesthesiaMethodDB().Add(AnaesthesiaMethodObj);
MessageBox.Show("增加成功!");
}
catch (Exception ex)
{
MessageBox.Show("增加失败!" + ex.Message);
}
}
public static void Update(Model.AnaesthesiaMethod AnaesthesiaMethodObj)
{
try
{
new DAL.AnaesthesiaMethodDB().Update(AnaesthesiaMethodObj);
MessageBox.Show("修改成功!");
}
catch (Exception ex)
{
MessageBox.Show("修改失败!" + ex.Message);
}
}
public static Model.AnaesthesiaMethod GetModel(int Id)
{
return new DAL.AnaesthesiaMethodDB().GetModel(Id);
}
public static DataTable GetDataTable(string strWhere)
{
return new DAL.AnaesthesiaMethodDB().GetDataTable(strWhere);
}
}
}