ldj/Model/wms/tables/WmsPlate.cs

103 lines
2.2 KiB
C#
Raw Normal View History

2023-05-23 16:13:17 +08:00

/// <summary>
///INTERFACE CLASS FOR TABLE t_wmsPlate
///By wm
///on 05/22/2020
/// </summary>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace DeiNiu.wms.Data.Model
{
[Serializable]
public class WmsPlate : WmsPlate_base
{
public WmsPlate()
{
}
public WmsPlate(string plateId)
{
cmdParameters[0] = plateId;
getModel(100) ;
}
public WmsPlate(int id): base(id)
{
}
public WmsPlate(DataRow dr): base(dr)
{
}
protected override void getImp()
{
model_imp = new WmsPlate_Imp();
}
//begin cust db operation, query, excute sql etc.
//begin cust db operation, query, excute sql etc.
public DataTable getPlateById(string plateid)
{
cmdParameters[0] = plateid;
return CustQuery(100).Tables[0];
}
public bool deleteByPlateId(string plateid)
{
cmdParameters[0] = plateid;
return CustOper(200) > 0;
}
public DataSet getPlateWaves()
{
return CustQuery(300);
}
public DataTable getPlatesByWave(string waveOrder, int color)
{
cmdParameters[0] = waveOrder;
if (color > 0)
{
cmdParameters[1] = color;
return CustQuery(500).Tables[0];
}
else return CustQuery(400).Tables[0]; ;
}
public DataTable getPartionPickDetailByPlateId(string plateid)
{
cmdParameters[0] = plateid;
return CustQuery(101).Tables[0];
}
public DataTable getPlatesByPickOrder(string pickOrderNo)
{
cmdParameters[0] = pickOrderNo;
return CustQuery(600).Tables[0];
}
public void setFree()
{
this.waveNo = "";
this.preInOrderNo = "";
this.pickOrderNo = "";
this.customerId = "";
this.transNo = "";
this.partion = 0;
this.locationId = "";
this.terminal = 0;
this.state = 0;
Update();
}
}
}