dep_yangw_sec^2
我叫锄头 11 months ago
parent e237cac7c3
commit 697cf717fa

@ -165,7 +165,7 @@ namespace ProductionSystem.Forms.SystemSetting
Name = $"layoutControlItem{j}",
TextVisible = false
};
if (currentParaConfigs[j].ParaCode.Contains("protocol"))
if (currentParaConfigs[j].ParaCode.Contains("_DB"))
{
TextEdit textEdit = new TextEdit
{
@ -175,13 +175,14 @@ namespace ProductionSystem.Forms.SystemSetting
textEdit.Properties.Appearance.Font = new Font("Tahoma", 10.5F);
textEdit.Properties.Appearance.Options.UseFont = true;
textEdit.Properties.AutoHeight = false;
textEdit.Properties.NullValuePrompt = "请输入压缩机协议编码";
textEdit.Properties.NullValuePrompt = "请输入"+ currentParaConfigs[j].ParaName;
layoutControlItem.Control = textEdit;
}
else
{
MyParaControl myParaControl = new MyParaControl
{
Name = $"myParaControl{j}",
MaximumSize = new Size(700, 50),
LblItemCode = currentParaConfigs[j].ParaCode,
@ -195,6 +196,9 @@ namespace ProductionSystem.Forms.SystemSetting
CheckEditVisible = !currentParaConfigs[j].IsMust,
TabIndex = j
};
layoutControlItem.Control = myParaControl;
}
layoutItemArr[j] = layoutControlItem;

@ -15,6 +15,12 @@ namespace ProductionSystem_UserControl.ExtendedControls
MaximumSize = new Size(480, 50);
}
public void HiderTargetVal()
{
txtTargetVal.ReadOnly = true;
}
#region 自定义属性
/// <summary>

Loading…
Cancel
Save