ldj/WcfService1/LotService.svc.cs

106 lines
2.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
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);
}
}
}