Добавил customer_id в лицензию

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/nodeJSProjects@64631 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
Alexander.Trofimov
2015-09-10 14:34:52 +00:00
parent b5f40b522f
commit ef7a76d578

View File

@ -81,6 +81,7 @@ function LicenseReaderBase() {
this._endDateThreshold = null;
this._customer = '';
this._customer_id = '';
this._customer_addr = '';
this._customer_www = '';
this._customer_mail = '';
@ -112,6 +113,7 @@ LicenseReaderBase.prototype._fillMembersBase = function(xmlDocObj) {
this._endDateThreshold = startElem.hasOwnProperty('enddatethreshold') ? new Date(startElem['enddatethreshold'][0]) : null;
this._customer = startElem.hasOwnProperty('customer') ? startElem['customer'][0] : '';
this._customer_id = startElem.hasOwnProperty('customer_id') ? startElem['customer_id'][0] : '';
this._customer_addr = startElem.hasOwnProperty('customer_addr') ? startElem['customer_addr'][0] : '';
this._customer_www = startElem.hasOwnProperty('customer_www') ? startElem['customer_www'][0] : '';
this._customer_mail = startElem.hasOwnProperty('customer_mail') ? startElem['customer_mail'][0] : '';
@ -174,6 +176,9 @@ LicenseReaderBase.prototype.getId = function() {
LicenseReaderBase.prototype.getCustomer = function() {
return this._customer;
};
LicenseReaderBase.prototype.getCustomerId = function() {
return this._customer_id;
};
LicenseReaderBase.prototype.getCustomerAddr = function() {
return this._customer_addr;
};
@ -319,6 +324,16 @@ ActiveConnectionsLicenseReader.prototype.getCustomer = function() {
return res;
};
ActiveConnectionsLicenseReader.prototype.getCustomerId = function() {
var res = null;
var licenses = this.getLicensesByTime(true);
if (0 < licenses.length) {
res = licenses[0].getCustomerId();
}
return res;
};
ActiveConnectionsLicenseReader.prototype.getCustomerAddr = function() {
var res = null;