コード例 #1
0
        /// <summary>
        /// get checkList type
        /// </summary>
        /// <returns></returns>
        public List <CheckListTypeViewModel> GetCheckListTypes()
        {
            List <CheckListTypeViewModel> checkListTypes = new List <CheckListTypeViewModel>();

            try
            {
                List <BusinessModel.BusinessModels.CheckListType> checkListTypesDTO = _kpiRepository.GetCheckListTypes();
                if (checkListTypesDTO != null)
                {
                    foreach (BusinessModel.BusinessModels.CheckListType checkListTypeDTO in checkListTypesDTO)
                    {
                        CheckListTypeViewModel checkListType = new CheckListTypeViewModel();
                        checkListType.CheckListTypeID   = checkListTypeDTO.CheckListTypeID;
                        checkListType.CheckListTypeCode = checkListTypeDTO.CheckListTypeCode;
                        checkListType.CheckListTypeName = checkListTypeDTO.CheckListTypeName;
                        checkListType.RecordStatus      = checkListTypeDTO.RecordStatus;
                        checkListTypes.Add(checkListType);
                    }
                }
                return(checkListTypes);
            }
            catch (Exception ex)
            {
                _logger.Log(ex, LogLevel.Error, ex.Message);
                return(null);
            }
        }
コード例 #2
0
 public KPIQuestionViewModel()
 {
     ChecklistTypeViewModel = new CheckListTypeViewModel();
     M3MeasureViewModel     = new MeasureViewModel();
 }