using System.Collections.Generic;
using Forks.JsonRpc.Client;
using Newtonsoft.Json;
using SegmentationInStore.Rpc.Dto;
namespace SegmentationInStore.Rpc
{
public class SegmentationInStoreRpc
{
///
/// 获取所有未扫码的
///
///
public static List GetNotInStoreList()
{
var json = RpcFacade.Call("/MainSystem/B3ClientService/Rpcs/BillRpc/SegmentationWeightRecordRpc/GetNotInStoreList");
var list= JsonConvert.DeserializeObject>(json);
return list;
}
///
/// 获取所有未扫码的
///
///
public static List GetNotInStoreListByMaxId(long id)
{
var json = RpcFacade.Call("/MainSystem/B3ClientService/Rpcs/BillRpc/SegmentationWeightRecordRpc/GetNotInStoreListByMaxId",id);
var list= JsonConvert.DeserializeObject>(json);
return list;
}
///
/// 添加入库记录
///
public static long Insert(SegmentationInStoreDto instore)
{
var json = JsonConvert.SerializeObject(instore);
return RpcFacade.Call("/MainSystem/B3ClientService/Rpcs/BillRpc/SegmentationInStoreRecordRpc/Insert", json);
}
}
}