using System; using AIMSDAL; using AIMSModel; using AIMSObjectQuery; using System.Collections; using System.Collections.Generic; using System.Data; using System.Reflection; using System.Windows.Forms; namespace AIMSBLL { public partial class BDepartment { public static void Add(Department DepartmentObj) { try { DDepartment.Add(DepartmentObj); MessageBox.Show("增加成功!"); } catch (Exception ex) { MessageBox.Show("增加失败!" + ex.Message); } } //public static void Update(Department DepartmentObj) //{ // try // { // DDepartment.Update(DepartmentObj); // MessageBox.Show("修改成功!"); // } // catch (Exception ex) // { // MessageBox.Show("修改失败!" + ex.Message); // } //} public static Department GetModel(int Id) { return DDepartment.GetModel(Id); } public static Department GetModelName(string Name) { return DDepartment.GetModelName(Name); } public static DataTable GetDepartmentDataTable(string strWhere) { return DDepartment.GetDepartmentDataTable(strWhere); } public static List GetDepartmentAllList( ) { return DDepartment.GetDepartmentAllList( ); } public static List GetDepartmentAllListBYSql(string Kind) { return DDepartment.GetDepartmentAllListBYSql(Kind); } public static DataTable GetOperationGroups( ) { return DDepartment.GetOperationGroups( ); } } }