81 lines
1.9 KiB
C#
81 lines
1.9 KiB
C#
|
|
/// <summary>
|
|
///INTERFACE CLASS FOR TABLE t_wmsPlatePack
|
|
///By wm
|
|
///on 08/16/2023
|
|
/// </summary>
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
using DeiNiu.Utils;
|
|
|
|
namespace DeiNiu.wms.Data.Model
|
|
{
|
|
[Serializable]
|
|
public class WmsPlatePack : WmsPlatePack_base
|
|
{
|
|
public WmsPlatePack()
|
|
{
|
|
|
|
}
|
|
|
|
public WmsPlatePack(int id): base(id)
|
|
{
|
|
|
|
}
|
|
public WmsPlatePack(DataRow dr): base(dr)
|
|
{
|
|
|
|
}
|
|
public WmsPlatePack(string upPlate,string subPlate)
|
|
{
|
|
//LogHelper.debug(this.GetType(), "0 upPlate is " + cmdParameters[0] + ", plate is " + plate);
|
|
cmdParameters[0] = upPlate;
|
|
cmdParameters[1] = subPlate;
|
|
// LogHelper.debug(this.GetType(), "1 upPlate is " + cmdParameters[0] + ", plate is " + cmdParameters[2]);
|
|
getModel(300);
|
|
}
|
|
|
|
protected override void getImp()
|
|
{
|
|
model_imp = new WmsPlatePack_Imp();
|
|
}
|
|
|
|
//begin cust db operation, query, excute sql etc.
|
|
public DataSet QueryByName(string name)
|
|
{
|
|
cmdParameters[0] = name;
|
|
return CustQuery(100);
|
|
}
|
|
|
|
/// <summary>
|
|
/// delete exists up level plates
|
|
/// </summary>
|
|
public void removeUp()
|
|
{
|
|
cmdParameters[0] = subPlateId;
|
|
CustOper(200);
|
|
}
|
|
|
|
public DataTable getSubPlates(string fromPlate)
|
|
{
|
|
cmdParameters[0] = fromPlate;
|
|
return CustQuery(400).Tables[0];
|
|
}
|
|
|
|
public string getUpPlateId(string fromPlate)
|
|
{
|
|
cmdParameters[0] = fromPlate;
|
|
DataTable dt = CustQuery(500).Tables[0];
|
|
foreach(DataRow dr in dt.Rows)
|
|
{
|
|
return dr["plateId"].ToString();
|
|
}
|
|
return "";
|
|
}
|
|
}
|
|
}
|
|
|