63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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 BDisease
 | |
|     {
 | |
| 
 | |
|         public static bool IsExit(string Name)
 | |
|         {
 | |
|             return DDisease.IsExit(Name);
 | |
|         }
 | |
|         public static void Add(Disease DiseaseObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                 DDisease.Add(DiseaseObj);
 | |
|                 MessageBox.Show("增加成功!");
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("增加失败!" + ex.Message);
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         //public static void Update(Disease DiseaseObj)
 | |
|         //{
 | |
| 
 | |
|         //    try
 | |
|         //    {
 | |
|         //        DDisease.Update(DiseaseObj);
 | |
|         //        MessageBox.Show("修改成功!");
 | |
|         //    }
 | |
|         //    catch (Exception ex)
 | |
|         //    {
 | |
|         //        MessageBox.Show("修改失败!" + ex.Message);
 | |
|         //    }
 | |
|         //}
 | |
| 
 | |
|         public static Disease GetModel(int Id)
 | |
|         {
 | |
|             return DDisease.GetModel(Id);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetDataTable(string HelpCode)
 | |
|         {
 | |
|             return DDisease.GetDataTable(HelpCode);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetDataTable()
 | |
|         {
 | |
|             return DDisease.GetDataTable();
 | |
|         }
 | |
|     }
 | |
| }
 |