92 lines
2.3 KiB
C#
92 lines
2.3 KiB
C#
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;
|
||
using DeiNiu.wms.Data.Model;
|
||
|
||
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);
|
||
}
|
||
|
||
|
||
|
||
public int updateJdGroup(string[] ids, int group)
|
||
{
|
||
return lCustomerObj.updateJdGroup(ids, group);
|
||
}
|
||
|
||
public int updateJdHourPoint(string[] ids, int point)
|
||
{
|
||
return lCustomerObj.updateJdHourPoint(ids, point);
|
||
}
|
||
|
||
public int updatePickInterval(string[] ids, int point)
|
||
{
|
||
return lCustomerObj.updatePickInterval(ids, point);
|
||
}
|
||
|
||
|
||
//--- 播种亮灯工作台设置
|
||
|
||
|
||
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);
|
||
}
|
||
}
|
||
}
|