request information added,

master
Sikander Saleem 6 months ago
parent 0e7bac4557
commit 9b683235c9

@ -86,6 +86,7 @@ class ApiClient {
var response = await postJsonForResponse(url, jsonObject, token: token, queryParameters: queryParameters, headers: _headers, retryTimes: retryTimes, isFormData: isFormData); var response = await postJsonForResponse(url, jsonObject, token: token, queryParameters: queryParameters, headers: _headers, retryTimes: retryTimes, isFormData: isFormData);
try { try {
if (!kReleaseMode) { if (!kReleaseMode) {
logger.i("Url: " + url);
logger.i("res: " + response.body); logger.i("res: " + response.body);
} }

@ -144,7 +144,7 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
getEitNotificationBody(); getEitNotificationBody();
} else if (workListData!.rEQUESTTYPE == "CEI") { } else if (workListData!.rEQUESTTYPE == "CEI") {
getCEINotificationBody(); getCEINotificationBody();
}else if (workListData!.rEQUESTTYPE == "PHONE_NUMBERS") { } else if (workListData!.rEQUESTTYPE == "PHONE_NUMBERS") {
getPhonesNotificationBody(); getPhonesNotificationBody();
} else if (workListData!.rEQUESTTYPE == "BASIC_DETAILS") { } else if (workListData!.rEQUESTTYPE == "BASIC_DETAILS") {
getBasicDetNtfBody(); getBasicDetNtfBody();
@ -679,10 +679,12 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
} }
void performAction(String actionMode, {String? title}) { void performAction(String actionMode, {String? title}) {
GetActionHistoryList? object = actionHistoryList.firstWhere((element) => element.aCTIONCODE == "REQUEST_INFO");
String question = "${object.aCTION}: ${object.nOTE}";
showDialog( showDialog(
context: context, context: context,
builder: (BuildContext cxt) => AcceptRejectInputDialog( builder: (BuildContext cxt) => AcceptRejectInputDialog(
message: title != null ? null : LocaleKeys.requestedItems.tr(), message: question,
title: title, title: title,
notificationGetRespond: notificationNoteInput, notificationGetRespond: notificationNoteInput,
actionMode: actionMode, actionMode: actionMode,
@ -1102,7 +1104,7 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
try { try {
isAttachmentLoaded = false; isAttachmentLoaded = false;
getAttachmentList.clear(); getAttachmentList.clear();
List<GetAttachementList> _getAttachmentList = await WorkListApiClient().getAttachments(workListData!.nOTIFICATIONID!); List<GetAttachementList> _getAttachmentList = await WorkListApiClient().getAttachments(workListData!.nOTIFICATIONID!);
if (!isAttachmentLoaded) { if (!isAttachmentLoaded) {
getAttachmentList = _getAttachmentList; getAttachmentList = _getAttachmentList;
} }

Loading…
Cancel
Save