Weben_CMS专用代码生成器/Code/MainForm.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/MainForm.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/Model/GenerateCodeParam.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/Templete/Web/Controllers/EntityMode模板.txt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Weben_CMS专用代码生成器/Code/Utility/CommonHelper.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/MainForm.Designer.cs
@@ -87,6 +87,8 @@ this.label12 = new System.Windows.Forms.Label(); this.tb_templeteFileDownName = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.label25 = new System.Windows.Forms.Label(); this.tb_DeleteAlertAttr = new System.Windows.Forms.TextBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); @@ -400,6 +402,8 @@ // // groupBox2 // this.groupBox2.Controls.Add(this.tb_DeleteAlertAttr); this.groupBox2.Controls.Add(this.label25); this.groupBox2.Controls.Add(this.tb_ValidateRepeatName); this.groupBox2.Controls.Add(this.label24); this.groupBox2.Controls.Add(this.tb_LikeQueryAttrsName); @@ -650,6 +654,22 @@ this.label14.TabIndex = 47; this.label14.Text = "æä»¶ä¸è½½åå:"; // // label25 // this.label25.AutoSize = true; this.label25.Location = new System.Drawing.Point(452, 255); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(83, 12); this.label25.TabIndex = 64; this.label25.Text = "å é¤æç¤ºåæ®µ:"; // // tb_DeleteAlertAttr // this.tb_DeleteAlertAttr.Location = new System.Drawing.Point(553, 246); this.tb_DeleteAlertAttr.Name = "tb_DeleteAlertAttr"; this.tb_DeleteAlertAttr.Size = new System.Drawing.Size(145, 21); this.tb_DeleteAlertAttr.TabIndex = 65; // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -738,6 +758,8 @@ private System.Windows.Forms.TextBox tb_LikeQueryAttrsName; private System.Windows.Forms.TextBox tb_ValidateRepeatName; private System.Windows.Forms.Label label24; private System.Windows.Forms.TextBox tb_DeleteAlertAttr; private System.Windows.Forms.Label label25; } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/MainForm.cs
@@ -105,6 +105,14 @@ string modulelogo = this.tb_Modulelogo.Text.Trim();//模åç®å string _tb_DeleteAlertAttr = this.tb_DeleteAlertAttr.Text.Trim();//ä¸ææ³¨é if (_tb_DeleteAlertAttr == "") { MessageBox.Show("请è¾å ¥ å é¤æç¤ºåæ®µï¼"); this.tb_DeleteAlertAttr.Focus(); return; } string _tb_ValidateRepeatName = this.tb_ValidateRepeatName.Text.Trim();//ä¸ææ³¨é if (_tb_ValidateRepeatName == "") { @@ -210,6 +218,7 @@ GenerateCodeParam param = new GenerateCodeParam() { DeleteAlertAttr = CommonHelper.FirstLowercase(_tb_DeleteAlertAttr), Modulelogo = modulelogo, ChinaComment = chinaComment, PageMenuName = menuName, @@ -447,7 +456,7 @@ str_generate = AutoMapperProfile_Generate.CreateText(param); tf = TextHelper.Export2File_V2(autoMapFilePath, param.EntityName + $"AutoMapperProfile.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); ////çæ OutputModel æä»¶ //str_generate = OutputModel_Generate.CreateQueryModelLText(modulelogo, chinaComment, columnList, entityName); Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/Model/GenerateCodeParam.cs
@@ -13,6 +13,11 @@ public class GenerateCodeParam { /// <summary> /// å é¤æç¤ºåæ®µ /// </summary> public string DeleteAlertAttr { get; set; } /// <summary> /// 模åç®å /// </summary> public string Modulelogo { get; set; } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/Templete/Web/Controllers/EntityModeÄ£°å.txt
@@ -128,9 +128,9 @@ { label: 'å é¤', fn: async (c: CurrentType) => { const names = selection.value.map((item: { name: string }) => item.name) const names = selection.value.map((item: { $DeleteAlertAttr$: string }) => item.$DeleteAlertAttr$) ConfirmBox( `æ¯å¦å é¤${names.length ? names.join(',') : c.row.name}` `æ¯å¦å é¤${names.length ? names.join(',') : c.row.$DeleteAlertAttr$}` ).then(async () => { const ids = selection.value.map((item: { id: string }) => item.id) await $PageMenuInstanceName$.delete$EntityName$s(ids.length ? ids : [c.row.id]) Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/Utility/CommonHelper.cs
@@ -50,6 +50,7 @@ str = str.Replace("$LikeQueryAttrs$", param.LikeQueryAttrs); str = str.Replace("$LikeQueryAttrsName$", param.LikeQueryAttrsName); str = str.Replace("$ValidateRepeatName$", param.ValidateRepeatName); str = str.Replace("$DeleteAlertAttr$", param.DeleteAlertAttr); }