|
|
@ -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;
|
|
|
|