222
schangxiang@126.com
2025-05-06 bdfba21ce793f0d197e6deeea85e59de8d9d33ff
222
已修改5个文件
41 ■■■■■ 文件已修改
Weben_CMS专用代码生成器/Code/MainForm.Designer.cs 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Weben_CMS专用代码生成器/Code/MainForm.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Weben_CMS专用代码生成器/Code/Model/GenerateCodeParam.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Weben_CMS专用代码生成器/Code/Templete/Web/Controllers/EntityMode模板.txt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Weben_CMS专用代码生成器/Code/Utility/CommonHelper.cs 1 ●●●● 补丁 | 查看 | 原始文档 | 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,
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);
        }