Browse Source

添加副产品记录

master
wugang 8 years ago
parent
commit
fad86c0267
3 changed files with 70 additions and 0 deletions
  1. +2
    -0
      B3ClientService/B3ClientService.csproj
  2. +42
    -0
      B3ClientService/BO/ByProductWeightRecord_/ByProductWeightRecord.cs
  3. +26
    -0
      B3ClientService/Rpcs/BillRpc/ByProductWeightRecordRpc.cs

+ 2
- 0
B3ClientService/B3ClientService.csproj View File

@ -102,6 +102,7 @@
<Compile Include="BO\Bill\WeightBill\WeightBill_HouseDetail.cs" />
<Compile Include="BO\Bill\WeightBill\WeightBill_SanctionDetail.cs" />
<Compile Include="BO\Bill\WeightBill\WeightDetail.cs" />
<Compile Include="BO\ByProductWeightRecord_\ByProductWeightRecord.cs" />
<Compile Include="BO\ClientGoodsSet_\ClientGoodsSet.cs" />
<Compile Include="BO\ClientGoodsSet_\ClientGoodsSet_Detail.cs" />
<Compile Include="BO\SegmentationInStoreRecord_\SegmentationInStoreRecord.cs" />
@ -118,6 +119,7 @@
<Compile Include="ConvertUtil.cs" />
<Compile Include="CTuple.cs" />
<Compile Include="NamedValueTemplate.cs" />
<Compile Include="Rpcs\BillRpc\ByProductWeightRecordRpc.cs" />
<Compile Include="Rpcs\BillRpc\ClientGoodsSetRpc.cs" />
<Compile Include="Rpcs\BillRpc\SegmentationInStoreRecordRpc.cs" />
<Compile Include="Rpcs\BillRpc\SegmentationWeightRecordRpc.cs" />


+ 42
- 0
B3ClientService/BO/ByProductWeightRecord_/ByProductWeightRecord.cs View File

@ -0,0 +1,42 @@
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
{
/// <summary>
/// 副产品称重
/// </summary>
[Serializable]
public class ByProductWeightRecord : 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; }//用来记录那个工作台或者哪台触摸屏做的
public string CreateUserName { get; set; }
[DbColumn(DefaultValue = false)]
public bool IsInStored { get; set; }//是否已经入库
}
}

+ 26
- 0
B3ClientService/Rpcs/BillRpc/ByProductWeightRecordRpc.cs View File

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

Loading…
Cancel
Save