60 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			60 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
|  |  | |||
|  | /// <summary> | |||
|  | ///INTERFACE CLASS FOR TABLE t_lesson | |||
|  | ///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 Lesson : Lesson_base | |||
|  |     { | |||
|  |         public Lesson() | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  | 
 | |||
|  |         public Lesson(int id): base(id) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |         public DataTable GetActivedLessonsByCat(int catId) | |||
|  |         { | |||
|  |             cmdParameters[0] = catId; | |||
|  |             return CustQuery(100).Tables[0]; | |||
|  |         } | |||
|  |         protected override void getImp() | |||
|  |         { | |||
|  |             model_imp = new Lesson_Imp(); | |||
|  | 
 | |||
|  |         } | |||
|  |         /// <summary> | |||
|  |         /// 根据课程取得学员清单 | |||
|  |         /// </summary> | |||
|  |         /// <param name="lesson"></param> | |||
|  |         /// <returns></returns> | |||
|  |         public DataTable GetEmpByLesson(int lesson) | |||
|  |         { | |||
|  |             cmdParameters[0] = lesson; | |||
|  |             return CustQuery(200).Tables[0]; | |||
|  |         } | |||
|  |         /// <summary> | |||
|  |         /// delete by lesson | |||
|  |         /// </summary> | |||
|  |         /// <param name="lesson"></param> | |||
|  |         /// <returns></returns> | |||
|  |         public int Delete(int lesson) | |||
|  |         { | |||
|  |             cmdParameters[0] = lesson; | |||
|  |             return CustOper(300);  //delete by lesson | |||
|  |         } | |||
|  |     } | |||
|  | } |