using Newtonsoft.Json;
using OASystem.Domain.Attributes;
using OASystem.Domain.Entities.Resource;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.Resource
{
public class TranslatorLibraryView : Res_TranslatorLibrary
{
}
public class TranslatorLibraryInfoView
{
public int Id { get; set; }
///
/// 所在地区
///
public string Area { get; set; }
///
/// 姓名
///
public string Name { get; set; }
///
/// 性别(0:未设置 1:男 2:女)
///
public int Sex { get; set; }
///
/// 照片
///
public string Photo { get; set; }
///
/// 联系电话
///
public string Tel { get; set; }
///
/// 邮箱号
///
public string Email { get; set; }
///
/// 微信号
///
public string WechatNo { get; set; }
///
/// 其他社交账号
///
public string OtherSocialAccounts { get; set; }
///
/// 语种
///
public string Language { get; set; }
///
/// 费用
///
public decimal Price { get; set; }
///
/// 币种
///
public int Currency { get; set; }
///
/// 简历或其他证书
///
public string Files { get; set; }
///
/// 简历或其他证书
///
public FileInfoView[] FilePaths
{
get
{
var files1 = new List();
var files = new List();
if (!string.IsNullOrEmpty(Files))
{
try
{
files = JsonConvert.DeserializeObject>(Files);
for (int i = 0; i < files.Count; i++)
{
files1.Add(new FileInfoView()
{
FileName = files[i].ToString(),
FilePathName = $"http://132.232.92.186:24/Office/GrpFile/TranslatorLibrary/{files[i].ToString()}"
});
}
}
catch (Exception)
{
}
}
return files1.ToArray();
}
}
///
/// 公务出访Id集合
///
public int[] OfficialDutyIdItem { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
public class FileInfoView
{
public string FileName { get; set; }
public string FilePathName { get; set; }
}
public class TranslatorLibraryItemView
{
public int Id { get; set; }
[Encrypted]
public string Area { get; set; }
[Encrypted]
public string Name { get; set; }
public string Sex { get; set; }
[Encrypted]
public string Tel { get; set; }
[Encrypted]
public string Email { get; set; }
[Encrypted]
public string WechatNo { get; set; }
[Encrypted]
public string Language { get; set; }
public decimal Price { get; set; }
public string Currency { get; set; }
public string CreateUserName { get; set; }
public DateTime CreateTime { get; set; }
[Encrypted]
public string Remark { get; set; }
}
public class TranslatorLibraryNameView
{
public int Id { get; set; }
[Encrypted]
public string Name { get; set; }
}
}