43 lines
		
	
	
		
			971 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			971 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using AIMSDAL;
 | |
| using AIMSModel;
 | |
| using AIMSObjectQuery;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using System.Data;
 | |
| using System.Windows.Forms;
 | |
| 
 | |
| namespace AIMSBLL
 | |
| {
 | |
|     public partial class BDosageUnit
 | |
|     {
 | |
|         public static void Add(DosageUnit DosageUnitObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                   DDosageUnit.Add(DosageUnitObj);
 | |
|                 MessageBox.Show("增加成功!");
 | |
|                 
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("增加失败!"+ex.Message);
 | |
|             }
 | |
|         } 
 | |
| 
 | |
|         public static DosageUnit GetModel(int Id)
 | |
|         {
 | |
|             return   DDosageUnit.GetModel(Id);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetDataTable()
 | |
| 		{
 | |
|             return   DDosageUnit.GetDataTable();
 | |
| 		}
 | |
|         public static DataTable GetDataTable(int UnitType)
 | |
|         {
 | |
|             return   DDosageUnit.GetDataTable(UnitType);
 | |
|         }
 | |
|     }
 | |
| }
 |