using System.ComponentModel.DataAnnotations;
namespace WalkingTec.Mvvm.Core
{
public enum HttpMethodEnum
{
GET,
POST,
PUT,
DELETE
}
///
/// 列表操作列类型
///
public enum ColumnFormatTypeEnum
{
Dialog,//弹出窗口
Button,//按钮
Download,//下载
ViewPic,//查看图片
Script,//脚本
Html
}
///
/// 数据库类型
///
public enum DBTypeEnum { SqlServer, MySql, PgSql, Memory, SQLite, Oracle }
///
/// 页面显示方式
///
public enum PageModeEnum { Single, Tab }
///
/// Tab页的显示方式
///
public enum TabModeEnum { Default, Simple }
public enum BlazorModeEnum { Server, Wasm}
///
/// 按钮
///
public enum ButtonTypesEnum
{
Button,
Link
};
///
/// 按钮
///
public enum RedirectTypesEnum
{
Layer,
Self,
NewWindow,
NewTab,
};
///
/// 日期类型
///
public enum DateTimeTypeEnum
{
///
/// 日期选择器
/// 可选择:年、月、日
///
Date,
///
/// 日期时间选择器
/// 可选择:年、月、日、时、分、秒
///
DateTime,
///
/// 年选择器
/// 只提供年列表选择
///
Year,
///
/// 年月选择器
/// 只提供年、月选择
///
Month,
///
/// 时间选择器
/// 只提供时、分、秒选择
///
Time
};
///
/// 图形枚举
///
public enum ChartEnum
{
line,
pie,
column,
bubble,
barcolumn
}
///
/// 图形统计值类型
///
public enum ChartValueType
{
sum,
count,
sumpct,
countpct
}
///
/// 图形统计分区类型
///
public enum PartitionType
{
year,
month,
day,
hour,
minute,
second
}
public enum UIEnum
{ LayUI, React, VUE,Blazor }
public enum BoolComboTypes { YesNo, ValidInvalid, MaleFemale, HaveNotHave, Custom }
public enum SortDir { Asc, Desc }
public enum BackgroudColorEnum
{
Grey,
Yellow,
Red
};
public enum GenderEnum
{
[Display(Name = "Sys.Male")]
Male = 0,
[Display(Name = "Sys.Female")]
Female = 1
}
}