예제 #1
0
        public async Task <JsonResult> LoadFinancialYears()
        {
            ICommonService      commonService       = new CommonService();
            WcIdentificationDto wcIdentificationDto = new WcIdentificationDto();

            wcIdentificationDto.FinancialYears = new List <Entities.Common.FinancialYear>();
            wcIdentificationDto.FinancialYears = await commonService.GetAllFinancialYears();

            return(Json(wcIdentificationDto, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public async Task <JsonResult> LoadAllDistricts()
        {
            ICommonService      commonService       = new CommonService();
            WcIdentificationDto wcIdentificationDto = new WcIdentificationDto();

            wcIdentificationDto.Districts = new List <Entities.Common.District>();
            wcIdentificationDto.Districts = await commonService.GetAllDistricts();

            return(Json(wcIdentificationDto, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public async Task <JsonResult> LoadAllFilterData()
        {
            ICommonService      commonService       = new CommonService();
            WcIdentificationDto wcIdentificationDto = new WcIdentificationDto();

            wcIdentificationDto.Divisions = new List <Entities.Common.Division>();
            wcIdentificationDto.Divisions = await commonService.GetAllDivisions();

            wcIdentificationDto.Districts = new List <Entities.Common.District>();
            wcIdentificationDto.Districts = await commonService.GetAllDistricts();

            wcIdentificationDto.Tehsils = new List <Entities.Common.Tehsil>();
            wcIdentificationDto.Tehsils = await commonService.GetAllTehsils();

            wcIdentificationDto.FinancialYears = new List <Entities.Common.FinancialYear>();
            wcIdentificationDto.FinancialYears = await commonService.GetAllFinancialYears();

            //todo
            //wcIdentificationDto.WaterCourses = new List<Entities.Common.WaterCourse>();
            //wcIdentificationDto.WaterCourses = await commonService.GetAll();

            return(Json(wcIdentificationDto, JsonRequestBehavior.AllowGet));
        }