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 | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 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 a3cde54..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,14 +36,14 @@
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'";
this.tb_LikeQueryAttrsName.Text = "璇疯緭鍏ョ墿鏂欑紪鐮�/鐗╂枡鍚嶇О/澶囨敞";
//this.tb_EntityProName.Text = "wmsMaterial";//瀹炰綋绫诲璞″悕
- this.tb_EnumList.Text = "PurchaseType|PurchaseTypeEnum|PurchaseTypeDesc,MaterialType|MaterialTypeEnum|MaterialTypeDesc,IsMainBranch|YesNoEnum|IsMainBranchDesc";
+ this.tb_EnumList.Text = "PurchaseType,PurchaseTypeEnum&MaterialType,MaterialTypeEnum&IsMainBranch,YesNoEnum";
this.cmb_DataSource.DropDownStyle = ComboBoxStyle.DropDownList;
List<ListItem> itemList = CommonHelper.GetDataSources();
@@ -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;
+ //}
@@ -241,7 +241,8 @@
EntityInstanceName = tableAlias,
LikeQueryAttrs = _tb_LikeQueryAttrs,
LikeQueryAttrsName = _tb_LikeQueryAttrsName,
- ValidateRepeatName = this.tb_ValidateRepeatName.Text
+ ValidateRepeatName = this.tb_ValidateRepeatName.Text,
+ TableName = tableName
};
//澶勭悊鏋氫妇绫诲瀷
List<EnumModel> enumList = new List<EnumModel>();
@@ -282,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 瀹炰綋绫�
@@ -824,5 +832,10 @@
{
this.tb_FilePath.Text = "";
}
+
+ private void ck_IsDeletefile_CheckedChanged(object sender, EventArgs e)
+ {
+
+ }
}
}
--
Gitblit v1.9.3