70 lines
2.2 KiB
C#
70 lines
2.2 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 DataDictionary //:HelperDB.DbHelperSQL
|
|
{
|
|
public static void Add(Model.BasicDictionary BasicDictionaryObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.BasicDictionaryDB().Add(BasicDictionaryObj);
|
|
MessageBox.Show("增加成功!");
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static void Update(Model.BasicDictionary BasicDictionaryObj)
|
|
{
|
|
try
|
|
{
|
|
new DAL.BasicDictionaryDB().Update(BasicDictionaryObj);
|
|
MessageBox.Show("修改成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("修改失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
public static Model.BasicDictionary GetModel(int Id)
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetModel(Id);
|
|
}
|
|
|
|
public static List<Model.BasicDictionary> GetModelList(int ParentId)
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetModelList(ParentId);
|
|
}
|
|
public static List<Model.BasicDictionary> GetModelParentList()
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetModelParentList();
|
|
}
|
|
|
|
public static DataTable GetDataDictionaryDataTable(string strWhere)
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetDataDictionaryDataTable(strWhere);
|
|
}
|
|
public static DataTable GetDataDictionaryDataTable(int ParentId)
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetDataDictionaryDataTable(ParentId);
|
|
}
|
|
|
|
public static DataTable GetDataDictionaryDataTableByParentName(string ParentName, string HelpCode)
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetDataDictionaryDataTableByParentName(ParentName, HelpCode);
|
|
}
|
|
public static DataTable GetDataDictionaryNameAndRemark(string ParentName, string HelpCode)
|
|
{
|
|
return new DAL.BasicDictionaryDB().GetDataDictionaryNameAndRemark(ParentName, HelpCode);
|
|
}
|
|
}
|
|
}
|