202303241701Change
This commit is contained in:
@ -7,9 +7,18 @@ using static XKRS.Common.Model.Helper.EnumHelper;
|
||||
|
||||
namespace XKRS.Common.Model.Helper
|
||||
{
|
||||
public class AttributeHelper:Attribute
|
||||
public class DeviceAttribute:Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备类型
|
||||
/// </summary>
|
||||
public string TypeCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///特性修饰类别
|
||||
/// </summary>
|
||||
public DeviceAttributeType AttrType { get; set; }
|
||||
}
|
||||
|
||||
public class ProcessAttribute : Attribute
|
||||
|
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@ -17,6 +18,9 @@ namespace XKRS.Common.Model.Helper
|
||||
public enum DeviceAttributeType
|
||||
{
|
||||
|
||||
|
||||
[Description("运行控件")]
|
||||
RunCtrl=512,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -67,9 +67,28 @@ namespace XKRS.Common.Model.Helper
|
||||
}
|
||||
|
||||
|
||||
public static string GetProgramDescription()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(SettingInfo.Description))
|
||||
{
|
||||
SettingInfo.Description = "";
|
||||
}
|
||||
return SettingInfo.Description;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static string GetProgramIcon()
|
||||
{
|
||||
string iconPath = SettingInfo.IconPath;
|
||||
if (string.IsNullOrWhiteSpace(iconPath) || !File.Exists(iconPath))
|
||||
{
|
||||
iconPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logo.ico");
|
||||
}
|
||||
if (!File.Exists(iconPath))
|
||||
{
|
||||
iconPath = "";
|
||||
}
|
||||
return iconPath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -85,8 +104,11 @@ namespace XKRS.Common.Model.Helper
|
||||
|
||||
public string DefaultProcess { get; set; }
|
||||
public string DefaultProduction { get; set; }
|
||||
public string IconPath { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string CurrLayout { get; set; } = "";
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user