using Eplan.EplApi.Base; using Eplan.EplApi.DataModel; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using KPlan.Util; namespace KPlan.Forms.Bean { class EPlanPropBean { public string disName { get; set; } public string realName { get; set; } public string type { get; set; } public string language { get; set; } public bool isComboReadOnly { get; set; } public EPlanPropBean(string type) { this.type = type; this.isComboReadOnly = PropertyDefinition.PropertyType.MultilangString.ToString().Equals(type); } public string getConfigValue() { if ("MultilangString".Equals(type)){ if (KUtil.IsEmpty(language)){ return ""; // throw new Exception("未选择语言环境:"+disName+"/"+realName+"/"+type); } return realName + "@" + language; } return realName; } } }