public static IEnumerable <PriceScheduleView> ToPriceView ( this IEnumerable <IInvPrice> TodaysPrices_ForPart , Inventry_27 InventoryPricesAreFor , short Schedule_0 , short Schedule_List , short Schedule_Cash ) { var mp = new ValueTuple <int, IEnumerable <IInvPrice> > ( InvPrice_Indexes.InventoryUnique(TodaysPrices_ForPart.First()) , TodaysPrices_ForPart ); var mpp = new ValueTuple <IEnumerable <IInvPrice>, IInventoryBasePriceInfo> ( TodaysPrices_ForPart , TodaysPrices_ForPart.PopulateBasePriceSchedInfo_NoPrice ( InventoryPricesAreFor , Schedule_0 , Schedule_List , Schedule_Cash ) ); mpp.Item2.CalculateBasePrices(); var pv = mpp.Item2.CalculatePrices(mpp.Item1); return(pv); }
private List <(Func <IInventry_27, string> GetField, Func <IInventry_27, string, int> SetField)> Get_GetField_SetField_Pairs(IEnumerable <string> FieldNames) { List <(Func <IInventry_27, string> GetField, Func <IInventry_27, string, int> SetField)> GetField_SetField_Pairs = new List <(Func <IInventry_27, string> GetField, Func <IInventry_27, string, int> SetField)>(); IInventry_27 p = new Inventry_27(); foreach (var fieldName in FieldNames) { GetField_SetField_Pairs.Add(Build_GetSet_ForField(fieldName)); } return(GetField_SetField_Pairs); }