using BaseOUDAL;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
namespace YLErp.Model
{
public class ClientReq : BaseSearchReq
{
///
/// 是否需要检查过期信息
///
public bool CheckContactExpired { get; set; }
///
/// 是否需要追保
///
public bool HaveMarginAmount { get; set; }
///
/// 是否存在应付资金
///
public bool HavePayableFund { get; set; }
///
/// 应付已了结交易款 大于等于一元
///
public bool HaveClosedPayableFund { get; set; }
///
/// 总资产非零
///
public bool HaveTotalAsset { get; set; }
///
/// 持仓笔数非空
///
public bool HavePosition { get; set; }
public IEnumerable LevelIds { get; set; }
///
///
///
public int? id { get; set; }
public List ClientIds { get; set; } = new List();
public List CurUserClientIds { get; set; } = new List();
///
/// 中粮 是否小微客户
///
public List IsSmallAndMicroEnterprises { get; set; }
///
/// 客户编号
///
public string Number { get; set; }
///
/// 客户名称
///
public string Name { get; set; }
///
/// 操作人名_optname
///
public string OptName { get; set; }
[NotMapped]
public DateTime OptDateStart { get; set; }
[NotMapped]
public DateTime OptDateEnd { get; set; }
[NotMapped]
public string ConfirmBookMode { get; set; }
///
/// 期权费授信
///
public int? IsTradeCredit { get; set; }
///
/// 区间开始日期
///
public DateTime? StartDate { get; set; }
public DateTime? ValueDate { get; set; }
public int? PendingMarginCallPayment { get; set; }
public string ProcessStatus { get; set; }
public int AssessmentExpiredStatus { get; set; }
public List ProcessStatusList
{
get
{
if (string.IsNullOrEmpty(ProcessStatus))
{
return new List();
}
return ProcessStatus.Split(',').Select(c => c).ToList();
}
}
public string ApprovalStatus { get; set; }
public List ApprovalStatusList
{
get
{
if (string.IsNullOrEmpty(ApprovalStatus))
{
return new List();
}
return ApprovalStatus.Split(',').Select(c => c == "无" ? null : c).ToList();
}
}
public List Groupid { get; set; }
public List TraderIds { get; set; }
public DateTime? ApprovaOptDateStart { get; set; }
public DateTime? ApprovaOptDateeEnd { get; set; }
public string OptType { get; set; }
public string ProperClientClass { get; set; }
public List ProperClientClassList
{
get
{
if (string.IsNullOrEmpty(ProperClientClass))
{
return new List();
}
return ProperClientClass.Split(',').Select(c => c).ToList();
}
}
public string ParentIds { get; set; }
public List ParentIdList
{
get
{
if (string.IsNullOrEmpty(ParentIds))
{
return new List();
}
return ParentIds.Split(',').Select(c => int.TryParse(c,out int d)?d:0).ToList();
}
}
public string CustomerManagerString { get; set; }
///
/// 客户经理IDs
///
public IEnumerable CustomerManagerIds { get; set; }
public IEnumerable CustomerNatures { get; set; }
public DateTime ProtocolSignDateStart { get; set; }
public DateTime ProtocolSignDateEnd { get; set; }
///
/// Guid
///
public string Guid { get; set; }
///
/// 客户代码列表
///
public List NumberList { get; set; }
///
/// 客户名称列表
///
public List NameList { get; set; }
///
///等级列表
///
public List LevelList { get; set; }
///
///状态列表
///
public List ProcessStatusList_New { get; set; }
///
///地址列表
///
public List AddressList { get; set; }
///
///客户性质列表
///
public List CustomerNatureList_New { get; set; }
///
///财务状况列表
///
public List FinancialSituationList { get; set; }
///
///投资经验列表
///
public List InvestmentExperienceList { get; set; }
///
///风险偏好列表
///
public List RiskPreferenceList { get; set; }
///
/// 适当性等级
///
public List AcceptableLossList { get; set; }
///
/// 是否评估列表
///
public List IsEvaluateList { get; set; }
///
///问卷得分范围开始
///
public double? QuestionnaireScoreStart { get; set; }
///
///适当性等级范围结束
///
public double? QuestionnaireScoreEnd { get; set; }
///
///适当性等级范围开始
///
public double? AppropriatenessDegreeStart { get; set; }
///
///适当性等级范围结束
///
public double? AppropriatenessDegreeEnd { get; set; }
///
///是否接受高风险等级服务列表
///
public List IsAcceptHighRiskServiceList { get; set; }
///
///失信行为记录列表
///
public List DisbeliefRecordList { get; set; }
///
///机构属性列表
///
public List InstitutionalAttributesList { get; set; }
///
///是否同业列表
///
public List SamePeerList { get; set; }
///
/// 父级ID
///
public int ParentId { get; set; }
///
/// 报告展示机构名称
///
public int? IsDocShowParentName { get; set; }
///
/// 预付金计算方式
///
public string MarginShownType { get; set; }
///
/// 证照编号
///
public string LicenseCode { get; set; }
///
/// 阈值
///
public double? FundThreshold { get; set; }
public string BoundSide { get; set; }
public int? SwapHedgingType { get; set; }
public List TagIds { get; set; }
///
/// 有交易
///
public bool HaveTrade { get; set; }
///
/// 有资金记录
///
public bool HaveBanlance { get; set; }
}
public class ClientPnlInfo
{
public string Number { get; set; }
public string Name { get; set; }
public string CustomerManager { get; set; }
public string CustomerNature1 { get; set; }
public string CustomerNature2 { get; set; }
public string PositionPnl { get; set; }
public string WinLoss { get; set; }
public string PositionSumPnl { get; set; }
///
/// 开仓笔数
///
public int OpenPositionNum { get; set; }
///
/// 提前终止笔数
///
public int EarlyTerminationNum { get; set; }
///
/// 到期笔数
///
public int DueToNum { get; set; }
}
}