|
|
|
@ -253,7 +253,7 @@ class _MowadhafhiHRRequestState extends State<MowadhafhiHRRequest> {
|
|
|
|
|
children: [
|
|
|
|
|
title.toText16().expanded,
|
|
|
|
|
6.width,
|
|
|
|
|
SimpleButton("Add", () async {
|
|
|
|
|
SimpleButton(LocaleKeys.add.tr(), () async {
|
|
|
|
|
FilePickerResult? result = await FilePicker.platform.pickFiles(allowMultiple: true);
|
|
|
|
|
if (result != null) {
|
|
|
|
|
attachmentFiles = attachmentFiles + result.paths.map((path) => File(path!)).toList();
|
|
|
|
@ -377,7 +377,7 @@ class _MowadhafhiHRRequestState extends State<MowadhafhiHRRequest> {
|
|
|
|
|
}
|
|
|
|
|
int? messageStatus = await MowadhafhiApiClient().submitRequest(selectedDepartment?.projectDepartmentId, description, projectID, selectedSection?.departmentSectionId.toString(),
|
|
|
|
|
selectedTopic?.sectionTopicId.toString(), int.parse(selectedServiceType), list);
|
|
|
|
|
Utils.showToast("Request created successfully");
|
|
|
|
|
Utils.showToast(LocaleKeys.requestCreatedSuccessfully.tr());
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
} catch (ex) {
|
|
|
|
|