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 OfficialActivitiesView : Res_OfficialActivities
{
///
/// 翻译人员Id
///
public int[] TranslatorIdItem { get; set; } = Array.Empty();
public List ScreenshotOfMailUrls
{
get
{
List urls = new List();
urls = !string.IsNullOrEmpty(ScreenshotOfMailUrl)
? JsonConvert.DeserializeObject>(ScreenshotOfMailUrl)
: new List();
List urls1 = new List();
urls.ForEach(x =>
{
urls1.Add("http://132.232.92.186:24/" + x);
});
return urls1;
}
}
public string CreateUserName { get; set; }
public string OfficialFormName { get; set; }
public string ConfirmTheInvitationStr
{
get {
return this.ConfirmTheInvitation == 0 ? "未确认" : "已确认";
}
}
public TranslatorView TranslatorInfo { get; set; } = new TranslatorView { };
}
public class TranslatorView
{
public int Id { get; set; }
///
/// 所在地区
///
[Encrypted]
public string Area { get; set; }
///
/// 姓名
///
[Encrypted]
public string Name { get; set; }
///
/// 性别(0:未设置 1:男 2:女)
///
public int Sex { get; set; }
///
/// 联系电话
///
[Encrypted]
public string Tel { get; set; }
///
/// 邮箱号
///
[Encrypted]
public string Email { get; set; }
///
/// 微信号
///
[Encrypted]
public string WechatNo { get; set; }
///
/// 其他社交账号
///
[Encrypted]
public string OtherSocialAccounts { get; set; }
///
/// 语种
///
[Encrypted]
public string Language { get; set; }
///
/// 费用
///
public decimal Price { get; set; }
///
/// 币种
///
public int Currency { get; set; }
public string CurrencyName { get; set; }
}
///
/// 请示范例 Tips View
///
public class ReqReqSampleTipsView
{
public string TeamName { get; set; }
public string Country { get; set; }
public string Area { get; set; }
public string Client { get; set; }
public string ReqSample { get; set; }
}
}