ldj/WcfService1/LotService.svc.cs

106 lines
2.7 KiB
C#
Raw Normal View History

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;
namespace DeiNiu.Wcf
{
// 注意: 使用“重构”菜单上的“重命名”命令可以同时更改代码、svc 和配置文件中的类名“LotService”。
public class LotService : basicService, ILotService
{
private static lLot _lLot;
lLot lLotObj
{
get
{
if (_lLot == null || _lLot.operId != getOperId())
{
_lLot = new lLot(getOperId());
}
return _lLot;
}
}
public DataSet queryLots(string querystr, int rownumStart, int rownumEnd)
{
return lLotObj.Query(querystr,rownumStart,rownumEnd);
}
public int newLot(WcfLot wcfLot)
{
return lLotObj.newLot(wcfLot.getDbObject());
}
public int updateLot(WcfLot wcfLot)
{
return wcfLot.getDbObject().Update();
}
public int deleteLot(WcfLot wcfLot)
{
return wcfLot.getDbObject().Delete();
}
public int newLotAtt(WcfLotAtt wcfLotAtt)
{
return wcfLotAtt.getDbObject().Add();
}
public int updateLotAtt(WcfLotAtt wcfLotAtt)
{
return wcfLotAtt.getDbObject().Update();
}
public int deleteLotAtt(WcfLotAtt wcfLotAtt)
{
return wcfLotAtt.getDbObject().Delete();
}
public DataTable queryLotAtts(int lotId)
{
return lLotObj.lotAtt.queryByLotId(lotId);
}
public DataTable querySkuValues(int skuId)
{
return lLotObj.skuObj.getValues(skuId);
}
public DataTable getLotAtts(string goodsId)
{
return lLotObj.getLotAtts(goodsId);
}
public int getSKU(string skuCode, Dictionary<string, string> skuValues, int lotId, string goodsId, string ownerCode)
{
return lLotObj.getSKU(skuCode, skuValues, lotId, goodsId, ownerCode);
}
2023-09-04 22:41:19 +08:00
public DataTable getLotGoodsType(int lotId)
{
return lLotObj.getLotGoodsType(lotId);
}
public DataTable getFreeGoodsType()
{
return lLotObj.getFreeGoodsType();
}
public bool newGoodTypeLot(int[] goodsType, int lotId)
{
return lLotObj.newGoodTypeLot(goodsType, lotId);
}
public bool deleteGoodTypeLot(int id)
{
return lLotObj.deleteGoodsTypeLot(id);
}
2023-05-23 16:13:17 +08:00
}
}