1.三色灯提交
2.设置重命名时带出之前名称
This commit is contained in:
@ -7,6 +7,7 @@ using DH.Commons.Base;
|
||||
using DH.RBAC.Model.Sys;
|
||||
using System.Reflection;
|
||||
using ScrollBar = AntdUI.ScrollBar;
|
||||
using DH.Commons.Enums;
|
||||
|
||||
namespace DHSoftware.Views
|
||||
{
|
||||
@ -594,7 +595,8 @@ namespace DHSoftware.Views
|
||||
{
|
||||
Size = new Size(300, 200),
|
||||
// 传递当前名称到表单
|
||||
CubicleName = originalName
|
||||
CubicleName = originalName,
|
||||
|
||||
};
|
||||
|
||||
AntdUI.Modal.open(new AntdUI.Modal.Config(this, "", form, TType.None)
|
||||
@ -674,12 +676,14 @@ namespace DHSoftware.Views
|
||||
case "重命名":
|
||||
// 保存原始名称用于查找
|
||||
string originalName = clickedItem.Text;
|
||||
|
||||
EnumDetectionType enumDetectionType= ConfigModel.DetectionList.FirstOrDefault(c =>
|
||||
c.Name.Equals(originalName, StringComparison.OrdinalIgnoreCase)).DetectionType;
|
||||
var form = new AddCubicleControl(this, "重命名工位操作")
|
||||
{
|
||||
Size = new Size(300, 500),
|
||||
// 传递当前名称到表单
|
||||
CubicleName = originalName
|
||||
CubicleName = originalName,
|
||||
DetectionType = enumDetectionType
|
||||
};
|
||||
|
||||
AntdUI.Modal.open(new AntdUI.Modal.Config(this, "", form, TType.None)
|
||||
@ -703,6 +707,7 @@ namespace DHSoftware.Views
|
||||
var detection = ConfigModel.DetectionList.FirstOrDefault(c =>
|
||||
c.Name.Equals(originalName, StringComparison.OrdinalIgnoreCase));
|
||||
detection.Name = newName;
|
||||
detection.DetectionType = form.DetectionType;
|
||||
foreach (var tab in tabs1.Pages)
|
||||
{
|
||||
if (tab is AntdUI.TabPage existingTab && existingTab.Text == $"{clickedItem.PARENTITEM.Text}-{originalName}")
|
||||
|
Reference in New Issue
Block a user