ATOMS-893 fixed

design_3.0_task_module_new
WaseemAbbasi22 6 months ago
parent 6004ed1a27
commit 7251ba0e93

@ -113,10 +113,10 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
'Type of alert: ${taskProvider.taskRequestModel?.typeOfAlert?.name}'.bodyText(context),
'Risk Level: ${taskProvider.taskRequestModel?.riskLevel?.name}'.bodyText(context),
'Resource: ${taskProvider.taskRequestModel?.resource?.name}'.bodyText(context),
'Evaluator User: ${taskProvider.taskRequestModel?.evaluatorUser?.userName}'.bodyText(context)
'Type of alert: ${taskProvider.taskRequestModel?.typeOfAlert?.name ?? '-'}'.bodyText(context),
'Risk Level: ${taskProvider.taskRequestModel?.riskLevel?.name ?? '-'}'.bodyText(context),
'Resource: ${taskProvider.taskRequestModel?.resource?.name ?? '-'}'.bodyText(context),
'Evaluator User: ${taskProvider.taskRequestModel?.evaluatorUser?.userName ?? '-'}'.bodyText(context)
],
),
],

@ -543,6 +543,17 @@ bool validate({TaskData? model}) {
Fluttertoast.showToast(msg: "Please Stop The Timer");
return false;
}
if (model?.assistantEmployees != null) {
if (model?.modelAssistantEmployees?.startDate == null) {
Fluttertoast.showToast(msg: "Please Select Assistant Employee Start Time");
return false;
}
if (model?.modelAssistantEmployees?.endDate == null) {
Fluttertoast.showToast(msg: "Please Select Assistant Employee End Time");
return false;
}
}
return true;
}
@ -695,7 +706,7 @@ class _AssistantEmployeeCardState extends State<AssistantEmployeeCard> {
backgroundColor: AppColor.neutral80,
controller: _workingHoursController,
suffixIcon: "clock".toSvgAsset(width: 20, color: context.isDark ? AppColor.neutral10 : null).paddingOnly(end: 16),
initialValue: taskModel?.modelAssistantEmployees?.workingHours != null ? taskModel!.modelAssistantEmployees!.workingHours.toString() : '',
initialValue: taskModel?.modelAssistantEmployees?.workingHours != null ? taskModel!.modelAssistantEmployees!.workingHours?.toStringAsFixed(2) : '',
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
enable: false,

Loading…
Cancel
Save