fix : inspection -> poultry science
This commit is contained in:
@@ -14,6 +14,7 @@ class FarmPage extends GetView<FarmLogic> {
|
||||
routes: controller.routes,
|
||||
hasFilter: false,
|
||||
hasSearch: false,
|
||||
onBackPressed: () => Get.back(id:0),
|
||||
widgets: [firstTagInformation(), farmListWidget()],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -29,8 +29,9 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
);
|
||||
}
|
||||
|
||||
ObxValue<Rx<Resource<PaginationModel<HatchingModel>>>> hatchingWidget() {
|
||||
return ObxValue((data) {
|
||||
Widget hatchingWidget() {
|
||||
return Expanded(
|
||||
child: ObxValue((data) {
|
||||
return RPaginatedListView(
|
||||
listType: ListType.separated,
|
||||
resource: data.value,
|
||||
@@ -58,11 +59,10 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
await controller.getHatchingList();
|
||||
},
|
||||
);
|
||||
}, controller.hatchingList);
|
||||
}, controller.hatchingList),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Container itemListExpandedWidget(HatchingModel item) {
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||
@@ -135,8 +135,8 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
value: item.quantity.separatedByComma,
|
||||
valueStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
||||
),
|
||||
buildRow(title: 'مانده در سالن', value: item.leftOver.separatedByComma ),
|
||||
buildRow(title: 'تلفات', value: item.losses.separatedByComma ),
|
||||
buildRow(title: 'مانده در سالن', value: item.leftOver.separatedByComma),
|
||||
buildRow(title: 'تلفات', value: item.losses.separatedByComma),
|
||||
buildRow(
|
||||
title: 'دامپزشک فارم',
|
||||
value: '${item.vetFarm?.vetFarmFullName}(${item.vetFarm?.vetFarmMobile})',
|
||||
@@ -323,7 +323,8 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
}
|
||||
|
||||
Widget reportWidget() {
|
||||
return ObxValue((data) {
|
||||
return Expanded(
|
||||
child: ObxValue((data) {
|
||||
return RPaginatedListView(
|
||||
listType: ListType.separated,
|
||||
resource: data.value,
|
||||
@@ -351,7 +352,8 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
await controller.getHatchingReport();
|
||||
},
|
||||
);
|
||||
}, controller.hatchingReportList);
|
||||
}, controller.hatchingReportList),
|
||||
);
|
||||
}
|
||||
|
||||
Widget itemListExpandedWidgetReport(HatchingReport item) {
|
||||
@@ -398,14 +400,14 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
children: [
|
||||
Text('نژاد:', style: AppFonts.yekan14.copyWith(color: AppColor.textColor)),
|
||||
Text(
|
||||
item.hatching?.chickenBreed?? 'N/A',
|
||||
item.hatching?.chickenBreed ?? 'N/A',
|
||||
style: AppFonts.yekan14.copyWith(color: AppColor.textColor),
|
||||
),
|
||||
|
||||
SizedBox(width: 2),
|
||||
|
||||
Text(
|
||||
' سن${ item.hatching?.chickenAge}',
|
||||
' سن${item.hatching?.chickenAge}',
|
||||
|
||||
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
||||
),
|
||||
@@ -413,7 +415,7 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
),
|
||||
|
||||
Text(
|
||||
' دوره جوجه ریزی:${ item.hatching?.period}',
|
||||
' دوره جوجه ریزی:${item.hatching?.period}',
|
||||
style: AppFonts.yekan14.copyWith(color: AppColor.textColor),
|
||||
),
|
||||
],
|
||||
@@ -426,21 +428,21 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
|
||||
value: item.hatching?.quantity.separatedByComma ?? 'N/A',
|
||||
valueStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
||||
),
|
||||
buildRow(title: 'مانده در سالن', value: item.hatching?.leftOver.separatedByComma ?? 'N/A'),
|
||||
buildRow(
|
||||
title: 'مانده در سالن',
|
||||
value: item.hatching?.leftOver.separatedByComma ?? 'N/A',
|
||||
),
|
||||
buildRow(title: 'تلفات', value: item.hatching?.losses.separatedByComma ?? 'N/A'),
|
||||
buildRow(
|
||||
title: 'دامپزشک فارم',
|
||||
value: '${item.hatching?.vetFarm?.vetFarmFullname}(${item.hatching?.vetFarm?.vetFarmMobile})',
|
||||
value:
|
||||
'${item.hatching?.vetFarm?.vetFarmFullname}(${item.hatching?.vetFarm?.vetFarmMobile})',
|
||||
),
|
||||
buildRow(
|
||||
title: 'شرح بازرسی',
|
||||
value: 'تکمیل شده',
|
||||
titleStyle: AppFonts.yekan14.copyWith(
|
||||
color: AppColor.greenNormal
|
||||
),
|
||||
valueStyle: AppFonts.yekan14.copyWith(
|
||||
color: AppColor.greenNormal
|
||||
),
|
||||
titleStyle: AppFonts.yekan14.copyWith(color: AppColor.greenNormal),
|
||||
valueStyle: AppFonts.yekan14.copyWith(color: AppColor.greenNormal),
|
||||
),
|
||||
|
||||
SizedBox(
|
||||
|
||||
@@ -168,6 +168,7 @@ sealed class ChickenPages {
|
||||
middlewares: [AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(() => InspectionPoultryScienceLogic());
|
||||
Get.lazyPut(() => SearchLogic());
|
||||
}),
|
||||
),
|
||||
GetPage(
|
||||
|
||||
Reference in New Issue
Block a user