lib/manufacturing_info_operations.js
function createReadManufacturingInfoBundle() {
		debugRMIOps('in createReadManufacturingInfoBundle');
		
		// Initialize the bundle object with some basic data.
		var bundle = {
			'info': {},
			'infoString': '',
			'manufacturingData': manufacturingData,
			'isError': false,
			'errorStep': '',
			'error': undefined,
			'errorCode': 0,
		};

		// Initialize the manufacturing info object with dummy data.
		manufacturingData.forEach(function(manData) {
			if(manData.type === 'str') {
				bundle.info[manData.key] = '';
			} else if(manData.type === 'fl4') {
				bundle.info[manData.key] = 0.000;
			} else if(manData.type === 'int') {
				bundle.info[manData.key] = 0;
			} else {
				bundle.info[manData.key] = '';
			}
		});
		return bundle;
	}
function createReadManufacturingInfoBundle() {
		debugRMIOps('in createReadManufacturingInfoBundle');
		
		// Initialize the bundle object with some basic data.
		var bundle = {
			'info': {},
			'infoString': '',
			'manufacturingData': manufacturingData,
			'isError': false,
			'errorStep': '',
			'error': undefined,
			'errorCode': 0,
		};

		// Initialize the manufacturing info object with dummy data.
		manufacturingData.forEach(function(manData) {
			if(manData.type === 'str') {
				bundle.info[manData.key] = '';
			} else if(manData.type === 'fl4') {
				bundle.info[manData.key] = 0.000;
			} else if(manData.type === 'int') {
				bundle.info[manData.key] = 0;
			} else {
				bundle.info[manData.key] = '';
			}
		});
		return bundle;
	}
function createReadManufacturingInfoBundle ( ) { debugRMIOps ( 'in createReadManufacturingInfoBundle' ) ; // Initialize the bundle object with some basic data. var bundle = { 'info' : { } , 'infoString' : '' , 'manufacturingData' : manufacturingData , 'isError' : false , 'errorStep' : '' , 'error' : undefined , 'errorCode' : 0 , } ; // Initialize the manufacturing info object with dummy data. manufacturingData . forEach ( function ( manData ) { if ( manData . type === 'str' ) { bundle . info [ manData . key ] = '' ; } else if ( manData . type === 'fl4' ) { bundle . info [ manData . key ] = 0.000 ; } else if ( manData . type === 'int' ) { bundle . info [ manData . key ] = 0 ; } else { bundle . info [ manData . key ] = '' ; } } ) ; return bundle ; }
Define a function that is used to initialize the data object built up during the process of reading the manufacturing data from a T7.
Define a function that is used to initialize the data object built up during the process of reading the manufacturing data from a T7 .