⚡ 代码生成Csharp数据类型改为配置文件
This commit is contained in:
@@ -28,7 +28,6 @@ namespace ZR.CodeGenerator
|
||||
/// </summary>
|
||||
public static readonly string[] radioFiled = new string[] { "status", "state", "is" };
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 单表(增删改查)
|
||||
/// </summary>
|
||||
@@ -69,38 +68,60 @@ namespace ZR.CodeGenerator
|
||||
/// </summary>
|
||||
public static string PARENT_MENU_NAME = "parentMenuName";
|
||||
|
||||
/** 数据库字符串类型 */
|
||||
/// <summary>
|
||||
/// 数据库字符串类型
|
||||
/// </summary>
|
||||
public static string[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2" };
|
||||
|
||||
/** 数据库文本类型 */
|
||||
/// <summary>
|
||||
/// 数据库文本类型
|
||||
/// </summary>
|
||||
public static string[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" };
|
||||
|
||||
/** 数据库时间类型 */
|
||||
/// <summary>
|
||||
/// 数据库时间类型
|
||||
/// </summary>
|
||||
public static string[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };
|
||||
|
||||
/** 页面不需要编辑字段 */
|
||||
/// <summary>
|
||||
/// 页面不需要编辑字段
|
||||
/// </summary>
|
||||
public static string[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "delFlag" };
|
||||
|
||||
/** 页面不需要显示的列表字段 */
|
||||
/// <summary>
|
||||
/// 页面不需要显示的列表字段
|
||||
/// </summary>
|
||||
public static string[] COLUMNNAME_NOT_LIST = { "create_by", "create_time", "delFlag", "update_by",
|
||||
"update_time" , "password"};
|
||||
|
||||
/** 页面不需要查询字段 */
|
||||
/// <summary>
|
||||
/// 页面不需要查询字段
|
||||
/// </summary>
|
||||
public static string[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "delFlag", "update_by",
|
||||
"update_time", "remark" };
|
||||
|
||||
/** Entity基类字段 */
|
||||
/// <summary>
|
||||
/// Entity基类字段
|
||||
/// </summary>
|
||||
public static string[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" };
|
||||
|
||||
/** Tree基类字段 */
|
||||
/// <summary>
|
||||
/// Tree基类字段
|
||||
/// </summary>
|
||||
public static string[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors", "children" };
|
||||
|
||||
/** 文本框 */
|
||||
/// <summary>
|
||||
/// 文本框
|
||||
/// </summary>
|
||||
public static string HTML_INPUT = "input";
|
||||
/** 数字框 */
|
||||
/// <summary>
|
||||
/// 数字框
|
||||
/// </summary>
|
||||
public static string HTML_INPUT_NUMBER = "inputNumber";
|
||||
|
||||
/** 文本域 */
|
||||
/// <summary>
|
||||
/// 文本域
|
||||
/// </summary>
|
||||
public static string HTML_TEXTAREA = "textarea";
|
||||
|
||||
/** 下拉框 */
|
||||
@@ -110,53 +131,56 @@ namespace ZR.CodeGenerator
|
||||
/// </summary>
|
||||
public static string HTML_SELECT_MULTI = "selectMulti";
|
||||
|
||||
/** 单选框 */
|
||||
/// <summary>
|
||||
/// 单选框
|
||||
/// </summary>
|
||||
public static string HTML_RADIO = "radio";
|
||||
|
||||
/** 复选框 */
|
||||
/// <summary>
|
||||
/// 复选框
|
||||
/// </summary>
|
||||
public static string HTML_CHECKBOX = "checkbox";
|
||||
|
||||
/** 日期控件 */
|
||||
/// <summary>
|
||||
/// 日期控件
|
||||
/// </summary>
|
||||
public static string HTML_DATETIME = "datetime";
|
||||
|
||||
/** 图片上传控件 */
|
||||
/// <summary>
|
||||
/// 图片上传控件
|
||||
/// </summary>
|
||||
public static string HTML_IMAGE_UPLOAD = "imageUpload";
|
||||
|
||||
/** 文件上传控件 */
|
||||
/// <summary>
|
||||
/// 文件上传控件
|
||||
/// </summary>
|
||||
public static string HTML_FILE_UPLOAD = "fileUpload";
|
||||
|
||||
/** 富文本控件 */
|
||||
/// <summary>
|
||||
/// 富文本控件
|
||||
/// </summary>
|
||||
public static string HTML_EDITOR = "editor";
|
||||
// 自定义排序
|
||||
public static string HTML_SORT = "sort";
|
||||
/// <summary>
|
||||
/// 自定义输入框
|
||||
/// </summary>
|
||||
public static string HTML_CUSTOM_INPUT = "customInput";
|
||||
//颜色选择器
|
||||
/// <summary>
|
||||
/// 颜色选择器
|
||||
/// </summary>
|
||||
public static string HTML_COLORPICKER = "colorPicker";
|
||||
//switch开关
|
||||
public static string HTML_SWITCH { get; set; }
|
||||
|
||||
/** 字符串类型 */
|
||||
public static string TYPE_STRING = "string";
|
||||
|
||||
/** 整型 */
|
||||
public static string TYPE_INT = "int";
|
||||
|
||||
/** 长整型 */
|
||||
public static string TYPE_LONG = "long";
|
||||
|
||||
/** 浮点型 */
|
||||
public static string TYPE_DOUBLE = "Double";
|
||||
|
||||
/** 时间类型 */
|
||||
public static string TYPE_DATE = "DateTime";
|
||||
|
||||
/** 模糊查询 */
|
||||
/// <summary>
|
||||
/// 模糊查询
|
||||
/// </summary>
|
||||
public static string QUERY_LIKE = "LIKE";
|
||||
|
||||
/** 需要 */
|
||||
/// <summary>
|
||||
/// 需要
|
||||
/// </summary>
|
||||
public static string REQUIRE = "1";
|
||||
/// <summary>
|
||||
/// 时间类型
|
||||
/// </summary>
|
||||
public static string TYPE_DATE = "DateTime";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user