mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
*OceanBaseForOracle支持OffsetPage分页
This commit is contained in:
102
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/ExeMarketType.cs
Normal file
102
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/ExeMarketType.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
126
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/HostMarketType.cs
Normal file
126
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/HostMarketType.cs
Normal file
@@ -0,0 +1,126 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
104
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/IrSetType.cs
Normal file
104
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/IrSetType.cs
Normal file
@@ -0,0 +1,104 @@
|
||||
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";
|
||||
|
||||
|
||||
}
|
||||
}
|
90
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/MarketType.cs
Normal file
90
Src/Asp.NetCore2/OceanBaseForOracleTest/Dict/MarketType.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
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";
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user