created date added.

design_3.0_asset_inventory_module
Sikander Saleem 4 days ago
parent 4a283a685c
commit 78cec1c69c

@ -1,8 +1,8 @@
import 'package:test_sa/models/new_models/site.dart'; import 'package:test_sa/models/new_models/site.dart';
class SessionModel { class SessionModel {
int? id; int? id;
String? createdDate;
String? sessionName; String? sessionName;
int? sessionTypeId; int? sessionTypeId;
int? sessionTypeValue; int? sessionTypeValue;
@ -17,6 +17,7 @@ class SessionModel {
SessionModel({ SessionModel({
this.id, this.id,
this.sessionName, this.sessionName,
this.createdDate,
this.sessionTypeId, this.sessionTypeId,
this.sessionTypeValue, this.sessionTypeValue,
this.sessionTypeName, this.sessionTypeName,
@ -38,6 +39,7 @@ class SessionModel {
sessionTypeValue = json['sessionTypeValue']; sessionTypeValue = json['sessionTypeValue'];
sessionTypeName = json['sessionTypeName']; sessionTypeName = json['sessionTypeName'];
statusId = json['statusId']; statusId = json['statusId'];
createdDate = json['createdDate'];
statusName = json['statusName']; statusName = json['statusName'];
startDate = json['startDate']; startDate = json['startDate'];
endDate = json['endDate']; endDate = json['endDate'];
@ -60,6 +62,7 @@ class SessionModel {
map['sessionTypeName'] = sessionTypeName; map['sessionTypeName'] = sessionTypeName;
map['statusId'] = statusId; map['statusId'] = statusId;
map['statusName'] = statusName; map['statusName'] = statusName;
map['createdDate'] = createdDate;
map['startDate'] = startDate; map['startDate'] = startDate;
map['endDate'] = endDate; map['endDate'] = endDate;
map['assetInventorySites'] = assetInventorySites.map((e) => e.toJson()).toList(); map['assetInventorySites'] = assetInventorySites.map((e) => e.toJson()).toList();

@ -56,7 +56,7 @@ class _AssetInventoryDetailViewState extends State<AssetInventoryDetailView> {
backgroundColor: AppColor.greenStatus(context), backgroundColor: AppColor.greenStatus(context),
), ),
Text( Text(
sessionModel.startDate!.toString().toServiceRequestCardFormat, sessionModel.createdDate!.toString().toServiceRequestCardFormat,
textAlign: TextAlign.end, textAlign: TextAlign.end,
style: AppTextStyles.tinyFont.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50), style: AppTextStyles.tinyFont.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
) )
@ -73,7 +73,7 @@ class _AssetInventoryDetailViewState extends State<AssetInventoryDetailView> {
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120), style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
), ),
Text( Text(
'${'Session Typ'.addTranslation}: ${sessionModel.sessionTypeName}', '${'Session Type'.addTranslation}: ${sessionModel.sessionTypeName}',
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120), style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
), ),
Text( Text(

Loading…
Cancel
Save