/// <summary> /// 获取或创建复测基线较差 /// </summary> /// <param name="GnssReveiverNominalAccuracy"></param> /// <param name="isRebuit"></param> /// <returns></returns> public RepeatErrorOfBaseLineManager GetOrCreateRepeatErrorOfBaseLineManager(GnssReveiverNominalAccuracy GnssReveiverNominalAccuracy, bool isRebuit) { if (RepeatErrorOfBaseLineManager == null || isRebuit) { RepeatErrorOfBaseLineManager = CreateRepeatErrorOfBaseLineManager(GnssReveiverNominalAccuracy); } return(RepeatErrorOfBaseLineManager); }
/// <summary> /// 获取复测基线较差 /// </summary> /// <param name="GnssReveiverNominalAccuracy"></param> /// <returns></returns> public RepeatErrorOfBaseLineManager CreateRepeatErrorOfBaseLineManager(GnssReveiverNominalAccuracy GnssReveiverNominalAccuracy) { RepeatErrorOfBaseLineManager result = new RepeatErrorOfBaseLineManager(GnssReveiverNominalAccuracy); var allObjLines = this.GetAllBaseLines(); foreach (var item in allObjLines) { List <SiteObsBaseline> sameNameLines = GetLines(item.LineName); var repeatError = result.GetOrCreate(item); repeatError.Init(sameNameLines); } return(result); }