/// <summary> /// 模型数据改变 /// </summary> /// <param name="obj"></param> private void dataChanged(MatInventoryItemInfoModel planorderiteminfo) { //getPageData(); getPageData(pageRepuestParams.PageIndex, pageRepuestParams.PageSize); var tmpModel = MatInventoryItemInfoList.FirstOrDefault(a => a.Id == planorderiteminfo.Id); this.MatInventoryItemInfo = MatInventoryItemInfoList.FirstOrDefault(); }
public static void SetDifferenceAmount(MatInventoryItemInfoModel matinventoryitemInfo) { if (matinventoryitemInfo.AccuntAmount != null && matinventoryitemInfo.ActualAmount != null) { //decimal dDifferenceAmount = matinventoryitemInfo.AccuntAmount.Value - matinventoryitemInfo.ActualAmount.Value; decimal dDifferenceAmount = matinventoryitemInfo.ActualAmount.Value - matinventoryitemInfo.AccuntAmount.Value; // matinventoryitemInfo.DifferenceAmount = dDifferenceAmount; } }