Exemple #1
0
        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);
        }
Exemple #2
0
        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());
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public bool ComparePov(PoVEntity pov)
 {
     return(this.CompareOrganizationUnit(pov.OrganizationUnitNo) && this.CompareBusinessGroup(pov.BusinessGroup) &&
            this.CompareBusinessFunction(pov.BusinessFunction));
 }