zs
2025-05-07 ce86642feb81352ce43701fceda3ec59ce662905
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
using GenerateCode_WeiBen_WMS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace GenerateCode_GEBrilliantFactory
{
    /// <summary>
    /// 生成查询实体类
    /// </summary>
    public class EntityNameClass_Generate : BaseGenerate
    {
        public static string CreateText(GenerateCodeParam param)
        {
            var str = TextHelper.ReadText(@"Templete\Web\Views\Pages\EntityNameClass\EntityNameClass模板.txt");
            CommonReplace(ref str);
 
            CommonHelper.CommonReplaceStr(param, ref str);
 
 
            string attrString = "";
            attrString += StructStrHelper.GetVueFormOptionsStrForPageAdd_EntityNameClass_enumOptions(param.ColumnNameList, param);
            str = str.Replace("$EntityNameClass_enumOptions$", attrString);
 
 
             attrString = "";
            attrString += StructStrHelper.GetVueFormOptionsStrForPageAdd_QueryTableListForBool(param.ColumnNameList, param);
            str = str.Replace("$QueryTableListForBool$", attrString);
 
 
            attrString = "";
            attrString += StructStrHelper.GetVueFormOptionsStr_EntityNameClass_fetchEnumData(param.ColumnNameList, param);
            str = str.Replace("$EntityNameClass_fetchEnumData$", attrString);
 
            return str;
        }
    }
}