using OASystem.Domain.Entities.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.System
{
public class SetDataView
{
public int Id { get; set; }
///
/// 分类名称
///
public string Name { get; set; }
///
/// setdatatype id
///
public int STid { get; set; }
public string Remark { get; set; }
}
///
/// 数据data
///
public class SetDataInfoView
{
public int Id { get; set; }
///
/// 分类名称
///
public string Name { get; set; }
public string Remark { get; set; }
public int RemarkSort
{
get
{
int sort = 0;
int.TryParse(Remark, out sort);
return sort;
}
}
}
///
/// 卡类型数据data
///
public class SetDataCurrencyInfoView
{
public int Id { get; set; }
///
/// 分类名称
///
public string? Name { get; set; }
///
/// 卡类型对应的币种
///
public string? Currency { get {
string? currency = string.Empty;
if (Id == 74) currency = "USD"; //74 美元卡
else if (Id == 75) currency = "EUR"; //775 欧元卡
else if(Id == 86) currency = "CNY"; //86 招行卡
else if (Id == 346) currency = "CNY"; //346 中信卡
else if (Id == 363) currency = "CNY"; //363 交行卡
return currency;
} }
///
/// 持卡人
///
public string? Cardholder { get; set; } = "Zhang Hailin";
///
/// 卡号
///
public string? Remark { get; set; }
}
public class SetDataAndPageInfoView
{
///
/// 模块id
///
public int Modulid { get; set; }
///
/// 分类名称
///
public string ModulName { get; set; }
///
/// setdatatype id
///
public int STid { get; set; }
///
/// 模块备注
///
public string ModulRemark { get; set; }
///
/// 页面id
///
public int Pageid { get; set; }
///
/// 页面名称
///
public string PageName { get; set; }
///
/// 页面是否启用
///
public int PageIsEnable { get; set; }
public int PagePhoneIsEnable { get; set; }
///
/// 页面Code
///
public string SystemMenuCode { get; set; }
public string WebUrl { get; set; }
public string AndroidUrl { get; set; }
public string IosUrl { get; set; }
///
/// 手机端图标
///
public string Icon { get; set; }
///
/// 页面备注
///
public string PageRemark { get; set; }
///
/// 页面添加的操作
///
public List FunArr { get; set; }
}
public class SetDataAndPageInfoDto
{
///
/// 模块id
///
public int Modulid { get; set; }
///
/// 分类名称
///
public string ModulName { get; set; }
///
/// setdatatype id
///
public int STid { get; set; }
///
/// 模块备注
///
public string ModulRemark { get; set; }
///
/// 页面id
///
public int Pageid { get; set; }
///
/// 页面名称
///
public string PageName { get; set; }
///
/// 页面是否启用
///
public int PageIsEnable { get; set; }
public int PagePhoneIsEnable { get; set; }
///
/// 页面Code
///
public string SystemMenuCode { get; set; }
public string WebUrl { get; set; }
public string AndroidUrl { get; set; }
public string IosUrl { get; set; }
///
/// 手机端图标
///
public string Icon { get; set; }
///
/// 页面备注
///
public string PageRemark { get; set; }
///
/// 页面添加的操作
///
public List FunArr { get; set; }
///
/// 用户ID
///
public int UserId { get; set; }
}
public class SetDataIView:Sys_SetData
{
public string StName { get; set; }
public string CnName { get;set; }
}
}