License updated successfully
"; - this._confirmService.activate("License updated successfully.", "alertMsg"); + this._confirmService.activate("License profile updated successfully.", "alertMsg"); // this.modalRef = this.modalService.show(template); } } diff --git a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/license.service.ts b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/license.service.ts index 9eb3b3e..020c9fb 100644 --- a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/license.service.ts +++ b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/license.service.ts @@ -25,7 +25,7 @@ export class LicenseService{ } obj.subscriptionStartDate = this.datePipe.transform(obj.subscriptionStartDate, 'MM/dd/yyyy'); obj.subscriptionEndDate = this.datePipe.transform(obj.subscriptionEndDate, 'MM/dd/yyyy'); - return this.http.get(this.commonService.resourceBaseUrl + "/License/Licenses?accountNumber=" + obj.accountNumber + + return this.http.get(this.commonService.resourceBaseUrl + "License/Licenses?accountNumber=" + obj.accountNumber + "&licenseeFirstName=" + obj.licenseeFirstName + "&licenseeLastName=" + obj.licenseeLastName + "&licenseTypeId=" + obj.licenseTypeId + "&institutionName=" + obj.institutionName + "&stateId=" + obj.stateId + "&countryId=" + obj.countryId + "&emailId=" + obj.emailId + @@ -36,81 +36,81 @@ export class LicenseService{ } GetLicenseById(Id: number){ - return this.http.get(this.commonService.resourceBaseUrl + "/License/GetLicense?LicenseId=" + Id) + return this.http.get(this.commonService.resourceBaseUrl + "License/GetLicense?LicenseId=" + Id) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetLicenceType() { - return this.http.get(this.commonService.resourceBaseUrl + "/License/LicenseTypes") + return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseTypes") .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetAccountType() { - return this.http.get(this.commonService.resourceBaseUrl + "/Account/AccountTypes") + return this.http.get(this.commonService.resourceBaseUrl + "Account/AccountTypes") .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetCountry() { - return this.http.get(this.commonService.resourceBaseUrl + "/Common/Countries") + return this.http.get(this.commonService.resourceBaseUrl + "Common/Countries") .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetState() { - return this.http.get(this.commonService.resourceBaseUrl + "/Common/States") + return this.http.get(this.commonService.resourceBaseUrl + "Common/States") .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetSecurityQuestions() { - return this.http.get(this.commonService.resourceBaseUrl + "/Common/SecurityQuestions") + return this.http.get(this.commonService.resourceBaseUrl + "Common/SecurityQuestions") .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetEditions() { - return this.http.get(this.commonService.resourceBaseUrl + "/Edition/Editions") + return this.http.get(this.commonService.resourceBaseUrl + "Edition/Editions") .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetLicenseAccounts(licenseType: Number) { - return this.http.get(this.commonService.resourceBaseUrl + "/License/LicenseAccounts?LicenseType=" + licenseType) + return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseAccounts?LicenseType=" + licenseType) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetSiteById(siteId: number) { - return this.http.get(this.commonService.resourceBaseUrl + "/Site/SiteDetail?SiteId=" + siteId) + return this.http.get(this.commonService.resourceBaseUrl + "Site/SiteDetail?SiteId=" + siteId) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetSiteAccountEditions(siteId: number, licenseId: number) { - return this.http.get(this.commonService.resourceBaseUrl + "/Site/SiteAccountEditions?SiteId=" + siteId + "&LicenseId=" + licenseId) + return this.http.get(this.commonService.resourceBaseUrl + "Site/SiteAccountEditions?SiteId=" + siteId + "&LicenseId=" + licenseId) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetLicenseSites(accountNo: string, pageNo: number, pageLength: number) { - return this.http.get(this.commonService.resourceBaseUrl + "/License/LicenseSites?AccountNo=" + accountNo + "&pageNo=" + pageNo + "&pageLength=" + pageLength) + return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseSites?AccountNo=" + accountNo + "&pageNo=" + pageNo + "&pageLength=" + pageLength) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetLicenseModestySettings(licenseId: number, buildingLevelId: number) { - return this.http.get(this.commonService.resourceBaseUrl + "/License/LicenseModestySettings?LicenseId=" + licenseId + "&BuildingLevelId=" + buildingLevelId) + return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseModestySettings?LicenseId=" + licenseId + "&BuildingLevelId=" + buildingLevelId) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } GetLicenseModulesStatus(licenseId: number) { - return this.http.get(this.commonService.resourceBaseUrl + "/License/LicenseModulesStatus?LicenseId=" + licenseId) + return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseModulesStatus?LicenseId=" + licenseId) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } @@ -154,7 +154,7 @@ export class LicenseService{ var headers = new Headers({ 'Content-Type': 'application/json' }); - return this.http.post(this.commonService.resourceBaseUrl + "/License/InsertLicense", + return this.http.post(this.commonService.resourceBaseUrl + "License/InsertLicense", JSON.stringify(jsonData), {headers: headers}) .map(this.extractData) .catch((res: Response) => this.handleError(res)); @@ -204,7 +204,7 @@ export class LicenseService{ var headers = new Headers({ 'Content-Type': 'application/json' }); - return this.http.post(this.commonService.resourceBaseUrl + "/License/UpdateLicense", + return this.http.post(this.commonService.resourceBaseUrl + "License/UpdateLicense", JSON.stringify(jsonData), {headers: headers}) .map(this.extractData) .catch((res: Response) => this.handleError(res)); @@ -230,7 +230,7 @@ export class LicenseService{ var headers = new Headers({ 'Content-Type': 'application/json' }); - return this.http.post(this.commonService.resourceBaseUrl + "/License/UpdateLicenseBasicSettings", + return this.http.post(this.commonService.resourceBaseUrl + "License/UpdateLicenseBasicSettings", JSON.stringify(jsonData), {headers: headers}) .map(this.extractData) .catch((res: Response) => this.handleError(res)); @@ -252,7 +252,7 @@ export class LicenseService{ var headers = new Headers({ 'Content-Type': 'application/json' }); - return this.http.post(this.commonService.resourceBaseUrl + "/License/UpdateLicenseModestySettings", + return this.http.post(this.commonService.resourceBaseUrl + "License/UpdateLicenseModestySettings", JSON.stringify(jsonData), {headers: headers}) .map(this.extractData) .catch((res: Response) => this.handleError(res)); @@ -274,14 +274,14 @@ export class LicenseService{ var headers = new Headers({ 'Content-Type': 'application/json' }); - return this.http.post(this.commonService.resourceBaseUrl + "/License/UpdateLicenseModulesStatus", + return this.http.post(this.commonService.resourceBaseUrl + "License/UpdateLicenseModulesStatus", JSON.stringify(jsonData), {headers: headers}) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } DeleteLicense(obj: any) { - return this.http.get(this.commonService.resourceBaseUrl + "/License/DeleteLicense?LicenseId=" + obj.LicenseId) + return this.http.get(this.commonService.resourceBaseUrl + "License/DeleteLicense?LicenseId=" + obj.LicenseId) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } @@ -330,14 +330,14 @@ export class LicenseService{ var headers = new Headers({ 'Content-Type': 'application/json' }); - return this.http.post(this.commonService.resourceBaseUrl + "/Site/InsertUpdateSiteAccount", + return this.http.post(this.commonService.resourceBaseUrl + "Site/InsertUpdateSiteAccount", JSON.stringify(jsonData), {headers: headers}) .map(this.extractData) .catch((res: Response) => this.handleError(res)); } DeleteSiteAccount(obj: any) { - return this.http.get(this.commonService.resourceBaseUrl + "/Site/DeleteSiteAccount?SiteId=" + + return this.http.get(this.commonService.resourceBaseUrl + "Site/DeleteSiteAccount?SiteId=" + obj.Id + "&LicenseId=" + obj.LicenseId + "&UserId=" + obj.SiteUserId) .map(this.extractData) .catch((res: Response) => this.handleError(res)); diff --git a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodestysettings.component.ts b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodestysettings.component.ts index 98c7ed7..71d3284 100644 --- a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodestysettings.component.ts +++ b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodestysettings.component.ts @@ -64,9 +64,9 @@ export class LicenseModestySettings implements OnInit { this.GetLicenseEditionModesty(); } else{ - this.licenseService.GetLicenseSites(this.license.AccountNumber,1,1) + this.licenseService.GetLicenseSites(this.license.AccountNumber, 1, 1) .subscribe(st => { - this.lstLicenseSites = st; + this.lstLicenseSites = st.LicenseSiteList; if(this.lstLicenseSites.length == 0){ this.modalMessage = 'Account is not a building level account.'; this.openModal(template); diff --git a/400-SOURCECODE/Admin/src/app/components/ManageDiscountCode/managediscountcode.service.ts b/400-SOURCECODE/Admin/src/app/components/ManageDiscountCode/managediscountcode.service.ts index 33dad52..32178ad 100644 --- a/400-SOURCECODE/Admin/src/app/components/ManageDiscountCode/managediscountcode.service.ts +++ b/400-SOURCECODE/Admin/src/app/components/ManageDiscountCode/managediscountcode.service.ts @@ -11,7 +11,7 @@ import { GlobalService } from '../../Shared/global'; @Injectable() export class ManageDiscountCodeService { - constructor(private http: Http, private commonService: GlobalService ) { } + constructor(private http: Http, private commonService:GlobalService ) { } GetDiscountCodes(obj: any) { if (obj.startDate == '' || obj.startDate == null) { diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.html b/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.html index c0a8e22..9780d41 100644 --- a/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.html +++ b/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.html @@ -84,7 +84,7 @@