示例#1
0
        public void UpdateKPIByYearMonthEvent(UpdateKPIByYearMonthEventFilter filter)
        {
            // lay cau hinh nksk
            var eDiary = _edcRepo.SelectWhere(c => c.Id == filter.EventDiaryConfigId).FirstOrDefault();

            if (eDiary == null)
            {
                throw new Exception("Không tìm thấy cấu hình NKSK.");
            }

            // lay danh sach ky >= thang-nam da chon
            var pConfigs = this._repo.SelectWhere(p => p.YearMonth >= filter.YearMonth).ToList();

            if (pConfigs.Count > 0)
            {
                foreach (var config in pConfigs)
                {
                    // lay danh sach kpi
                }
            }
        }
示例#2
0
 public void UpdateKPIByYearMonthEvent(UpdateKPIByYearMonthEventFilter model)
 {
     this._gridRepository.UpdateKPIByYearMonthEvent(model);
 }
 public RespondData UpdateKPIByYearMonthEvent(UpdateKPIByYearMonthEventFilter model)
 {
     this._service.UpdateKPIByYearMonthEvent(model);
     return(Success("OK"));
 }