示例#1
0
        public GroupByCaseDTO GetFilteredCaseCount()
        {
            GroupByCaseDTO myDto      = new GroupByCaseDTO();
            var            dictionary = CaseRepository.FindFilteredCaseCount();

            if (dictionary.ContainsKey("NewHigh"))
            {
                myDto.NewHigh = dictionary["NewHigh"];
            }
            if (dictionary.ContainsKey("NewMedium"))
            {
                myDto.NewMed = dictionary["NewMedium"];
            }
            if (dictionary.ContainsKey("NewLow"))
            {
                myDto.NewLow = dictionary["NewLow"];
            }
            if (dictionary.ContainsKey("InProcessHigh"))
            {
                myDto.InProcessHigh = dictionary["InProcessHigh"];
            }
            if (dictionary.ContainsKey("InProcessMedium"))
            {
                myDto.InProcessMed = dictionary["InProcessMedium"];
            }
            if (dictionary.ContainsKey("InProcesssLow"))
            {
                myDto.InProcessLow = dictionary["InProcessLow"];
            }
            if (dictionary.ContainsKey("ClosedHigh"))
            {
                myDto.CloseHigh = dictionary["ClosedHigh"];
            }
            if (dictionary.ContainsKey("ClosedMedium"))
            {
                myDto.CloseMed = dictionary["ClosedMedium"];
            }
            if (dictionary.ContainsKey("ClosedLow"))
            {
                myDto.CloseLow = dictionary["ClosedLow"];
            }
            return(myDto);
        }