private static string FormSaveCode(ConfigBase config)
        {
            var entity = config as EntityConfig;

            if (entity == null)
            {
                return("请选择一个实体模型");
            }
            return(EasyUiHelperCoder.InputConvert2(entity));
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static string InputConvert(ConfigBase config)
        {
            var entity = config as EntityConfig;

            if (entity == null)
            {
                return("请选择一个实体模型");
            }
            var coder = new EasyUiHelperCoder
            {
                Entity  = entity,
                Project = entity.Parent
            };

            return(coder.InputConvert());
        }
        public override string BaseCode()
        {
            var coder = new EasyUiHelperCoder
            {
                Entity  = Entity,
                Project = Project
            };

            return
                ($@"
using System;

using Gboxt.Common.DataModel;
using Gboxt.Common.DataModel.BusinessLogic;
using Gboxt.Common.DataModel.MySql;
using Gboxt.Common.WebUI;

using {NameSpace};
using {NameSpace}.BusinessLogic;
using {NameSpace}.DataAccess;

namespace {NameSpace}.{Entity.Name}Page
{{
    partial class Action
    {{
        /// <summary>
        ///     取得列表数据
        /// </summary>
        protected void DefaultGetListData()
        {{
            var filter = new LambdaItem<{Entity.EntityName}>();
            SetKeywordFilter(filter);
            base.GetListData(filter);
        }}

        /// <summary>
        ///     关键字查询缺省实现
        /// </summary>
        /// <param name=""filter"">筛选器</param>
        public void SetKeywordFilter(LambdaItem<{Entity.EntityName}> filter)
        {{
            var keyWord = GetArg(""keyWord"");
            if (!string.IsNullOrEmpty(keyWord))
            {{
                filter.AddAnd(p => {QueryCode()});
            }}
        }}

        /// <summary>
        /// 读取Form传过来的数据
        /// </summary>
        /// <param name=""data"">数据</param>
        /// <param name=""convert"">转化器</param>
        protected void DefaultReadFormData({Entity.EntityName} data, FormConvert convert)
        {{{coder.InputConvert()}
        }}
        #region 设计器命令
{CommandCsCode()}
        #endregion
    }}
}}");
        }