From 5986f63b75bd81c6cef262c670e9251c038cbf5d Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 17 十二月 2019 17:21:07 +0800 Subject: [PATCH] 合并一个版本 --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs index d611651..dfce7b9 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs @@ -48,18 +48,35 @@ var rowName = new FrameRowControl(listView.rowSpace / 2); rowName.UseClickStatu = false; listView.AddChidren(rowName); - rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uDeviceName), 300); + rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uDeviceName), 400); rowName.AddMostRightView(Common.LocalDevice.Current.GetDeviceObjectText(listDevice), 600); rowName.AddBottomLine(); //璁惧鍨嬪彿 string strModel = listDevice[0].DriveCode > 0 ? Language.StringByID(R.MyInternationalizationString.uVirtualDriveDevice) : listDevice[0].ModelIdentifier; + if (strModel == string.Empty) + { + //鏃犳硶璇嗗埆 + strModel = Language.StringByID(R.MyInternationalizationString.uUnDistinguish); + } var rowType = new FrameRowControl(listView.rowSpace / 2); rowType.UseClickStatu = false; listView.AddChidren(rowType); - rowType.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uModelIdentifier), 300); + rowType.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uModelIdentifier), 400); rowType.AddMostRightView(strModel, 600); rowType.AddBottomLine(); + + //闀滃儚ID + var otaDevice = Common.LocalDevice.Current.GetOTADevice(listDevice[0].DeviceAddr); + if (otaDevice != null) + { + var rowImage = new FrameRowControl(listView.rowSpace / 2); + rowImage.UseClickStatu = false; + listView.AddChidren(rowImage); + rowImage.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uImageId), 400); + rowImage.AddMostRightView(otaDevice.ImgTypeId.ToString(), 400); + rowImage.AddBottomLine(); + } //鍥轰欢鐗堟湰 var oTADevice = Common.LocalDevice.Current.GetOTADevice(listDevice[0].DeviceAddr); @@ -68,7 +85,7 @@ var rowVersion = new FrameRowControl(listView.rowSpace / 2); rowVersion.UseClickStatu = false; listView.AddChidren(rowVersion); - rowVersion.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uFirmwareVersion), 300); + rowVersion.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uFirmwareVersion), 400); rowVersion.AddMostRightView(Common.LocalDevice.Current.AppendVersion(oTADevice.ImgVersion), 600); rowVersion.AddBottomLine(); } @@ -77,7 +94,7 @@ var rowSerial = new FrameRowControl(listView.rowSpace / 2); rowSerial.UseClickStatu = false; listView.AddChidren(rowSerial); - rowSerial.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uSerialNumber), 300); + rowSerial.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uSerialNumber), 400); rowSerial.AddMostRightView(listDevice[0].SerialNumber != string.Empty ? listDevice[0].SerialNumber : listDevice[0].DeviceAddr, 600); rowSerial.AddBottomLine(); @@ -94,7 +111,7 @@ var rowProtuct = new FrameRowControl(listView.rowSpace / 2); rowProtuct.UseClickStatu = false; listView.AddChidren(rowProtuct); - rowProtuct.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uManufacturerName), 300); + rowProtuct.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uManufacturerName), 400); rowProtuct.AddMostRightView(strProtuct, 600); listView.AdjustRealHeight(Application.GetRealHeight(23)); -- Gitblit v1.8.0