63 lines
1.6 KiB
C#
63 lines
1.6 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 PatientKind
|
|
{
|
|
public static void Add(Model.PatientKind PatientKindObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.PatientKindDB().Add(PatientKindObj);
|
|
MessageBox.Show("增加成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.PatientKind PatientKindObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.PatientKindDB().Update(PatientKindObj);
|
|
MessageBox.Show("修改成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.PatientKind GetModel(int Id)
|
|
{
|
|
return new DAL.PatientKindDB().GetModel(Id);
|
|
}
|
|
|
|
public static DataTable GetDataTable(string strWhere)
|
|
{
|
|
return new DAL.PatientKindDB().GetDataTable(strWhere);
|
|
}
|
|
|
|
public static DataTable GetDataTable()
|
|
{
|
|
return new DAL.PatientKindDB().GetDataTable();
|
|
}
|
|
|
|
public static bool NameExit(string Name)
|
|
{
|
|
return new DAL.PatientKindDB().NameExit(Name);
|
|
}
|
|
|
|
public static bool IsExit(string No)
|
|
{
|
|
return new DAL.PatientKindDB().IsExit(No);
|
|
}
|
|
}
|
|
}
|