This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
app = express(); | |
app.use(express.static('www')); | |
// CORS (Cross-Origin Resource Sharing) headers to support Cross-site HTTP requests | |
app.all('*', function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "X-Requested-With"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inbound - Data | |
OutBound - Data | |
Failed | |
data.data.ReturnMessages[0].Message | |
"SALES_HEADER_IN has been processed successfully" | |
data.data.ReturnMessages[1].Message | |
"Material 7696 has status: Material Blocked" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConfigFactory = function (DB,$cordovaSQLite,logFactory,customersFactory){ | |
debugger; | |
var factory = {}; | |
var tableName = "configTable" | |
/*.constant('CONFIG', { | |
'API_URL' : 'http://derstinesfso.azurewebsites.net' | |
});*/ | |
factory.init = function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// on clicking particular customer this function is called - please modify this function customer-controller.js | |
$scope.selectCustomer = function(customer){ | |
debugger; | |
sharedPropertiesService.setSelectedCustomer(customer); | |
$state.go('customerdetails', {customerID: customer.id}); | |
}; | |
//Calling getcustomers factory -- add this factory in --customerdetails-controller.js |