change - 投料记录字段修改

master
wenjy 8 months ago
parent 43ff109153
commit 6e383fa458

@ -27,6 +27,13 @@ namespace SlnMesnac.Model.domain
///</summary> ///</summary>
[SugarColumn(ColumnName="equip_type" )] [SugarColumn(ColumnName="equip_type" )]
public string equip_type { get; set; } public string equip_type { get; set; }
/// <summary>
/// 料秤类型编号
/// </summary>
[SugarColumn(ColumnName="scaleNum" )]
public string scaleNum { get; set; }
/// <summary> /// <summary>
/// 物料条码 /// 物料条码
///</summary> ///</summary>

@ -127,11 +127,13 @@ namespace SlnMesnac.Repository.service.Impl
};*/ };*/
recordMaterialInput = new RecordMaterialInput() recordMaterialInput = new RecordMaterialInput()
{ {
equip_id = mcsInputRecord.EquipId.ToString(), equip_id = mcsInputRecord.EquipId.ToString() == "0" ? "1" :mcsInputRecord.EquipId.ToString(),
can_number = mcsInputRecord.CanNumber, can_number = mcsInputRecord.CanNumber,
equip_type = "mcs", equip_type = "mcs",
scaleNum = "101",
material_barcode = mcsInputRecord.MaterialBarcode,
input_quantity = mcsInputRecord.InputQuantity, input_quantity = mcsInputRecord.InputQuantity,
input_weight = mcsInputRecord.InputQuantity, input_weight = Convert.ToDecimal(mcsInputRecord.InputWeight),
is_remainder = mcsInputRecord.IsRemainder, is_remainder = mcsInputRecord.IsRemainder,
remainder_quantity = mcsInputRecord.RemainderQuantity, remainder_quantity = mcsInputRecord.RemainderQuantity,
remainder_weight = Convert.ToDecimal(mcsInputRecord.RemainderWeight), remainder_weight = Convert.ToDecimal(mcsInputRecord.RemainderWeight),
@ -156,11 +158,12 @@ namespace SlnMesnac.Repository.service.Impl
};*/ };*/
recordMaterialInput = new RecordMaterialInput() recordMaterialInput = new RecordMaterialInput()
{ {
equip_id = cwssInputRecord.EquipId.ToString(), equip_id = cwssInputRecord.EquipId.ToString() == "0" ? "1" :cwssInputRecord.EquipId.ToString(),
can_number = cwssInputRecord.CanNumber, can_number = cwssInputRecord.CanNumber,
equip_type = "cwss", equip_type = "cwss",
material_barcode = cwssInputRecord.MaterialBarcode,
input_quantity = cwssInputRecord.InputQuantity, input_quantity = cwssInputRecord.InputQuantity,
input_weight = cwssInputRecord.InputQuantity, input_weight = Convert.ToDecimal(cwssInputRecord.InputWeight),
is_remainder = cwssInputRecord.IsRemainder, is_remainder = cwssInputRecord.IsRemainder,
remainder_quantity = cwssInputRecord.RemainderQuantity, remainder_quantity = cwssInputRecord.RemainderQuantity,
remainder_weight = Convert.ToDecimal(cwssInputRecord.RemainderWeight), remainder_weight = Convert.ToDecimal(cwssInputRecord.RemainderWeight),

@ -142,6 +142,8 @@ public class CwssIngCheckController
} }
} }
//保存数据 //保存数据
ingredientInfo.EquipId = Convert.ToInt32(cwssInfo.EquipCode);
ingredientInfo.CanNumber = cwssInfo.BinSerial.ToString();
SaveInputRecord(ingredientInfo, 1, ""); SaveInputRecord(ingredientInfo, 1, "");
} while (false); } while (false);

@ -154,6 +154,8 @@ public class McsIngCheckController
} }
//保存数据 //保存数据
ingredientInfo.EquipId = mcsInfo.EquipId;
ingredientInfo.CanNumber = mcsInfo.BinNo.ToString();
SaveInputRecord(ingredientInfo, 1, ""); SaveInputRecord(ingredientInfo, 1, "");
} while (false); } while (false);

Loading…
Cancel
Save