123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- 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; }
- /// <summary>
- /// 邀请方国家
- /// </summary>
- [Encrypted]
- public string Country { get; set; }
- /// <summary>
- /// 城市
- /// </summary>
- [Encrypted]
- public string City { get; set; }
- /// <summary>
- /// 邀请方名称
- /// </summary>
- [Encrypted]
- public string UnitName { get; set; }
- /// <summary>
- ///邀请方官网
- /// </summary>
- [Encrypted]
- public string UnitWeb { get; set; }
- /// <summary>
- /// 涉及领域
- /// </summary>
- [Encrypted]
- public string Field { get; set; }
- /// <summary>
- /// 邀请方地址
- /// </summary>
- [Encrypted]
- public string Address { get; set; }
- /// <summary>
- /// 邀请方信息
- /// </summary>
- [Encrypted]
- public string UnitInfo { get; set; }
- /// <summary>
- /// 联系人
- /// </summary>
- [Encrypted]
- public string Contact { get; set; }
- /// <summary>
- /// 职务
- /// </summary>
- [Encrypted]
- public string Job { get; set; }
- /// <summary>
- /// 联系电话
- /// </summary>
- [Encrypted]
- public string Tel { get; set; }
- /// <summary>
- /// 电子邮箱
- /// </summary>
- [Encrypted]
- public string Email { get; set; }
- /// <summary>
- /// 微信
- /// </summary>
- [Encrypted]
- public string WeChat { get; set; }
- /// <summary>
- /// fb
- /// </summary>
- [Encrypted]
- public string FaceBook { get; set; }
- /// <summary>
- /// ins
- /// </summary>
- [Encrypted]
- public string Ins { get; set; }
- /// <summary>
- /// 团名
- /// </summary>
- [Encrypted]
- public string Delegation { get; set; }
- /// <summary>
- /// 文件地址
- /// </summary>
- [Encrypted]
- public string SndFileName { get; set; }
- /// <summary>
- /// 文件地址
- /// </summary>
- public string[] SndFileNameJsonStr
- {
- get
- {
- if (string.IsNullOrEmpty(SndFileName)) return new string[] { };
- var json = new List<string>();
- try
- {
- json = JsonSerializer.Deserialize<List<string>>(SndFileName);
- }
- catch (Exception)
- {
- json = new List<string>() { SndFileName };
- }
- return json.ToArray();
- }
- }
- /// <summary>
- /// 修改版文件地址
- /// </summary>
- public string[] SndFilePathItem
- {
- get
- {
- var urls = new List<string>();
- if (string.IsNullOrEmpty(SndFileName)) return urls.ToArray();
- var filePath = @$"http://132.232.92.186:24/Office/GrpFile/商邀相关文件/";
- try
- {
- var strs = JsonSerializer.Deserialize<List<string>>(SndFileName);
- foreach (var str in strs)
- {
- urls.Add(@$"{filePath}{str}");
- }
- }
- catch (Exception ex)
- {
- urls.Add(@$"{filePath}{SndFileName}");
- }
- return urls.ToArray();
- }
- }
- /// <summary>
- /// 传真号码
- /// </summary>
- [Encrypted]
- public string Fax { get; set; }
- /// <summary>
- /// 其他信息
- /// </summary>
- [Encrypted]
- public string OtherInfo { get; set; }
- /// <summary>
- /// 背景
- /// </summary>
- [Encrypted]
- public string Background { get; set; }
- [Encrypted]
- public string Remark { get; set; }
- public string DelegationStr { get; set; }
- }
- }
|