fix personal details

merge-requests/1/merge
Fatimah Alshammari 3 years ago
parent 6529c2aeba
commit 44c9a090f9

@ -658,9 +658,9 @@ class GenericResponseModel {
getEITTransactionList = json['GetEITTransactionList'];
getEarningsList = json['GetEarningsList'];
if (json['GetEmployeeAddressList'] != null) {
getEmployeeAddressList = <dynamic>[];
getEmployeeAddressList = <GetEmployeeAddressList>[];
json['GetEmployeeAddressList'].forEach((v) {
getEmployeeAddressList!.add(dynamic);
getEmployeeAddressList!.add(new GetEmployeeAddressList.fromJson(v));
});
}
if (json['GetEmployeeBasicDetailsList'] != null) {

@ -2,6 +2,7 @@
import 'package:easy_localization/src/public_ext.dart';
import 'package:flutter/material.dart';
import 'package:mohem_flutter_app/api/profile_api_client.dart';
import 'package:mohem_flutter_app/app_state/app_state.dart';
import 'package:mohem_flutter_app/classes/colors.dart';
import 'package:mohem_flutter_app/classes/utils.dart';
import 'package:mohem_flutter_app/extensions/int_extensions.dart';
@ -27,12 +28,18 @@ class _PesonalInfoState extends State<PesonalInfo> {
String? emailAddress = "";
String? employeeNo = "";
// List<GetEmployeeBasicDetailsList> getEmployeeBasicDetailsList = [];
// MemberInformationListModel? _memberInformationList;
late MemberInformationListModel memberInformationList;
List<GetEmployeeBasicDetailsList> getEmployeeBasicDetailsList = [];
MemberInformationListModel? _memberInformationList;
@override
void initState() {
super.initState();
memberInformationList = AppState().memberInformationList!;
}
@ -80,23 +87,23 @@ class _PesonalInfoState extends State<PesonalInfo> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
"Category".toText13(color: MyColors.lightGrayColor),
"${_memberInformationList!.eMPLOYMENTCATEGORYMEANING}".toText16(isBold: true, color: MyColors.blackColor),
"${memberInformationList!.eMPLOYMENTCATEGORYMEANING}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,),
"Address".toText13(color: MyColors.lightGrayColor),
"${_memberInformationList!.lOCATIONNAME}".toText16(isBold: true, color: MyColors.blackColor),
"${memberInformationList!.lOCATIONNAME}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,),
"Phone Number".toText13(color: MyColors.lightGrayColor),
"${_memberInformationList!.eMPLOYEEMOBILENUMBER}".toText16(isBold: true, color: MyColors.blackColor),
"${memberInformationList!.eMPLOYEEMOBILENUMBER}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,),
"Business Group".toText13(color: MyColors.lightGrayColor),
"${_memberInformationList!.bUSINESSGROUPNAME}".toText16(isBold: true, color: MyColors.blackColor),
"${memberInformationList!.bUSINESSGROUPNAME}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,),
"Payroll".toText13(color: MyColors.lightGrayColor),
"${_memberInformationList!.pAYROLLNAME}".toText16(isBold: true, color: MyColors.blackColor),
"${memberInformationList!.pAYROLLNAME}".toText16(isBold: true, color: MyColors.blackColor),
]
),
),

Loading…
Cancel
Save