67 lines
1.6 KiB
C#
67 lines
1.6 KiB
C#
|
/// <summary>
|
|||
|
///WCF service
|
|||
|
///FOR TABLE t_wmsFlow
|
|||
|
///By wm
|
|||
|
///on 07/10/2020
|
|||
|
/// </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;
|
|||
|
using DeiNiu.Utils;
|
|||
|
|
|||
|
namespace DeiNiu.Wcf
|
|||
|
{
|
|||
|
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码、svc 和配置文件中的类名 。
|
|||
|
public class WmsFlowService: basicService, IWmsFlow
|
|||
|
{
|
|||
|
private static lWmsFlow _lWmsFlow ;
|
|||
|
lWmsFlow lWmsFlowObj
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if ( _lWmsFlow == null || _lWmsFlow.operId != getOperId())
|
|||
|
{
|
|||
|
_lWmsFlow= new lWmsFlow(getOperId());
|
|||
|
}
|
|||
|
return _lWmsFlow;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public DataSet query(string querystr, int rownumStart, int rownumEnd)
|
|||
|
{
|
|||
|
return lWmsFlowObj.Query(querystr, rownumStart, rownumEnd);
|
|||
|
}
|
|||
|
|
|||
|
public int add(WcfWmsFlow wcfData)
|
|||
|
{
|
|||
|
return lWmsFlowObj.add(wcfData.getDbObject());
|
|||
|
}
|
|||
|
|
|||
|
public int update(WcfWmsFlow wcfData)
|
|||
|
{
|
|||
|
return wcfData.getDbObject().Update();
|
|||
|
}
|
|||
|
|
|||
|
public int delete(WcfWmsFlow wcfData)
|
|||
|
{
|
|||
|
return wcfData.getDbObject().Delete();
|
|||
|
}
|
|||
|
|
|||
|
public DataTable getDetail(string taskNo)
|
|||
|
{
|
|||
|
return lWmsFlowObj.getTaskDetail(taskNo);
|
|||
|
}
|
|||
|
public enumFlowTaskResult startTask(string taskNo)
|
|||
|
{
|
|||
|
return lWmsFlowObj.startTask(taskNo);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|