/// <summary> /// 模型数据改变 /// </summary> /// <param name="obj"></param> private void dataChanged(MatStorageModifyInfoModel MatStorageModifyInfoChange) { getPageData(pageRepuestParams.PageIndex, pageRepuestParams.PageSize); var tmpModel = MatStorageModifyInfoList.FirstOrDefault(a => a.Id == MatStorageModifyInfoChange.Id); this.MatStorageModifyInfo = MatStorageModifyInfoList.FirstOrDefault(); }
public static void SetChangedAmount(MatStorageModifyInfoModel matstoragemodifyInfo) { if (matstoragemodifyInfo.CurrentAmount != null && matstoragemodifyInfo.OriginalAmount != null) { decimal dChangedAmount = matstoragemodifyInfo.CurrentAmount.Value - matstoragemodifyInfo.OriginalAmount.Value; // matstoragemodifyInfo.ChangedAmount = dChangedAmount; } }