Browse Source

master
wugang 8 years ago
parent
commit
76057a5cde
5 changed files with 73 additions and 2 deletions
  1. +2
    -0
      B3ClientService/B3ClientService.csproj
  2. +5
    -0
      B3ClientService/BO/ClientGoodsSet_/ClientGoodsSet_Detail.cs
  3. +36
    -0
      B3ClientService/BO/SegmentationWeightRecord_/SegmentationWeightRecord.cs
  4. +2
    -2
      B3ClientService/Rpcs/BillRpc/ClientGoodsSetRpc.cs
  5. +28
    -0
      B3ClientService/Rpcs/BillRpc/SegmentationWeightRecordRpc.cs

+ 2
- 0
B3ClientService/B3ClientService.csproj View File

@ -104,6 +104,7 @@
<Compile Include="BO\Bill\WeightBill\WeightDetail.cs" /> <Compile Include="BO\Bill\WeightBill\WeightDetail.cs" />
<Compile Include="BO\ClientGoodsSet_\ClientGoodsSet.cs" /> <Compile Include="BO\ClientGoodsSet_\ClientGoodsSet.cs" />
<Compile Include="BO\ClientGoodsSet_\ClientGoodsSet_Detail.cs" /> <Compile Include="BO\ClientGoodsSet_\ClientGoodsSet_Detail.cs" />
<Compile Include="BO\SegmentationWeightRecord_\SegmentationWeightRecord.cs" />
<Compile Include="BO\SyncBase.cs" /> <Compile Include="BO\SyncBase.cs" />
<Compile Include="BO\SyncBill.cs" /> <Compile Include="BO\SyncBill.cs" />
<Compile Include="BO\SyncBO\MinEmployee.cs" /> <Compile Include="BO\SyncBO\MinEmployee.cs" />
@ -117,6 +118,7 @@
<Compile Include="CTuple.cs" /> <Compile Include="CTuple.cs" />
<Compile Include="NamedValueTemplate.cs" /> <Compile Include="NamedValueTemplate.cs" />
<Compile Include="Rpcs\BillRpc\ClientGoodsSetRpc.cs" /> <Compile Include="Rpcs\BillRpc\ClientGoodsSetRpc.cs" />
<Compile Include="Rpcs\BillRpc\SegmentationWeightRecordRpc.cs" />
<Compile Include="Rpcs\RpcBO\Bill\ClientGoodsSetDto.cs" /> <Compile Include="Rpcs\RpcBO\Bill\ClientGoodsSetDto.cs" />
<Compile Include="Rpcs\RpcBO\Bill\GradeAndWeight\GradeAndWeight.cs" /> <Compile Include="Rpcs\RpcBO\Bill\GradeAndWeight\GradeAndWeight.cs" />
<Compile Include="Rpcs\RpcBO\Bill\OrderDetail\NeedOrderEntity.cs" /> <Compile Include="Rpcs\RpcBO\Bill\OrderDetail\NeedOrderEntity.cs" />


+ 5
- 0
B3ClientService/BO/ClientGoodsSet_/ClientGoodsSet_Detail.cs View File

@ -5,6 +5,7 @@ using System.Text;
using BWP.B3Frameworks.BO; using BWP.B3Frameworks.BO;
using Forks.EnterpriseServices; using Forks.EnterpriseServices;
using Forks.EnterpriseServices.DomainObjects2; using Forks.EnterpriseServices.DomainObjects2;
using Forks.Utils;
namespace BWP.B3ClientService.BO namespace BWP.B3ClientService.BO
{ {
@ -27,6 +28,10 @@ namespace BWP.B3ClientService.BO
public string Goods_Spell { get; set; } public string Goods_Spell { get; set; }
[LogicName("主辅换算主单位比例")]
public Money<decimal>? Goods_MainUnitRatio { get; set; }
} }


+ 36
- 0
B3ClientService/BO/SegmentationWeightRecord_/SegmentationWeightRecord.cs View File

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BWP.B3Frameworks.BO;
using Forks.EnterpriseServices.DomainObjects2;
namespace BWP.B3ClientService.BO
{
[Serializable]
public class SegmentationWeightRecord:Base
{
private DateTime mCreateTime=DateTime.Now;
[DbColumn(DbType = SqlDbType.DateTime)]
public DateTime CreateTime { get { return mCreateTime; }set { mCreateTime = value; } }
public string BarCode { get; set; }//条码
public long Goods_ID { get; set; }
public string Goods_Name { get; set; }
public decimal PiWeight { get; set; }//皮重
public decimal MaoWeight { get; set; }//毛重
public decimal JingWeight { get; set; }//净重
public string CardBarCode { get; set; }//放产品的车的条码
public string BiaoShi { get; set; }//用来记录那个工作台或者哪台触摸屏做的
}
}

+ 2
- 2
B3ClientService/Rpcs/BillRpc/ClientGoodsSetRpc.cs View File

@ -25,10 +25,10 @@ namespace BWP.B3ClientService.Rpcs.BillRpc
var clist = query.EExecuteList().Cast<ClientGoodsSet>().ToList(); var clist = query.EExecuteList().Cast<ClientGoodsSet>().ToList();
foreach (ClientGoodsSet set in clist) foreach (ClientGoodsSet set in clist)
{ {
var dto=new ClientGoodsSetDto();
dto.Name = set.Name;
foreach (ClientGoodsSet_Detail setDetail in set.Details) foreach (ClientGoodsSet_Detail setDetail in set.Details)
{ {
var dto = new ClientGoodsSetDto();
dto.Name = set.Name;
dto.Goods_ID = setDetail.Goods_ID; dto.Goods_ID = setDetail.Goods_ID;
dto.Goods_Name = setDetail.Goods_Name; dto.Goods_Name = setDetail.Goods_Name;
dto.Goods_Code = setDetail.Goods_Code; dto.Goods_Code = setDetail.Goods_Code;


+ 28
- 0
B3ClientService/Rpcs/BillRpc/SegmentationWeightRecordRpc.cs View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BWP.B3ClientService.BO;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.JsonRpc;
using Newtonsoft.Json;
namespace BWP.B3ClientService.Rpcs.BillRpc
{
[Rpc]
public static class SegmentationWeightRecordRpc
{
[Rpc]
public static long Insert(string json)
{
var record = JsonConvert.DeserializeObject<SegmentationWeightRecord>(json);
record.CreateTime=DateTime.Now;
using (var session=Dmo.NewSession())
{
session.Insert(record);
session.Commit();
}
return record.ID;
}
}
}

Loading…
Cancel
Save