added request type for task requests

design_3.0_task_module_new
WaseemAbbasi22 7 months ago
parent 15e62bb004
commit 2291350d6f

@ -3,12 +3,12 @@ class URLs {
static const String appReleaseBuildNumber = "14";
// static const host1 = "https://atomsm.hmg.com"; // production url
// static const host1 = "https://atomsmdev.hmg.com"; // local DEV url
static const host1 = "https://atomsmuat.hmg.com"; // local UAT url
static const host1 = "https://atomsmdev.hmg.com"; // local DEV url
// static const host1 = "https://atomsmuat.hmg.com"; // local UAT url
// static String _baseUrl = "$_host/mobile";
// static final String _baseUrl = "$_host/v2/mobile"; // new V2 apis
static final String _baseUrl = "$_host/mobile"; // host local UAT
static final String _baseUrl = "$_host/v2/mobile"; // new V2 apis
// static final String _baseUrl = "$_host/mobile"; // host local UAT
// static final String _baseUrl = "$_host/v3/mobile"; // new V3 apis
static String _host = host1;

@ -144,7 +144,7 @@ class AllRequestsProvider extends ChangeNotifier {
}
final type = typeTransaction == null
? search?.typeTransaction == null || (search?.typeTransaction?.isEmpty ?? false)
? [1, 2, 3, 4, 5] //added 5 to get recurrent wo ...
? [1, 2, 3, 4, 5,6] //added 6 to get task request ...
: search!.typeTransaction
: [typeTransaction];
List<int> status = (search?.statuses == null || (search?.statuses?.isEmpty ?? false)) ? (((search?.isArchived ?? false) ? [3] : [1, 2, 4])) : search!.statuses!;

@ -27,7 +27,6 @@ class RequestItemViewList extends StatelessWidget {
shrinkWrap: true,
itemBuilder: (cxt, index) {
if (isLoading) return const SizedBox().toRequestShimmer(cxt, isLoading);
list[index].transactionType=6;
switch(list[index].transactionType){
case 1:
return ServiceRequestItemView(requestDetails: list[index]);
@ -39,7 +38,6 @@ class RequestItemViewList extends StatelessWidget {
return PpmItemView(requestDetails: list[index]);
case 5:
return RecurrentWoItemView(requestDetails: list[index]);
//TODO need to confirm this value...
case 6:
return TaskRequestItemView(requestDetails: list[index]);
default:

@ -49,8 +49,7 @@ class TaskRequestItemView extends StatelessWidget {
],
),
8.height,
// (requestDetails?.nameOfType ?? context.translation.taskRequest).heading5(context),
context.translation.taskRequest.heading5(context),
(requestDetails?.nameOfType ?? context.translation.taskRequest).heading5(context),
8.height,
// '${context.translation.taskNo}: ${requestDetails!.id}'.bodyText(context),
'${context.translation.taskType}: ${'Task Type.'}'.bodyText(context),

Loading…
Cancel
Save