Commit 478bfc404834ae5ceff1bf778ececd3decfebeed

Authored by Birendra Kumar
1 parent 83095eaa

uncomment insert/update license

400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts
... ... @@ -680,10 +680,10 @@ export class AddLicense implements OnInit {
680 680 this.alerts += '<span>Account number already exists. Enter a different account number.</span>';
681 681 }
682 682 if (this.alerts == '') {
683   - // return this.licenseService.InsertLicense(obj)
684   - // .subscribe(
685   - // n => (this.AfterInsertData(n, template)),
686   - // error => this.error = <any>error);
  683 + return this.licenseService.InsertLicense(obj)
  684 + .subscribe(
  685 + n => (this.AfterInsertData(n, template)),
  686 + error => this.error = <any>error);
687 687 }
688 688 },
689 689 error => this.error = <any>error);
... ... @@ -695,10 +695,10 @@ export class AddLicense implements OnInit {
695 695 if (this.alerts == '') {
696 696 console.log(this.insertUpdateLicenseFrm.controls['subscriptionStartDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['subscriptionEndDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['renewDate'].value);
697 697 console.log(obj.subscriptionStartDate + ', ' + obj.subscriptionEndDate + ', ' + obj.renewDate);
698   - // return this.licenseService.UpdateLicense(obj)
699   - // .subscribe(
700   - // n => (this.AfterUpdateData(n, template)),
701   - // error => this.error = <any>error);
  698 + return this.licenseService.UpdateLicense(obj)
  699 + .subscribe(
  700 + n => (this.AfterUpdateData(n, template)),
  701 + error => this.error = <any>error);
702 702 }
703 703 }
704 704 }
... ...