IoTGateway.ViewModel/Config/SystemConfigVMs/SystemConfigImportVM.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using IoTGateway.Model;


namespace IoTGateway.ViewModel.Config.SystemConfigVMs
{
    public partial class SystemConfigTemplateVM : BaseTemplateVM
    {
        [Display(Name = "网关名称")]
        public ExcelPropety GatewayName_Excel = ExcelPropety.CreateProperty<SystemConfig>(x => x.GatewayName);
        [Display(Name = "Mqtt服务器")]
        public ExcelPropety MqttIp_Excel = ExcelPropety.CreateProperty<SystemConfig>(x => x.MqttIp);
        [Display(Name = "Mqtt端口")]
        public ExcelPropety MqttPort_Excel = ExcelPropety.CreateProperty<SystemConfig>(x => x.MqttPort);
        [Display(Name = "Mqtt用户名")]
        public ExcelPropety MqttUName_Excel = ExcelPropety.CreateProperty<SystemConfig>(x => x.MqttUName);
        [Display(Name = "Mqtt密码")]
        public ExcelPropety MqttUPwd_Excel = ExcelPropety.CreateProperty<SystemConfig>(x => x.MqttUPwd);

	    protected override void InitVM()
        {
        }

    }

    public class SystemConfigImportVM : BaseImportVM<SystemConfigTemplateVM, SystemConfig>
    {

    }

}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。