48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.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 OperationLevel
 | |
|     {
 | |
|         public static void Add(Model.OperationLevel OperationLevelObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                 new DAL.OperationLevelDB().Add(OperationLevelObj);
 | |
|                 MessageBox.Show("增加成功!");
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("增加成功!"+ex.Message);
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         public static void Update(Model.OperationLevel OperationLevelObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                 new DAL.OperationLevelDB().Update(OperationLevelObj);
 | |
|                 MessageBox.Show("修改成功!");
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("修改成功!" + ex.Message);
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         public static Model.OperationLevel GetModel(int Id)
 | |
|         {
 | |
|             return new DAL.OperationLevelDB().GetModel(Id);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetDataTable(string strWhere)
 | |
|         {
 | |
|             return new DAL.OperationLevelDB().GetDataTable(strWhere);
 | |
|         }
 | |
|     }
 | |
| }
 |