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