using OASystem.Domain.Attributes; using OASystem.Domain.Entities; using OASystem.Domain.Entities.Resource; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Json.Serialization; using System.Text.Unicode; using System.Threading.Tasks; namespace OASystem.Domain.ViewModels.Resource { public class InvitationOfficialActivityDataView : Res_InvitationOfficialActivityData { public int Row_Number { get; set; } public string CreateUserName { get; set; } public string DelegationStr { get; set; } } public class IOAInfoView { public int Id { get; set; } /// /// 邀请方国家 /// [Encrypted] public string Country { get; set; } /// /// 城市 /// [Encrypted] public string City { get; set; } /// /// 邀请方名称 /// [Encrypted] public string UnitName { get; set; } /// ///邀请方官网 /// [Encrypted] public string UnitWeb { get; set; } /// /// 涉及领域 /// [Encrypted] public string Field { get; set; } /// /// 邀请方地址 /// [Encrypted] public string Address { get; set; } /// /// 邀请方信息 /// [Encrypted] public string UnitInfo { get; set; } /// /// 联系人 /// [Encrypted] public string Contact { get; set; } /// /// 职务 /// [Encrypted] public string Job { get; set; } /// /// 联系电话 /// [Encrypted] public string Tel { get; set; } /// /// 电子邮箱 /// [Encrypted] public string Email { get; set; } /// /// 微信 /// [Encrypted] public string WeChat { get; set; } /// /// fb /// [Encrypted] public string FaceBook { get; set; } /// /// ins /// [Encrypted] public string Ins { get; set; } /// /// 团名 /// [Encrypted] public string Delegation { get; set; } /// /// 文件地址 /// [Encrypted] public string SndFileName { get; set; } /// /// 文件地址 /// public string[] SndFileNameJsonStr { get { if (string.IsNullOrEmpty(SndFileName)) return new string[] { }; var json = new List(); try { json = JsonSerializer.Deserialize>(SndFileName); } catch (Exception) { json = new List() { SndFileName }; } return json.ToArray(); } } /// /// 修改版文件地址 /// public string[] SndFilePathItem { get { var urls = new List(); if (string.IsNullOrEmpty(SndFileName)) return urls.ToArray(); var filePath = @$"http://132.232.92.186:24/Office/GrpFile/商邀相关文件/"; try { var strs = JsonSerializer.Deserialize>(SndFileName); foreach (var str in strs) { urls.Add(@$"{filePath}{str}"); } } catch (Exception) { urls.Add(@$"{filePath}{SndFileName}"); } return urls.ToArray(); } } /// /// 传真号码 /// [Encrypted] public string Fax { get; set; } /// /// 其他信息 /// [Encrypted] public string OtherInfo { get; set; } /// /// 背景 /// [Encrypted] public string Background { get; set; } [Encrypted] public string Remark { get; set; } public string DelegationStr { get; set; } } }