diff --git a/.github/workflows/push_trigger.yml b/.github/workflows/push_trigger.yml index f5806577..a8e5a4ff 100644 --- a/.github/workflows/push_trigger.yml +++ b/.github/workflows/push_trigger.yml @@ -8,6 +8,7 @@ on: - 1.0.* - develop - 1.1.* + - MOSIP-27671 jobs: build-kernel-ref-idobjectvalidator: diff --git a/admin-ui/src/app/core/services/data-storage.service.ts b/admin-ui/src/app/core/services/data-storage.service.ts index 2122de1a..7bd4d998 100644 --- a/admin-ui/src/app/core/services/data-storage.service.ts +++ b/admin-ui/src/app/core/services/data-storage.service.ts @@ -171,4 +171,8 @@ export class DataStorageService { getCreateUpdateSteps(entity: string) { return this.http.get(`./assets/create-update-steps/${entity}-steps.json`); } + + getI18NLanguageFiles(langCode:string){ + return this.http.get(`./assets/i18n/${langCode}.json`); + } } diff --git a/admin-ui/src/app/core/services/header.service.ts b/admin-ui/src/app/core/services/header.service.ts index 0b490706..a0661324 100644 --- a/admin-ui/src/app/core/services/header.service.ts +++ b/admin-ui/src/app/core/services/header.service.ts @@ -8,6 +8,7 @@ export class HeaderService { private Username = ''; private roles = ''; private zone = ''; + private userPreferredLanguage = ''; constructor() { } @@ -40,6 +41,18 @@ export class HeaderService { getZone(): string { return this.zone; } + + setUserPreferredLanguage(userPreferredLanguage: string) { + this.userPreferredLanguage = userPreferredLanguage; + } + + getUserPreferredLanguage(): string { + if(this.userPreferredLanguage){ + return this.userPreferredLanguage; + }else{ + return "eng"; + } + } } diff --git a/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.html b/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.html index 8c17ec2c..cef994c8 100644 --- a/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.html +++ b/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.html @@ -1,5 +1,5 @@
-
+
@@ -7,19 +7,92 @@ img
-

Packet Upload

+

{{'packet-upload.header' | translate}}

-
+
- +
+ + {{'packet-upload.createView.center' | translate}} + + + {{ data.fieldValue }} ({{data.fieldCode}}) + + + + {{'genericerror.fieldValidation' | translate}} + + + + + + {{'packet-upload.createView.sourceLabel' | translate}} + + + {{ data.label }} + + + + {{'genericerror.fieldValidation' | translate}} + + + + + {{'packet-upload.createView.processLabel' | translate}} + + + {{ data.label }} + + + + {{'genericerror.fieldValidation' | translate}} + + + + + {{'packet-upload.createView.supervisorStatusLabel' | translate}} + + + {{ data.label }} + + + + {{'genericerror.fieldValidation' | translate}} + + +
- - - + + + + + + {{'genericerror.fieldValidation' | translate}} +
@@ -29,13 +102,13 @@

Packet Upload

mat-raised-button (click)="submit()" > - UPLOAD + {{'packet-upload.createView.upload-btn' | translate}}
-
+
\ No newline at end of file diff --git a/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.spec.ts b/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.spec.ts index 6413b6ac..1dc779a4 100644 --- a/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.spec.ts +++ b/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.spec.ts @@ -22,4 +22,4 @@ describe('CreateComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); -}); +}); \ No newline at end of file diff --git a/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.ts b/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.ts index 5c4a2539..28f35dd4 100644 --- a/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.ts +++ b/admin-ui/src/app/features/bulkupload/packetdataupload/create/create.component.ts @@ -5,6 +5,12 @@ import { Location } from '@angular/common'; import { Router, NavigationEnd } from '@angular/router'; import { BulkuploadService } from 'src/app/core/services/bulkupload.service'; import { DialogComponent } from 'src/app/shared/dialog/dialog.component'; +import { FilterValuesModel } from 'src/app/core/models/filter-values.model'; +import { FilterRequest } from 'src/app/core/models/filter-request.model'; +import { RequestModel } from 'src/app/core/models/request.model'; +import { HeaderService } from 'src/app/core/services/header.service'; +import { DataStorageService } from 'src/app/core/services/data-storage.service'; +import { TranslateService } from '@ngx-translate/core'; @Component({ selector: 'app-create', @@ -15,44 +21,97 @@ import { DialogComponent } from 'src/app/shared/dialog/dialog.component'; export class CreateComponent { uploadForm: FormGroup; - dropDownValues = ["Insert","Update", "Delete"]; - tableNames = [{ id:"applicant_valid_document", value:"ApplicantValidDocument"}, { id:"appl_form_type", value:"Application"}, { id:"biometric_attribute", value:"BiometricAttribute"}, { id:"biometric_type", value:"BiometricType"}, { id:"blacklisted_words", value:"BlacklistedWords"}, { id:"daysofweek_list", value:"DaysOfWeek"}, { id:"device_master", value:"Device"}, { id:"device_master_h", value:"DeviceHistory"}, { id:"device_provider_h", value:"DeviceProviderHistory"}, { id:"registered_device_master", value:"DeviceRegister"}, { id:"registered_device_master_h", value:"DeviceRegisterHistory"}, { id:"device_spec", value:"DeviceSpecification"}, { id:"device_type", value:"DeviceType"}, { id:"doc_category", value:"DocumentCategory"}, { id:"doc_type", value:"DocumentType"}, { id:"dynamic_field", value:"DynamicField"}, { id:"reg_exceptional_holiday", value:"ExceptionalHoliday"}, { id:"foundational_trust_provider", value:"FoundationalTrustProvider"}, { id:"foundational_trust_provider_h", value:"FoundationalTrustProviderHistory"}, { id:"gender", value:"Gender"}, { id:"loc_holiday", value:"Holiday"}, { id:"identity_schema", value:"IdentitySchema"}, { id:"id_type", value:"IdType"}, { id:"individual_type", value:"IndividualType"}, { id:"language", value:"Language"}, { id:"location", value:"Location"}, { id:"loc_hierarchy_list", value:"LocationHierarchy"}, { id:"machine_master", value:"Machine"}, { id:"machine_master_h", value:"MachineHistory"}, { id:"machine_spec", value:"MachineSpecification"}, { id:"machine_type", value:"MachineType"}, { id:"module_detail", value:"ModuleDetail"}, { id:"mosip_device_service", value:"MOSIPDeviceService"}, { id:"mosip_device_service_h", value:"MOSIPDeviceServiceHistory"}, { id:"reason_category", value:"ReasonCategory"}, { id:"reason_list", value:"ReasonList"}, { id:"reg_exceptional_holiday", value:"RegExceptionalHoliday"}, { id:"registered_device_master", value:"RegisteredDevice"}, { id:"registered_device_master_h", value:"RegisteredDeviceHistory"}, { id:"registration_center", value:"RegistrationCenter"}, { id:"reg_center_device", value:"RegistrationCenterDevice"}, { id:"reg_center_device_h", value:"RegistrationCenterDeviceHistory"}, { id:"registration_center_h", value:"RegistrationCenterHistory"}, { id:"reg_center_machine", value:"RegistrationCenterMachine"}, { id:"reg_center_machine_device", value:"RegistrationCenterMachineDevice"}, { id:"reg_center_machine_device_h", value:"RegistrationCenterMachineDeviceHistory"}, { id:"reg_center_machine_h", value:"RegistrationCenterMachineHistory"}, { id:"reg_center_type", value:"RegistrationCenterType"}, { id:"reg_center_user", value:"RegistrationCenterUser"}, { id:"reg_center_user_h", value:"RegistrationCenterUserHistory"}, { id:"reg_center_user_machine", value:"RegistrationCenterUserMachine"}, { id:"reg_center_user_machine_h", value:"RegistrationCenterUserMachineHistory"}, { id:"reg_device_sub_type", value:"RegistrationDeviceSubType"}, { id:"reg_device_type", value:"RegistrationDeviceType"}, { id:"reg_working_nonworking", value:"RegWorkingNonWorking"}, { id:"schema_def", value:"SchemaDefinition"}, { id:"template", value:"Template"}, { id:"template_file_format", value:"TemplateFileFormat"}, { id:"template_type", value:"TemplateType"}, { id:"title", value:"Title"}, { id:"user_detail", value:"UserDetails"}, { id:"user_detail_h", value:"UserDetailsHistory"}, { id:"valid_document", value:"ValidDocument"}, { id:"zone", value:"Zone"}, { id:"zone_user", value:"ZoneUser"}]; - subscribed : any; - fileName = ""; + dropDownValues = ['Insert', 'Update', 'Delete']; + primaryLangCode; + // tslint:disable-next-line:max-line-length + tableNames = [{ id: 'applicant_valid_document', value: 'ApplicantValidDocument'}, { id: 'appl_form_type', value: 'Application'}, { id: 'biometric_attribute', value: 'BiometricAttribute'}, { id: 'biometric_type', value: 'BiometricType'}, { id: 'blacklisted_words', value: 'BlacklistedWords'}, { id: 'daysofweek_list', value: 'DaysOfWeek'}, { id: 'device_master', value: 'Device'}, { id: 'registered_device_master', value: 'DeviceRegister'}, { id: 'device_spec', value: 'DeviceSpecification'}, { id: 'device_type', value: 'DeviceType'}, { id: 'doc_category', value: 'DocumentCategory'}, { id: 'doc_type', value: 'DocumentType'}, { id: 'dynamic_field', value: 'DynamicField'}, { id: 'reg_exceptional_holiday', value: 'ExceptionalHoliday'}, { id: 'foundational_trust_provider', value: 'FoundationalTrustProvider'}, { id: 'gender', value: 'Gender'}, { id: 'loc_holiday', value: 'Holiday'}, { id: 'identity_schema', value: 'IdentitySchema'}, { id: 'id_type', value: 'IdType'}, { id: 'individual_type', value: 'IndividualType'}, { id: 'language', value: 'Language'}, { id: 'location', value: 'Location'}, { id: 'loc_hierarchy_list', value: 'LocationHierarchy'}, { id: 'machine_master', value: 'Machine'}, { id: 'machine_spec', value: 'MachineSpecification'}, { id: 'machine_type', value: 'MachineType'}, { id: 'module_detail', value: 'ModuleDetail'}, { id: 'mosip_device_service', value: 'MOSIPDeviceService'}, { id: 'reason_category', value: 'ReasonCategory'}, { id: 'reason_list', value: 'ReasonList'}, { id: 'reg_exceptional_holiday', value: 'RegExceptionalHoliday'}, { id: 'registered_device_master', value: 'RegisteredDevice'}, { id: 'registration_center', value: 'RegistrationCenter'}, { id: 'reg_center_device', value: 'RegistrationCenterDevice'}, { id: 'reg_center_machine', value: 'RegistrationCenterMachine'}, { id: 'reg_center_machine_device', value: 'RegistrationCenterMachineDevice'}, { id: 'reg_center_type', value: 'RegistrationCenterType'}, { id: 'reg_center_user', value: 'RegistrationCenterUser'}, { id: 'reg_center_user_machine', value: 'RegistrationCenterUserMachine'}, { id: 'reg_device_sub_type', value: 'RegistrationDeviceSubType'}, { id: 'reg_device_type', value: 'RegistrationDeviceType'}, { id: 'reg_working_nonworking', value: 'RegWorkingNonWorking'}, { id: 'schema_def', value: 'SchemaDefinition'}, { id: 'template', value: 'Template'}, { id: 'template_file_format', value: 'TemplateFileFormat'}, { id: 'template_type', value: 'TemplateType'}, { id: 'title', value: 'Title'}, { id: 'user_detail', value: 'UserDetails'}, { id: 'valid_document', value: 'ValidDocument'}, { id: 'zone', value: 'Zone'}, { id: 'zone_user', value: 'ZoneUser'}]; + subscribed: any; + fileName = ''; fileCount = 0; + popUpMessages; + fileNameError:boolean = false; + buttonalignment = 'ltr'; + serverError:any; + dynamicDropDown = {}; constructor( - private bulkuploadService: BulkuploadService, - private location: Location, - private formBuilder: FormBuilder, - private router: Router, - private dialog: MatDialog, + private bulkuploadService: BulkuploadService, + private location: Location, + private formBuilder: FormBuilder, + private router: Router, + private dialog: MatDialog, + private headerService: HeaderService, + private translateService: TranslateService, + private dataService: DataStorageService ) { this.subscribed = router.events.subscribe(event => { if (event instanceof NavigationEnd) { this.initializeComponent(); } }); + this.primaryLangCode = this.headerService.getUserPreferredLanguage(); + this.translateService.use(this.headerService.getUserPreferredLanguage()); } initializeComponent() { this.initializeForm(); + if(this.primaryLangCode === "ara"){ + this.buttonalignment = 'rtl'; + } + this.dataService + .getI18NLanguageFiles(this.primaryLangCode) + .subscribe((response) => { + this.popUpMessages = response['packet-upload']['createView']['popupMessaages']; + this.serverError = response['serverError']; + this.dynamicDropDown['source'] = response['packet-upload']['createView']['source']; + this.dynamicDropDown['process'] = response['packet-upload']['createView']['process']; + this.dynamicDropDown['supervisorStatus'] = response['packet-upload']['createView']['supervisorStatus']; + }); } initializeForm() { this.uploadForm = this.formBuilder.group({ category : ['packet'], - files: [''], - operation: ['', [Validators.required]], - tableName: ['', [Validators.required]], + centerId: [''], + source: [''], + process: [''], + supervisorStatus: [''], + files: ['', [Validators.required]], + fileName: ['', [Validators.required]] }); + this.getCenterDetails(); } + getCenterDetails() { + const filterObject = new FilterValuesModel('name', 'unique', ''); + let optinalFilterObject = [{"columnName":"isActive","type":"equals","value":"true"}]; + let filterRequest = new FilterRequest([filterObject], this.primaryLangCode, optinalFilterObject); + let request = new RequestModel('', null, filterRequest); + this.dataService + .getFiltersForAllMaterDataTypes('registrationcenters', request) + .subscribe(response => { + if(!response.errors){ + this.dynamicDropDown["centerList"] = response.response.filters; + }else{ + this.dynamicDropDown["centerList"] = []; + } + }); + } + onFileSelect(event) { if (event.target.files.length > 0) { - let files = [].slice.call(event.target.files); + const files = [].slice.call(event.target.files); this.uploadForm.get('files').setValue(files); - this.fileName = files.map(f => f.name).join(', ');; + this.fileName = files.map(f => f.name).join(', '); + this.uploadForm.get('fileName').setValue(this.fileName); this.fileCount = event.target.files.length; + document.getElementById("fileName").classList.remove('addredborder'); + this.fileNameError = false; + } + } + + captureDropDownValue(event: any, formControlName: string) { + if (event.source.selected) { + this.uploadForm.get(formControlName).setValue(event.source.value); } } @@ -62,73 +121,112 @@ export class CreateComponent { this.fileCount = 0; } - submit(){ - let data = {}; - data = { - case: 'CONFIRMATION', - title: "Confirm Packet Upload", - message: this.fileCount +" Packet will be processed.\n Please ensure that all information is correct.\n\n\n Transaction will start once you click on confirm.", - yesBtnTxt: "CONFIRM", - noBtnTxt: "CANCEL" - }; - const dialogRef = this.dialog.open(DialogComponent, { - width: '450px', - data - }); - dialogRef.afterClosed().subscribe(response => { - if(response){ - this.saveData(); - } - }); + submit() { + if (this.uploadForm.valid) { + let data = {}; + data = { + case: 'CONFIRMATION', + title: this.popUpMessages.popup1.uploadConfirm, + message: this.fileCount + this.popUpMessages.popup1.message, + yesBtnTxt: this.popUpMessages.popup1.confirmBtnTxt, + noBtnTxt: this.popUpMessages.popup1.cancelBtnTxt + }; + const dialogRef = this.dialog.open(DialogComponent, { + width: '650px', + data + }); + dialogRef.afterClosed().subscribe(response => { + if (response) { + this.saveData(); + } + }); + } else { + for (const i in this.uploadForm.controls) { + if (this.uploadForm.controls[i]) { + if(i === "fileName"){ + document.getElementById("fileName").classList.add('addredborder'); + this.fileNameError = true; + }else{ + this.uploadForm.controls[i].markAsTouched(); + } + + } + } + } } - saveData(){ - let self = this; + saveData() { + const self = this; const formData = new FormData(); - for(var i = 0; i < this.fileCount; i++){ - formData.append("files", self.uploadForm.get('files').value[i]); + for (let i = 0; i < this.fileCount; i++) { + formData.append('files', self.uploadForm.get('files').value[i]); } - + formData.append('category', self.uploadForm.get('category').value); - formData.append('operation', ""); - formData.append('tableName', ""); + formData.append('centerId', self.uploadForm.get('centerId').value); + formData.append('source', self.uploadForm.get('source').value); + formData.append('process', self.uploadForm.get('process').value); + formData.append('supervisorStatus', self.uploadForm.get('supervisorStatus').value); + formData.append('operation', ''); + formData.append('tableName', ''); self.bulkuploadService.uploadData(formData).subscribe(uploadResponse => { self.showMessage(uploadResponse); - }); + }); } - showMessage(uploadResponse){ + showMessage(uploadResponse) { let data = {}; - let self = this; - let statusDescription : any = JSON.parse(JSON.stringify(uploadResponse.response.statusDescription)); - if(uploadResponse.response.status == "FAILED"){ - for( let prop in statusDescription ){ - console.log( statusDescription[prop] ); + const self = this; + if(uploadResponse.errors.length == 0){ + const statusDescription: any = JSON.parse(JSON.stringify(uploadResponse.response.statusDescription)); + if (uploadResponse.response.status === 'FAILED') { + // tslint:disable-next-line:forin + for ( const prop in statusDescription ) { + console.log( statusDescription[prop] ); + } + data = { + case: 'MESSAGE', + title: this.popUpMessages.popup2.title, + message: uploadResponse.response.statusDescription, + btnTxt: this.popUpMessages.popup2.btnTxt, + }; + } else { + data = { + case: 'MESSAGE', + title: this.popUpMessages.popup3.title, + message: this.popUpMessages.popup3.message + uploadResponse.response.transcationId, + btnTxt: this.popUpMessages.popup3.btnTxt, + }; } - data = { - case: 'MESSAGE', - title: "Failure !", - message: uploadResponse.response.statusDescription, - btnTxt: "DONE" - }; }else{ + let message = ""; + if(uploadResponse.errors[0].errorCode === "KER-MSD-999"){ + uploadResponse.errors.forEach((element) => { + message = message + element.message.toString() +"\n\n"; + }); + message = this.serverError[uploadResponse.errors[0].errorCode] +"\n\n"+ message; + }else{ + message = this.serverError[uploadResponse.errors[0].errorCode]; + } data = { case: 'MESSAGE', - title: "Success", - message: "Your file has been uploaded successfully. \n Data upload is currently in progress.\n\n\n Transaction ID : "+uploadResponse.response.transcationId, - btnTxt: "DONE" + title: this.popUpMessages.popup2.title, + message: message, + btnTxt: this.popUpMessages.popup2.btnTxt }; } - + const dialogRef = self.dialog.open(DialogComponent, { width: '550px', data }); - dialogRef.afterClosed().subscribe(response => { - if(uploadResponse.response.status == "FAILED"){ - }else{ + dialogRef.afterClosed().subscribe(response => { + if(uploadResponse.errors.length>0){ + self.uploadForm.get('fileName').setValue(''); + document.getElementById("fileName").focus(); + } else { self.location.back(); - } + } }); } cancel() { diff --git a/admin-ui/src/assets/config.json b/admin-ui/src/assets/config.json index c0d209df..7b008952 100644 --- a/admin-ui/src/assets/config.json +++ b/admin-ui/src/assets/config.json @@ -1,7 +1,7 @@ { "primaryLangCode": "eng", "secondaryLangCode": "ara", - "baseUrl": "https://dev.mosip.net/v1/", + "baseUrl": "https://qa3.mosip.net/v1/", "adminUrl":"/admin-ui/", "validateToken": "authmanager/authorize/admin/validateToken", "login": "admin/login/", diff --git a/admin-ui/src/assets/i18n/ara.json b/admin-ui/src/assets/i18n/ara.json index df3a85bd..7e4a518c 100644 --- a/admin-ui/src/assets/i18n/ara.json +++ b/admin-ui/src/assets/i18n/ara.json @@ -296,6 +296,51 @@ "statuscheckFailed":" فشل", "statuscheckCompleted":"منجز" }, + "packet-upload":{ + "header":"تحميل الحزمة", + "singleView":{ + "detailed-view-txt":"عرض تفصيلي", + "status-txt":"حالة", + "uploadedBy-txt": "تم الرفع بواسطة", + "count-txt":"عدد", + "dataAndTime-txt" : "التاريخ و الوقت", + "failureDescription-txt":"فشل الوصف", + "placeHolder1-txt":"اسم الطاولة", + "placeHolder2-txt":"عمليات" + }, + "createView":{ + "input-btn-text":"اختر ملف", + "input-text1":"رفع ملف...", + "input-text2":"ارفع ملفك", + "upload-btn":"تحميل", + "cancel-btn":"إلغاء", + "center": "مركز", + "sourceLabel": "مصدر", + "processLabel": "معالجة", + "supervisorStatusLabel": "حالة المشرف", + "popupMessaages":{ + "popup1":{ + "uploadConfirm":"تأكيد تحميل الحزمة", + "message":"ستتم معالجة الحزمة. \n الرجاء التأكد من صحة جميع المعلومات. \n \n \n ستبدأ المعاملة بمجرد النقر فوق تأكيد", + "confirmBtnTxt":"تؤكد", + "cancelBtnTxt":"يلغي" + }, + "popup2":{ + "title":"بالفشل ", + "btnTxt":"انتهى" + }, + "popup3":{ + "title":"نجاح", + "message" :"تم تحميل ملفك بنجاح. \n تحميل البيانات قيد التقدم حاليًا. \n \n \n معرّف المعاملة:", + "btnTxt":"انتهى" + } + + }, + "source":[{"label":"عميل التسجيل","value":"REGISTRATION_CLIENT"}], + "process":[{"label":"جديد","value":"NEW"},{"label":"تحديث UIN","value":"UPDATE"},{"label":"ضائع","value":"LOST"},{"label":"تصحيح القياسات الحيوية","value":"BIOMETRIC_CORRECTION"}], + "supervisorStatus":[{"label":"وافق","value":"APPROVED"},{"label":"مرفوض","value":"REJECTED"}] + } + }, "actionMessages" : { "decommission": { "success-message": ["مركز التسجيل ", " تم إيقاف التشغيل بنجاح"], diff --git a/admin-ui/src/assets/i18n/eng.json b/admin-ui/src/assets/i18n/eng.json index 98601220..11fda386 100644 --- a/admin-ui/src/assets/i18n/eng.json +++ b/admin-ui/src/assets/i18n/eng.json @@ -465,6 +465,87 @@ "statuscheckCompleted":"Completed" }, + "download-card": { + "header": "Download Card", + "text": "Please enter a Registration ID to download the digital card", + "error": "Invalid Registration ID Entered", + "id": "Registration ID", + "dob": "Date of Birth", + "verifyanddownload": "I have verified the face.", + "reject": "The face does not match.", + "submit": "Reject", + "download": "Download", + "searchLimit": "You are left with", + "outof": "searches out of", + "dailylimit": "from your daily limit", + "verify": "Can you confirm if the face verified?", + "placeholder":"Registration ID", + "errorMessages": { + "title": "Error", + "message": "RID Not Found", + "btnTxt": "Ok" + }, + "popupMessages": { + "rejectMessages": { + "title": "Success", + "message": "You have rejected the verification.", + "btnTxt": "Ok" + }, + "noData": { + "title": "Error", + "message": "No Data Found", + "btnTxt": "Ok" + } + }, + "statuscheckFailed":"Failed", + "statuscheckCompleted":"Completed" + + }, + "packet-upload":{ + "header":"Packet Upload", + "singleView":{ + "detailed-view-txt":"Detailed View", + "status-txt":"Status", + "uploadedBy-txt": "Uploaded By", + "count-txt":"Count", + "dataAndTime-txt" : "Date And Time", + "failureDescription-txt":"Failure Description", + "placeHolder1-txt":"Table Name", + "placeHolder2-txt":"Operations" + }, + "createView":{ + "input-btn-text":"Choose File", + "input-text1":"Upload file...", + "input-text2":"Upload Your File", + "upload-btn":"UPLOAD", + "cancel-btn":"CANCEL", + "center": "Center", + "sourceLabel": "Source", + "processLabel": "Process", + "supervisorStatusLabel": "Supervisor Status", + "popupMessaages":{ + "popup1":{ + "uploadConfirm":"Confirm Packet Upload", + "message":"Packet will be processed.\n Please ensure that all information is correct.\n\n\n Transaction will start once you click on confirm.", + "confirmBtnTxt":"CONFIRM", + "cancelBtnTxt":"Cancel" + }, + "popup2":{ + "title":"Failure", + "btnTxt":"DONE" + }, + "popup3":{ + "title":"Success", + "message" :"Your file has been uploaded successfully. \n Data upload is currently in progress.\n\n\n Transaction ID :", + "btnTxt":"DONE" + } + + }, + "source":[{"label":"Registration Client","value":"REGISTRATION_CLIENT"}], + "process":[{"label":"New","value":"NEW"},{"label":"Update UIN","value":"UPDATE"},{"label":"Lost","value":"LOST"},{"label":"Biometrics Correction","value":"BIOMETRIC_CORRECTION"}], + "supervisorStatus":[{"label":"Approved","value":"APPROVED"},{"label":"Rejected","value":"REJECTED"}] + } + }, "actionMessages" : { "decommission": { "success-message": ["", " is Decommissioned successfully"], diff --git a/admin-ui/src/assets/i18n/fra.json b/admin-ui/src/assets/i18n/fra.json index 1542f981..ab903540 100644 --- a/admin-ui/src/assets/i18n/fra.json +++ b/admin-ui/src/assets/i18n/fra.json @@ -285,6 +285,50 @@ "statuscheckFailed":"Échoué", "statuscheckCompleted":"Terminé" }, + "packet-upload": { + "header": "Téléchargement de paquets", + "singleView": { + "detailed-view-txt": "Vue détaillée", + "status-txt": "Statut", + "uploadedBy-txt": "Telechargé par", + "count-txt": "Compter", + "dataAndTime-txt": "Date et l'heure", + "failureDescription-txt": "description de l'échec", + "placeHolder1-txt": "Nom de la table", + "placeHolder2-txt": "Opérations" + }, + "createView": { + "input-btn-text": "Choisir le fichier", + "input-text1": "Téléverser un fichier...", + "input-text2": "Téléchargez votre fichier", + "upload-btn": "TÉLÉCHARGER", + "cancel-btn": "ANNULER", + "center": "Centre", + "sourceLabel": "La source", + "processLabel": "Traiter", + "supervisorStatusLabel": "Statut de superviseur", + "popupMessaages": { + "popup1": { + "uploadConfirm": "Confirmer le téléchargement des paquets", + "message": "Le paquet sera traité. \n Veuillez vous assurer que toutes les informations sont correctes. \n \n \n La transaction démarrera une fois que vous aurez cliqué sur Confirmer.", + "confirmBtnTxt": "CONFIRMER", + "cancelBtnTxt": "Annuler" + }, + "popup2": { + "title": "Échec", + "btnTxt": "TERMINÉ" + }, + "popup3": { + "title": "Succès", + "message": "Votre fichier a été téléchargé avec succès. \n Le téléchargement des données est en cours. \n \n \n ID de transaction:", + "btnTxt": "TERMINÉ" + } + }, + "source":[{"label":"Client d'inscription","value":"REGISTRATION_CLIENT"}], + "process":[{"label":"Nouveau","value":"NEW"},{"label":"Mettre à jour l'UIN","value":"UPDATE"},{"label":"Perdu","value":"LOST"},{"label":"Correction biométrique","value":"BIOMETRIC_CORRECTION"}], + "supervisorStatus":[{"label":"Approuvé","value":"APPROVED"},{"label":"Rejeté","value":"REJECTED"}] + } + }, "actionMessages" : { "decommission": { "success-message": ["Le centre d'inscription ", " est déclassé avec succès"],