2023-05-23 16:13:17 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.ServiceModel;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using DeiNiu.wms.Logical;
|
2024-03-22 09:59:23 +08:00
|
|
|
|
using DeiNiu.wms.Data.Model;
|
2023-05-23 16:13:17 +08:00
|
|
|
|
|
|
|
|
|
namespace DeiNiu.Wcf
|
|
|
|
|
{
|
|
|
|
|
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码、svc 和配置文件中的类名“CustomerService”。
|
|
|
|
|
public class CustomerService : basicService, ICustomer
|
|
|
|
|
{
|
|
|
|
|
private static lCustomer _lCustomer;
|
|
|
|
|
lCustomer lCustomerObj
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (_lCustomer == null || _lCustomer.operId != getOperId())
|
|
|
|
|
{
|
|
|
|
|
_lCustomer = new lCustomer(getOperId());
|
|
|
|
|
}
|
|
|
|
|
return _lCustomer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataSet query(string querystr, int rownumStart, int rownumEnd)
|
|
|
|
|
{
|
|
|
|
|
return lCustomerObj.Query(querystr, rownumStart, rownumEnd);
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-22 09:59:23 +08:00
|
|
|
|
|
2023-05-23 16:13:17 +08:00
|
|
|
|
|
|
|
|
|
public int updateJdGroup(string[] ids, int group)
|
|
|
|
|
{
|
|
|
|
|
return lCustomerObj.updateJdGroup(ids, group);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int updateJdHourPoint(string[] ids, int point)
|
|
|
|
|
{
|
|
|
|
|
return lCustomerObj.updateJdHourPoint(ids, point);
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-04 22:41:19 +08:00
|
|
|
|
public int updatePickInterval(string[] ids, int point)
|
|
|
|
|
{
|
|
|
|
|
return lCustomerObj.updatePickInterval(ids, point);
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-22 09:59:23 +08:00
|
|
|
|
|
|
|
|
|
//--- 播种亮灯工作台设置
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private lWmsDeskCustomer _ldCust;
|
|
|
|
|
|
|
|
|
|
lWmsDeskCustomer ldCust
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (_ldCust == null || _ldCust.operId != getOperId())
|
|
|
|
|
{
|
|
|
|
|
_ldCust = new lWmsDeskCustomer(getOperId());
|
|
|
|
|
}
|
|
|
|
|
return _ldCust;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int add(WcfWmsDeskCustomer wcfData )
|
|
|
|
|
{
|
|
|
|
|
return ldCust.add(wcfData.getDbObject());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int delete(int id)
|
|
|
|
|
{
|
|
|
|
|
return new WmsDeskCustomer(id).Delete();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int update(WcfWmsDeskCustomer wcfData)
|
|
|
|
|
{
|
|
|
|
|
return wcfData.getDbObject().Update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataSet queryDesks(string querystr, int rownumStart, int rownumEnd)
|
|
|
|
|
{
|
|
|
|
|
return ldCust.Query(querystr, rownumStart, rownumEnd);
|
|
|
|
|
}
|
2023-05-23 16:13:17 +08:00
|
|
|
|
}
|
|
|
|
|
}
|