60 lines
1.4 KiB
C#
60 lines
1.4 KiB
C#
/// <summary>
|
||
///WCF service
|
||
///FOR TABLE t_Owner
|
||
///By wm
|
||
///on 08/16/2018
|
||
/// </summary>
|
||
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Runtime.Serialization;
|
||
using System.ServiceModel;
|
||
using System.Text;
|
||
using DeiNiu.wms.Logical;
|
||
using System.Data;
|
||
|
||
namespace DeiNiu.Wcf
|
||
{
|
||
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码、svc 和配置文件中的类名 。
|
||
public class OwnerService: basicService, IOwner
|
||
{
|
||
private static lOwner _lOwner ;
|
||
lOwner lOwnerObj
|
||
{
|
||
get
|
||
{
|
||
if ( _lOwner == null || _lOwner.operId != getOperId())
|
||
{
|
||
_lOwner= new lOwner(getOperId());
|
||
}
|
||
return _lOwner;
|
||
}
|
||
}
|
||
|
||
public DataSet query(string querystr, int rownumStart, int rownumEnd)
|
||
{
|
||
return lOwnerObj.Query(querystr, rownumStart, rownumEnd);
|
||
}
|
||
|
||
public int addNew(WcfOwner wcfData)
|
||
{
|
||
return lOwnerObj.add(wcfData.getDbObject());
|
||
}
|
||
|
||
public int update(WcfOwner wcfData)
|
||
{
|
||
return wcfData.getDbObject().Update();
|
||
}
|
||
|
||
public int delete(WcfOwner wcfData)
|
||
{
|
||
return wcfData.getDbObject().Delete();
|
||
}
|
||
public int syncNewOwners()
|
||
{
|
||
return lOwnerObj.syncOwner();
|
||
}
|
||
}
|
||
}
|