public void ChangePov(PoVEntity pov) { LoggerPage.LogStart(MethodBase.GetCurrentMethod().Name); this.ChangeOrganizationUnitToIfNeeded(pov.OrganizationUnitNo); this.ChangeBusinessGroupToIfNeeded(pov.BusinessGroup); this.ChangeBusinessFunctionToIfNeeded(pov.BusinessFunction); LoggerPage.LogEnd(MethodBase.GetCurrentMethod().Name); }
public MiDashboardPage SetPoV(PoVEntity pov) { LoggerPage.LogStart(MethodBase.GetCurrentMethod().Name); if (!this.ComparePov(pov)) { this.ChangePov(pov); } LoggerPage.LogEnd(MethodBase.GetCurrentMethod().Name); return(new MiDashboardPage()); }
public static ReportsEntity CreateReportEntity(string name, string title, string code, PoVEntity pov, string date, string singleTimeView = null, bool thirteenMonths = false) { var report = new ReportsEntity { Name = thirteenMonths == false ? name : $"{name} 13m", Title = thirteenMonths == false ? title : $"{title} 13m", Code = code, PoV = pov, Date = date, SingleTimeView = singleTimeView, ThirteenMonths = thirteenMonths, }; return(report); }
public bool ComparePov(PoVEntity pov) { return(this.CompareOrganizationUnit(pov.OrganizationUnitNo) && this.CompareBusinessGroup(pov.BusinessGroup) && this.CompareBusinessFunction(pov.BusinessFunction)); }