diff --git a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/editlicensebasicsettings.component.ts b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/editlicensebasicsettings.component.ts index 579216f..dc6cb82 100644 --- a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/editlicensebasicsettings.component.ts +++ b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/editlicensebasicsettings.component.ts @@ -205,22 +205,7 @@ export class EditLicenseBasicSettings implements OnInit { this.updateLicenseBasicSettingsFrm.controls['countryId'].setValue(this.license.CountryId); this.updateLicenseBasicSettingsFrm.controls['zip'].setValue(this.license.Zip); this.updateLicenseBasicSettingsFrm.controls['emailId'].setValue(this.license.EmailId); - //this.updateLicenseBasicSettingsFrm.controls['phone'].setValue(this.license.Phone); - var str = this.license.Phone; - var origPh = this.license.Phone; - str = str.replace(" ", ""); - str = str.replace("-", "").replace("-", ""); - if (str.length >= 10) { - origPh = str.substr(0, 3) + "-" + str.substr(3, 3) + "-" + str.substr(5, 4) - } - else { - this.MinusCharater = 10 - str.length; - this.AddZeroInPhoneNo(this.MinusCharater, str); - origPh = this.ConvertedPhoneno.substr(0, 2) + "-" + this.ConvertedPhoneno.substr(2, 5) + "-" + this.ConvertedPhoneno.substr(5, 9) - - - } - this.updateLicenseBasicSettingsFrm.controls['phone'].setValue(origPh); + this.updateLicenseBasicSettingsFrm.controls['phone'].setValue(this.license.Phone); this._loadingService.HideLoading("global-loading"); }, error => this.error = error); @@ -263,19 +248,5 @@ export class EditLicenseBasicSettings implements OnInit { } } - AddZeroInPhoneNo(num: number, phone: string) { - if (num = 1) { this.ConvertedPhoneno = phone + "0"; } - if (num = 2) { this.ConvertedPhoneno = phone + "00"; } - if (num = 3) { this.ConvertedPhoneno = phone + "000"; } - if (num = 4) { this.ConvertedPhoneno = phone + "0000"; } - if (num = 5) { this.ConvertedPhoneno = phone + "00000"; } - if (num = 6) { this.ConvertedPhoneno = phone + "000000"; } - if (num = 7) { this.ConvertedPhoneno = phone + "0000000"; } - if (num = 8) { this.ConvertedPhoneno = phone + "00000000"; } - if (num = 9) { this.ConvertedPhoneno = phone + "000000000"; } - if (num = 10) { this.ConvertedPhoneno = phone + "0000000000"; } - - - } }