From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点

---
 HMI.MenuManage/Modal/MenuModal.xaml |  107 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 107 insertions(+), 0 deletions(-)

diff --git a/HMI.MenuManage/Modal/MenuModal.xaml b/HMI.MenuManage/Modal/MenuModal.xaml
new file mode 100644
index 0000000..a919f39
--- /dev/null
+++ b/HMI.MenuManage/Modal/MenuModal.xaml
@@ -0,0 +1,107 @@
+锘�<pu:WindowX x:Class="HMI.MenuManage.MenuModal"
+            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+            xmlns:local="clr-namespace:HMI.MenuManage"
+            xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
+            xmlns:pw="https://opensource.panuon.com/wpf"
+            xmlns:pu="https://opensource.panuon.com/wpf-ui"
+            mc:Ignorable="d"
+            Title="Form"
+            SizeToContent="Height"
+            Width="600"
+            Style="{StaticResource ModalWindow}"
+            WindowStartupLocation="CenterOwner"
+            Foreground="Black"
+            >
+    <Grid Margin="10">
+        <StackPanel x:Name="formPanel">
+            <pu:FormGroup x:Name="FgCode" Style="{StaticResource InputFormGroupStyle}" 
+                          dp:FormGroupHelper.ValidateMethod="ValidateCode"
+                  Header="{DynamicResource HMI.Menu.Code}"
+                  dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+                <TextBox x:Name="TbCode" Style="{StaticResource EditorTextBoxStyle}" />
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgName" Style="{StaticResource InputFormGroupStyle}"
+                          Header="{DynamicResource HMI.Menu.Name}" GroupName="MyFormGroup"
+                          dp:FormGroupHelper.IsRequired="True" 
+dp:FormGroupHelper.ValidateMethod="ValidateName">
+                <TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" />
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgIcon" Style="{StaticResource InputFormGroupStyle}"
+                          Header="{DynamicResource HMI.Menu.Icon}" GroupName="MyFormGroup">
+                <Grid>
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition />
+                        <ColumnDefinition Width="30" />
+                    </Grid.ColumnDefinitions>
+                    <TextBox x:Name="TbIcon" IsReadOnly="True" FontFamily="{StaticResource iconfont}" Style="{StaticResource EditorTextBoxStyle}" />
+                    <Button Grid.Column="1" BorderThickness="0,1,1,1" Style="{StaticResource SearchButton}"
+                            Click="IconSelect_Click"/>
+                </Grid>
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgLevel" Style="{StaticResource InputFormGroupStyle}"
+                          Header="{DynamicResource HMI.Menu.Level}" 
+                          dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+                <ComboBox x:Name="TbLevel" Style="{StaticResource FormComboxStyle}"
+                          SelectionChanged="TbLevel_SelectionChanged">
+                    <ComboBoxItem>1</ComboBoxItem>
+                    <ComboBoxItem>2</ComboBoxItem>
+                </ComboBox>
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgType"
+  Style="{StaticResource InputFormGroupStyle}" Header="{DynamicResource HMI.Menu.Type}" GroupName="MyFormGroup">
+                <ComboBox x:Name="TbType" Style="{StaticResource FormComboxStyle}">
+                    <ComboBoxItem>Permission</ComboBoxItem>
+                    <ComboBoxItem>WPF</ComboBoxItem>
+                    <ComboBoxItem>WinForm</ComboBoxItem>
+                    <ComboBoxItem>LV</ComboBoxItem>
+                </ComboBox>
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgParentCode" Style="{StaticResource InputFormGroupStyle}" 
+                          Header="{DynamicResource HMI.Menu.ParentName}" GroupName="MyFormGroup">
+                <!--<Grid>
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition />
+                        <ColumnDefinition Width="30" />
+                    </Grid.ColumnDefinitions>
+                    <TextBox x:Name="TbParentCode" Style="{StaticResource EditorTextBoxStyle}" />
+                    <Button Grid.Column="1" Style="{StaticResource SearchButton}"/>
+                </Grid>-->
+                <ComboBox x:Name="TbParentCode" Style="{StaticResource FormComboxStyle}" 
+                          DisplayMemberPath="Name"
+                          SelectedValuePath="Code"
+                          ItemsSource="{Binding ParentSource}"
+                          ></ComboBox>
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgDllPath" Style="{StaticResource InputFormGroupStyle}" 
+                          Header="{DynamicResource HMI.Menu.DllPath}" GroupName="MyFormGroup">
+                <Grid>
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition />
+                        <ColumnDefinition Width="30" />
+                    </Grid.ColumnDefinitions>
+                    <TextBox x:Name="TbDllPath" IsReadOnly="True" Style="{StaticResource EditorTextBoxStyle}" />
+                    <Button Grid.Column="1" Click="DllSelect_Click" Style="{StaticResource SearchButton}"/>
+                </Grid>
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgClassName" Style="{StaticResource InputFormGroupStyle}" 
+                          Header="{DynamicResource HMI.Menu.ClassName}" GroupName="MyFormGroup">
+                <TextBox x:Name="TbClassName" Style="{StaticResource EditorTextBoxStyle}" />
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgSort" Style="{StaticResource InputFormGroupStyle}" 
+              Header="{DynamicResource HMI.Menu.Sort}" GroupName="MyFormGroup">
+                <pu:NumberInput x:Name="NiSort" Style="{StaticResource FormNumberInput}" />
+            </pu:FormGroup>
+        </StackPanel>
+    </Grid>
+</pu:WindowX>

--
Gitblit v1.9.1