ldj/Model/wms/tables/Customer.cs

76 lines
1.6 KiB
C#

/// <summary>
///INTERFACE CLASS FOR TABLE t_Customer
///By wm
///on 06/14/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 Customer : Customer_base
{
public Customer()
{
}
public Customer(int id): base(id)
{
}
public Customer(string custId)
{
cmdParameters[0] = custId;
getModel(101);
}
public Customer(DataRow dr): base(dr)
{
}
protected override void getImp()
{
model_imp = new Customer_Imp();
}
//begin cust db operation, query, excute sql etc.
public DataSet QueryByName(string name)
{
cmdParameters[0] = name;
return CustQuery(100);
}
public int synCustomer()
{
return CustOper(200);
}
public int updateJdGroup(string whereStr, int group)
{
cmdParameters[0] = whereStr;
cmdParameters[1] = group;
return CustOper(300);
}
public int updateJdHourPoint(string whereStr, int point)
{
cmdParameters[0] = whereStr;
cmdParameters[1] = point;
return CustOper(400);
}
public int updatePickInterval(string whereStr, int interval)
{
cmdParameters[0] = whereStr;
cmdParameters[1] = interval;
return CustOper(500);
}
}
}