113 lines
2.1 KiB
C#
113 lines
2.1 KiB
C#
|
|
|||
|
/// <summary>
|
|||
|
///LOGIC CLASS FOR TABLE t_wmsInRequest
|
|||
|
///By wm with codesmith.
|
|||
|
///on 05/12/2017
|
|||
|
/// </summary>
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using DeiNiu.wms.Data.Model;
|
|||
|
using System.Data;
|
|||
|
using System.Transactions;
|
|||
|
using DeiNiu.Data.BaseObject;
|
|||
|
using DeiNiu.Utils;
|
|||
|
using Microsoft.Reporting.WinForms;
|
|||
|
namespace DeiNiu.wms.Logical
|
|||
|
{
|
|||
|
[Serializable]
|
|||
|
public class lWmsInRequest : lbase
|
|||
|
{
|
|||
|
WmsInRequest _obj;
|
|||
|
WmsStock _stkObj;
|
|||
|
private int p;
|
|||
|
|
|||
|
|
|||
|
public WmsStock stkObj
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if (_stkObj == null)
|
|||
|
{
|
|||
|
_stkObj = new WmsStock();
|
|||
|
}
|
|||
|
return _stkObj;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
public lWmsInRequest()
|
|||
|
{
|
|||
|
initialize();
|
|||
|
}
|
|||
|
|
|||
|
public lWmsInRequest(int p):base(p)
|
|||
|
{
|
|||
|
initialize();
|
|||
|
}
|
|||
|
|
|||
|
public WmsInRequest getWmsInRequest
|
|||
|
{
|
|||
|
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();
|
|||
|
}
|
|||
|
|
|||
|
protected override BaseModel getModel()
|
|||
|
{
|
|||
|
return _obj;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// get a record by id
|
|||
|
/// </summary>
|
|||
|
public void initialize(int id)
|
|||
|
{
|
|||
|
_obj = id != 0 ? new WmsInRequest(id) : new WmsInRequest();
|
|||
|
}
|
|||
|
|
|||
|
/// <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 WmsInRequest(dr);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
//begin cust db operation, query, excute sql etc.
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|