UI_HR_POLICY_CLAIMS_MODULE
This commit is contained in:
parent
ee0eabd0b7
commit
810647da40
@ -228,6 +228,7 @@ class _hrDashboardState extends State<hrDashboard>
|
|||||||
empClientId: empClientId,
|
empClientId: empClientId,
|
||||||
empClientBranchId: empClientBranchId,
|
empClientBranchId: empClientBranchId,
|
||||||
empHrId: empHrId,
|
empHrId: empHrId,
|
||||||
|
postToken: _postToken,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -422,7 +423,8 @@ class _hrDashboardState extends State<hrDashboard>
|
|||||||
appBar: CustomAppBar(),
|
appBar: CustomAppBar(),
|
||||||
body: Stack(children: [
|
body: Stack(children: [
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.all(40),
|
padding: const EdgeInsets.only(
|
||||||
|
top: 20, bottom: 40, left: 40, right: 40),
|
||||||
|
|
||||||
// padding: const EdgeInsets.only(
|
// padding: const EdgeInsets.only(
|
||||||
// top: 20, bottom: 20, left: 50, right: 50),
|
// top: 20, bottom: 20, left: 50, right: 50),
|
||||||
@ -438,8 +440,8 @@ class _hrDashboardState extends State<hrDashboard>
|
|||||||
? const EdgeInsets.only(
|
? const EdgeInsets.only(
|
||||||
top: 10, bottom: 10, left: 20, right: 20)
|
top: 10, bottom: 10, left: 20, right: 20)
|
||||||
: EdgeInsets.only(
|
: EdgeInsets.only(
|
||||||
top: 12,
|
top: 10,
|
||||||
bottom: 12,
|
bottom: 10,
|
||||||
left: 10,
|
left: 10,
|
||||||
right: 10), // Add padding to the container
|
right: 10), // Add padding to the container
|
||||||
child: Row(
|
child: Row(
|
||||||
@ -448,12 +450,12 @@ class _hrDashboardState extends State<hrDashboard>
|
|||||||
flex: 6,
|
flex: 6,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 150,
|
width: 150,
|
||||||
height: 150,
|
height: 80,
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
clientLogo ?? '',
|
clientLogo ?? '',
|
||||||
width: 80, // Set the width here
|
width: 80, // Set the width here
|
||||||
height: 80, // Set the height here
|
height: 60, // Set the height here
|
||||||
loadingBuilder: (BuildContext context,
|
loadingBuilder: (BuildContext context,
|
||||||
Widget child,
|
Widget child,
|
||||||
ImageChunkEvent? loadingProgress) {
|
ImageChunkEvent? loadingProgress) {
|
||||||
@ -474,7 +476,7 @@ class _hrDashboardState extends State<hrDashboard>
|
|||||||
return Image.asset(
|
return Image.asset(
|
||||||
'assets/Solid_gray.png', // Replace 'default_image.png' with your default image asset path
|
'assets/Solid_gray.png', // Replace 'default_image.png' with your default image asset path
|
||||||
width: 80,
|
width: 80,
|
||||||
height: 80,
|
height: 60,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@ -496,7 +498,7 @@ class _hrDashboardState extends State<hrDashboard>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
SizedBox(height: 16),
|
SizedBox(height: 8),
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.all(5),
|
padding: const EdgeInsets.all(5),
|
||||||
height: MediaQuery.of(context).size.height * 0.08,
|
height: MediaQuery.of(context).size.height * 0.08,
|
||||||
|
|||||||
@ -460,6 +460,40 @@ class ApiService {
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<Map<String, dynamic>> getClaimPoliciesToApi(String token) async {
|
||||||
|
print("getgetClaimPoliciesToApii1");
|
||||||
|
final url = Uri.parse('${Environment.apiUrlPost}claimsSearch');
|
||||||
|
|
||||||
|
final headers = {
|
||||||
|
'Authorization': 'Bearer $token' ?? '',
|
||||||
|
};
|
||||||
|
final response = await _makeGetRequest(url, headers);
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<Map<String, dynamic>> getClaimPoliciesListDataToApi(
|
||||||
|
String token, Map<String, dynamic> body) async {
|
||||||
|
print("getgetClaimPoliciesToApii1");
|
||||||
|
final url = Uri.parse('${Environment.apiUrlPost}claimsSearch');
|
||||||
|
|
||||||
|
final headers = {
|
||||||
|
'Authorization': 'Bearer $token',
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
};
|
||||||
|
|
||||||
|
final response = await http.post(
|
||||||
|
url,
|
||||||
|
headers: headers,
|
||||||
|
body: jsonEncode(body),
|
||||||
|
);
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
return jsonDecode(response.body);
|
||||||
|
} else {
|
||||||
|
throw Exception(
|
||||||
|
'Failed to load claims list: ${response.statusCode} ${response.body}');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Future<Map<String, dynamic>> getCdTransactionData(
|
Future<Map<String, dynamic>> getCdTransactionData(
|
||||||
String clintID, String insurerId, String cd_ac_pk, String token) async {
|
String clintID, String insurerId, String cd_ac_pk, String token) async {
|
||||||
print("getCashDepositDetailsToApi1");
|
print("getCashDepositDetailsToApi1");
|
||||||
|
|||||||
@ -40,17 +40,17 @@ class _CdPolicieState extends State<CdPolicies> {
|
|||||||
// List<dynamic> dataPolicy = [];
|
// List<dynamic> dataPolicy = [];
|
||||||
List<dynamic> reversedDataPolicy = [];
|
List<dynamic> reversedDataPolicy = [];
|
||||||
List<Map<String, dynamic>> originalData = []; // Original data source
|
List<Map<String, dynamic>> originalData = []; // Original data source
|
||||||
// List<Map<String, dynamic>> filteredData = []; // Filtered data source
|
List<Map<String, dynamic>> filteredData = []; // Filtered data source
|
||||||
List<Map<String, dynamic>> filteredData = [
|
// List<Map<String, dynamic>> filteredData = [
|
||||||
{
|
// {
|
||||||
"client_id": "58",
|
// "client_id": "58",
|
||||||
"insurer_id": "2",
|
// "insurer_id": "2",
|
||||||
"cd_ac_pk": "94",
|
// "cd_ac_pk": "94",
|
||||||
"insurer_name": "ICICI Prudential Life Insurance Co. Ltd",
|
// "insurer_name": "ICICI Prudential Life Insurance Co. Ltd",
|
||||||
"cd_master_account_no": "CD-IOCL-887744559966",
|
// "cd_master_account_no": "CD-IOCL-887744559966",
|
||||||
"balance": "10000000.00"
|
// "balance": "10000000.00"
|
||||||
}
|
// }
|
||||||
]; // Filtered data source
|
// ]; // Filtered data source
|
||||||
dynamic argumentsData;
|
dynamic argumentsData;
|
||||||
dynamic policyType;
|
dynamic policyType;
|
||||||
dynamic policyName;
|
dynamic policyName;
|
||||||
@ -245,7 +245,11 @@ class _CdPolicieState extends State<CdPolicies> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Export',
|
'Export',
|
||||||
style: GoogleFonts.poppins(fontSize: 16,color: Color(0xFFFFFFFF),fontWeight: FontWeight.w700,letterSpacing: 1),
|
style: GoogleFonts.poppins(
|
||||||
|
fontSize: 16,
|
||||||
|
color: Color(0xFFFFFFFF),
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
letterSpacing: 1),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -293,21 +297,24 @@ class _CdPolicieState extends State<CdPolicies> {
|
|||||||
flex: 4,
|
flex: 4,
|
||||||
child: Text(
|
child: Text(
|
||||||
'Insurer Name',
|
'Insurer Name',
|
||||||
style: GoogleFonts.poppins(color: Colors.white, fontWeight: FontWeight.bold),
|
style: GoogleFonts.poppins(
|
||||||
|
color: Colors.white, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 3,
|
flex: 3,
|
||||||
child: Text(
|
child: Text(
|
||||||
'CD Account number',
|
'CD Account number',
|
||||||
style: GoogleFonts.poppins(color: Colors.white, fontWeight: FontWeight.bold),
|
style: GoogleFonts.poppins(
|
||||||
|
color: Colors.white, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Text(
|
child: Text(
|
||||||
'Current Balance',
|
'Current Balance',
|
||||||
style: GoogleFonts.poppins(color: Colors.white, fontWeight: FontWeight.bold),
|
style: GoogleFonts.poppins(
|
||||||
|
color: Colors.white, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
@ -315,7 +322,8 @@ class _CdPolicieState extends State<CdPolicies> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
'Action',
|
'Action',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: GoogleFonts.poppins(color: Colors.white, fontWeight: FontWeight.bold),
|
style: GoogleFonts.poppins(
|
||||||
|
color: Colors.white, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -338,28 +346,22 @@ class _CdPolicieState extends State<CdPolicies> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
flex: 4,
|
flex: 4,
|
||||||
child: Text(
|
child: Text(
|
||||||
item['insurer_name'] ?? '-',
|
item['insurer_name'] ?? '-',
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(color: Color(0xFF000000)),
|
||||||
color: Color(0xFF000000)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 3,
|
flex: 3,
|
||||||
child: Text(
|
child: Text(
|
||||||
item['cd_master_account_no'] ?? '-',
|
item['cd_master_account_no'] ?? '-',
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(color: Color(0xFF000000)),
|
||||||
color: Color(0xFF000000)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Text(
|
child: Text(
|
||||||
"₹${item['balance'] ?? '0'}",
|
"₹${item['balance'] ?? '0'}",
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(color: Color(0xFF000000)),
|
||||||
color: Color(0xFF000000)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
@ -372,16 +374,14 @@ class _CdPolicieState extends State<CdPolicies> {
|
|||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => cdTransactionDetails(
|
builder: (context) => cdTransactionDetails(
|
||||||
insurerName: item['insurer_name'],
|
insurerName: item['insurer_name'],
|
||||||
cdMasterAccountNo: item['cd_master_account_no'],
|
cdMasterAccountNo: item['cd_master_account_no'],
|
||||||
insurerId: item['insurer_id'],
|
insurerId: item['insurer_id'],
|
||||||
cd_ac_pk: item['cd_ac_pk'],
|
cd_ac_pk: item['cd_ac_pk'],
|
||||||
empClientId: widget.empClientId,
|
empClientId: widget.empClientId,
|
||||||
postToken:widget.postToken
|
postToken: widget.postToken),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -58,6 +58,7 @@ dependencies:
|
|||||||
google_sign_in: ^6.2.1
|
google_sign_in: ^6.2.1
|
||||||
firebase_auth_web: ^5.12.4
|
firebase_auth_web: ^5.12.4
|
||||||
archive: ^3.4.9
|
archive: ^3.4.9
|
||||||
|
dropdown_search: ^6.0.2
|
||||||
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user