コード例 #1
0
        private Application CreateApplication(EApplicationTypeViewModel appType)
        {
            Application answer = null;

            if (appType == EApplicationTypeViewModel.RecordOfSurvey)
            {
                answer = Application.FactoryCreate <RecordOfSurvey>();
            }
            // Condos
            else if (appType == EApplicationTypeViewModel.CcBypass)
            {
                answer = Application.FactoryCreate <CcBypass>();
            }
            else if (appType == EApplicationTypeViewModel.CcEcp)
            {
                answer = Application.FactoryCreate <CcEcp>();
            }
            else if (appType == EApplicationTypeViewModel.NewConstruction)
            {
                answer = Application.FactoryCreate <NewConstruction>();
            }
            // CoC, LLA, LM, VS, & LS
            else if (appType == EApplicationTypeViewModel.LotLineAdjustment)
            {
                answer = Application.FactoryCreate <LotLineAdjustment>();
            }
            else if (appType == EApplicationTypeViewModel.CertificateOfCompliance)
            {
                answer = Application.FactoryCreate <CertificateOfCompliance>();
            }
            else if (appType == EApplicationTypeViewModel.ParcelFinalMap)
            {
                answer = Application.FactoryCreate <ParcelFinalMap>();
            }
            // Sidewalk
            else if (appType == EApplicationTypeViewModel.SidewalkLegislation)
            {
                answer = Application.FactoryCreate <SidewalkLegislation>();
            }
            // Other
            else
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
            return(answer);
        }
コード例 #2
0
 /// <summary>
 /// View Model Constructory
 /// </summary>
 /// <param name="appTypeId">Application Type Enum</param>
 /// <param name="projInfo">Project Information</param>
 public NewApplicationViewModel(EApplicationTypeViewModel appType, BasicProjectInfo projInfo)
 {
     this.ApplicationType = appType;
     ProjectInfo          = projInfo;
 }