From 43b27a289ebe4353502f86ca05f3a57d5ed4e918 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 06 5月 2025 14:48:47 +0800
Subject: [PATCH] 222

---
 Weben_CMS专用代码生成器/Code/MainForm.cs |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/MainForm.cs" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/MainForm.cs"
index e8da367..efc2ee6 100644
--- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/MainForm.cs"
+++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/MainForm.cs"
@@ -104,6 +104,15 @@
                 string filePrefixName = this.tb_FileName.Text.Trim();//鏂囦欢鍓嶇紑鍚�
                 string modulelogo = this.tb_Modulelogo.Text.Trim();//妯″潡绠�鍐�
 
+
+                string _tb_ValidateRepeatName = this.tb_ValidateRepeatName.Text.Trim();//涓枃娉ㄩ噴
+                if (_tb_ValidateRepeatName == "")
+                {
+                    MessageBox.Show("璇疯緭鍏� 閲嶅鎬ф牎楠屽瓧娈碉紒");
+                    this.tb_ValidateRepeatName.Focus();
+                    return;
+                }
+
                 string _tb_LikeQueryAttrsName = this.tb_LikeQueryAttrsName.Text.Trim();//涓枃娉ㄩ噴
                 if (_tb_LikeQueryAttrsName == "")
                 {
@@ -210,7 +219,8 @@
                     EntityName = entityName,
                     EntityInstanceName = tableAlias,
                     LikeQueryAttrs = _tb_LikeQueryAttrs,
-                    LikeQueryAttrsName = _tb_LikeQueryAttrsName
+                    LikeQueryAttrsName = _tb_LikeQueryAttrsName,
+                    ValidateRepeatName = this.tb_ValidateRepeatName.Text
                 };
                 //澶勭悊鏋氫妇绫诲瀷
                 List<EnumModel> enumList = new List<EnumModel>();
@@ -229,6 +239,19 @@
                         });
                     }
                 }
+                else
+                {
+                    if (!string.IsNullOrEmpty(str_enumList))
+                    {
+                        var arr_single = str_enumList.Split('|');
+                        enumList.Add(new EnumModel()
+                        {
+                            EnumAttrName = arr_single[0],
+                            EnumType = arr_single[1],
+                            EnumTypeDesc = arr_single[2]
+                        });
+                    }
+                }
                 param.EnumList = enumList;
 
                 //鐢熸垚Model

--
Gitblit v1.9.3