53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using AIMSDAL;
 | |
| using AIMSModel;
 | |
| using AIMSObjectQuery;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using System.Windows.Forms;
 | |
| using System.Data;
 | |
| 
 | |
| namespace AIMSBLL
 | |
| {
 | |
|     public partial class BPharmaCology
 | |
|     {
 | |
|         public static void Add(PharmaCology PharmaCologyObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                 DPharmaCology.Add(PharmaCologyObj);
 | |
|                 MessageBox.Show("增加成功!");
 | |
|                 
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("增加失败!" + ex.Message);
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         public static void Update(PharmaCology PharmaCologyObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                 DPharmaCology.Update(PharmaCologyObj);
 | |
|                 MessageBox.Show("修改成功!");
 | |
| 
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("修改失败!" + ex.Message);
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         public static PharmaCology GetModel(int Id)
 | |
|         {
 | |
|             return DPharmaCology.GetModel(Id);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetDataTable()
 | |
|         {
 | |
|             return DPharmaCology.GetDataTable();
 | |
|         }
 | |
|     }
 | |
| }
 |