yibo 7 years ago
parent
commit
a8297a1c48
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      B3ClientService/Tasks/SyncSegmentInfoToTraceBack.cs

+ 7
- 1
B3ClientService/Tasks/SyncSegmentInfoToTraceBack.cs View File

@ -68,11 +68,14 @@ namespace BWP.B3ClientService.Tasks
info.Goods_Spec = (string)reader[2]; info.Goods_Spec = (string)reader[2];
info.Weight = string.Format("{0:#0.######}", reader[3]); info.Weight = string.Format("{0:#0.######}", reader[3]);
info.ProductDate = string.Format("{0:yyyyMMdd}", reader[4]); info.ProductDate = string.Format("{0:yyyyMMdd}", reader[4]);
info.ButcherDate = ((DateTime)reader[4]).AddDays(-1).ToString("yyyyMMdd");
info.ProductBatch = info.ProductDate; info.ProductBatch = info.ProductDate;
info.InStoreDate = string.Format("{0:yyyyMMdd}", reader[5]); info.InStoreDate = string.Format("{0:yyyyMMdd}", reader[5]);
info.ID = (long)reader[6]; info.ID = (long)reader[6];
info.Farm_Name = "自属备案养殖场";
info.Farm_Name = "南墅养殖场";
info.TestingResult = "合格"; info.TestingResult = "合格";
info.TestingMan = "耿建平";
info.SendCustomer = "青岛福兴祥商品配送有限公司";
list.Add(info); list.Add(info);
} }
} }
@ -101,6 +104,9 @@ namespace BWP.B3ClientService.Tasks
//[LogicName("重量")] //[LogicName("重量")]
public string Weight { get; set; } public string Weight { get; set; }
//[LogicName("屠宰日期")]
public string ButcherDate { get; set; }
//[LogicName("生产日期")] //[LogicName("生产日期")]
public string ProductDate { get; set; } public string ProductDate { get; set; }


Loading…
Cancel
Save