| | |
| | | WeiShu = "尾数"; |
| | | HMinQty = HSumQty - (HBQty - 1) * HMinQty; |
| | | } |
| | | TM = $"{oItemSub.HMaterID}#{HMinQty}"; |
| | | //TM = $"{oItemSub.HMaterID}"; |
| | | //TM = $"{oItemSub.HMaterID}#{HMinQty}"; |
| | | TM = $"{oItemSub.HMaterID}"; |
| | | Model.ClsGy_BarCodeBill_WMS_Model bar = new Model.ClsGy_BarCodeBill_WMS_Model(); |
| | | bar.HBarCode = TM; |
| | | bar.HMaterID = oItemSub.HMaterID; |
| | |
| | | FentityModel.Add("FPreDeliveryDate", DateTime.Now.ToString("yyyy-MM-dd")); //预计到货日期 |
| | | FentityModel.Add("FPriceUnitId", new JObject() { ["Fnumber"] = item["FUNITNUMBER"].ToString() }); // 计价单位 |
| | | FentityModel.Add("FStockUnitID", new JObject() { ["Fnumber"] = item["FUNITNUMBER"].ToString() }); // 库存单位 |
| | | FentityModel.Add("FStockID", new JObject() { ["Fnumber"] = "BJCK-SH.01.005" }); // 库存单位 |
| | | FentityModel.Add("FActReceiveQty", Convert.ToDecimal(item["HQTY"])); // 供应商送货数量(提料计划数量 - 已生成送货单数量) |
| | | FentityModel.Add("FOwnerTypeId", "BD_OwnerOrg");//货主类型 |
| | | FentityModel.Add("FOwnerID", new JObject() { ["Fnumber"] = dr["FPURCHASEORGNUMBER"].ToString() });//货主 |