public List <T_GelStep> ResolveActions(T_Gel gel) { List <T_GelStep> gelstep_list = new List <T_GelStep>(); foreach (var gelstep in gel.GelSteps) { if (gelstep.StepClass == TestStepEnum.FPYT) { FPYTStepParameter action = gelstep.GetFpytInfo(); int index = 0; foreach (var item in action.LiquidList) { var gelfpyt = gelstep.clone(); gelfpyt.LiquidTypeIndex = index; gelfpyt.MixCode = "mix_code:" + G_MixCode; gelfpyt.is_mix = action.LiquidList.Count > 1; gelfpyt.is_spu = action.LiquidList.IndexOf(item) == action.LiquidList.Count - 1; gelstep_list.Add(gelfpyt); index++; } G_MixCode++; } else { gelstep_list.Add(gelstep); } } return(gelstep_list); }
public void SetFpytInfo(FPYTStepParameter FpytInfoTem) { if (StepClass == TestStepEnum.FPYT) { StepParamters = FpytInfoTem.ToJsonStr(); } FpytInfo = FpytInfoTem; }
public FPYTUnit GetLiquidInfo() { FPYTStepParameter fpytinfo = GetFpytInfo(); if (fpytinfo != null && fpytinfo.LiquidList.Count != 0) { return(fpytinfo.LiquidList[LiquidTypeIndex]); } return(null); }