public FarmerDetailPageUIvalues GetFarmerDetailPageUIvalues() { FarmerDetailPageUIvalues pageUIvalues = new FarmerDetailPageUIvalues(); IDealerDetailOperations dealerDetailOperations = new DealerDetailOperations(); pageUIvalues.DealerList = MapEntities.MapIEnumerableCollection <DealerDetail, DealerDetailEntities>(dealerDetailOperations.GetAllDealerList()).ToList(); IfarmerTypeOperations farmerTypeOperations = new FarmerTypeOperations(); pageUIvalues.FarmerTypeList = MapEntities.MapList <FarmerTypeDetail, FarmerTypeEntities>(farmerTypeOperations.GetAllFarmerType().ToList()); IirrigationSourceOperations irrigationSourceOperation = new IrrigationSourceOperations(); pageUIvalues.irrigationSourceList = MapEntities.MapList <IrrigationSource, IrrigationSourceEntities>(irrigationSourceOperation.GetAllIrrigationSources()); ICropInfoOperations cropInfoOperations = new CropInfoOperations(); pageUIvalues.CropList = MapEntities.MapList <CropInfo, CropInfoEntities>(cropInfoOperations.GetAllCrops().ToList()); IPocketInfoOperations pocketInfoOperations = new PocketInfoOperations(); pageUIvalues.PocketList = MapEntities.MapIEnumerableCollection <PocketInfo, PocketInfoEntities>(pocketInfoOperations.GetPocketList(Convert.ToInt32(PocketStatusTypeEnum.Current))).ToList(); IFarmerConsumptionOperation farmerConsumptionOperation = new FarmerConsumptionOperation(); pageUIvalues.farmerConsumptionlist = MapEntities.MapIEnumerableCollection <FarmerConsumption, FarmerConsumptionEntities>(farmerConsumptionOperation.GetFarmerConsumptionList()).ToList(); return(pageUIvalues); }
public FAdetailPageUIvalues GetFAdetailPageUIvalues() { FAdetailPageUIvalues pageUIvalues = new FAdetailPageUIvalues(); IFAdesignationOperations faDesignationOperation = new FAdesignationOperations(); pageUIvalues.DesignationList = MapEntities.MapIEnumerableCollection <FAdesignation, FAdesignationEntities>(faDesignationOperation.GetFAdesignationList()).ToList(); IFAdocumentTypeOperations faDocumentTypeOperations = new FAdocumentTypeOperations(); pageUIvalues.DocumentTypeList = MapEntities.MapIEnumerableCollection <FAdocumentType, FAdocumentTypeEntities>(faDocumentTypeOperations.GetFAdocumentTypeList()).ToList(); //IDistrictInfoOperations districtInfoOperations = new DistrictInfoOperations(); //pageUIvalues.DistrictList = MapEntities.MapIEnumerableCollection<DistrictInfo, DistrictInfoEntities>(districtInfoOperations.GetAllDistricts()).ToList(); IFApaymentAgencyOperations paymentAgencyOperations = new FApaymentAgencyOperations(); pageUIvalues.PaymentAgencyList = MapEntities.MapIEnumerableCollection <FApaymentAgency, FApaymentAgencyEntities>(paymentAgencyOperations.GetAllPaymentAgency()).ToList(); IFAstatusOperations targetStatusOperations = new FAstatusOperations(); pageUIvalues.FAstatusList = MapEntities.MapIEnumerableCollection <FAStatu, FAstatusEntities>(targetStatusOperations.GetFAStatusList()).ToList(); IDealerDetailOperations dealerDetailOperations = new DealerDetailOperations(); pageUIvalues.DealerList = MapEntities.MapIEnumerableCollection <DealerDetail, DealerDetailEntities>(dealerDetailOperations.GetAllDealerList()).ToList(); ICropInfoOperations cropInfoOperations = new CropInfoOperations(); pageUIvalues.CropList = MapEntities.MapIEnumerableCollection <CropInfo, CropInfoEntities>(cropInfoOperations.GetAllCrops()).ToList(); //IPocketInfoOperations pocketInfoOperations = new PocketInfoOperations(); //pageUIvalues.PocketList = MapEntities.MapIEnumerableCollection<PocketInfo, PocketInfoEntities>(pocketInfoOperations.GetPocketList()).ToList(); IFaApprovedByOperations faApprovedBY = new FaApprovedByOperations(); pageUIvalues.approvedByList = MapEntities.MapIEnumerableCollection <FAapprovedBy, FAapprovedByEntities>(faApprovedBY.GetApprovedByList()).ToList(); IStateInfoOperations stateOperation = new StateInfoOperations(); pageUIvalues.stateList = MapEntities.MapList <StateInfo, StateInfoEntities>(stateOperation.GetAllStates()); return(pageUIvalues); }