asset number free text field added for existing project and manual project not registered

design_3.0_asset_inventory_module
WaseemAbbasi22 3 weeks ago
parent b6c5d7ffa3
commit d0565a321a

@ -4,12 +4,12 @@ class URLs {
static const String appReleaseBuildNumber = "26";
// static const host1 = "https://atomsm.hmg.com"; // production url
// static const host1 = "https://atomsmdev.hmg.com"; // local DEV url
static const host1 = "https://atomsmuat.hmg.com"; // local UAT url
static const host1 = "https://atomsmdev.hmg.com"; // local DEV url
// static const host1 = "https://atomsmuat.hmg.com"; // local UAT url
// static String _baseUrl = "$_host/mobile";
// static final String _baseUrl = "$_host/v3/mobile"; // new V3 apis
static final String _baseUrl = "$_host/v4/mobile"; // for asset inventory on UAT
static final String _baseUrl = "$_host/v3/mobile"; // new V3 apis
// static final String _baseUrl = "$_host/v4/mobile"; // for asset inventory on UAT
// static final String _baseUrl = "$_host/mobile"; // host local UAT
// static final String _baseUrl = "$_host/v3/mobile"; // v3 for production CM,PM,TM

@ -219,6 +219,7 @@ class AssetInventoryModel {
'newSerialNo': newSerialNo,
'newAssetNameId': newAssetNameId,
'newAssetNameText': newAssetNameText,
'newAssetNumber': newAssetNumber,
'newModelId': newModelId,
'newModelName': newModelName,
'newManufacturerId': newManufacturerId,

@ -167,10 +167,6 @@ class _AssetInventoryFormViewState extends State<AssetInventoryFormView> {
))).then((value) {
if (value != null) {
_pickedAssetModel = value;
// _pickedAssetModel?.assetNumber = _scannedAssetModel?.assetNumber;
// _pickedAssetModel?.assetId = _scannedAssetModel?.assetId;
// _pickedAssetModel?.status = _scannedAssetModel?.status;
_scannedAssetModel = _scannedAssetModel?.mergeWith(_pickedAssetModel) ?? _pickedAssetModel;
populateFormValues();
@ -183,6 +179,22 @@ class _AssetInventoryFormViewState extends State<AssetInventoryFormView> {
),
12.height,
],
if (((isRegistered && widget.sessionTypeValue != 3)))...[
AppTextFormField(
labelText: context.translation.assetNo,
backgroundColor: AppColor.fieldBgColor(context),
textAlign: TextAlign.center,
// controller: _assetNoController,
showShadow: false,
enable: true,
labelStyle: AppTextStyles.textFieldLabelStyle,
style: Theme.of(context).textTheme.titleMedium,
onChange: (value){
_scannedAssetModel?.newAssetNumber = value;
},
),
12.height,
],
AppTextFormField(
labelText: context.translation.serialNo,
backgroundColor: AppColor.fieldBgColor(context),

Loading…
Cancel
Save