-
+
+
diff --git a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts
index 45ca66b..c70171f 100644
--- a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts
@@ -12,6 +12,7 @@ import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';
import { ContenteditableModelDirective } from '../../shared/contenteditabledirective';
import { NumberOnlyDirective } from '../../shared/numberonlydirective';
import { ConfirmService } from '../../shared/confirm/confirm.service';
+import { LoadingService } from '../../shared/loading.service';
@Component({
templateUrl: './addlicense.component.html'
})
@@ -50,7 +51,7 @@ export class AddLicense implements OnInit {
dateEndInvalid: boolean = false;
dateRenewInvalid: boolean = false;
NumberOfRows:number=0;
- constructor(private licenseService: LicenseService, private globalService: GlobalService,
+ constructor(private _loadingService: LoadingService,private licenseService: LicenseService, private globalService: GlobalService,
private router: Router, private activeRoute: ActivatedRoute,
private fb: FormBuilder, private modalService: BsModalService,private _confirmService: ConfirmService) {
@@ -528,25 +529,29 @@ export class AddLicense implements OnInit {
AfterInsertData(data, template) {
if (data.Status == "false") {
this.alerts = "
License save unsuccessfull.";
- } else {
+ }
+ else
+ {
if(this.insertUpdateLicenseFrm.controls['licenseTypeId'].value==4)
{
this._confirmService.activate("License saved successfully. Mail has been sent", "alertMsg");
}
else{
this._confirmService.activate("License saved successfully.", "alertMsg");
- }
-
+ }
}
+ this._loadingService.HideLoading("global-loading");
}
AfterUpdateData(data, template) {
if (data.Status == "false") {
this.alerts = "
License update unsuccessfull.";
- } else {
- this._confirmService.activate("License updated successfully.", "alertMsg");
-
+ }
+ else
+ {
+ this._confirmService.activate("License updated successfully.", "alertMsg");
}
+ this._loadingService.HideLoading("global-loading");
}
OnLoginBlur() {
@@ -707,8 +712,17 @@ export class AddLicense implements OnInit {
}
else {
this.insertUpdateLicenseFrm.controls['editionLoginArr'].value.forEach(element => {
- if (element.Login > 0) {
- this.editionLoginsText += element.Id.toString() + '-' + element.Login + '|';
+ if (element.Checked > 0) {
+ if(element.Login=='')
+ {
+ //set 0 edition for update license
+ this.editionLoginsText += element.Id.toString() + '-' + 0 + '|';
+ }
+ else
+ {
+ this.editionLoginsText += element.Id.toString() + '-' + element.Login + '|';
+ }
+
}
});
}
@@ -724,7 +738,9 @@ export class AddLicense implements OnInit {
if (response == 'True') {
this.alerts += '
Account number already exists. Enter a different account number.';
}
- if (this.alerts == '') {
+ if (this.alerts == '')
+ {
+ this._loadingService.ShowLoading("global-loading");
return this.licenseService.InsertLicense(obj)
.subscribe(
n => (this.AfterInsertData(n, template)),
@@ -733,13 +749,15 @@ export class AddLicense implements OnInit {
},
error => this.error =
error);
}
- else {
+ else
+ {
if (this.insertUpdateLicenseFrm.controls['renew'].value && this.insertUpdateLicenseFrm.controls['renewDate'].value == undefined) {
this.alerts = 'Renew date is required';
}
if (this.alerts == '') {
- console.log(this.insertUpdateLicenseFrm.controls['subscriptionStartDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['subscriptionEndDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['renewDate'].value);
- console.log(obj.subscriptionStartDate + ', ' + obj.subscriptionEndDate + ', ' + obj.renewDate);
+ //console.log(this.insertUpdateLicenseFrm.controls['subscriptionStartDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['subscriptionEndDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['renewDate'].value);
+ // console.log(obj.subscriptionStartDate + ', ' + obj.subscriptionEndDate + ', ' + obj.renewDate);
+ this._loadingService.ShowLoading("global-loading");
return this.licenseService.UpdateLicense(obj)
.subscribe(
n => (this.AfterUpdateData(n, template)),
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.ts
index da59d65..1430aaa 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.ts
@@ -99,22 +99,22 @@ export class DiscountCodeReport implements OnInit {
width: "100%",
height: this.scrHeight,
colModal: [
- { width: 180, align: 'center' },
+ { width: 200, align: 'center' },
{ width: 230, align: 'center' },
- { width: 150, align: 'Center' },
- { width: 150, align: 'Center' },
+ { width: 250, align: 'Center' },
+ { width: 250, align: 'Center' },
{ width: 350, align: 'Center' },
{ width: 500, align: 'Center' },
- { width: 130, align: 'Center' },
- { width: 120, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 80, align: 'center' },
- { width: 150, align: 'center' },
- { width: 150, align: 'center' },
- { width: 180, align: 'Center' },
+ // { width: 130, align: 'Center' },
+ // { width: 120, align: 'center' },
+ // { width: 280, align: 'Center' },
+ // { width: 180, align: 'center' },
+ // { width: 200, align: 'center' },
+ // { width: 170, align: 'center' },
+ // { width: 80, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
//{ width: 400, align: 'Center' },
//{ width: 150, align: 'center' },
//{ width: 110, align: 'center' },
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/expiringsubscriptionreport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/expiringsubscriptionreport.component.ts
index 2cbe866..7d3086d 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/expiringsubscriptionreport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/expiringsubscriptionreport.component.ts
@@ -116,22 +116,22 @@ export class ExpiringSubscriptionReport implements OnInit, AfterViewChecked {
width: "100%",
height: this.scrHeight,
colModal: [
+ { width: 160, align: 'center' },
{ width: 180, align: 'center' },
- { width: 230, align: 'center' },
{ width: 150, align: 'Center' },
- { width: 150, align: 'Center' },
- { width: 350, align: 'Center' },
- { width: 500, align: 'Center' },
+ { width: 250, align: 'Center' },
+ { width: 160, align: 'Center' },
+ { width: 130, align: 'Center' },
{ width: 130, align: 'Center' },
{ width: 150, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 80, align: 'center' },
- { width: 150, align: 'center' },
+ { width: 160, align: 'Center' },
{ width: 150, align: 'center' },
- { width: 180, align: 'Center' },
+ { width: 160, align: 'center' },
+ // { width: 170, align: 'center' },
+ // { width: 80, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
//{ width: 400, align: 'Center' },
//{ width: 150, align: 'center' },
//{ width: 110, align: 'center' },
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/imageexportreport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/imageexportreport.component.ts
index 5e55c58..e956f80 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/imageexportreport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/imageexportreport.component.ts
@@ -92,14 +92,13 @@ export class ImageExportReport implements OnInit {
width: "100%",
height: this.scrHeight,
colModal: [
- { width: 180, align: 'center' },
- { width: 230, align: 'center' },
+ { width: 250, align: 'center' },
+ { width: 200, align: 'center' },
+ { width: 200, align: 'Center' },
+ { width: 250, align: 'Center' },
+ { width: 200, align: 'Center' },
{ width: 150, align: 'Center' },
- //{ width: 150, align: 'Center' },
- { width: 350, align: 'Center' },
- { width: 300, align: 'Center' },
- { width: 130, align: 'Center' },
- { width: 120, align: 'center' },
+ { width: 200, align: 'center' },
{ width: 150, align: 'center' },
{ width: 180, align: 'center' },
],
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/netadsubscriptionreport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/netadsubscriptionreport.component.ts
index 5dfd335..688bdc4 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/netadsubscriptionreport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/netadsubscriptionreport.component.ts
@@ -101,20 +101,20 @@ export class NetAdSubscriptionReport implements OnInit {
colModal: [
{ width: 180, align: 'center' },
{ width: 230, align: 'center' },
- { width: 150, align: 'Center' },
+ { width: 250, align: 'Center' },
{ width: 150, align: 'Center' },
{ width: 350, align: 'Center' },
{ width: 200, align: 'Center' },
- { width: 200, align: 'Center' },
+ { width: 250, align: 'Center' },
{ width: 120, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 80, align: 'center' },
- { width: 150, align: 'center' },
- { width: 150, align: 'center' },
- { width: 180, align: 'Center' },
+ // { width: 280, align: 'Center' },
+ // { width: 180, align: 'center' },
+ // { width: 200, align: 'center' },
+ // { width: 170, align: 'center' },
+ // { width: 80, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
],
sort: true
});
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/sitelicenseusagereport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/sitelicenseusagereport.component.ts
index bf7c014..9bf0c31 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/sitelicenseusagereport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/sitelicenseusagereport.component.ts
@@ -98,21 +98,21 @@ export class SiteLicenseUsageReport implements OnInit {
height: this.scrHeight,
colModal: [
{ width: 180, align: 'center' },
- { width: 230, align: 'center' },
- { width: 150, align: 'Center' },
+ { width: 250, align: 'center' },
+ { width: 250, align: 'Center' },
{ width: 150, align: 'Center' },
{ width: 350, align: 'Center' },
{ width: 500, align: 'Center' },
{ width: 130, align: 'Center' },
- { width: 120, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 80, align: 'center' },
- { width: 150, align: 'center' },
- { width: 150, align: 'center' },
- { width: 180, align: 'Center' },
+ // { width: 120, align: 'center' },
+ // { width: 280, align: 'Center' },
+ // { width: 180, align: 'center' },
+ // { width: 200, align: 'center' },
+ // { width: 170, align: 'center' },
+ // { width: 80, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
],
sort: true
});
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/subscriptioncancellationreport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/subscriptioncancellationreport.component.ts
index deb4ae5..19de678 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/subscriptioncancellationreport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/subscriptioncancellationreport.component.ts
@@ -108,22 +108,22 @@ export class SubscriptionCancellationReport implements OnInit {
width: "100%",
height: this.scrHeight,
colModal: [
- { width: 180, align: 'center' },
- { width: 230, align: 'center' },
- { width: 150, align: 'Center' },
+ { width: 140, align: 'center' },
+ { width: 170, align: 'center' },
{ width: 150, align: 'Center' },
- { width: 350, align: 'Center' },
- { width: 500, align: 'Center' },
+ { width: 160, align: 'Center' },
{ width: 130, align: 'Center' },
+ { width: 400, align: 'Center' },
+ { width: 100, align: 'Center' },
+ { width: 140, align: 'center' },
+ { width: 100, align: 'Center' },
+ { width: 140, align: 'center' },
{ width: 150, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 80, align: 'center' },
- { width: 150, align: 'center' },
- { width: 150, align: 'center' },
- { width: 180, align: 'Center' },
+ // { width: 170, align: 'center' },
+ // { width: 80, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
//{ width: 400, align: 'Center' },
//{ width: 150, align: 'center' },
//{ width: 110, align: 'center' },
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/subscriptionreport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/subscriptionreport.component.ts
index 240808a..f3edb75 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/subscriptionreport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/subscriptionreport.component.ts
@@ -110,22 +110,22 @@ export class SubscriptionReport implements OnInit {
width: "100%",
height: this.scrHeight,
colModal: [
- { width: 180, align: 'center' },
- { width: 230, align: 'center' },
+ { width: 140, align: 'center' },
+ { width: 170, align: 'center' },
{ width: 150, align: 'Center' },
{ width: 150, align: 'Center' },
- { width: 350, align: 'Center' },
- { width: 500, align: 'Center' },
- { width: 130, align: 'Center' },
- { width: 150, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 80, align: 'center' },
+ { width: 140, align: 'Center' },
+ { width: 400, align: 'Center' },
+ { width: 100, align: 'Center' },
{ width: 150, align: 'center' },
+ { width: 100, align: 'Center' },
+ { width: 140, align: 'center' },
{ width: 150, align: 'center' },
- { width: 180, align: 'Center' },
+ // { width: 170, align: 'center' },
+ // { width: 80, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
//{ width: 400, align: 'Center' },
//{ width: 150, align: 'center' },
//{ width: 110, align: 'center' },
diff --git a/400-SOURCECODE/Admin/src/app/components/Reports/usagereport.component.ts b/400-SOURCECODE/Admin/src/app/components/Reports/usagereport.component.ts
index 97fb0f8..b38afed 100644
--- a/400-SOURCECODE/Admin/src/app/components/Reports/usagereport.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/Reports/usagereport.component.ts
@@ -184,25 +184,25 @@ export class UsageReport implements OnInit, AfterViewChecked {
width: "100%",
height: this.scrHeight,
colModal: [
- { width: 180, align: 'center' },
- { width: 230, align: 'center' },
+ { width: 150, align: 'center' },
+ { width: 150, align: 'center' },
{ width: 150, align: 'Center' },
{ width: 150, align: 'Center' },
- { width: 350, align: 'Center' },
- { width: 500, align: 'Center' },
+ { width: 300, align: 'Center' },
+ { width: 150, align: 'Center' },
{ width: 130, align: 'Center' },
{ width: 120, align: 'center' },
- { width: 280, align: 'Center' },
- { width: 180, align: 'center' },
- { width: 200, align: 'center' },
- { width: 170, align: 'center' },
- { width: 120, align: 'center' },
- { width: 150, align: 'center' },
- { width: 150, align: 'center' },
- { width: 180, align: 'Center' },
- { width: 400, align: 'Center' },
+ { width: 150, align: 'Center' },
+ { width: 140, align: 'center' },
+ { width: 100, align: 'center' },
{ width: 150, align: 'center' },
- { width: 110, align: 'center' },
+ { width: 120, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 150, align: 'center' },
+ // { width: 180, align: 'Center' },
+ // { width: 400, align: 'Center' },
+ // { width: 150, align: 'center' },
+ // { width: 110, align: 'center' },
],
sort: true
});
diff --git a/400-SOURCECODE/Admin/src/app/shared/global.ts b/400-SOURCECODE/Admin/src/app/shared/global.ts
index 5e0effc..7f61192 100644
--- a/400-SOURCECODE/Admin/src/app/shared/global.ts
+++ b/400-SOURCECODE/Admin/src/app/shared/global.ts
@@ -48,7 +48,7 @@ export class GlobalService {
this.NoRecords = 'No Record Found.';
- this.hostURL = "http://192.168.43.9/API/Adminapi/";//Birendra Machine IP
+ this.hostURL = "http://localhost/API/Adminapi/";
this.LiveAPIURL = "http://interactiveanatomy.com/API/Adminapi/";
this.QAAPIURL = "http://qa.beta.interactiveanatomy.com/API/Adminapi/";
this.LocalURL = "http://localhost:4200";
@@ -56,7 +56,7 @@ export class GlobalService {
// get protocol type
this.ProtocolType = window.location.protocol+"//";
- if(window.location.hostname=="localhost")
+ if(window.location.host=="localhost:4200")
{
// for 'ng serve --open' command
//**** for localhost:4200 *****//
@@ -69,8 +69,8 @@ export class GlobalService {
}
- if (this.resourceBaseUrl == this.ProtocolType+"192.168.43.9/API/Adminapi/") {
- if(window.location.hostname=="localhost")
+ if (this.resourceBaseUrl == this.ProtocolType+"localhost/API/Adminapi/") {
+ if(window.location.host=="localhost:4200")
{
// for 'ng serve --open' command
//**** for localhost:4200 *****//