From ef7a76d578440c56c3e805c90e40ae60733a06ae Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Thu, 10 Sep 2015 14:34:52 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20cu?= =?UTF-8?q?stomer=5Fid=20=D0=B2=20=D0=BB=D0=B8=D1=86=D0=B5=D0=BD=D0=B7?= =?UTF-8?q?=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/nodeJSProjects@64631 954022d7-b5bf-4e40-9824-e11837661b57 --- Common/sources/licensereader.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Common/sources/licensereader.js b/Common/sources/licensereader.js index 2424e235..6d53bc1c 100644 --- a/Common/sources/licensereader.js +++ b/Common/sources/licensereader.js @@ -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;