65 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
 | |
| /// <summary>
 | |
| ///INTERFACE CLASS FOR TABLE t_DeptEmp
 | |
| ///By wm with codesmith. 
 | |
| ///on 04/18/2017
 | |
| /// </summary>
 | |
| 
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Data;
 | |
| 
 | |
| namespace DeiNiu.wms.Data.Model
 | |
| {
 | |
|     [Serializable]
 | |
|     public class DeptEmp : DeptEmp_base
 | |
|     {
 | |
|         public DeptEmp()
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         public DeptEmp(int id): base(id)
 | |
|         {
 | |
| 
 | |
|         }
 | |
|         protected override void getImp()
 | |
|         {
 | |
|             model_imp = new DeptEmp_Imp();
 | |
| 
 | |
|         }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// delete by employee
 | |
|         /// </summary>
 | |
|         /// <param name="empId"></param>
 | |
|         /// <returns></returns>
 | |
|         public int Delete(int empId)
 | |
|         {
 | |
|             cmdParameters[0] = empId;
 | |
|             return CustOper(100);  //delete by lesson
 | |
|         }
 | |
|         /// <summary>
 | |
|         /// delete by Department
 | |
|         /// </summary>
 | |
|         /// <param name="deptId"></param>
 | |
|         /// <returns></returns>
 | |
|         public int DeleteByDept(int deptId)
 | |
|         {
 | |
|             cmdParameters[0] = deptId;
 | |
|             return CustOper(200);  //delete by lesson
 | |
|         }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 取得用户部门信息
 | |
|         /// </summary>
 | |
|         public DataTable GetActivedEmpDept()
 | |
|         {
 | |
| 
 | |
|             return CustQuery(300).Tables[0];  //delete by lesson
 | |
|         }
 | |
|     }
 | |
| }
 | |
|   |