Misc modification, especially however to add AllowOrigin * Header.
This commit is contained in:
109
docs/abc
109
docs/abc
@@ -1 +1,108 @@
|
|||||||
afsdfabceee
|
SELECT DISTINCT
|
||||||
|
UsrMain.Status as "Status",
|
||||||
|
UsrMain.PKey as "PKey",
|
||||||
|
UsrMain.Salutation as "Salutation",
|
||||||
|
UsrMain.BirthDate as "BirthDate",
|
||||||
|
UsrMain.Sex as "Sex",
|
||||||
|
UsrMain.Title as "Title",
|
||||||
|
UsrMain.FirstName as "FirstName",
|
||||||
|
UsrMain.LanguageSpoken as "LanguageSpoken",
|
||||||
|
UsrMain.MaritalStatus as "MaritalStatus",
|
||||||
|
UsrMain.Opening as "Opening",
|
||||||
|
UsrMain.MiddleName as "MiddleName",
|
||||||
|
UsrMain.EmployId as "EmployId",
|
||||||
|
UsrMain.Name as "Name",
|
||||||
|
UsrMain.Initials as "Initials",
|
||||||
|
UsrMain.LoginName as "LoginName",
|
||||||
|
UsrMain.Id as "Id",
|
||||||
|
UsrMain.Active as "Active",
|
||||||
|
UsrMain.DefaultDivision as "DefaultDivision",
|
||||||
|
UsrMain.DefaultDistribChannel as "DefaultDistribChannel",
|
||||||
|
UsrMain.DefaultSalesOrg as "DefaultSalesOrg",
|
||||||
|
UsrMain.SysRegionalOptionsPKey as "SysRegionalOptionsPKey",
|
||||||
|
UsrMain.CssLogicalUnitPKey as "CssLogicalUnitPKey",
|
||||||
|
UsrMain.EtpSalesAreaPKey as "EtpSalesAreaPKey",
|
||||||
|
UsrSales.Status as "UsrSalesStatus",
|
||||||
|
UsrSales.PKey as "UsrSalesPKey",
|
||||||
|
UsrSales.SalesOrg as "SalesOrg",
|
||||||
|
UsrSales.DistribChannel as "DistribChannel",
|
||||||
|
UsrSales.Division as "Division",
|
||||||
|
UsrSales.UsrMainPKey as "UsrMainPKey",
|
||||||
|
UsrSales.EtpSalesAreaPKey as "UsrSalesEtpSalesAreaPKey",
|
||||||
|
UsrSales.BplMainPKey as "BplMainPKey",
|
||||||
|
UsrSales.SysPeriodPKey as "SysPeriodPKey",
|
||||||
|
UsrSales.UsrGroupPKey as "UsrGroupPKey",
|
||||||
|
UsrSales.BplSegmentPKey as "BplSegmentPKey",
|
||||||
|
UsrSales.SdoMetaPKey as "SdoMetaPKey",
|
||||||
|
UsrSales.SdoItemMetaPKey as "SdoItemMetaPKey",
|
||||||
|
UsrSales.ClbMetaPKey as "ClbMetaPKey",
|
||||||
|
UsrSales.BpaMainPKey as "UsrSalesBpaMainPKey",
|
||||||
|
CssLogicalUnit.UserLu as "UserLu",
|
||||||
|
UsrMain.LastName as "LastName",
|
||||||
|
UsrMain.UserAu as "UserAu",
|
||||||
|
CASE WHEN MobileCssLogicalUnit.UserLu is NULL then N' ' ELSE MobileCssLogicalUnit.UserLu END as "MobileUserLu",
|
||||||
|
UsrMeta.UsrType as "MetaUsrType",
|
||||||
|
UsrMain.PwdExpirationDate as "PwdExpirationDate",
|
||||||
|
UsrMain.PwdChangeNextLogin as "PwdChangeNextLogin"
|
||||||
|
FROM
|
||||||
|
USRMAIN UsrMain
|
||||||
|
LEFT OUTER JOIN
|
||||||
|
CSSLOGICALUNIT MobileCssLogicalUnit
|
||||||
|
LEFT OUTER JOIN
|
||||||
|
CSSTEXT MobileCssText ON MobileCssText.ReferencePKey=MobileCssLogicalUnit.PKey
|
||||||
|
AND MobileCssText.Usage='LogicalUnit'
|
||||||
|
AND MobileCssText.Status<>'d'
|
||||||
|
AND MobileCssText.Language=#UserLanguage#
|
||||||
|
AND MobileCssLogicalUnit.Status<>'d'
|
||||||
|
INNER JOIN
|
||||||
|
CSSLUMETA MobileCssLuMeta ON MobileCssLuMeta.PKey=MobileCssLogicalUnit.CssLuMetaPKey
|
||||||
|
AND MobileCssLuMeta.Status<>'d'
|
||||||
|
AND MobileCssLogicalUnit.Status<>'d' ON MobileCssLogicalUnit.PKey=UsrMain.CssLogicalUnitMobilePKey
|
||||||
|
AND MobileCssLogicalUnit.Status<>'d'
|
||||||
|
AND UsrMain.Status<>'d'
|
||||||
|
AND UsrMain.Client=#Client#
|
||||||
|
INNER JOIN
|
||||||
|
USRSALES UsrSales ON UsrMain.PKey=UsrSales.UsrMainPKey
|
||||||
|
AND UsrSales.Status<>'d'
|
||||||
|
AND UsrSales.SalesOrg=#SalesOrg#
|
||||||
|
AND UsrSales.DistribChannel=#DistribChannel#
|
||||||
|
AND UsrSales.Division=#Division#
|
||||||
|
AND UsrSales.Client=#Client#
|
||||||
|
AND UsrMain.Status<>'d'
|
||||||
|
AND UsrMain.Client=#Client#
|
||||||
|
INNER JOIN
|
||||||
|
CSSLOGICALUNIT CssLogicalUnit ON CssLogicalUnit.PKey=UsrMain.CssLogicalUnitPKey
|
||||||
|
AND CssLogicalUnit.Status<>'d'
|
||||||
|
AND UsrMain.Status<>'d'
|
||||||
|
AND UsrMain.Client=#Client#
|
||||||
|
INNER JOIN
|
||||||
|
USRMETA UsrMeta ON UsrMain.UsrMetaPKey=UsrMeta.PKey
|
||||||
|
AND UsrMeta.Status<>'d'
|
||||||
|
AND UsrMeta.Client=#Client#
|
||||||
|
AND UsrMain.Status<>'d'
|
||||||
|
AND UsrMain.Client=#Client#
|
||||||
|
INNER JOIN
|
||||||
|
ETPORGUSRREL EtpOrgUsrRel
|
||||||
|
INNER JOIN
|
||||||
|
ETPORGUSRREL MainOrgUnitEtpOrgUsrRel ON EtpOrgUsrRel.EtpOrgMainPKey=MainOrgUnitEtpOrgUsrRel.EtpOrgMainPKey
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.UsrMainPKey=#UserPKey#
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.ValidFrom<=#today#
|
||||||
|
AND #today#<=MainOrgUnitEtpOrgUsrRel.ValidThru
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.Status<>'d'
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.SalesOrg=#SalesOrg#
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.DistribChannel=#DistribChannel#
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.Division=#Division#
|
||||||
|
AND MainOrgUnitEtpOrgUsrRel.Client=#Client# ON UsrMain.PKey=EtpOrgUsrRel.UsrMainPKey
|
||||||
|
AND EtpOrgUsrRel.Status<>'d'
|
||||||
|
AND EtpOrgUsrRel.SalesOrg=#SalesOrg#
|
||||||
|
AND EtpOrgUsrRel.DistribChannel=#DistribChannel#
|
||||||
|
AND EtpOrgUsrRel.Division=#Division#
|
||||||
|
AND EtpOrgUsrRel.Client=#Client#
|
||||||
|
AND UsrMain.Status<>'d'
|
||||||
|
AND UsrMain.Client=#Client#
|
||||||
|
WHERE
|
||||||
|
UsrMain.Status<>'d'
|
||||||
|
AND UsrMain.Client=#Client#
|
||||||
|
AND UsrMain.Active='1'
|
||||||
|
AND EtpOrgUsrRel.UsrMainPKey<>#UserPKey#
|
||||||
|
AND #cond# #sort#
|
||||||
@@ -29,7 +29,7 @@ add to 10-proxy.conf:
|
|||||||
|
|
||||||
$HTTP["url"] =~ "^/wc/.*$" {
|
$HTTP["url"] =~ "^/wc/.*$" {
|
||||||
proxy.server = ( "" =>
|
proxy.server = ( "" =>
|
||||||
(( "host" => "127.0.0.1", "port" => 8000 ))
|
(( "host" => "127.0.0.1", "port" => 8001 ))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,17 +2,17 @@
|
|||||||
"name": "webclip",
|
"name": "webclip",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Web-Clipboard",
|
"description": "Web-Clipboard",
|
||||||
"main": "EventSource.js",
|
"main": "server.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "docs"
|
"doc": "docs"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
"start": "node server.js"
|
|
||||||
},
|
},
|
||||||
"author": "j.tretter@gmail.com",
|
"author": "j.tretter@gmail.com",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"autosize": "^3.0.20",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"querystring": "^0.2.0"
|
"querystring": "^0.2.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// $Revision: 16 $ -- $Date: 2016-02-08 15:14:12 -0600 (Mon, 08 Feb 2016) $
|
// $Revision: 16 $ -- $Date: 2016-02-08 15:14:12 -0600 (Mon, 08 Feb 2016) $
|
||||||
|
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var sys = require('sys');
|
var sys = require('util');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var moniFilename = 'abc';
|
var moniFilename = 'abc';
|
||||||
var querystring = require('querystring');
|
var querystring = require('querystring');
|
||||||
@@ -31,7 +31,7 @@ http.createServer(function(req, res) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("RCV-HTML");
|
console.log("RCV-HTML");
|
||||||
res.writeHead(200, { 'Content-Type': 'text/html', 'Cache-Control': 'no-cache' });
|
res.writeHead(200, { 'Content-Type': 'text/html', 'Cache-Control': 'no-cache' ,'Access-Control-Allow-Origin': '*' });
|
||||||
arrMatches = req.url.match(new RegExp(/\/(save|raw)\/(.*)$/));
|
arrMatches = req.url.match(new RegExp(/\/(save|raw)\/(.*)$/));
|
||||||
console.log("Matches", arrMatches);
|
console.log("Matches", arrMatches);
|
||||||
if ((arrMatches) && (arrMatches.length === 3)) {
|
if ((arrMatches) && (arrMatches.length === 3)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user