ldj/Logical/LFile.cs

72 lines
1.1 KiB
C#
Raw Normal View History

2023-05-23 16:13:17 +08:00
using System;
using DeiNiu.wms.Data.Model;
using System.Data;
namespace DeiNiu.wms.Logical
{
[Serializable]
public class LFile
{
Filesmgr _obj;
public LFile()
{
Initialize();
}
public Filesmgr GetFilesmgr
{
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 Filesmgr(id) : new Filesmgr();
}
/// <summary>
/// get a record by id 0
/// </summary>
public void Initialize()
{
Initialize(0);
}
}
}