demo20230512/Browser_Local/js/Basic.MultiLanguage.Config.js
2023-05-12 10:20:28 +08:00

96 lines
3.1 KiB
JavaScript

/*
Logic Solution
WeeeCarbonFootprint
Basic MultiLanguage
*/
angular.module('Basic.MultiLanguage.Config', [])
.factory('BasicMultiLanguage', function (CONSTANTS) {
var SURVEY_TABLE_MODEL_KeyMapping = {
'LCA': 'StaticLabelGlobal_Interrogation',
'Product': 'StaticLabelGlobal_Product',
'Fab': 'StaticLabelGlobal_Fab',
'Report': 'StaticLabelGlobal_ReportForm',
'Management': 'StaticLabelManagement',
};
var CONSTANTS_KeyMapping = {
'LCAStatus': {
0: 'LCAStatusNew',
1: 'LCAStatusProcessing',
2: 'LCAStatusWaiting',
3: 'LCAStatusRejected',
4: 'LCAStatusConfirmed',
5: 'LCAStatusCompleted'
},
'QuoteMode': {
0: 'StaticLabelDirectReply',
1: 'StaticLabelModifyData'
},
'ReplyMode': {
0: 'StaticLabelActualInventory',
1: 'StaticLabelReferenceInventory',
2: 'StaticLabelDirectReplyWithEvidence'
},
'DQI': {
0: 'MetaDataDQI1',
1: 'MetaDataDQI2',
2: 'MetaDataDQI3'
},
'MaterialType': {
0: 'MaterialDirectMaterial',
1: 'MaterialIndirectMaterial',
2: 'MaterialWrapMaterial'
},
'Type': {
0: 'OfficialCar',
1: 'LeasingAndPrivateCar'
},
'HeaderContent': {
0: 'StaticLabelAddNew',
1: 'StaticLabelAddChild',
2: 'StaticLabelSelectSimapro',
3: 'StaticLabelGlobal_Edit',
4: 'StaticLabelGlobal_Confirm',
5: 'StaticLabelGlobal_Delete',
6: 'StaticLabelGlobal_Cancel',
7: 'StaticLabelImprotBOM',
8: 'StaticLabelExportBOM',
9: 'StaticLabelSelectHighLevelAnalysisItem',
10: 'StaticLabelGlobal_Search',
11: 'StaticLabelCollapseAll',
12: 'StaticLabelFinishHighLevelAnalysis',
13: 'StaticLabelCancelHighLevelAnalysis',
14: 'StaticLabelCompleteLCAAndWaitVerification',
15: 'StaticLabelEndLCAAndGenerateReport',
16: 'StaticLabelReferenceData'
},
'AlertMessage': {
0: 'EXCELFileFormatWrong',
1: 'SelectCSV',
2: 'NotInProccessToSendWait',
3: 'DoubleCheckSendToWait',
4: 'SendToWaitAndWait',
5: 'ResendToWait',
6: 'CantSendAndTryAgain',
7: 'WaitForVerification',
8: 'SurveyDoneAndCreateReport',
9: 'DoubleCheckHighLevelAnalysis',
10: 'PCRNotEnough',
11: 'NoInsertData',
12: 'StartCreateReport',
13: 'IsEditing',
14: 'DoubleCheckEndSurvey',
15: 'DoubleCheckUploadFile',
16: 'UploadFileDone',
17: 'UploadFileFail',
18: 'PleaseFillFirst',
19: 'AllNeedSimapro',
}
}
return {
SURVEY_TABLE_MODEL: SURVEY_TABLE_MODEL_KeyMapping,
CONSTANTS_TABLE_MODEL: CONSTANTS_KeyMapping,
};
})