You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
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;
|
|
}
|
|
|
|
}
|
|
}
|