diff --git a/YLErpDAL/Modules/SwapModule/SwapFlowService.cs b/YLErpDAL/Modules/SwapModule/SwapFlowService.cs
index 30a40623..430a5e53 100644
--- a/YLErpDAL/Modules/SwapModule/SwapFlowService.cs
+++ b/YLErpDAL/Modules/SwapModule/SwapFlowService.cs
@@ -372,16 +372,16 @@ namespace YLErp.Modules.SwapModule
exportModel.PositionType = item.PositionType==1?"多头":"空头";
exportModel.UnderlyingCode = item.UnderlyingCode;
exportModel.MatuirityDate = item.MatuirityDate.OtcFormatDate();
- exportModel.TradingAmountAvg = item.TradingAmountAvg.OtcFormatMoney(grouping: false);
- exportModel.TradingAmountFeeAvg = item.TradingAmountFeeAvg.OtcFormatMoney(grouping: false);
+ exportModel.TradingAmountAvg = item.TradingAmountAvg.OtcFormat(OtcFormatFlag.umprice);
+ exportModel.TradingAmountFeeAvg = item.TradingAmountFeeAvg.OtcFormat(OtcFormatFlag.umprice);
exportModel.Quantity = item.Quantity.OtcFormatMoney(false, 4);
- exportModel.TradingAmount = item.TradingAmount.OtcFormatMoney(false, 2);
+ exportModel.TradingAmount = item.TradingAmount.OtcFormatMoney(false, 4);
exportModel.ContractSize = item.ContractSize.ToString();
- exportModel.TradingFee = item.TradingFee.OtcFormatMoney(false, 2);
- exportModel.TradingFeePending = item.TradingFeePending.OtcFormatMoney(false, 2);
- exportModel.DividendPending = item.DividendPending.OtcFormatMoney(false, 2);
- exportModel.MarkClosePnl = item.MarkClosePnl.OtcFormatMoney(false, 2);
- exportModel.DividendIn = item.DividendIn.OtcFormatMoney(false, 2);
+ exportModel.TradingFee = item.TradingFee.OtcFormatMoney(false, 4);
+ exportModel.TradingFeePending = item.TradingFeePending.OtcFormatMoney(false, 4);
+ exportModel.DividendPending = item.DividendPending.OtcFormatMoney(false, 4);
+ exportModel.MarkClosePnl = item.MarkClosePnl.OtcFormatMoney(false, 4);
+ exportModel.DividendIn = item.DividendIn.OtcFormatMoney(false, 4);
exportModel.OptLog = item.OptLog;
exportModel.InitYtm = item.InitYtm;
list.Add(exportModel);
diff --git a/YLErpWeb/Views/SwapTrade2/EventList.cshtml b/YLErpWeb/Views/SwapTrade2/EventList.cshtml
index c3905e38..cfbe53fc 100644
--- a/YLErpWeb/Views/SwapTrade2/EventList.cshtml
+++ b/YLErpWeb/Views/SwapTrade2/EventList.cshtml
@@ -12,7 +12,7 @@
-
+
}
@@ -28,4 +28,4 @@
+
\ No newline at end of file
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js
index c8c32767..e9f8f6b7 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js
@@ -176,31 +176,36 @@ var getColModelGrid = function () {
label: '成交全价',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'TradingAmountFeeAvg',
label: '成交全价(含费)',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'TradingAmountNetAvg',
label: '成交净价',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'InitYtm',
label: '成交收益率',
width: 90,
align: 'center',
- formatter: EventNineDecimalFormat
+ formatter: function (cellValue, options, rowObject) {
+ if (cellValue == null) {
+ return "";
+ }
+ return otcformat.trading.premiumRateP(cellValue);
+ }
}, {
name: 'TradingAmountNetFeeAvg',
label: '成交净价(含费)',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'Quantity',
label: '成交数量/张数',
@@ -212,7 +217,7 @@ var getColModelGrid = function () {
label: '成交金额(元)',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'ContractSize',
label: '乘数',
@@ -225,31 +230,31 @@ var getColModelGrid = function () {
label: '交易费用佣金',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'TradingFeePending',
label: '待结算交易费用佣金',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'DividendPending',
label: '待结算分红收益',
width: 90,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'MarkClosePnl',
label: '浮动端平仓盈亏·浮动',
width: 160,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}, {
name: 'DividendIn',
label: '浮动端平仓盈亏·分红',
width: 160,
align: 'center',
- formatter: EventTwoDecimalFormat
+ formatter: otcformat.trading.umprice
}
];
return col;
@@ -257,23 +262,6 @@ var getColModelGrid = function () {
var colModelGrid = getColModelGrid();
-function EventTwoDecimalFormat(cellValue) {
- if (cellValue === null || cellValue === undefined || cellValue === '') {
- return '';
- }
- var price = Number(cellValue);
- return isFinite(price) ? price.toFixed(2) : cellValue;
-}
-
-function EventNineDecimalFormat(cellValue) {
- if (cellValue === null || cellValue === undefined || cellValue === '') {
- return '';
- }
- var price = Number(cellValue);
- return isFinite(price) ? price.toFixed(9) : cellValue;
-}
-
-
function gridComplete() {
$('.ui-jqgrid-bdiv', '#gbox_listGrid').floatingScroll();
}