| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- using Mapster;
- namespace Customer.Source
- {
- /// <summary>
- /// APP页面模板 app_project_page
- /// </summary>
- public class AppProjectPage
- {
- /// <summary>
- /// 模板更新版本
- /// </summary>
- public int moduleVersion { get; set; }
- /// <summary>
- /// 是否读取网页标题
- /// </summary>
- public bool webTitle { get; set; }
- /// <summary>
- /// 分类
- /// </summary>
- public string? kind { get; set; }
- /// <summary>
- /// 更新时间
- /// </summary>
- public DateTime? updateTime { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- public DateTime? createTime { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- public string? createBy { get; set; }
- /// <summary>
- /// 更新人
- /// </summary>
- public string? updateBy { get; set; }
- /// <summary>
- /// 版本号
- /// </summary>
- public int version { get; set; }
- /// <summary>
- /// 排序
- /// </summary>
- public int sort { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- public int status { get; set; }
- /// <summary>
- /// ID
- /// </summary>
- public int id { get; set; }
- /// <summary>
- /// 页面强制更新
- /// </summary>
- public bool mustUpdate { get; set; }
- /// <summary>
- /// 下级页面
- /// </summary>
- public string? gotoPages { get; set; }
- /// <summary>
- /// 版本ID
- /// </summary>
- public int versionId { get; set; }
- /// <summary>
- /// 右侧侧按钮
- /// </summary>ColumnDataType = "json")]
- public List<BtnItem>? rightBtn { get; set; }
- public string? rightBtn1
- {
- get
- {
- if(rightBtn != null)
- {
- if(rightBtn.Count > 0)
- {
- return rightBtn[0].btnIcon ?? rightBtn[0].btnText ?? "";
- }
- }
- return "";
- }
- }
- public string? rightBtn2
- {
- get
- {
- if(rightBtn != null)
- {
- if(rightBtn.Count > 1)
- {
- return rightBtn[1].btnIcon ?? rightBtn[1].btnText ?? "";
- }
- }
- return "";
- }
- }
- public string? rightAction1
- {
- get
- {
- if(rightBtn != null)
- {
- if(rightBtn.Count > 0)
- {
- return rightBtn[0].btnAction ?? "";
- }
- }
- return "";
- }
- }
- public string? rightAction2
- {
- get
- {
- if(rightBtn != null)
- {
- if(rightBtn.Count > 1)
- {
- return rightBtn[1].btnAction ?? "";
- }
- }
- return "";
- }
- }
- /// <summary>
- /// 左侧按钮
- /// </summary>= "json")]
- public List<BtnItem>? leftBtn { get; set; }
- public string? leftBtn1
- {
- get
- {
- if(leftBtn != null)
- {
- if(leftBtn.Count > 0)
- {
- return leftBtn[0].btnIcon ?? leftBtn[0].btnText ?? "";
- }
- }
- return "";
- }
- }
- public string? leftBtn2
- {
- get
- {
- if(leftBtn != null)
- {
- if(leftBtn.Count > 1)
- {
- return leftBtn[1].btnIcon ?? leftBtn[1].btnText ?? "";
- }
- }
- return "";
- }
- }
- public string? leftAction1
- {
- get
- {
- if(leftBtn != null)
- {
- if(leftBtn.Count > 0)
- {
- return leftBtn[0].btnAction ?? "";
- }
- }
- return "";
- }
- }
- public string? leftAction2
- {
- get
- {
- if(leftBtn != null)
- {
- if(leftBtn.Count > 1)
- {
- return leftBtn[1].btnAction ?? "";
- }
- }
- return "";
- }
- }
- /// <summary>
- /// 手势侧滑返回
- /// </summary>
- public bool skidFlag { get; set; }
- /// <summary>
- /// 页面滚动条
- /// </summary>
- public bool showScrollBar { get; set; }
- public int isScrollBar
- {
- get
- {
- return showScrollBar ? 1 : 0;
- }
- }
- /// <summary>
- /// 顶部标题
- /// </summary>
- public string? title { get; set; }
- /// <summary>
- /// 显示头部
- /// </summary>
- public bool showTitle { get; set; }
- /// <summary>
- /// 苹果状态栏
- /// </summary>
- public string? statusBarStyle { get; set; }
- /// <summary>
- /// 前景色
- /// </summary>
- public string? textColor { get; set; }
- /// <summary>
- /// 背景色
- /// </summary>
- public string? backgroudColor { get; set; }
- public string? bgColor
- {
- get
- {
- return backgroudColor;
- }
- }
- /// <summary>
- /// 页面路径
- /// </summary>
- public string? modulePath { get; set; }
- /// <summary>
- /// APP项目ID
- /// </summary>
- public int appId { get; set; }
- /// <summary>
- /// 顶部标题位置
- /// </summary>
- public string? titlePosition { get; set; }
- /// <summary>
- /// 页面文件
- /// </summary>
- public string? moduleFile { get; set; }
- /// <summary>
- /// 数据ID
- /// </summary>
- public string? dataId { get; set; }
- }
- public class BtnItem
- {
- public string? btnText { get; set; }
- public string? btnTcon { get; set; }
- public string? btnAction { get; set; }
- public string? btnIcon { get; set; }
- }
- }
|