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

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

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

Loading…
Cancel
Save