|
|
|
@@ -35,7 +35,7 @@ class _PlotInformationScreenState extends State<PlotInformationScreen> |
|
|
|
final controller = Get.put(DescriptionChangeControler()); |
|
|
|
Repository _repository = Repository(); |
|
|
|
String statusCrop = plot_status_unknown; |
|
|
|
String technicians = '--'; |
|
|
|
String technicians = ''; |
|
|
|
|
|
|
|
@override |
|
|
|
void initState() { |
|
|
|
@@ -56,6 +56,15 @@ class _PlotInformationScreenState extends State<PlotInformationScreen> |
|
|
|
} |
|
|
|
_descriptionController.text = |
|
|
|
_crop.description == null ? "" : _crop.description.toString(); |
|
|
|
if (_crop.tbDetailUsers != null) { |
|
|
|
for (var i = 0; i < _crop.tbDetailUsers.length; i++) { |
|
|
|
if (i == 0) { |
|
|
|
technicians += _crop.tbDetailUsers[i].fullName ?? ''; |
|
|
|
} else { |
|
|
|
technicians += ', ${_crop.tbDetailUsers[i].fullName ?? ''}'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, (err) {}); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -154,20 +163,22 @@ class _PlotInformationScreenState extends State<PlotInformationScreen> |
|
|
|
color: AppColors.DEFAULT |
|
|
|
.withOpacity(0.1), |
|
|
|
name: 'Ngày gieo trồng', |
|
|
|
value: |
|
|
|
'${cropPlot.sowingDate.format_DDMMYY_HHmm() ?? '--'}'), |
|
|
|
value: cropPlot.tbCropDTO.type == 0 |
|
|
|
? '${cropPlot.tbCropDTO?.startDate?.format_DDMMYY_HHmm() ?? '--'}' |
|
|
|
: '--'), |
|
|
|
WidgetRowPlotInfo( |
|
|
|
color: AppColors.DEFAULT |
|
|
|
.withOpacity(0.3), |
|
|
|
name: 'Thời gian ngâm hạt', |
|
|
|
value: |
|
|
|
'${cropPlot.soakSeedsTime ?? '--'}'), |
|
|
|
name: 'Ngày vô khây ươm', |
|
|
|
value: cropPlot.tbCropDTO.type == 1 |
|
|
|
? '${cropPlot.tbCropDTO?.startDate?.format_DDMMYY_HHmm() ?? '--'}' |
|
|
|
: '--'), |
|
|
|
WidgetRowPlotInfo( |
|
|
|
color: AppColors.DEFAULT |
|
|
|
.withOpacity(0.1), |
|
|
|
name: 'Ngày vô khây ươm', |
|
|
|
name: 'Thời gian ngâm hạt', |
|
|
|
value: |
|
|
|
'${cropPlot.seedIncubationTime ?? '--'}'), |
|
|
|
'${cropPlot.seedIncubationTime ?? '--'} ngày'), |
|
|
|
WidgetRowPlotInfo( |
|
|
|
color: AppColors.DEFAULT |
|
|
|
.withOpacity(0.3), |