ldj/WcfService1/BLL/lWmsPlateStat.cs

97 lines
1.8 KiB
C#

/// <summary>
///LOGIC CLASS FOR TABLE t_wmsPlateStat
///By wm with codesmith.
///on 06/19/2023
/// </summary>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DeiNiu.wms.Data.Model;
using System.Data;
using System.Transactions;
namespace DeiNiu.wms.Logical
{
[Serializable]
public class lWmsPlateStat :lbase
{
WmsPlateStat _obj;
public lWmsPlateStat()
{
initialize();
}
public WmsPlateStat getWmsPlateStat
{
get
{
if (_obj == null)
{
_obj = new WmsPlateStat();
}
_obj.operater = operId;
return _obj;
}
}
public lWmsPlateStat(int operId)
: base(operId)
{
initialize();
}
/// <summary>
/// get all data
/// </summary>
public DataSet getAllData()
{
return _obj.Query();
}
/// <summary>
/// get all data
/// </summary>
public DataSet getAllActiveData()
{
return _obj.QueryActived();
}
/// <summary>
/// get a record by id
/// </summary>
public void initialize(int id)
{
_obj = id != 0 ? new WmsPlateStat(id) : new WmsPlateStat();
}
/// <summary>
/// get a record by id 0
/// </summary>
public void initialize()
{
initialize(0);
}
/// <summary>
/// get a record by id
/// </summary>
public void initialize(DataRow dr)
{
_obj = new WmsPlateStat(dr);
}
}
}