73 lines
1.2 KiB
C#
73 lines
1.2 KiB
C#
using System;
|
|
using DeiNiu.wms.Data.Model;
|
|
using System.Data;
|
|
namespace DeiNiu.wms.Logical
|
|
{
|
|
[Serializable]
|
|
public class LlessonCat
|
|
{
|
|
LessonCategory _obj;
|
|
|
|
|
|
public LlessonCat()
|
|
{
|
|
|
|
Initialize();
|
|
}
|
|
|
|
public LessonCategory GetLessonCat
|
|
{
|
|
get
|
|
{
|
|
return _obj;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// get all data
|
|
/// </summary>
|
|
public DataSet GetAllData()
|
|
{
|
|
return _obj.Query();
|
|
}
|
|
|
|
/// <summary>
|
|
/// get all data
|
|
/// </summary>
|
|
public DataSet GetAllActiveData()
|
|
{
|
|
return _obj.QueryActived();
|
|
}
|
|
|
|
|
|
/*
|
|
private void leavetypeDsConstruct()
|
|
{
|
|
return;
|
|
}
|
|
*/
|
|
|
|
/// <summary>
|
|
/// get a record by id
|
|
/// </summary>
|
|
public void Initialize(int id)
|
|
{
|
|
_obj = id != 0 ? new LessonCategory(id) : new LessonCategory();
|
|
}
|
|
|
|
/// <summary>
|
|
/// get a record by id 0
|
|
/// </summary>
|
|
public void Initialize()
|
|
{
|
|
Initialize(0);
|
|
}
|
|
public DataTable GetLessons()
|
|
{
|
|
return _obj.GetActivedLessonsByCat();
|
|
}
|
|
}
|
|
|
|
|
|
}
|