From d28c44336aca732584ce7735f1df813aed60aae2 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 06 5月 2025 05:58:03 +0800
Subject: [PATCH] 22

---
 Weben_CMS专用代码生成器/Code/MainForm.cs |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 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 369e292..3ac190e 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"
@@ -33,7 +33,7 @@
             this.tb_ChinaComment.Text = "鐗╂枡鍩虹淇℃伅琛�";//涓枃娉ㄩ噴
             this.tb_CreatePerson.Text = "shaocx";//鍒涘缓浜�
             this.tb_EntityName.Text = "WmsMaterial";//瀹炰綋绫诲悕
-            this.tb_EntityProName.Text = "_wmsMaterial";//瀹炰綋绫诲璞″悕
+            //this.tb_EntityProName.Text = "wmsMaterial";//瀹炰綋绫诲璞″悕
             this.tb_EnumList.Text = "PurchaseType|PurchaseTypeEnum|PurchaseTypeDesc,MaterialType|MaterialTypeEnum|MaterialTypeDesc,IsMainBranch|YesNoEnum|IsMainBranchDesc";
 
             this.cmb_DataSource.DropDownStyle = ComboBoxStyle.DropDownList;
@@ -162,7 +162,8 @@
                     ChinaComment = chinaComment,
                     NameSpacePath = wcf_NameSpacePath,
                     ColumnNameList = columnList,
-                    EntityName = entityName
+                    EntityName = entityName,
+                    EntityInstanceName = tableAlias
                 };
                 //澶勭悊鏋氫妇绫诲瀷
                 List<EnumModel> enumList = new List<EnumModel>();
@@ -219,6 +220,31 @@
 
                 #endregion
 
+                #region AppSerivice
+
+                //8銆佺敓鎴� IAppService 鏂囦欢
+                var appServiceFilePath = tbPath.Text + @"\server\src\CMS.Plugin." + tb_WCF_NameSpacePath.Text.Trim() + @".Application.Contracts\Services";
+                str_generate = IAppService_Generate.CreateText(param);
+                tf = TextHelper.Export2File_V2(appServiceFilePath, $"I{param.EntityName}AppService.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo);
+
+                //9銆佺敓鎴� AppService 鏂囦欢
+                appServiceFilePath = tbPath.Text + @"\server\src\CMS.Plugin." + tb_WCF_NameSpacePath.Text.Trim() + @".Application\Implements";
+                str_generate = AppService_Generate.CreateText(param);
+                tf = TextHelper.Export2File_V2(appServiceFilePath, $"{param.EntityName}AppService.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo);
+
+
+                #endregion
+
+                #region Contorller
+
+                //10銆佺敓鎴� Contorller 鏂囦欢
+                var continerlllePath = tbPath.Text + @"\server\src\CMS.Plugin." + tb_WCF_NameSpacePath.Text.Trim() + @"\Controller";
+                str_generate = Controller_Generate.CreateText(param);
+                tf = TextHelper.Export2File_V2(continerlllePath, $"{param.EntityName}Controller.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo);
+
+
+                #endregion
+
 
                 ////鐢熸垚 OutputModel 鏂囦欢
                 //str_generate = OutputModel_Generate.CreateQueryModelLText(modulelogo, chinaComment, columnList, entityName);

--
Gitblit v1.9.3