Browse Source

配货

master
luanhui 8 years ago
parent
commit
199e9a223c
3 changed files with 46 additions and 1 deletions
  1. +1
    -0
      B3ClientService/B3ClientService.csproj
  2. +2
    -1
      B3ClientService/BO/Bill/SaleOutStore_/SaleOutStore.cs
  3. +43
    -0
      B3ClientService/Rpcs/BillRpc/SaleOutStoreRpc.cs

+ 1
- 0
B3ClientService/B3ClientService.csproj View File

@ -131,6 +131,7 @@
<Compile Include="Rpcs\BillRpc\ByProductWeightRecordRpc.cs" /> <Compile Include="Rpcs\BillRpc\ByProductWeightRecordRpc.cs" />
<Compile Include="Rpcs\BillRpc\ClientGoodsSetRpc.cs" /> <Compile Include="Rpcs\BillRpc\ClientGoodsSetRpc.cs" />
<Compile Include="Rpcs\BillRpc\DropPigRpc.cs" /> <Compile Include="Rpcs\BillRpc\DropPigRpc.cs" />
<Compile Include="Rpcs\BillRpc\SaleOutStoreRpc.cs" />
<Compile Include="Rpcs\BillRpc\SegmentationInStoreRecordRpc.cs" /> <Compile Include="Rpcs\BillRpc\SegmentationInStoreRecordRpc.cs" />
<Compile Include="Rpcs\BillRpc\SegmentationWeightRecordRpc.cs" /> <Compile Include="Rpcs\BillRpc\SegmentationWeightRecordRpc.cs" />
<Compile Include="Rpcs\BillRpc\TrunksIousOutInStoreRecord_\TrunksIousOutInStoreRecordDto.cs" /> <Compile Include="Rpcs\BillRpc\TrunksIousOutInStoreRecord_\TrunksIousOutInStoreRecordDto.cs" />


+ 2
- 1
B3ClientService/BO/Bill/SaleOutStore_/SaleOutStore.cs View File

@ -36,11 +36,12 @@ namespace BWP.B3ClientService.BO
public string BillState { get; set; } public string BillState { get; set; }
[LogicName("送货线路")]
public string DeliverGoodsLine_Name { get; set; }
[LogicName("销售出库明细ID")] [LogicName("销售出库明细ID")]
public long SaleOutStoreDetail_ID { get; set; } public long SaleOutStoreDetail_ID { get; set; }
} }


+ 43
- 0
B3ClientService/Rpcs/BillRpc/SaleOutStoreRpc.cs View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BWP.B3ClientService.BO;
using Forks.EnterpriseServices.DomainObjects2.DQuery;
using Forks.EnterpriseServices.JsonRpc;
using Newtonsoft.Json;
using TSingSoft.WebPluginFramework;
namespace BWP.B3ClientService.Rpcs.BillRpc
{
[Rpc]
public static class SaleOutStoreRpc
{
[Rpc]
public static string SyncList(DateTime date, string customerName, string sendLineName, string billstate)
{
var dmoquery = new DmoQuery(typeof(SaleOutStore));
dmoquery.Where.Conditions.Add(DQCondition.GreaterThanOrEqual("LoadTime", date));
dmoquery.Where.Conditions.Add(DQCondition.LessThan("LoadTime", date.AddDays(1)));
if (!string.IsNullOrWhiteSpace(customerName))
{
dmoquery.Where.Conditions.Add(DQCondition.EQ("Customer_Name",customerName));
}
if (!string.IsNullOrWhiteSpace(sendLineName))
{
dmoquery.Where.Conditions.Add(DQCondition.EQ("DeliverGoodsLine_Name", sendLineName));
}
if (!string.IsNullOrWhiteSpace(sendLineName))
{
dmoquery.Where.Conditions.Add(DQCondition.EQ("BillState", billstate));
}
var list = dmoquery.EExecuteList().Cast<SaleOutStore>().ToList();
return JsonConvert.SerializeObject(list);
}
}
}

Loading…
Cancel
Save