From 161669bc16a62898c18b40725ff0744887038275 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 20 5月 2025 18:16:43 +0800
Subject: [PATCH] 高级查询样式整改(其实我发现并没有什么变化啊)
---
Weben_CMS专用代码生成器/Code/MainForm.cs | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 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 23b5274..05d18bf 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"
@@ -36,7 +36,7 @@
this.tb_ChinaComment.Text = "鐗╂枡鍩虹淇℃伅琛�";//涓枃娉ㄩ噴
this.tb_MenuName.Text = "鐗╂枡淇℃伅";//涓枃娉ㄩ噴
this.tb_PageMenuInstanceName.Text = "wmsMaterial";
- this.tb_CreatePerson.Text = "shaocx";//鍒涘缓浜�
+ this.tb_CreatePerson.Text = "";//鍒涘缓浜�
this.tb_EntityName.Text = "WmsMaterial";//瀹炰綋绫诲悕
this.tb_LikeQueryAttrs.Text = "'MaterialCode', 'MaterialName', 'Remark'";
@@ -215,11 +215,11 @@
return;
}
//澧炲姞鏍¢獙
- if (columnList.Where(x => x.ColumnName.ToUpper() == SystemCommonVar.c_creator.ToUpper()).Count() == 0)
- {
- MessageBox.Show($"琛ㄤ腑娌℃湁瀛楁{SystemCommonVar.c_creator}锛�");
- return;
- }
+ //if (columnList.Where(x => x.ColumnName.ToUpper() == SystemCommonVar.c_creator.ToUpper()).Count() == 0)
+ //{
+ // MessageBox.Show($"琛ㄤ腑娌℃湁瀛楁{SystemCommonVar.c_creator}锛�");
+ // return;
+ //}
@@ -283,6 +283,13 @@
//CreateModelFile(columnList, tableName, filePrefixName, wcf_NameSpacePath, createPerson, chinaComment, entityName, modulelogo);
//CreateModelParamFile(columnList, tableName, filePrefixName, wcf_NameSpacePath, createPerson, chinaComment, entityName, modulelogo);
genCodeRootPath = tbPath.Text + @"\" + tb_WCF_NameSpacePath.Text.Trim();
+
+ //鏄惁瑕佷簨鍏堟竻鐞嗘枃浠跺す
+ if (this.ck_IsDeletefile.Checked)
+ {
+ FileHelper.ClearFolder(genCodeRootPath); // 閫掑綊鍒犻櫎
+ }
+
//var webFolerPath = (tb_WCF_NameSpacePath.Text.Trim() + "_Web").ToLower();
var webFolerPath = _tb_VueRootFolerName;
#region 瀹炰綋绫�
@@ -825,5 +832,10 @@
{
this.tb_FilePath.Text = "";
}
+
+ private void ck_IsDeletefile_CheckedChanged(object sender, EventArgs e)
+ {
+
+ }
}
}
--
Gitblit v1.9.3