private string FindException(OpenCbsTiersSaveExceptionEnum exceptionId) { string returned = String.Empty; switch (exceptionId) { case OpenCbsTiersSaveExceptionEnum.TiersIsNull: returned = "OTE1.Text"; break; case OpenCbsTiersSaveExceptionEnum.EconomicActivityIsNull: returned = "OTE2.Text"; break; case OpenCbsTiersSaveExceptionEnum.DistrictIsNull: returned = "OTE3.Text"; break; case OpenCbsTiersSaveExceptionEnum.FirstNameIsNull: returned = "OTE4.Text"; break; case OpenCbsTiersSaveExceptionEnum.SexIsNull: returned = "OTE5.Text"; break; case OpenCbsTiersSaveExceptionEnum.IdentificationDataIsNull: returned = "OTE6.Text"; break; case OpenCbsTiersSaveExceptionEnum.LastNameIsEmpty: returned = "OTE7.Text"; break; case OpenCbsTiersSaveExceptionEnum.CityIsNull: returned = "OTE8.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryDistrictIsNull: returned = "OTE10.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryCityIsNull: returned = "OTE11.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryCommentsIsNull: returned = "OTE12.Text"; break; case OpenCbsTiersSaveExceptionEnum.DistrictIsBad: returned = "OTE13.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryDistrictIsBad: returned = "OTE14.Text"; break; case OpenCbsTiersSaveExceptionEnum.TiersIsGroup: returned = "OTE15.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonAlreadyInThisGroup: returned = "OTE16.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonIsActive: returned = "OTE17.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonIsALeader: returned = "OTE18.Text"; break; case OpenCbsTiersSaveExceptionEnum.NameIsEmpty: returned = "OTE19.Text"; break; case OpenCbsTiersSaveExceptionEnum.LeaderIsEmpty: returned = "OTE20.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfDependantsIsBadlyInformed: returned = "OTE21.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfChildrensIsBadlyInformed: returned = "OTE22.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfChidrensWithBasicEducationisBadlyInformed: returned = "OTE23.Text"; break; case OpenCbsTiersSaveExceptionEnum.ExperienceIsBadlyInformed: returned = "OTE24.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfPeopleWorkingWithinIsBadlyInformed: returned = "OTE25.Text"; break; case OpenCbsTiersSaveExceptionEnum.OtherOrganizationAmountIsBadlyInformed: returned = "OTE26.Text"; break; case OpenCbsTiersSaveExceptionEnum.OtherOrganizationDebtsIsBadlyInformed: returned = "OTE27.Text"; break; case OpenCbsTiersSaveExceptionEnum.HouseSizeIsBadlyInformed: returned = "OTE28.Text"; break; case OpenCbsTiersSaveExceptionEnum.HouseTimeLivingInIsBadlyInformed: returned = "OTE29.Text"; break; case OpenCbsTiersSaveExceptionEnum.LandPlotSizeIsBadlyInformed: returned = "OTE30.Text"; break; case OpenCbsTiersSaveExceptionEnum.LivestockNumberIsBadlyInformed: returned = "OTE31.Text"; break; case OpenCbsTiersSaveExceptionEnum.MonthlyIncomeIsBadlyInformed: returned = "OTE32.Text"; break; case OpenCbsTiersSaveExceptionEnum.MonthlyExpenditureIsBadlyInformed: returned = "OTE33.Text"; break; case OpenCbsTiersSaveExceptionEnum.NoEnoughPersonsInThisGroup: returned = "OTE34.Text"; break; case OpenCbsTiersSaveExceptionEnum.IdentificationDataAlreadyUsed: returned = "OTE35.Text"; break; case OpenCbsTiersSaveExceptionEnum.NameAlreadyUsedInDistrict: returned = "OTE36.Text"; break; case OpenCbsTiersSaveExceptionEnum.CommentsNeedFullIfBadClient: returned = "OTE37.Text"; break; case OpenCbsTiersSaveExceptionEnum.LoanCycleIsEmpty: returned = "OTE38.Text"; break; case OpenCbsTiersSaveExceptionEnum.IdentificationDataDoesntMatch: returned = "OTE40.Text"; break; case OpenCbsTiersSaveExceptionEnum.LoanOfficerIsEmpty: returned = "OTE41.Text"; break; case OpenCbsTiersSaveExceptionEnum.WrongIdPattern: returned = "WrongIDPattern.Text"; break; case OpenCbsTiersSaveExceptionEnum.BirthDateIsWrong: returned = "BirthDateIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonalBankBicCodeIsWrong: returned = "PersonalBankBicCodeIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.BusinessBankBicCodeIsWrong: returned = "BusinessBankBicCodeIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonalBankIbanIsWrong: returned = "PersonalBankIbanIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.BusinessBankIbanIsWrong: returned = "BusinessBankIbanIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonIsInTheGroup: returned = "PersonIsInTheGroup.Text"; break; case OpenCbsTiersSaveExceptionEnum.BranchIsEmpty: returned = "BranchIsEmpty"; break; case OpenCbsTiersSaveExceptionEnum.TooMuchPersonsInThisGroup: returned = "TooMuchPersonsInThisGroup.Text"; break; case OpenCbsTiersSaveExceptionEnum.AgeIsNotInRange: returned = "AgeIsNotInRange.Text"; break; case OpenCbsTiersSaveExceptionEnum.GuarantorMaxLoansCoveredExceed: returned = "GuarantorMaxLoansCoveredExceed.Text"; break; } return(returned); }
public OpenCbsTiersSaveException(OpenCbsTiersSaveExceptionEnum exceptionCode, List <string> options) { AdditionalOptions = options; code = FindException(exceptionCode); }
public OpenCbsTiersSaveException(OpenCbsTiersSaveExceptionEnum exceptionCode) { code = FindException(exceptionCode); }
private string FindException(OpenCbsTiersSaveExceptionEnum exceptionId) { string returned = String.Empty; switch(exceptionId) { case OpenCbsTiersSaveExceptionEnum.TiersIsNull: returned = "OTE1.Text"; break; case OpenCbsTiersSaveExceptionEnum.EconomicActivityIsNull: returned = "OTE2.Text"; break; case OpenCbsTiersSaveExceptionEnum.DistrictIsNull: returned = "OTE3.Text"; break; case OpenCbsTiersSaveExceptionEnum.FirstNameIsNull: returned = "OTE4.Text"; break; case OpenCbsTiersSaveExceptionEnum.SexIsNull: returned = "OTE5.Text"; break; case OpenCbsTiersSaveExceptionEnum.IdentificationDataIsNull: returned = "OTE6.Text"; break; case OpenCbsTiersSaveExceptionEnum.LastNameIsEmpty: returned = "OTE7.Text"; break; case OpenCbsTiersSaveExceptionEnum.CityIsNull: returned = "OTE8.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryDistrictIsNull: returned = "OTE10.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryCityIsNull: returned = "OTE11.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryCommentsIsNull: returned = "OTE12.Text"; break; case OpenCbsTiersSaveExceptionEnum.DistrictIsBad: returned = "OTE13.Text"; break; case OpenCbsTiersSaveExceptionEnum.SecondaryDistrictIsBad: returned = "OTE14.Text"; break; case OpenCbsTiersSaveExceptionEnum.TiersIsGroup: returned = "OTE15.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonAlreadyInThisGroup: returned = "OTE16.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonIsActive: returned = "OTE17.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonIsALeader: returned = "OTE18.Text"; break; case OpenCbsTiersSaveExceptionEnum.NameIsEmpty: returned = "OTE19.Text"; break; case OpenCbsTiersSaveExceptionEnum.LeaderIsEmpty: returned = "OTE20.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfDependantsIsBadlyInformed: returned = "OTE21.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfChildrensIsBadlyInformed: returned = "OTE22.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfChidrensWithBasicEducationisBadlyInformed: returned = "OTE23.Text"; break; case OpenCbsTiersSaveExceptionEnum.ExperienceIsBadlyInformed: returned = "OTE24.Text"; break; case OpenCbsTiersSaveExceptionEnum.NbOfPeopleWorkingWithinIsBadlyInformed: returned = "OTE25.Text"; break; case OpenCbsTiersSaveExceptionEnum.OtherOrganizationAmountIsBadlyInformed: returned = "OTE26.Text"; break; case OpenCbsTiersSaveExceptionEnum.OtherOrganizationDebtsIsBadlyInformed: returned = "OTE27.Text"; break; case OpenCbsTiersSaveExceptionEnum.HouseSizeIsBadlyInformed: returned = "OTE28.Text"; break; case OpenCbsTiersSaveExceptionEnum.HouseTimeLivingInIsBadlyInformed: returned = "OTE29.Text"; break; case OpenCbsTiersSaveExceptionEnum.LandPlotSizeIsBadlyInformed: returned = "OTE30.Text"; break; case OpenCbsTiersSaveExceptionEnum.LivestockNumberIsBadlyInformed: returned = "OTE31.Text"; break; case OpenCbsTiersSaveExceptionEnum.MonthlyIncomeIsBadlyInformed: returned = "OTE32.Text"; break; case OpenCbsTiersSaveExceptionEnum.MonthlyExpenditureIsBadlyInformed: returned = "OTE33.Text"; break; case OpenCbsTiersSaveExceptionEnum.NoEnoughPersonsInThisGroup: returned = "OTE34.Text"; break; case OpenCbsTiersSaveExceptionEnum.IdentificationDataAlreadyUsed: returned = "OTE35.Text"; break; case OpenCbsTiersSaveExceptionEnum.NameAlreadyUsedInDistrict: returned = "OTE36.Text"; break; case OpenCbsTiersSaveExceptionEnum.CommentsNeedFullIfBadClient: returned = "OTE37.Text"; break; case OpenCbsTiersSaveExceptionEnum.LoanCycleIsEmpty: returned = "OTE38.Text"; break; case OpenCbsTiersSaveExceptionEnum.IdentificationDataDoesntMatch: returned = "OTE40.Text"; break; case OpenCbsTiersSaveExceptionEnum.LoanOfficerIsEmpty: returned = "OTE41.Text"; break; case OpenCbsTiersSaveExceptionEnum.WrongIdPattern: returned = "WrongIDPattern.Text"; break; case OpenCbsTiersSaveExceptionEnum.BirthDateIsWrong: returned = "BirthDateIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonalBankBicCodeIsWrong: returned = "PersonalBankBicCodeIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.BusinessBankBicCodeIsWrong: returned = "BusinessBankBicCodeIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonalBankIbanIsWrong: returned = "PersonalBankIbanIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.BusinessBankIbanIsWrong: returned = "BusinessBankIbanIsWrong.Text"; break; case OpenCbsTiersSaveExceptionEnum.PersonIsInTheGroup: returned = "PersonIsInTheGroup.Text"; break; case OpenCbsTiersSaveExceptionEnum.BranchIsEmpty: returned = "BranchIsEmpty"; break; case OpenCbsTiersSaveExceptionEnum.TooMuchPersonsInThisGroup: returned = "TooMuchPersonsInThisGroup.Text"; break; case OpenCbsTiersSaveExceptionEnum.AgeIsNotInRange: returned = "AgeIsNotInRange.Text"; break; case OpenCbsTiersSaveExceptionEnum.GuarantorMaxLoansCoveredExceed: returned = "GuarantorMaxLoansCoveredExceed.Text"; break; case OpenCbsTiersSaveExceptionEnum.IncorrectZipCodeFormat: returned = "IncorrectZipCodeFormat.Text"; break; case OpenCbsTiersSaveExceptionEnum.IncorrectCityPhoneFormat: returned = "IncorrectCityPhoneFormat.Text"; break; case OpenCbsTiersSaveExceptionEnum.IncorrectMobilePhoneFormat: returned = "IncorrectMobilePhoneFormat.Text"; break; } return returned; }
public OpenCbsTiersSaveException(OpenCbsTiersSaveExceptionEnum exceptionCode, List<string> options) { AdditionalOptions = options; code = FindException(exceptionCode); }
public OpenCbsTiersSaveException(OpenCbsTiersSaveExceptionEnum exceptionCode) { code = FindException(exceptionCode); }