コード例 #1
0
        public ActionResult ShowDetailsInformation(int id)
        {
            ViewBag.District = addressManager.GetAllDistrict();
            var info = affectedPersonManager.GetAllBasicInformationOfAffectedPerson(id);
            var allIsAffectedLandUnderShare    = affectedPersonManager.GetAllIsAffectedLandUnderShare(id);
            var aFamilyAffectedLandInformation = aFamilyManager.GetAllFamilyAffectedLandInformation(id);
            var aAffectedLandPresentCropsAndProductionInformation = aFamilyManager.GetAllAffectedLandPresentCropsAndProductionInformation(id);
            var aSocialEconomicInformationAndData = andDataManager.GetAllSocialEconomicInformationAndData(id);
            var aHouseholdYearlyExpenditure       = aFamilyManager.GetAllHouseholdYearlyExpenditure(id);
            var aDomesticImmovableAssets          = aFamilyManager.GetAllDomesticImmovableAssets(id);

            var aDomesticMovableAsset = aFamilyManager.GetAllDomesticMovableAssetss(id);
            var aHomeResources        = aFamilyManager.GetAllHomeResources(id);
            var aFamilyAffectedLandUsedInformation = aFamilyManager.GetAllFamilyAffectedLandUsedInformation(id);

            if (info.Count == 0)
            {
                string message = "No Information Found";
                ViewBag.Message = message;
            }
            ViewBag.DetailsInfo = info;
            ViewBag.AllIsAffectedLandUnderShare   = allIsAffectedLandUnderShare;
            ViewBag.FamilyAffectedLandInformation = aFamilyAffectedLandInformation;
            ViewBag.AffectedLandPresentCropsAndProductionInformation = aAffectedLandPresentCropsAndProductionInformation;
            ViewBag.SocialEconomicInformationAndData = aSocialEconomicInformationAndData;
            ViewBag.HouseholdYearlyExpenditure       = aHouseholdYearlyExpenditure;
            ViewBag.DomesticImmovableAssets          = aDomesticImmovableAssets;
            ViewBag.DomesticMovableAssets            = aDomesticMovableAsset;
            ViewBag.HomeResources = aHomeResources;
            ViewBag.FamilyAffectedLandUsedInformation = aFamilyAffectedLandUsedInformation;
            return(View());
        }