Beispiel #1
0
            static void Main(string[] args)
            {
                Ex11.studentDetails obj  = new Ex11.studentDetails();
                ScoreReport         objR = new ScoreReport();

                Console.WriteLine("Subject: " + objR.Subject);
                Console.WriteLine("Marks: " + objR.Marks);
            }
Beispiel #2
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     scori     = PlayerPrefs.GetInt(Summaryscore);
     text.text = scori.ToString();
 }
Beispiel #3
0
        public JsonResult GetSectorOrganizationalScoreLevel2(int id = 0)
        {
            //var graph = new Graph()
            //{
            //    OtherOrg = new int[] { 28, 48, 40, 19, 86, 27, 90, 10, 25 },
            //    Org = new int[] { 25, 90, 50, 56, 22, 36, 85, 20, 10 }
            //};
            var graph = Task.Run(() => ScoreReport.OrganizationManufacturingScore(GetUserIdIfIdIsEmpty(id), Utilities.AssessmentTypeLevel2)).Result;

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #4
0
        public JsonResult GetFinalScoreLevel2(int id = 0)
        {
            //var graph = new Graph()
            //{
            //    OtherOrg = new int[] { 700 },
            //    Org = new int[] { 500 }
            //};
            var graph = Task.Run(() => ScoreReport.OrganizationFinalScore(GetUserIdIfIdIsEmpty(id), Utilities.AssessmentTypeLevel2)).Result;

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #5
0
        public JsonResult GetSectorFinalScoreLevel1(int id = 0, string level = null)
        {
            //var graph = new Graph()
            //{
            //    OtherOrg = new int[] { 700 },
            //    Org = new int[] { 500 }
            //};
            var graph = Task.Run(() => ScoreReport.OrganizationManufacturingFinalScore(GetUserIdIfIdIsEmpty(id), level)).Result;

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #6
0
        // GET: Report
        public JsonResult GetOrganizationalScoreLevel1(int id = 0, string level = null)
        {
            //var graph = new Graph()
            //{
            //    OtherOrg = new int[] { 28, 48, 40, 19, 86, 27, 90, 10, 25 },
            //    Org = new int[] { 25, 90, 50, 56, 22, 36, 85, 20, 10 }
            //};
            var graph = Task.Run(() => ScoreReport.OrganizationScore(GetUserIdIfIdIsEmpty(id), level)).Result;

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #7
0
        public JsonResult SectorOrganizationFinalScore(int sectorId, int subsectorId, string level, int assessementId)
        {
            //var graph = new Graph()
            //{
            //    OtherOrg = new int[] { 700 },
            //    Org = new int[] { 500 }
            //};
            var graph = Task.Run(() => ScoreReport.SectorOrganizationFinalScore(sectorId, subsectorId, level, assessementId)).Result;

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #8
0
        public JsonResult SectorOrganizationScore(int sectorId, int subsectorId, string level, int assessementId)
        {
            //    var graph = new Graph()
            //    {
            //        OtherOrg = new int[] { 28, 48, 40, 19, 86, 27, 90, 10, 25 },
            //        Org = new int[] { 25, 90, 50, 56, 22, 36, 85, 20, 10 }
            //    };
            var graph = Task.Run(() => ScoreReport.SectorOrganizationScore(sectorId, subsectorId, level, assessementId)).Result;

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #9
0
        public async Task <JsonResult> GetSectorFinalScoreLevel3(int id = 0)
        {
            //var graph = new Graph()
            //{
            //    OtherOrg = new int[] { 700 },
            //    Org = new int[] { 500 }
            //};
            var graph = await Task.Run(() => ScoreReport.OrganizationManufacturingFinalScore(GetUserIdIfIdIsEmpty(id), Utilities.AssessmentTypeLevel3));

            return(Json(graph, JsonRequestBehavior.AllowGet));
        }
Beispiel #10
0
 public static void GenerateScoreReport()
 {
     using (var outcomes = new Outcomes())
     {
         var myRobot = MyRobots.Single();
         var x       = outcomes.AllOutcomes
                       .Where(o => o.MyRobotName == myRobot);
         var scores = new ScoreReportData(x);
         var report = new ScoreReport(scores);
         report.Save();
     }
 }
Beispiel #11
0
    //bool doTest = false;

    private void Start()
    {
        scoreReport = GameObject.Find("UIManager").GetComponent <ScoreReport>();
        if (photonView.IsMine)
        {
            animator = GetComponent <Animator>();
            scoreReport.Register("local");
        }
        else
        {
            scoreReport.Register(photonView.Owner.NickName);
        }
    }
        public async Task <ScoreReport> GetScoreReportAsync()
        {
            var stopWatch = Stopwatch.StartNew();

            _logger.LogInformation("GetScoreReport - Started");
            var scoreReport = new ScoreReport();
            var dataFiles   = await _csvDataFileService.GetCsvFilesInDirectoryAsync();

            _logger.LogInformation("GetScoreReport - Found {Count} Files, DataFileLocation:{DataFileLocation}, FileSearchPattern:{FileSearchPattern}",
                                   dataFiles.Count, _csvDataFileService.DataFileLocation, _csvDataFileService.FileSearchPattern);
            foreach (var dataFile in dataFiles)
            {
                var classScoreReport = await GetClassScoreReportAsync(dataFile);

                scoreReport.ClassScores.Add(classScoreReport);
            }
            //TODO:Instead of just logging this out, this could be a useful metric to capture to Cloudwatch or whatever monitoring is used
            stopWatch.Stop();
            _logger.LogInformation("GetScoreReport - Completed in {ElapsedMilliseconds} Milliseconds", stopWatch.ElapsedMilliseconds);
            return(scoreReport);
        }
Beispiel #13
0
        public void Update(ScoreReport newScores)
        {
            var scoreReport = this.scores
                .All()
                .Where(e => e.StudentInfoId == newScores.StudentInfoId)
                .FirstOrDefault();

            if (scoreReport == null)
            {
                this.Create(newScores);
                return;
            }

            scoreReport.SatCRResult = newScores.SatCRResult;
            scoreReport.SatMathResult = newScores.SatMathResult;
            scoreReport.SatWritingResult = newScores.SatWritingResult;
            scoreReport.ToeflType = newScores.ToeflType;
            scoreReport.ToeflResult = newScores.ToeflResult;
            scoreReport.CambridgeLevel = newScores.CambridgeLevel;
            scoreReport.CambridgeResult = newScores.CambridgeResult;

            this.scores.Save();
        }
Beispiel #14
0
 public void Create(ScoreReport newScores)
 {
     this.scores.Add(newScores);
     this.scores.Save();
 }