Update demo

This commit is contained in:
sunkaixuan 2024-05-11 10:54:01 +08:00
parent 3266e3a1e0
commit d65ef1a35f
61 changed files with 29 additions and 3534 deletions

View File

@ -1,102 +0,0 @@
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 执行市场
/// </summary>
public static class ExeMarketType
{
private static Dictionary<string, string> _exeMarketDict;
/// <summary>
/// 上交所固定收益平台
/// </summary>
public const string CN_SH_FIX = "XSHG_FIX";
/// <summary>
/// 上交所新债券交易平台
/// </summary>
public const string CN_SH_NEWBOND = "XSHG_NEWBOND";
/// <summary>
/// 上交所竞价系统
/// </summary>
public const string CN_SH_NORMAL = "XSHG_NORMAL";
/// <summary>
/// 上交所综合业务平台
/// </summary>
public const string CN_SH_LARGE = "XSHG_LARGE";
/// <summary>
/// 深交所综合协议交易平台
/// </summary>
public const string CN_SZ_LARGE = "XSHE_LARGE";
/// <summary>
/// 深交所竞价系统
/// </summary>
public const string CN_SZ_NORMAL = "XSHE_NORMAL";
/// <summary>
/// 深交所固定收益平台
/// </summary>
public const string CN_SZ_FIX = "XSHE_FIX";
/// <summary>
/// 银行间场内
/// </summary>
public const string CN_BD_IN = "X_CNBD_IN";
/// <summary>
/// 北交所交易支持平台
/// </summary>
public const string X_BSE_NORMAL = "X_BSE_NORMAL";
/// <summary>
/// 北交所固定收益平台
/// </summary>
public const string X_BSE_FIX = "X_BSE_FIX";
/// <summary>
/// 执行市场字典
/// </summary>
public static Dictionary<string, string> ExeMarketDict
{
get
{
if (_exeMarketDict == null)
{
_exeMarketDict = new Dictionary<string, string>();
_exeMarketDict.Add(CN_SH_FIX, "上交所固定收益平台");
_exeMarketDict.Add(CN_SH_NEWBOND, "上交所新债券交易平台");
_exeMarketDict.Add(CN_SH_NORMAL, "上交所竞价系统");
_exeMarketDict.Add(CN_SH_LARGE, "上交所综合业务平台");
_exeMarketDict.Add(CN_SZ_LARGE, "深交所综合协议交易平台");
_exeMarketDict.Add(CN_SZ_NORMAL, "深交所竞价系统");
_exeMarketDict.Add(CN_SZ_FIX, "深交所固定收益平台");
_exeMarketDict.Add(CN_BD_IN, "银行间场内");
_exeMarketDict.Add(X_BSE_FIX, "北交所固定收益平台");
_exeMarketDict.Add(X_BSE_NORMAL, "北交所交易支持平台");
}
return _exeMarketDict.ToDictionary(m => m.Key, m => m.Value);
}
}
/// <summary>
/// 获取描述
/// </summary>
/// <returns></returns>
public static string GetDescription(string ExeMarket)
{
if (!string.IsNullOrWhiteSpace(ExeMarket) && ExeMarketDict.TryGetValue(ExeMarket, out string value))
{
return value;
}
return string.Empty;
}
}
}

View File

@ -1,126 +0,0 @@
namespace xTPLM.RFQ.Common.Dict
{
/// <summary>
/// 托管市场
/// </summary>
public static class HostMarketType
{
private static Dictionary<string, string> _hostMarketTypeDict;
/// <summary>
/// 上交所
/// </summary>
public const string CN_SH = "XSHG";
/// <summary>
/// 深交所
/// </summary>
public const string CN_SZ = "XSHE";
/// <summary>
/// 中债登
/// </summary>
public const string CN_BD_ZZD = "X_CNBD_ZZD";
/// <summary>
/// 清算所
/// </summary>
public const string CN_BD_QSS = "X_CNBD_QSS";
/// <summary>
/// 中金所
/// </summary>
public const string CN_FFEX = "X_CNFFEX";
/// <summary>
/// 其他
/// </summary>
public const string NONE = "NONE";
/// <summary>
/// 金交所
/// </summary>
public const string CN_SGEX = "SGEX";
/// <summary>
/// 场外市场托管场所
/// </summary>
public const string OTHER = "OTHER";
/// <summary>
/// 机构间市场托管场所
/// </summary>
public const string X_INTER = "X_INTER";
/// <summary>
/// 自由贸易区托管场所
/// </summary>
public const string X_FTZ = "X_FTZ";
/// <summary>
/// 票交所托管场所
/// </summary>
public const string X_SHCPE = "X_SHCPE";
/// <summary>
/// 港交所
/// </summary>
public const string XHKG = "XHKG";
/// <summary>
/// 新三板托管市场
/// </summary>
public const string X_NEEQ = "X_NEEQ";
/// <summary>
/// 银登中心
/// </summary>
public const string X_CBDC = "X_CBDC";
/// <summary>
/// 外汇市场
/// </summary>
public const string X_FX = "X_FX";
/// <summary>
/// 欧清市场
/// </summary>
public const string CMMT = "CMMT";
/// <summary>
/// 执行市场字典
/// </summary>
public static Dictionary<string, string> HostMarketTypeDict
{
get
{
if (_hostMarketTypeDict == null)
{
_hostMarketTypeDict = new Dictionary<string, string>();
_hostMarketTypeDict.TryAdd(CN_SH, "上交所");
_hostMarketTypeDict.TryAdd(CN_SZ, "深交所");
_hostMarketTypeDict.TryAdd(CN_BD_ZZD, "中债登");
_hostMarketTypeDict.TryAdd(CN_BD_QSS, "清算所");
_hostMarketTypeDict.TryAdd(CN_FFEX, "中金所");
_hostMarketTypeDict.TryAdd(CN_SGEX, "金交所");
_hostMarketTypeDict.TryAdd(OTHER, "场外市场");
_hostMarketTypeDict.TryAdd(X_CBDC, "银登中心");
}
return _hostMarketTypeDict.ToDictionary(m => m.Key, m => m.Value);
}
}
/// <summary>
/// 获取描述
/// </summary>
/// <returns></returns>
public static string GetDescription(string type)
{
if (!string.IsNullOrWhiteSpace(type) && HostMarketTypeDict.TryGetValue(type, out string value))
{
return value;
}
return string.Empty;
}
}
}

View File

@ -1,104 +0,0 @@
namespace xTPLM.RFQ.Common.Dict
{
/// <summary>
/// IR的结算方式
/// </summary>
public static class IrSetType
{
/// <summary>
/// 见券付款
/// </summary>
public const string PaymentAfterDelivery = "PAD";
/// <summary>
/// 见款付券
/// </summary>
public const string DeliveryAfterPayment = "DAP";
/// <summary>
/// 券款对付
/// </summary>
public const string DeliveryVersusPayment = "DVP";
/// <summary>
/// 纯券过户
/// </summary>
public const string FreeOfPayment = "FOP";
/// <summary>
/// 券券对付
/// </summary>
public const string BondVersusBond = "BVB";
/// <summary>
/// 券费对付
/// </summary>
public const string BondVersusPayment = "BVP";
/// <summary>
/// 返券付费解券
/// </summary>
public const string BondAfterBondFree = "BVBF";
//TT6789 chengdengliang 2011-06-17 净额券款对付结算方式
/// <summary>
/// 净额券款对付
/// </summary>
public const string NetDeliveryVersusPayment = "NDVP";
//2013-10-17 成登亮
/// <summary>
/// 双边清算
/// </summary>
public const string BOTH = "BOTH";
/// <summary>
/// 主动扣款 2014-11-13 沈何凯 大宗商品远期 扣款方式
/// </summary>
public const string ActiveDebit = "AD";
/// <summary>
/// 被动扣款 2014-11-13 沈何凯 大宗商品远期 扣款方式
/// </summary>
public const string PassiveDebit = "PD";
/// <summary>
/// 交易所--担保交收(2017-07-24 蔡旦旭 TT2550)
/// </summary>
public const string SecureSettle = "SecureSet";
/// <summary>
/// 暂时不用这个枚举交易所--非担保交收(非RTGS)(2017-07-24 蔡旦旭 TT2550)
/// 2018-08-13 周志斌 TT9787交易所质押式回购结算方式修改报价回购需要支持非担保交收(NGGS)
/// </summary>
public const string UnSecureSettleNGGS = "UnSecureSetNGGS";
/// <summary>
/// 交易所--非担保交收(2017-07-24 蔡旦旭 TT2550)
/// </summary>
public const string UnSecureSettleRTGS = "UnSecureSetRTGS";
/// <summary>
/// 2021-08-13 王继博 对手账户结算
/// </summary>
public const string CounterPartyAccountSettle = "CPAS";
/// <summary>
/// 2021-08-13 王继博 直接划付
/// </summary>
public const string DirectTransfer = "DIRECT";
/// <summary>
/// 其他
/// 2022-03-04 冯彦谕 P008XIR-31852 江海-债券认购,增加结算方式:“其他”
/// 2022-03-04 冯彦谕 P008XIR-32198 开源证券-债券认购界面结算类型增加线下划款
/// </summary>
public const string OTHER = "OTHER";
}
}

View File

@ -1,90 +0,0 @@
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 交易市场
/// </summary>
public static class MarketType
{
private static Dictionary<string, string> _marketTypeDict;
/// <summary>
/// 上交所
/// </summary>
public const string CN_SH = "XSHG";
/// <summary>
/// 银行间
/// </summary>
public const string CN_BD = "X_CNBD";
/// <summary>
/// 深交所
/// </summary>
public const string CN_SZ = "XSHE";
/// <summary>
/// 北交所
/// </summary>
public const string X_BSE = "X_BSE";
/// <summary>
/// 执行市场字典
/// </summary>
public static Dictionary<string, string> MarketTypeDict
{
get
{
if (_marketTypeDict == null)
{
_marketTypeDict = new Dictionary<string, string>();
_marketTypeDict.Add(CN_SH, "上交所");
_marketTypeDict.Add(CN_BD, "银行间");
_marketTypeDict.Add(CN_SZ, "深交所");
_marketTypeDict.Add(X_BSE, "北交所");
}
return _marketTypeDict.ToDictionary(m => m.Key, m => m.Value);
}
}
/// <summary>
/// 获取描述
/// </summary>
/// <returns></returns>
public static string GetDescription(string MarketType)
{
if (!string.IsNullOrWhiteSpace(MarketType) && MarketTypeDict.TryGetValue(MarketType, out string value))
{
return value;
}
return string.Empty;
}
/// <summary>
/// 获取市场后缀
/// </summary>
/// <param name="MarketType"></param>
/// <returns></returns>
public static string GetMaketSuffix(string MarketType)
{
var result = "";
switch (MarketType)
{
case CN_SH:
result = ".SH";
break;
case CN_BD:
result = ".IB";
break;
case CN_SZ:
result = ".SZ";
break;
case X_BSE:
result = ".BJ";
break;
default:
break;
}
return result;
}
}
}

View File

@ -1,19 +0,0 @@
namespace xTPLM.RFQ.Common.Dict
{
/// <summary>
/// 固收上行选择直连模式
/// 2019-04-24 潘鹤 TT11606
/// </summary>
public static class ShgFixSelectModelType
{
/// <summary>
/// 直连柜台
/// </summary>
public const string COUNTER = "COUNTER";
/// <summary>
/// 直连交易所
/// </summary>
public const string EXCHANGE = "EXCHANGE";
}
}

View File

@ -1,69 +0,0 @@
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 交易解析配置
/// </summary>
public static class TradeParseInfo
{
private static Dictionary<string, string> _tradeParseInfoDict;
/// <summary>
/// 文本解析对应交易员
/// </summary>
public const string PARSETRADER = "PARSETRADER";
/// <summary>
/// 文本解析对应交易对手
/// </summary>
public const string PARSEPARTY = "PARSEPARTY";
/// <summary>
/// 用户对应配置交易员
/// </summary>
public const string USERTRADE = "USERTRADE";
/// <summary>
/// 内政
/// </summary>
public const string INTSECU = "INTSECU";
/// <summary>
/// 执行员
/// </summary>
public const string EXECUTOR = "EXECUTOR";
/// <summary>
/// 执行市场字典
/// </summary>
public static Dictionary<string, string> TradeParseInfoDict
{
get
{
if (_tradeParseInfoDict == null)
{
_tradeParseInfoDict = new Dictionary<string, string>();
_tradeParseInfoDict.Add(PARSETRADER, "文本解析对应交易员");
_tradeParseInfoDict.Add(PARSEPARTY, "文本解析对应交易对手");
_tradeParseInfoDict.Add(USERTRADE, "用户对应配置交易员");
_tradeParseInfoDict.Add(INTSECU, "内政");
_tradeParseInfoDict.Add(EXECUTOR, "执行员");
}
return _tradeParseInfoDict.ToDictionary(m => m.Key, m => m.Value);
}
}
/// <summary>
/// 获取描述
/// </summary>
/// <returns></returns>
public static string GetDescription(string TradeParseInfo)
{
if (!string.IsNullOrWhiteSpace(TradeParseInfo) && TradeParseInfoDict.TryGetValue(TradeParseInfo, out string value))
{
return value;
}
return string.Empty;
}
}
}

View File

@ -1,34 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 账户状态
/// </summary>
public enum AccountStatus
{
/// <summary>
/// 创建中
/// </summary>
[Description("创建中")]
Opening = 0,
/// <summary>
/// 已启用
/// </summary>
[Description("已启用")]
Opened = 1,
/// <summary>
/// 停用中
/// </summary>
[Description("停用中")]
Closing = 2,
/// <summary>
/// 已停用
/// </summary>
[Description("已停用")]
Closed = 3
}
}

View File

@ -1,50 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
public enum DefaultStatus
{
/// <summary>
/// 正常
/// </summary>
[Description("正常")]
Normal = 0,
/// <summary>
/// 兑息
/// </summary>
[Description("兑息")]
PayInterest = 1,
/// <summary>
/// 兑付
/// </summary>
[Description("兑付")]
Mtr = 2,
/// <summary>
/// 回售
/// </summary>
[Description("回售")]
SellBack = 3,
/// <summary>
/// 还本付息
/// </summary>
[Description("还本付息")]
ReturnCorpusPayInterest = 4,
/// <summary>
/// 其他违约 TT14433 2020-05-19 张景辉
/// </summary>
[Description("其他违约")]
Other = 5,
/// <summary>
/// 非标违约
/// </summary>
/// <remarks>2020-12-08 丁信丽 P008XIR-17685 非标违约</remarks>
[Description("非标违约")]
CashLBDebt = 11,
}
}

View File

@ -1,34 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 类型 欧式、美式、百慕大式
/// </summary>
public enum ExerciseTypeEnum
{
/// <summary>
/// 美式
/// </summary>
[Description("美式")]
American = 0,
/// <summary>
/// 百慕大式
/// </summary>
[Description("百慕大式")]
Bermudan = 1,
/// <summary>
/// 欧式
/// </summary>
[Description("欧式")]
European = 2,
/// <summary>
/// 不行权
/// </summary>
[Description("不行权")]
None = 3,
}
}

View File

@ -1,28 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 是否利率债
/// </summary>
public enum RatesEnum
{
/// <summary>
/// 未划分
/// </summary>
[Description("未划分")]
None = 0,
/// <summary>
/// 信用债
/// </summary>
[Description("信用债")]
Credit = 1,
/// <summary>
/// 利率债
/// </summary>
[Description("利率债")]
Rate = 2
}
}

View File

@ -1,28 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 提前兑付类型
/// </summary>
public enum TerminationTypeEnum
{
/// <summary>
/// 未知类型
/// </summary>
[Description("未知类型")]
EarlyTerminationUnknown = 0,
/// <summary>
/// 提前兑付
/// </summary>
[Description("提前兑付")]
Prepayment = 1,
/// <summary>
/// 提前赎回
/// </summary>
[Description("提前赎回")]
Redemption = 2,
}
}

View File

@ -1,19 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
public enum ActionType
{
/// <summary>
/// 修改指令额度
/// </summary>
[Description("修改指令额度")]
EditInstructionOrderMoney = 1,
/// <summary>
/// 指令撤回审批
/// </summary>
[Description("指令撤回审批")]
InstructionRevoke = 2
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 指令执行关联类型
/// </summary>
public enum ExcuteType
{
/// <summary>
/// 执行人
/// </summary>
[Description("执行人")]
User = 1,
/// <summary>
/// 执行部门
/// </summary>
[Description("执行部门")]
Department = 2
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 指令类型
/// </summary>
public enum InstructionsModelType
{
/// <summary>
/// 现券指令
/// </summary>
[Description("现券指令")]
Bond = 0,
/// <summary>
/// 一级指令
/// </summary>
[Description("一级指令")]
Primary = 1
}
}

View File

@ -1,53 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 指令状态
/// </summary>
public enum InstructionsStatus
{
/// <summary>
/// 作废
/// </summary>
[Description("作废")]
Close = -2,
/// <summary>
/// 审批不通过
/// </summary>
[Description("审批不通过")]
ApprovalFail = -1,
/// <summary>
/// 新建
/// </summary>
[Description("新建")]
Create = 0,
/// <summary>
/// 提交中
/// </summary>
[Description("提交中")]
Submiting = 3,
/// <summary>
/// 审批中
/// </summary>
[Description("审批中")]
Approval = 5,
/// <summary>
/// 审批通过
/// </summary>
[Description("审批通过")]
Approved = 10,
/// <summary>
/// 已完成
/// </summary>
[Description("已完成")]
Complete = 20,
}
}

View File

@ -1,23 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 指令类型
/// </summary>
public enum InstructionsType
{
/// <summary>
/// 精确指令
/// </summary>
[Description("精确指令")]
Accurate = 1,
/// <summary>
/// 模糊指令
/// </summary>
[Description("模糊指令")]
Vague = 2,
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 额度类型
/// </summary>
public enum LimitResultType
{
/// <summary>
/// 申请额度
/// </summary>
[Description("申请额度")]
Company = 1,
/// <summary>
/// 剩余额度
/// </summary>
[Description("剩余额度")]
ISSUER = 2
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 发行方式
/// </summary>
public enum IssueMode
{
/// <summary>
/// 公开发行
/// </summary>
[Description("公开发行")]
OpenIssue = 0,
/// <summary>
/// 定向发行
/// </summary>
[Description("定向发行")]
OrientationIssue = 1
}
}

View File

@ -1,15 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 语料生成配置类型
/// </summary>
public enum ParserCreateType
{
[Description("询价指令")]
Instructions = 1,
[Description("资管现券询价指令")]
AmcBondInstructions = 2,
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 报价来源
/// </summary>
public enum BiddDetailFromSource
{
/// <summary>
/// 手动录入
/// </summary>
[Description("手动录入")]
Manual = 0,
/// <summary>
/// QTrade
/// </summary>
[Description("QTrade")]
QTrade = 1
}
}

View File

@ -1,77 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 报价方式
/// </summary>
public enum DealType
{
/// <summary>
/// 空
/// </summary>
[Description("空")]
Empty = -1,
/// <summary>
/// 做市报价
/// </summary>
[Description("做市报价")]
MarketQuotation = 0,
/// <summary>
/// 对话报价
/// </summary>
[Description("对话报价")]
NegotiationQuotation = 2,
/// <summary>
/// 其它
/// </summary>
[Description("其它")]
OtherQuotation = 3,
/// <summary>
/// 指定对手方报价
/// </summary>
[Description("指定对手方报价")]
DesignatedCounterparty = 4,
/// <summary>
/// 询价
/// </summary>
[Description("询价")]
InquiryQuotation = 5,
/// <summary>
/// 请求报价
/// </summary>
[Description("请求报价")]
RequestQuotation = 6,
/// <summary>
/// 匿名报价
/// </summary>
[Description("匿名报价")]
X_Bond = 25,
/// <summary>
/// 匹配成交
/// </summary>
[Description("匹配成交")]
Match = 46,
/// <summary>
/// 协商成交
/// </summary>
[Description("协商成交")]
Negotiation = 47,
/// <summary>
/// 询价成交
/// </summary>
/// <remarks>
[Description("询价成交")]
Enquiry = 49,
}
}

View File

@ -1,34 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
/// <summary>
/// 手续费返还方式
/// </summary>
public enum DisFeeRepayType
{
/// <summary>
/// 不返
/// </summary>
[Description("不返")]
None = 0,
/// <summary>
/// 单返
/// </summary>
[Description("单返")]
SingleReturn = 1,
/// <summary>
/// 折价
/// </summary>
[Description("折价")]
Convert = 2,
/// <summary>
/// 溢价
/// </summary>
[Description("溢价")]
Premium = 3,
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
/// <summary>
/// 融资途径
/// </summary>
public enum FinancingWay
{
[Description("待定")]
None,
[Description("质押式正回购")]
PledgeRepo,
[Description("买断式正回购")]
BuySellRepo,
[Description("同业拆入")]
Lend,
}
}

View File

@ -1,88 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 交易系统状态
/// </summary>
public enum OrderStatus
{
/// <summary>
/// 新建
/// </summary>
[Description("新建")]
Created = 0,
/// <summary>
/// 审批中
/// </summary>
[Description("审批中")]
Ordered = 1,
/// <summary>
/// 交易错误
/// </summary>
[Description("交易错误")]
Error = 2,
/// <summary>
/// 返回失败
/// </summary>
[Description("返回失败")]
Failed = 3,
/// <summary>
/// 审批拒绝
/// </summary>
[Description("审批拒绝")]
Rejected = 4,
/// <summary>
/// 审批通过
/// </summary>
[Description("审批通过")]
Confirmed = 5,
/// <summary>
/// 该笔委托没有相应的成功撤单操作且成交数量小于委托数量
/// </summary>
[Description("该笔委托没有相应的成功撤单操作且成交数量小于委托数量")]
PartDealed = 6,
/// <summary>
/// 成交确认
/// </summary>
[Description("成交确认")]
FullDealed = 7,
/// <summary>
/// 撤单操作成功,成交数量小于委托数量
/// </summary>
[Description("撤单操作成功,成交数量小于委托数量")]
PartWithdrawed = 8,
/// <summary>
/// 交易撤单
/// </summary>
[Description("交易撤单")]
FullWithdrawed = 9,
/// <summary>
/// 风险预审中
/// </summary>
[Description("风险预审中")]
PreCheckRisk = -3,
/// <summary>
/// 交易执行中
/// </summary>
[Description("交易执行中")]
Executing = -4,
/// <summary>
/// 交易终止
/// </summary>
[Description("交易终止")]
Terminated = 10
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
/// <summary>
/// 交易对手类型
/// </summary>
public enum PartyType
{
/// <summary>
/// 法人户
/// </summary>
[Description("法人户")]
LegalPerson = 1,
/// <summary>
/// 非法人户
/// </summary>
[Description("非法人户")]
NotLegalPerson = 2
}
}

View File

@ -1,34 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 价格类型:1-到期收益率 2-行权收益率 3-净价 4-全价
/// </summary>
public enum PriceTypeEnum
{
/// <summary>
/// 到期收益率
/// </summary>
[Description("到期收益率")]
YTM = 1,
/// <summary>
/// 行权收益率
/// </summary>
[Description("行权收益率")]
YTM_OE = 2,
/// <summary>
/// 净价
/// </summary>
[Description("净价")]
NETPRICE = 3,
/// <summary>
/// 全价
/// </summary>
[Description("全价")]
PRICE = 4,
}
}

View File

@ -1,28 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
/// <summary>
/// 一级询价价格类型
/// </summary>
public enum PrimaryPriceType
{
/// <summary>
/// 分销价格
/// </summary>
[Description("分销价格")]
ORDPRICE = 0,
/// <summary>
/// 到期收益率
/// </summary>
[Description("到期收益率")]
BND_YTM = 1,
/// <summary>
/// 票面利率
/// </summary>
[Description("票面利率")]
COUPON = 2,
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
/// <summary>
/// 一级询价交易方向
/// </summary>
public enum QuotaPrimaryTradeType
{
/// <summary>
/// 分销买入
/// </summary>
[Description("分销买入")]
DistributionBuy = 61,
/// <summary>
/// 分销卖出
/// </summary>
[Description("分销卖出")]
DistributionSell = 62
}
}

View File

@ -1,34 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
/// <summary>
/// 询价业务类型
/// </summary>
public enum QuotaType
{
/// <summary>
/// 现券询价
/// </summary>
[Description("现券询价")]
BndQuota = 1,
/// <summary>
/// 一级询价
/// </summary>
[Description("一级询价")]
PrimaryQuota = 2,
/// <summary>
/// 逆回购询价
/// </summary>
[Description("逆回购询价")]
RepoQuota = 3,
/// <summary>
/// 正回购询价
/// </summary>
[Description("正回购询价")]
FinancingQuota = 4,
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 询价发起方
/// </summary>
public enum QuoteSponsor
{
/// <summary>
/// 本方发起
/// </summary>
[Description("本方发起")]
This = 0,
/// <summary>
/// 对方发起
/// </summary>
[Description("对方发起")]
Competitor = 1
}
}

View File

@ -1,40 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 询价状态
/// </summary>
public enum QuoteStatus
{
/// <summary>
/// 已撤销
/// </summary>
[Description("已撤销")]
Revoke = -1,
/// <summary>
/// 新建
/// </summary>
[Description("新建")]
Create = 0,
/// <summary>
/// 交谈中
/// </summary>
[Description("交谈中")]
Chating = 5,
/// <summary>
/// 已确认
/// </summary>
[Description("已确认")]
Confirmed = 10,
/// <summary>
/// 已下达
/// </summary>
[Description("已下达")]
Release = 20
}
}

View File

@ -1,34 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 询价下达状态 0:未下达5:下达中10:下达成功,-1:下达失败
/// </summary>
public enum ReleaseStatus
{
/// <summary>
/// 未下达
/// </summary>
[Description("未下达")]
NoneRelease = 0,
/// <summary>
/// 下达中
/// </summary>
[Description("下达中")]
Releaseing = 5,
/// <summary>
/// 下达成功
/// </summary>
[Description("下达成功")]
Released = 10,
/// <summary>
/// 下达失败
/// </summary>
[Description("下达失败")]
ReleaseFail = -1
}
}

View File

@ -1,19 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.RFQ
{
public enum RepoTradeType
{
/// <summary>
/// 质押式正回购
/// </summary>
[Description("质押式正回购")]
RepoPlus = 40,
/// <summary>
/// 质押式逆回购
/// </summary>
[Description("质押式逆回购")]
RepoMinus = 41
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 清算速度
/// </summary>
public enum SetDays
{
/// <summary>
/// T+0
/// </summary>
[Description("T+0")]
T0 = 0,
/// <summary>
/// T+1
/// </summary>
[Description("T+1")]
T1 = 1,
}
}

View File

@ -1,24 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 交易方向
/// </summary>
public enum TradeType
{
/// <summary>
/// 买
/// </summary>
[Description("买")]
Buy = 10,
/// <summary>
/// 卖
/// </summary>
[Description("卖")]
Sell = 20,
}
}

View File

@ -1,31 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
public enum ContactType
{
/// <summary>
/// QQ
/// </summary>
[Description("QQ")]
QQ = 10,
/// <summary>
/// QTrade
/// </summary>
[Description("QTrade")]
QTrade = 20,
/// <summary>
/// 电话
/// </summary>
[Description("电话")]
Phone = 30,
/// <summary>
/// 邮箱
/// </summary>
[Description("邮箱")]
Email = 40
}
}

View File

@ -1,83 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 消息推送类型
/// </summary>
public enum MessagePushType
{
/// <summary>
/// 消息盒子
/// </summary>
[Description("消息盒子")]
MessageBox = 0,
/// <summary>
/// 弹窗消息
/// </summary>
[Description("弹窗消息")]
MessagePushNotify = 1
}
/// <summary>
/// 消息业务类型
/// </summary>
public enum MessageType
{
/// <summary>
/// 系统通知
/// </summary>
[Description("系统通知")]
System = 0,
/// <summary>
/// 策略匹配
/// </summary>
[Description("策略匹配")]
Strategy = 1
}
/// <summary>
/// 消息重要等级
/// </summary>
public enum MessageLevel
{
/// <summary>
/// 普通
/// </summary>
[Description("普通")]
Ordinary = 0,
/// <summary>
/// 重要
/// </summary>
[Description("普通")]
Important = 10,
/// <summary>
/// 紧急
/// </summary>
[Description("紧急")]
Urgent = 20,
}
/// <summary>
/// 消息状态
/// </summary>
public enum MessageStatus
{
/// <summary>
/// 未读
/// </summary>
[Description("未读")]
Unread = 0,
/// <summary>
/// 已读
/// </summary>
[Description("已读")]
Read = 1,
}
}

View File

@ -1,28 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 模块类型
/// </summary>
public enum ModuleType
{
/// <summary>
/// 菜单
/// </summary>
[Description("菜单")]
Menu = 1,
/// <summary>
/// 按钮
/// </summary>
[Description("按钮")]
Btn = 2,
/// <summary>
/// 虚拟权限
/// </summary>
[Description("虚拟权限")]
VirtualPermissions = 99
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 菜单是否显示
/// </summary>
public enum ModuleVisiable
{
/// <summary>
/// 隐藏
/// </summary>
[Description("隐藏")]
hide = 0,
/// <summary>
/// 显示
/// </summary>
[Description("显示")]
show = 1,
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common
{
/// <summary>
/// 角色类型
/// </summary>
public enum RoleType
{
/// <summary>
/// 组员
/// </summary>
[Description("组员")]
Staff = 1,
/// <summary>
/// 组长
/// </summary>
[Description("组长")]
Leader = 2
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel;
namespace xTPLM.RFQ.Common.Enum.System
{
/// <summary>
/// 计划任务执行状态
/// </summary>
public enum TaskExecuteEnum
{
/// <summary>
/// 未执行
/// </summary>
[Description("未执行")]
None = 0,
/// <summary>
/// 执行中
/// </summary>
[Description("执行中")]
Executing = 1
}
}

View File

@ -1,33 +0,0 @@
namespace xTPLM.RFQ.Common.Enum
{
/// <summary>
/// 交易日期类型
/// </summary>
public enum TradeDateMode
{
/// <summary>
/// 今天
/// </summary>
Today = 0,
/// <summary>
/// 明天
/// </summary>
Tomorrow = 1,
/// <summary>
/// 后天
/// </summary>
DayAfterTomorrow = 2,
/// <summary>
/// 周几
/// </summary>
Weeks = 3,
/// <summary>
/// 指定日期
/// </summary>
Specified = 4
}
}

View File

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
namespace OrmTest
{
[Table("MyAttributeTable")]
//[SugarTable("CustomAttributeTable")]
public class AttributeTable
{
[Key]
//[SugarColumn(IsPrimaryKey =true)]
public string Id { get; set; }
public string Name { get; set; }
}
}

View File

@ -1,7 +0,0 @@
namespace OrmTest
{
public class CarType
{
public bool State { get; set; }
}
}

View File

@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class Custom
{
public int Id { get; set; }
public string Name { get; set; }
}
}

View File

@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
namespace OrmTest
{
[SugarTable("MyEntityMapper")]
public class EntityMapper
{
[SugarColumn(ColumnName ="MyName")]
public string Name { get; set; }
}
}

View File

@ -1,54 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
[SugarTable("OrderDetail")]
public class OrderItemInfo
{
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int ItemId { get; set; }
public int OrderId { get; set; }
public decimal? Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
[SugarColumn(IsIgnore = true)]
public Order Order { get; set; }
}
[SugarTable("Order")]
public class OrderInfo
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Name { get; set; }
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
public class ABMapping
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int AId { get; set; }
public int BId { get; set; }
[SugarColumn(IsIgnore = true)]
public A A { get; set; }
[SugarColumn(IsIgnore = true)]
public B B { get; set; }
}
public class A
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Name { get; set; }
}
public class B
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Name { get; set; }
}
}

View File

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
namespace OrmTest
{
[Table("CustomAttributeTable")]
//[SugarTable("CustomAttributeTable")]
public class MyCustomAttributeTable
{
[Key]
//[SugarColumn(IsPrimaryKey =true)]
public string Id { get; set; }
public string Name { get; set; }
}
}

View File

@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest
{
[SqlSugar.SugarTable("OrderDetail")]
public class OrderItem
{
[SqlSugar.SugarColumn(IsPrimaryKey =true, IsIdentity =true)]
public int ItemId { get; set; }
public int OrderId { get; set; }
public decimal? Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
}
}

View File

@ -1,17 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class TestTree
{
[SqlSugar.SugarColumn(ColumnDataType = "hierarchyid")]
public string TreeId { get; set; }
[SqlSugar.SugarColumn(ColumnDataType = "Geography")]
public string GId { get; set; }
public string Name { get; set; }
}
}

View File

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class Tree
{
[SqlSugar.SugarColumn(IsPrimaryKey =true)]
public int Id { get; set; }
public string Name { get; set; }
public int ParentId { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public Tree Parent { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public List<Tree> Child { get; set; }
}
}

View File

@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class ViewOrder:Order
{
public string CustomName { get; set; }
}
}

View File

@ -18,9 +18,4 @@
<ProjectReference Include="..\SqlSugar.OdbcCore\SqlSugar.OdbcCore.csproj" />
<ProjectReference Include="..\SqlSugar\SqlSugar.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xTPLM.Base.Extend" Version="3.5.0" />
</ItemGroup>
</Project>

View File

@ -6,20 +6,17 @@ using System.Text;
namespace OrmTest
{
[SugarTable("ORDERTEST")]
public class Order
{
[SugarColumn(IsPrimaryKey = true)]
public decimal Id { get; set; }
[SugarColumn(IsPrimaryKey = true, OracleSequenceName ="Seq_Id")]
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
[SugarColumn(IsNullable =true)]
public decimal CustomId { get; set; }
[SugarColumn(IsIgnore = true)]
public string Idname { get; set; }
public int CustomId { get; set; }
}
}

View File

@ -1,10 +1,7 @@
using OrmTest;
using SqlSugar;
using SqlSugar.OceanBaseForOracle;
using System.Xml.Linq;
using xTPLM.RFQ.Common.Enum;
using xTPLM.RFQ.Model.XMANAGER_APP;
using xTPLM.RFQ.Model.XRFQ_APP;
using static Npgsql.Replication.PgOutput.Messages.RelationMessage;
namespace OceanBaseForOracle
{
@ -34,117 +31,33 @@ namespace OceanBaseForOracle
Console.WriteLine(db.Ado.Connection.ConnectionString);
};
Console.WriteLine("Master:");
DateTime NextTime = DateTime.Now;
DateTime endTime = DateTime.Now;
db.Updateable<TRFQ_SYS_TASK>().SetColumns(m => new TRFQ_SYS_TASK
db.Insertable(new Order() { Id = 109, Name = "abc", CustomId = 1, CreateTime = DateTime.Now }).ExecuteCommand();
db.Deleteable<Order>().Where(m => m.Id == 109).ExecuteCommand();
db.Updateable<Order>().SetColumns(m => new Order
{
NEXT_FIRE_TIME = NextTime,
PREVIOUS_FIRE_TIME = endTime,
COUNT = m.COUNT + 1
}).Where(n => n.ID == 1).ExecuteCommand();
//db.Queryable<TRFQ_INSTRUCTIONS>().Where(m => m.REMARK==""&& m.PRICE_TYPE == 1 && m.PRICE >= 100 && m.PRICE_UPPER >= 100).ToList() ;
//db.Insertable<Dto>(new Dto { }).ExecuteCommand();
//db.Insertable<TRFQ_INSTRUCTIONS>(new TRFQ_INSTRUCTIONS
Name = "我是修改"
}).Where(m => m.Id == 2).ExecuteCommand();
Console.WriteLine("Slave:");
//var s = db.Queryable<Order>().First();
//var list = db.Queryable<Order>().Select(m => new Order
//{
// A_TYPE= "SPT_BD",
// CREATE_BY=1,
// END_TIME=DateTime.Now.Date,
// I_CODE="090005",
// I_NAME= "09附息国债05",
// I_TYPE= InstructionsType.Accurate,
// M_TYPE= "X_CNBD",
// NETPRICE= 100M,
// ORDER_DATE= DateTime.Now.Date,
// PRICE= 100.3405M,
// ORDER_MONEY= 100M,
// PRICE_TYPE=xTPLM.RFQ.Common.PriceTypeEnum.NETPRICE,
// SECU_ACCID= "bss_in_secu_02",
// SET_DAYS=xTPLM.RFQ.Common.SetDays.T0,
// SOURCE_TYPE= "xRFQ",
// STATUS=InstructionsStatus.Create,
// TRADE_TYPE=TradeType.Buy,
// YTM= 4.0197M
//}).ExecuteCommand();
int Count = 0;
var list = db.Queryable<TRFQ_INSTRUCTIONS>()
.LeftJoin<TRFQ_BND>((t, t1) => t.I_CODE == t1.I_CODE && t.A_TYPE == t1.A_TYPE && t.M_TYPE == t1.M_TYPE)
.Where(t => t.I_CODE != null)
.SelectMergeTable((t, t1) => new TRFQ_INSTRUCTIONS
{
I_ID = t.I_ID,
A_TYPE = t.A_TYPE,
CREATE_BY = t.CREATE_BY,
END_TIME = t.END_TIME,
I_CODE = t.I_CODE,
I_NAME = t.I_NAME,
IS_CITY_INVESTMENT = t.IS_CITY_INVESTMENT,
IS_RATES = t.IS_RATES,
M_TYPE = t.M_TYPE,
ORDER_MONEY = t.ORDER_MONEY,
PARTY_ID = t.PARTY_ID,
PERPETUAL = t.PERPETUAL,
PRICE_TYPE = t.PRICE_TYPE,
REMARK = t.REMARK,
STATUS = t.STATUS,
TRADE_TYPE = t.TRADE_TYPE,
UPDATE_BY = t.UPDATE_BY,
UPDATE_TIME = t.UPDATE_TIME,
ORDER_DATE_MIN = t.ORDER_DATE_MIN,
ORDER_DATE_MAX = t.ORDER_DATE_MAX,
SECU_ACCID = t.SECU_ACCID,
SYSID_EXT = t.SYSID_EXT,
MARKET = t.MARKET,
PARTY_NAME = SqlFunc.Subqueryable<TRFQ_COUNTERPARTY>().Where(m => m.P_SYSID == t.PARTY_ID).Select(m => m.PARTYNAME_SHORT),
SUBMIT_IRUSER = t.SUBMIT_IRUSER,
P_CLASS = t.P_CLASS,
LAST_TERM = t.LAST_TERM,
LAST_TERM_TYPE = t.LAST_TERM_TYPE,
MODIFIED_D = t.MODIFIED_D,
SUBMIT_MESSAGE = t.SUBMIT_MESSAGE,
SET_DAYS = t.SET_DAYS,
ORDER_DATE = t.ORDER_DATE,
I_TYPE = t.I_TYPE,
I_NO = t.I_NO,
PRICE = t.PRICE,
NETPRICE = t.NETPRICE,
YTM = t.YTM,
YTM_OE = t.YTM_OE,
PRICE_UPPER = t.PRICE_UPPER,
NETPRICE_UPPER = t.NETPRICE_UPPER,
YTM_UPPER = t.YTM_UPPER,
YTM_OE_UPPER = t.YTM_OE_UPPER,
CREATE_BY_NAME = SqlFunc.Subqueryable<TMANAGER_SYS_USER>().AS($"XMANAGER_APP.TMANAGER_SYS_USER").Where(m => m.U_ID == t.CREATE_BY).Select(m => m.U_NICKNAME ?? m.U_NAME),
SHG_AGREENUM = t.SHG_AGREENUM,
SHG_TRADER_CP = t.SHG_TRADER_CP,
SHG_SEATNO_CP = t.SHG_SEATNO_CP,
SECU_ACCNAME = SqlFunc.Subqueryable<TRFQ_ACC_SECU>().Where(m => m.ACCID == t.SECU_ACCID).Select(m => m.ACCNAME),
ISSUER = t1.ISSUER,
B_NAME = t1.B_NAME,
SUBMIT_TIME = t.SUBMIT_TIME,
SOURCE_TYPE = t.SOURCE_TYPE,
CREATE_TIME = t.CREATE_TIME,
EXT_TRADE_ID = t.EXT_TRADE_ID,
CANCEL_STATUS = t.CANCEL_STATUS,
CASH_ACCID = t.CASH_ACCID,
}).GroupBy(t => new { t.I_CODE, t.A_TYPE, t.M_TYPE, t.B_NAME })
.SelectMergeTable(t => new InsOrderList
{
I_CODE = t.I_CODE,
A_TYPE = t.A_TYPE,
M_TYPE = t.M_TYPE,
B_NAME = t.B_NAME,
MinId = SqlFunc.AggregateMin(t.I_ID)
}).OrderByDescending(t=>t.MinId).ToOffsetPage(2, 30, ref Count);
// Id = m.Id,
// CreateTime = m.CreateTime,
// CustomId = m.CustomId,
// Idname = SqlFunc.Subqueryable<Order>().Where(s => s.Id == 2).Select(s => s.Name),
// Name = m.Name,
// Price = m.Price,
//}).ToList();
//var grouplist = db.Queryable<Order>().OrderByDescending(m=>m.Id).GroupBy(m=>new {m.Id,m.Name}).SelectMergeTable(m => new Order
//{
// Id = m.Id,
// Name = m.Name,
// CreateTime= SqlFunc.AggregateMin(m.CreateTime),
// Price= SqlFunc.AggregateSum(m.Price),
//}).OrderBy(m=>m.Id).Where(m=>m.Id==1).ToList();
//var orderlist = db.Queryable<Order>().OrderBy(m => new { m.Id, m.Name }).ToList();
var pageList = db.Queryable<Order>().OrderBy(m => m.Id).ToOffsetPage(1, 3);
Console.WriteLine("#### MasterSlave End ####");
}
}
public class Dto
{
public string PatID1 { get; set; }
public string PatID3 { get; set; }
public string PatID { get; set; }
}
}

View File

@ -1,157 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
namespace xTPLM.RFQ.Model.XMANAGER_APP
{
///<summary>
///用户表
///</summary>
[SugarTable("TMANAGER_SYS_USER")]
public partial class TMANAGER_SYS_USER
{
public TMANAGER_SYS_USER()
{
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, OracleSequenceName = "TMANAGER_SYS_USER$SEQ", IsIdentity = true)]
public int U_ID { get; set; }
/// <summary>
/// Desc:用户名
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 48)]
public string U_NAME { get; set; }
/// <summary>
/// Desc:密码
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 48)]
public string U_PWD { get; set; }
/// <summary>
/// Desc:性别
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, Length = 1)]
public string U_SEX { get; set; }
/// <summary>
/// Desc:邮件地址
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string U_EMAIL { get; set; }
/// <summary>
/// Desc:手机号
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 20)]
public string U_MOBILE { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 1000)]
public string U_REMARK { get; set; }
/// <summary>
/// Desc:逻辑删除
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, Length = 1)]
public string DELETED { get; set; } = "0";
/// <summary>
/// Desc:更新人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string UPDATED_BY { get; set; }
/// <summary>
/// Desc:更新时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UPDATED_TIME { get; set; }
/// <summary>
/// Desc:用户启用状态 1启用,0禁用
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false)]
public int U_STATUS { get; set; }
/// <summary>
/// Desc:昵称
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 255)]
public string U_NICKNAME { get; set; }
/// <summary>
/// Desc:部门ID
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? U_DID { get; set; }
/// <summary>
/// Desc:职务
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? U_POSITION { get; set; }
/// <summary>
/// Desc:是否是IR单点登录用户 0:不是1:是
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? IS_IRUSER { get; set; }
/// <summary>
/// IR用户
/// </summary>
[SugarColumn(IsIgnore = true)]
public string USER_CODE { get => this.IR_CODE; }
/// <summary>
/// 部门名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string D_NAME { get; set; }
/// <summary>
/// IR账户名
/// </summary>
[SugarColumn(IsIgnore = true)]
public string IR_CODE { get; set; }
}
}

View File

@ -1,95 +0,0 @@
using SqlSugar;
using System;
using xTPLM.RFQ.Common.Enum;
namespace xTPLM.RFQ.Model.XRFQ_APP
{
///<summary>
///询报价—内证表
///</summary>
[SugarTable("TRFQ_ACC_SECU")]
public partial class TRFQ_ACC_SECU
{
public TRFQ_ACC_SECU()
{
}
/// <summary>
/// Desc:内证编号
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, Length = 32)]
public string ACCID { get; set; }
/// <summary>
/// Desc:内证名称
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 512)]
public string ACCNAME { get; set; }
/// <summary>
/// Desc:内资
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string CASH_ACCID { get; set; }
/// <summary>
/// Desc:所有者
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string OWNER { get; set; }
/// <summary>
/// Desc:证券账户状态 0:创建中 1:已启用 2:停用中 3:已停用
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public AccountStatus? STATUS { get; set; }
/// <summary>
/// Desc:导入时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? IMPORTTIME { get; set; }
/// <summary>
/// Desc:最后更新人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string UPDATED_BY { get; set; }
/// <summary>
/// Desc:最后更新时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UPDATED_TIME { get; set; }
/// <summary>
///
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string SHTRADER_ID { get; set; }
/// <summary>
/// 财务分类科目
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string ACCFISCASUBJECT { get; set; }
}
}

View File

@ -1,145 +0,0 @@
using SqlSugar;
using System;
using xTPLM.RFQ.Common;
namespace xTPLM.RFQ.Model.XRFQ_APP
{
///<summary>
///询价债券表
///</summary>
[SugarTable("TRFQ_BND")]
public partial class TRFQ_BND
{
public TRFQ_BND()
{
}
/// <summary>
/// Desc:I_CODE
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, Length = 128)]
public string I_CODE { get; set; }
/// <summary>
/// Desc:A_TYPE
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, IsPrimaryKey = true, Length = 128)]
public string A_TYPE { get; set; }
/// <summary>
/// Desc:M_TYPE
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, IsPrimaryKey = true, Length = 128)]
public string M_TYPE { get; set; }
/// <summary>
/// Desc:报价 价格类型:1-到期收益率 2-行权收益率 3-净价 4-全价
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "INT")]
public PriceTypeEnum? PRICE_TYPE { get; set; }
/// <summary>
/// Desc:最后一次修改时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UPDATE_TIME { get; set; }
/// <summary>
/// Desc:最后一次修改人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string UPDATE_BY { get; set; }
/// <summary>
/// Desc:是否城投 0:否,1:是
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? IS_CITY_INVESTMENT { get; set; }
/// <summary>
/// Desc:是否永续债01
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? PERPETUAL { get; set; }
/// <summary>
/// Desc:金融工具Name债券简称
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string B_NAME { get; set; }
/// <summary>
/// Desc:是否利率债 0:未划分1信用债2利率债
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? IS_RATES { get; set; }
/// <summary>
/// Desc:发行人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 256)]
public string ISSUER { get; set; }
/// <summary>
/// Desc:发行人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 256)]
public string BONDISSUER { get; set; }
/// <summary>
/// 风控主体拼音全称
/// </summary>
[SugarColumn(IsNullable = true, Length = 2048)]
public string BONDISSUER_PINYIN { get; set; }
/// <summary>
/// 风控主体拼音简写
/// </summary>
[SugarColumn(IsNullable = true, Length = 2048)]
public string BONDISSUER_PINYIN_SHORT { get; set; }
/// <summary>
/// Desc:债券类别
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string P_CLASS { get; set; }
/// <summary>
/// Desc:万得一级分类
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string WIND_CLASS1 { get; set; }
}
}

View File

@ -1,246 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
namespace xTPLM.RFQ.Model.XRFQ_APP
{
///<summary>
///交易对手表
///</summary>
[SugarTable("TRFQ_COUNTERPARTY")]
public partial class TRFQ_COUNTERPARTY
{
public TRFQ_COUNTERPARTY()
{
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, OracleSequenceName = "TRFQ_COUNTERPARTY$SEQ", IsIdentity = true)]
public int P_SYSID { get; set; }
/// <summary>
/// Desc:名称
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, Length = 1000)]
public string PARTYNAME { get; set; }
/// <summary>
/// Desc:简称
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string PARTYNAME_SHORT { get; set; }
/// <summary>
/// Desc:启用状态:0=停用;1=启用
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? PARTYSTATUS { get; set; }
/// <summary>
/// Desc:银行间会员代码
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string CNBD_MEMBERID { get; set; }
/// <summary>
/// Desc:外汇21位机构代码
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string CNBD_ORGCODE { get; set; }
/// <summary>
/// Desc:所在地域
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string BELONGTOAREA { get; set; }
/// <summary>
/// Desc:上交所固收平台交易商代码
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string SHG_FIX_CUSTCODE { get; set; }
/// <summary>
/// Desc:新增类型0:手动,1:自动
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 10)]
public string PARTYSOURCE { get; set; }
/// <summary>
/// Desc:统一社会信用代码
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string CREDITCODE { get; set; }
/// <summary>
/// Desc:法人代表
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string LEGALPERSON { get; set; }
/// <summary>
/// Desc:营业执照有效日期
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 10)]
public string EXPDATE { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 500)]
public string REMARK { get; set; }
/// <summary>
/// Desc:外汇做市商类型:0 非做市商1 做市商2 尝试做市商-综合做市3 尝试做市商-专项做市
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 10)]
public string MARKETMAKER_TYPE { get; set; }
/// <summary>
/// Desc:最后更新人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string UPDATED_BY { get; set; }
/// <summary>
/// Desc:最后更新时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UPDATED_TIME { get; set; }
/// <summary>
/// Desc:别名
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 1000)]
public string ALIAS { get; set; }
/// <summary>
/// Desc:外部ID
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? P_EXTID { get; set; }
/// <summary>
/// Desc:导入时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? IMPORTTIME { get; set; }
/// <summary>
/// Desc:所属机构
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? PARENTORGANPARTYID { get; set; }
/// <summary>
/// Desc:客户信评等级
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string CREDITLEVEL { get; set; }
/// <summary>
/// 净资产
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? PARTY_NET_ASSETS { get; set; }
/// <summary>
/// 交易对手名称_拼音首拼
/// </summary>
[SugarColumn(IsNullable = true, Length = 512)]
public string PARTYNAME_PINYIN { get; set; }
/// <summary>
/// 交易对手简称_拼音首拼
/// </summary>
[SugarColumn(IsNullable = true, Length = 512)]
public string PARTYNAME_SHORT_PINYIN { get; set; }
/// <summary>
/// 是否法人1法人0非法人
/// </summary>
[SugarColumn(IsNullable = true, Length = 1)]
public string ISLEGALPERSON { get; set; }
#region
/// <summary>
/// 对手类型描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string PARTY_TYPE_DESC
{
get
{
if (ISLEGALPERSON == "0")
{
return "非法人户";
}
else if (ISLEGALPERSON == "1")
{
return "法人户";
}
return string.Empty;
}
}
/// <summary>
/// 所属机构名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string PARENTORGANPARTY { get; set; }
/// <summary>
/// 更新人名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string UPDATED_BY_NAME { get; set; }
#endregion
}
}

View File

@ -1,792 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using xTPLM.Base.Extend;
using xTPLM.RFQ.Common;
using xTPLM.RFQ.Common.Enum;
namespace xTPLM.RFQ.Model.XRFQ_APP
{
///指令表
///</summary>
[SugarTable("TRFQ_INSTRUCTIONS")]
public partial class TRFQ_INSTRUCTIONS
{
private decimal? _ytm_upper;
private decimal? _ytm_oe_upper;
private decimal? _netprice_upper;
private decimal? _price_upper;
public TRFQ_INSTRUCTIONS()
{
}
/// <summary>
/// Desc:指令编号
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, OracleSequenceName = "TRFQ_INSTRUCTIONS$SEQ", IsIdentity = true)]
public int I_ID { get; set; }
/// <summary>
/// Desc:指令名称
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string I_NAME { get; set; }
/// <summary>
/// Desc:截止时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? END_TIME { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 1024)]
public string REMARK { get; set; }
/// <summary>
/// Desc:创建人ID
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? CREATE_BY { get; set; }
/// <summary>
/// Desc:最后一次修改时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UPDATE_TIME { get; set; }
/// <summary>
/// Desc:最后一次修改人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? UPDATE_BY { get; set; }
/// <summary>
/// Desc:状态
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "INT")]
public InstructionsStatus? STATUS { get; set; }
/// <summary>
/// Desc:债券代码
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string I_CODE { get; set; }
/// <summary>
/// Desc:资产类型
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string A_TYPE { get; set; }
/// <summary>
/// Desc:交易市场
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string M_TYPE { get; set; }
/// <summary>
/// Desc:面额(万元)
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? ORDER_MONEY { get; set; }
/// <summary>
/// Desc:价格类型
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "INT")]
public PriceTypeEnum? PRICE_TYPE { get; set; }
/// <summary>
/// Desc:交易方向
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "VARCHAR2(50 BYTE)")]
public TradeType? TRADE_TYPE { get; set; }
/// <summary>
/// Desc:交易对手
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? PARTY_ID { get; set; }
/// <summary>
/// Desc:是否城投 0:否,1:是
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? IS_CITY_INVESTMENT { get; set; }
/// <summary>
/// Desc:是否永续债01
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? PERPETUAL { get; set; }
/// <summary>
/// Desc:是否利率债 0:未划分1信用债2利率债
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public RatesEnum? IS_RATES { get; set; }
/// <summary>
/// Desc:最小交易日期
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ORDER_DATE_MIN { get; set; }
/// <summary>
/// Desc:最大交易日期
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ORDER_DATE_MAX { get; set; }
/// <summary>
/// Desc:交易市场。(非债券交易市场,该字段而是作为筛选,限制指令债券的交易市场)
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string MARKET { get; set; }
/// <summary>
/// Desc:外部ID提交给外部系统审批返回主键
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? SYSID_EXT { get; set; }
/// <summary>
/// Desc:内证账户
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 64)]
public string SECU_ACCID { get; set; }
/// <summary>
/// 提交审批IR用户
/// </summary>
[SugarColumn(IsNullable = true, Length = 40)]
public string SUBMIT_IRUSER { get; set; }
/// <summary>
/// 久期
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? MODIFIED_D { get; set; }
/// <summary>
/// 产品类型
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string P_CLASS { get; set; }
/// <summary>
/// 剩余期限
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? LAST_TERM { get; set; }
/// <summary>
/// 期限类型
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string LAST_TERM_TYPE { get; set; }
/// <summary>
/// 提示
/// </summary>
[SugarColumn(IsNullable = true, Length = 4000)]
public string SUBMIT_MESSAGE { get; set; }
/// <summary>
/// 指令类型 1:精确指令 2:模糊指令
/// </summary>
[SugarColumn(IsNullable = false)]
public InstructionsType I_TYPE { get; set; }
/// <summary>
/// 交易日期
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ORDER_DATE { get; set; }
/// <summary>
/// Desc:清算速度
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "INT")]
public SetDays SET_DAYS { get; set; } = SetDays.T0;
/// <summary>
/// Desc:指令流水号 请勿使用
/// Default:
/// Nullable:True
/// </summary>
[Obsolete]
[SugarColumn(IsNullable = true)]
public string I_NO { get; set; }
/// <summary>
/// 到期收益率
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? YTM { get; set; }
/// <summary>
/// 行权收益率
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? YTM_OE { get; set; }
/// <summary>
/// 净价
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? NETPRICE { get; set; }
/// <summary>
/// 全价
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? PRICE { get; set; }
/// <summary>
/// 到期收益率上限 (模糊指令有效)
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? YTM_UPPER
{
get
{
if (this.I_TYPE != InstructionsType.Vague)
{
return this.YTM;
}
else
{
return this._ytm_upper;
}
}
set
{
this._ytm_upper = value;
}
}
/// <summary>
/// 行政收益率上限 (模式指令有效)
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? YTM_OE_UPPER
{
get
{
if (this.I_TYPE != InstructionsType.Vague)
{
return this.YTM_OE;
}
else
{
return this._ytm_oe_upper;
}
}
set
{
this._ytm_oe_upper = value;
}
}
/// <summary>
/// 净价上限(模糊指令有效)
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? NETPRICE_UPPER
{
get
{
if (this.I_TYPE != InstructionsType.Vague)
{
return this.NETPRICE;
}
else
{
return this._netprice_upper;
}
}
set
{
this._netprice_upper = value;
}
}
/// <summary>
/// 全价上限 (模糊指令有效)
/// </summary>
[SugarColumn(IsNullable = true)]
public decimal? PRICE_UPPER
{
get
{
if (this.I_TYPE != InstructionsType.Vague)
{
return this.PRICE;
}
else
{
return this._price_upper;
}
}
set
{
this._price_upper = value;
}
}
/// <summary>
/// 提交审批时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? SUBMIT_TIME { get; set; }
/// <summary>
/// 上交所固收平台约定号
/// </summary>
[SugarColumn(IsNullable = true, Length = 20)]
public string SHG_AGREENUM { get; set; }
/// <summary>
/// 上交所固收平台对手方交易员代码
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string SHG_TRADER_CP { get; set; }
/// <summary>
/// 上交所固收平台对手方席位号
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string SHG_SEATNO_CP { get; set; }
/// <summary>
/// 数据来源
/// </summary>
[SugarColumn(IsNullable = true, Length = 256)]
public string SOURCE_TYPE { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? CREATE_TIME { get; set; }
/// <summary>
/// 外部交易标识
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string EXT_TRADE_ID { get; set; }
/// <summary>
/// 作废前状态
/// </summary>
[SugarColumn(IsNullable = true)]
public InstructionsStatus? CANCEL_STATUS { get; set; }
#region
/// <summary>
/// 已下发的面额
/// </summary>
[SugarColumn(IsIgnore = true)]
public decimal OrderMoneyRelease { get; set; }
/// <summary>
/// 剩余可用额度
/// </summary>
[SugarColumn(IsIgnore = true)]
public decimal REMAIN_LIMIT { get; set; }
/// <summary>
/// 进度
/// </summary>
[SugarColumn(IsIgnore = true)]
public decimal PROGRESS
{
get
{
if (this.ORDER_MONEY > 0)
{
return Math.Round(this.OrderMoneyRelease / this.ORDER_MONEY.Value, 2) * 100;
}
else
{
return 0;
}
}
}
/// <summary>
/// 部门ID
/// </summary>
[SugarColumn(IsIgnore = true)]
public int? D_ID { get; set; }
/// <summary>
/// 部门名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string D_NAME { get; set; }
/// <summary>
/// 交易对手名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string PARTY_NAME { get; set; }
/// <summary>
/// 执行人(执行人有多个)
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<int> UserId { get; set; }
/// <summary>
/// 执行人姓名
/// </summary>
[SugarColumn(IsIgnore = true)]
public string User_Desc { get; set; }
/// <summary>
/// 录入人名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string CREATE_BY_NAME { get; set; }
/// <summary>
/// 是否能够编辑或者提交审批
/// </summary>
[SugarColumn(IsIgnore = true)]
public bool IsEdit { get; set; }
/// <summary>
/// 价格类型描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string PRICE_TYPE_DESC
{
get
{
return this.PRICE_TYPE.GetValueOrDefault().GetDescription();
}
}
/// <summary>
/// 指令类型类型描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string I_TYPE_DESC => this.I_TYPE.GetDescription();
/// <summary>
/// 状态描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string STATUS_DESC
{
get
{
if (this.STATUS.HasValue)
{
return this.STATUS.Value.GetDescription();
}
return string.Empty;
}
}
/// <summary>
/// 交易方向描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string TRADE_TYPE_DESC
{
get
{
if (this.TRADE_TYPE.HasValue)
{
return this.TRADE_TYPE.Value.GetDescription();
}
return string.Empty;
}
}
/// <summary>
/// 清算速度描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string SET_DAYS_DESC
{
get
{
return this.SET_DAYS.GetDescription();
}
}
/// <summary>
/// 价格范围
/// </summary>
[SugarColumn(IsIgnore = true)]
public string PRICE_MIN
{
get
{
string result = string.Empty;
if (this.PRICE_TYPE.HasValue)
{
if (this.I_TYPE == InstructionsType.Vague)
{
switch (this.PRICE_TYPE.Value)
{
case PriceTypeEnum.YTM:
result = $"{this.YTM}-{this.YTM_UPPER}";
break;
case PriceTypeEnum.YTM_OE:
result = $"{this.YTM_OE}-{this.YTM_OE_UPPER}";
break;
case PriceTypeEnum.NETPRICE:
result = $"{this.NETPRICE}-{this.NETPRICE_UPPER}";
break;
case PriceTypeEnum.PRICE:
result = $"{this.PRICE}-{this.PRICE_UPPER}";
break;
default:
break;
}
}
else
{
switch (this.PRICE_TYPE.Value)
{
case PriceTypeEnum.YTM:
result = this.YTM.ToString();
break;
case PriceTypeEnum.YTM_OE:
result = this.YTM_OE.ToString();
break;
case PriceTypeEnum.NETPRICE:
result = this.NETPRICE.ToString();
break;
case PriceTypeEnum.PRICE:
result = this.PRICE.ToString();
break;
default:
break;
}
}
}
return result;
}
}
/// <summary>
/// 内证账户名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string SECU_ACCNAME { get; set; }
/// <summary>
///发行人
/// </summary>
[SugarColumn(IsIgnore = true)]
public string ISSUER { get; set; }
/// <summary>
/// 债券名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string B_NAME { get; set; }
/// <summary>
/// 交易市场描述
/// </summary>
[SugarColumn(IsIgnore = true)]
public string M_TYPE_DESC
{
get
{
if (!string.IsNullOrWhiteSpace(this.M_TYPE))
{
return MarketType.GetDescription(this.M_TYPE);
}
return string.Empty;
}
}
/// <summary>
/// 关联有效询价列表(询价单状态已撤销或无记录或审批拒绝,视为无效)
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<int> ValidQuotaIDList { get; set; }
#endregion
#region
/// <summary>
/// 产品ID内资代码
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string CASH_ACCID { get; set; }
/// <summary>
/// 待确认操作类型
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public ActionType? CONFIRM_ACTION_TYPE { get; set; }
#region
/// <summary>
/// 产品名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string PRODUCT_NAME { get; set; }
#endregion
#endregion
/// <summary>
/// 价格处理
/// </summary>
public void PriceMath()
{
if (this.NETPRICE.HasValue)
{
this.NETPRICE = Math.Round(this.NETPRICE.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.NETPRICE_UPPER.HasValue)
{
this.NETPRICE_UPPER = Math.Round(this.NETPRICE_UPPER.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.YTM.HasValue)
{
this.YTM = Math.Round(this.YTM.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.YTM_UPPER.HasValue)
{
this.YTM_UPPER = Math.Round(this.YTM_UPPER.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.YTM_OE.HasValue)
{
this.YTM_OE = Math.Round(this.YTM_OE.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.YTM_OE_UPPER.HasValue)
{
this.YTM_OE_UPPER = Math.Round(this.YTM_OE_UPPER.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.PRICE.HasValue)
{
this.PRICE = Math.Round(this.PRICE.Value, 4, MidpointRounding.AwayFromZero);
}
if (this.PRICE_UPPER.HasValue)
{
this.PRICE_UPPER = Math.Round(this.PRICE_UPPER.Value, 4, MidpointRounding.AwayFromZero);
}
}
}
/// <summary>
/// 指令排序对象
/// </summary>
public class InsOrderList
{
/// <summary>
/// 债券代码
/// </summary>
public string I_CODE { get; set; }
/// <summary>
/// 资产类型
/// </summary>
public string A_TYPE { get; set; }
/// <summary>
/// 交易市场
/// </summary>
public string M_TYPE { get; set; }
/// <summary>
/// 债券名称
/// </summary>
public string B_NAME { get; set; }
/// <summary>
/// 交易市场描述
/// </summary>
public string M_TYPE_DESC
{
get
{
if (!string.IsNullOrWhiteSpace(this.M_TYPE))
{
return MarketType.GetDescription(this.M_TYPE);
}
return string.Empty;
}
}
/// <summary>
/// 最小ID
/// </summary>
public int MinId { get; set; }
/// <summary>
/// 子列表
/// </summary>
public List<TRFQ_INSTRUCTIONS> ChildList { get; set; }
}
}

View File

@ -1,110 +0,0 @@

using SqlSugar;
namespace xTPLM.RFQ.Model.XRFQ_APP
{
///<summary>
///计划任务表
///</summary>
[SugarTable("TRFQ_SYS_TASK")]
public partial class TRFQ_SYS_TASK
{
public TRFQ_SYS_TASK()
{
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, OracleSequenceName = "TRFQ_TASK$SEQ", IsIdentity = true)]
public int ID { get; set; }
/// <summary>
/// Desc:任务名称
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 128)]
public string TASKNAME { get; set; }
/// <summary>
/// Desc:执行ID
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public int? JOB_ID { get; set; }
/// <summary>
/// Desc:任务配置
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 1024)]
public string TASK_CONFIG { get; set; }
/// <summary>
/// Desc:状态1:启用0:禁用
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false)]
public int STATUS { get; set; }
/// <summary>
/// Desc:上一次执行时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? PREVIOUS_FIRE_TIME { get; set; }
/// <summary>
/// Desc:下一次执行时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? NEXT_FIRE_TIME { get; set; }
/// <summary>
/// Desc:已执行次数
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsNullable = false)]
public int COUNT { get; set; }
/// <summary>
/// Desc:最后一次修改人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true, Length = 32)]
public string UPDATE_BY { get; set; }
/// <summary>
/// Desc:最后一次修改时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UPDATE_TIME { get; set; }
/// <summary>
/// 工作名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string JOBNAME { get; set; }
/// <summary>
/// 配置说明
/// </summary>
[SugarColumn(IsIgnore = true)]
public string TASK_CONFIG_DESCRIPTION { get; set; }
}
}