public void UpdateMatMode(T_MaterailMode matMode) { MatModeList.Remove(MatModeList.Find(o => o.Code == matMode.Code)); MatModeList.Add(matMode); }
private void InitMatModeList() { MatModeList = new List<T_MaterailMode>(); T_MaterailMode codeA = new T_MaterailMode() { Code = "MA", Desc = "型号规格A" }; T_MaterailMode codeB = new T_MaterailMode() { Code = "MB", Desc = "型号规格B" }; T_MaterailMode codeC = new T_MaterailMode() { Code = "MC", Desc = "型号规格C" }; T_MaterailMode codeD = new T_MaterailMode() { Code = "MD", Desc = "型号规格D" }; T_MaterailMode codeE = new T_MaterailMode() { Code = "ME", Desc = "型号规格E" }; T_MaterailMode codeF = new T_MaterailMode() { Code = "MF", Desc = "型号规格F" }; MatModeList.Add(codeA); MatModeList.Add(codeB); MatModeList.Add(codeC); MatModeList.Add(codeD); MatModeList.Add(codeE); MatModeList.Add(codeF); }
public void AddMatMode(T_MaterailMode matMode) { MatModeList.Add(matMode); }