hqchart 1.1.14798 → 1.1.14809
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/umychart.vue.js +48 -51
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogSearchIndex.js +58 -33
- package/src/jscommon/umychart.js +20 -0
- package/src/jscommon/umychart.report.js +144 -31
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +165 -32
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +223 -65
|
@@ -6880,6 +6880,8 @@ var JSCHART_EVENT_ID=
|
|
|
6880
6880
|
ON_CLICK_CROSSCURSOR_BOTTOM:170, //十字光标底部文字点击
|
|
6881
6881
|
|
|
6882
6882
|
ON_CLICK_CHART_CELL:171, //点击图形单元
|
|
6883
|
+
|
|
6884
|
+
GET_DEFAULT_INDEX_PARAM:172, //获取指标默认参数
|
|
6883
6885
|
}
|
|
6884
6886
|
|
|
6885
6887
|
var JSCHART_OPERATOR_ID=
|
|
@@ -57281,6 +57283,24 @@ IFrameSplitOperator.FormatDateTimeString=function(value,isShowDate,isShowTime)
|
|
|
57281
57283
|
return result;
|
|
57282
57284
|
}
|
|
57283
57285
|
|
|
57286
|
+
IFrameSplitOperator.FormatDateTimeStringV2=function(datetime, format, languageID)
|
|
57287
|
+
{
|
|
57288
|
+
if (!datetime) return null;
|
|
57289
|
+
|
|
57290
|
+
switch(format)
|
|
57291
|
+
{
|
|
57292
|
+
case "YYYY-MM-DD":
|
|
57293
|
+
return `${datetime.getFullYear()}-${IFrameSplitOperator.NumberToString(datetime.getMonth()+1)}-${IFrameSplitOperator.NumberToString(datetime.getDate())}`;
|
|
57294
|
+
|
|
57295
|
+
case "HH:MM:SS":
|
|
57296
|
+
return `${IFrameSplitOperator.NumberToString(datetime.getHours())}:${IFrameSplitOperator.NumberToString(datetime.getMinutes())}:${IFrameSplitOperator.NumberToString(datetime.getSeconds())}`;
|
|
57297
|
+
case "HH:MM":
|
|
57298
|
+
return `${IFrameSplitOperator.NumberToString(datetime.getHours())}:${IFrameSplitOperator.NumberToString(datetime.getMinutes())}`;
|
|
57299
|
+
default:
|
|
57300
|
+
return null;
|
|
57301
|
+
}
|
|
57302
|
+
}
|
|
57303
|
+
|
|
57284
57304
|
//字段颜色格式化
|
|
57285
57305
|
IFrameSplitOperator.FormatValueColor = function (value, value2)
|
|
57286
57306
|
{
|
|
@@ -137738,10 +137758,12 @@ function JSReportChartContainer(uielement)
|
|
|
137738
137758
|
this.ReadStockJsonData=function(stock, item)
|
|
137739
137759
|
{
|
|
137740
137760
|
//0=证券代码 1=股票名称 2=昨收 3=开 4=高 5=低 6=收 7=成交量 8=成交金额, 9=买价 10=买量 11=卖价 12=卖量 13=均价 14=流通股 15=总股本 16=涨停价 17=跌停价
|
|
137741
|
-
//18=内盘 19=外盘 20=现量 21=涨幅% 22=涨跌 23=换手率% 24=振幅% 25=流通市值 26=总市值
|
|
137742
|
-
//30=全局扩展数据 31=当前板块扩展数据
|
|
137743
|
-
|
|
137744
|
-
//
|
|
137761
|
+
//18=内盘 19=外盘 20=现量 21=涨幅% 22=涨跌 23=换手率% 24=振幅% 25=流通市值 26=总市值 27=扩展名字
|
|
137762
|
+
//30=全局扩展数据 31=当前板块扩展数据
|
|
137763
|
+
//32=收盘价线 33=K线 35=时间 36=日期字段 38=持仓量 39=结算价 40=昨结算价 41=开仓量 42=平仓量
|
|
137764
|
+
//43=1m涨速% 44=3m涨速% 45=5m涨速% 46=10m涨速% 47=15m涨速%
|
|
137765
|
+
//80=整行背景色
|
|
137766
|
+
//101-199=数值型 201-299=字符型 301-350=进度条 351-400=按钮 401-499=日期时间
|
|
137745
137767
|
|
|
137746
137768
|
if (IFrameSplitOperator.IsString(item[1])) stock.Name=item[1];
|
|
137747
137769
|
if (IFrameSplitOperator.IsNumber(item[2])) stock.YClose=item[2];
|
|
@@ -137838,6 +137860,8 @@ function JSReportChartContainer(uielement)
|
|
|
137838
137860
|
if (IFrameSplitOperator.IsNumber(item[46])) stock.RSpeed10M=item[46];
|
|
137839
137861
|
if (IFrameSplitOperator.IsNumber(item[47])) stock.RSpeed15M=item[47];
|
|
137840
137862
|
|
|
137863
|
+
if (item[80] || item[80]===null) stock.BGColor=item[80]; //整行背景色
|
|
137864
|
+
|
|
137841
137865
|
//10个数值型 101-199
|
|
137842
137866
|
if (IFrameSplitOperator.IsNumber(item[101])) stock.ReserveNumber1=item[101];
|
|
137843
137867
|
if (IFrameSplitOperator.IsNumber(item[102])) stock.ReserveNumber2=item[102];
|
|
@@ -137851,16 +137875,16 @@ function JSReportChartContainer(uielement)
|
|
|
137851
137875
|
if (IFrameSplitOperator.IsNumber(item[110])) stock.ReserveNumber10=item[110];
|
|
137852
137876
|
|
|
137853
137877
|
//10个字符型 201-299
|
|
137854
|
-
if (IFrameSplitOperator.IsString(item[201])) stock.ReserveString1=item[201];
|
|
137855
|
-
if (IFrameSplitOperator.IsString(item[202])) stock.ReserveString2=item[202];
|
|
137856
|
-
if (IFrameSplitOperator.IsString(item[203])) stock.ReserveString3=item[203];
|
|
137857
|
-
if (IFrameSplitOperator.IsString(item[204])) stock.ReserveString4=item[204];
|
|
137858
|
-
if (IFrameSplitOperator.IsString(item[205])) stock.ReserveString5=item[205];
|
|
137859
|
-
if (IFrameSplitOperator.IsString(item[206])) stock.ReserveString6=item[206];
|
|
137860
|
-
if (IFrameSplitOperator.IsString(item[207])) stock.ReserveString7=item[207];
|
|
137861
|
-
if (IFrameSplitOperator.IsString(item[208])) stock.ReserveString8=item[208];
|
|
137862
|
-
if (IFrameSplitOperator.IsString(item[209])) stock.ReserveString9=item[209];
|
|
137863
|
-
if (IFrameSplitOperator.IsString(item[210])) stock.ReserveString10=item[210];
|
|
137878
|
+
if (IFrameSplitOperator.IsString(item[201]) || IFrameSplitOperator.IsObject(item[201])) stock.ReserveString1=item[201];
|
|
137879
|
+
if (IFrameSplitOperator.IsString(item[202]) || IFrameSplitOperator.IsObject(item[202])) stock.ReserveString2=item[202];
|
|
137880
|
+
if (IFrameSplitOperator.IsString(item[203]) || IFrameSplitOperator.IsObject(item[203])) stock.ReserveString3=item[203];
|
|
137881
|
+
if (IFrameSplitOperator.IsString(item[204]) || IFrameSplitOperator.IsObject(item[204])) stock.ReserveString4=item[204];
|
|
137882
|
+
if (IFrameSplitOperator.IsString(item[205]) || IFrameSplitOperator.IsObject(item[205])) stock.ReserveString5=item[205];
|
|
137883
|
+
if (IFrameSplitOperator.IsString(item[206]) || IFrameSplitOperator.IsObject(item[206])) stock.ReserveString6=item[206];
|
|
137884
|
+
if (IFrameSplitOperator.IsString(item[207]) || IFrameSplitOperator.IsObject(item[207])) stock.ReserveString7=item[207];
|
|
137885
|
+
if (IFrameSplitOperator.IsString(item[208]) || IFrameSplitOperator.IsObject(item[208])) stock.ReserveString8=item[208];
|
|
137886
|
+
if (IFrameSplitOperator.IsString(item[209]) || IFrameSplitOperator.IsObject(item[209])) stock.ReserveString9=item[209];
|
|
137887
|
+
if (IFrameSplitOperator.IsString(item[210]) || IFrameSplitOperator.IsObject(item[210])) stock.ReserveString10=item[210];
|
|
137864
137888
|
|
|
137865
137889
|
//10个进度条 301-350 { Value:, BGColor: }
|
|
137866
137890
|
if (IFrameSplitOperator.IsNumber(item[301]) || IFrameSplitOperator.IsObject(item[301])) stock.ReserveProgressBar1=item[301];
|
|
@@ -137885,7 +137909,18 @@ function JSReportChartContainer(uielement)
|
|
|
137885
137909
|
if (IFrameSplitOperator.IsObject(item[358])) stock.ReserveButton8=item[358];
|
|
137886
137910
|
if (IFrameSplitOperator.IsObject(item[359])) stock.ReserveButton9=item[359];
|
|
137887
137911
|
if (IFrameSplitOperator.IsObject(item[360])) stock.ReserveButton10=item[360];
|
|
137888
|
-
|
|
137912
|
+
|
|
137913
|
+
//10个日期时间类型 401-499 { Value:Date, BGColor }
|
|
137914
|
+
if (IFrameSplitOperator.IsObject(item[401])) stock.ReserveDateTime1=item[401];
|
|
137915
|
+
if (IFrameSplitOperator.IsObject(item[402])) stock.ReserveDateTime2=item[402];
|
|
137916
|
+
if (IFrameSplitOperator.IsObject(item[403])) stock.ReserveDateTime3=item[403];
|
|
137917
|
+
if (IFrameSplitOperator.IsObject(item[404])) stock.ReserveDateTime4=item[404];
|
|
137918
|
+
if (IFrameSplitOperator.IsObject(item[405])) stock.ReserveDateTime5=item[405];
|
|
137919
|
+
if (IFrameSplitOperator.IsObject(item[406])) stock.ReserveDateTime6=item[406];
|
|
137920
|
+
if (IFrameSplitOperator.IsObject(item[407])) stock.ReserveDateTime7=item[407];
|
|
137921
|
+
if (IFrameSplitOperator.IsObject(item[408])) stock.ReserveDateTime8=item[408];
|
|
137922
|
+
if (IFrameSplitOperator.IsObject(item[409])) stock.ReserveDateTime9=item[409];
|
|
137923
|
+
if (IFrameSplitOperator.IsObject(item[410])) stock.ReserveDateTime10=item[410];
|
|
137889
137924
|
}
|
|
137890
137925
|
|
|
137891
137926
|
|
|
@@ -140732,6 +140767,18 @@ var REPORT_COLUMN_ID=
|
|
|
140732
140767
|
RESERVE_BUTTON9_ID:459, //ReserveButton9:
|
|
140733
140768
|
RESERVE_BUTTON10_ID:460, //ReserveButton10:
|
|
140734
140769
|
|
|
140770
|
+
|
|
140771
|
+
//预留日期时间类型 10个 501-599
|
|
140772
|
+
RESERVE_DATETIME1_ID:501, //ReserveDateTime1;
|
|
140773
|
+
RESERVE_DATETIME2_ID:502,
|
|
140774
|
+
RESERVE_DATETIME3_ID:503,
|
|
140775
|
+
RESERVE_DATETIME4_ID:504,
|
|
140776
|
+
RESERVE_DATETIME5_ID:505,
|
|
140777
|
+
RESERVE_DATETIME6_ID:506,
|
|
140778
|
+
RESERVE_DATETIME7_ID:507,
|
|
140779
|
+
RESERVE_DATETIME8_ID:508,
|
|
140780
|
+
RESERVE_DATETIME9_ID:509,
|
|
140781
|
+
RESERVE_DATETIME10_ID:510,
|
|
140735
140782
|
}
|
|
140736
140783
|
|
|
140737
140784
|
|
|
@@ -140828,6 +140875,17 @@ var MAP_COLUMN_FIELD=new Map([
|
|
|
140828
140875
|
[REPORT_COLUMN_ID.RESERVE_BUTTON8_ID,"ReserveButton8"],
|
|
140829
140876
|
[REPORT_COLUMN_ID.RESERVE_BUTTON9_ID,"ReserveButton9"],
|
|
140830
140877
|
[REPORT_COLUMN_ID.RESERVE_BUTTON10_ID,"ReserveButton10"],
|
|
140878
|
+
|
|
140879
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME1_ID,"ReserveDateTime1"],
|
|
140880
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME2_ID,"ReserveDateTime2"],
|
|
140881
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME3_ID,"ReserveDateTime3"],
|
|
140882
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME4_ID,"ReserveDateTime4"],
|
|
140883
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME5_ID,"ReserveDateTime5"],
|
|
140884
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME6_ID,"ReserveDateTime6"],
|
|
140885
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME7_ID,"ReserveDateTime7"],
|
|
140886
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME8_ID,"ReserveDateTime8"],
|
|
140887
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME9_ID,"ReserveDateTime9"],
|
|
140888
|
+
[REPORT_COLUMN_ID.RESERVE_DATETIME10_ID,"ReserveDateTime10"],
|
|
140831
140889
|
]);
|
|
140832
140890
|
|
|
140833
140891
|
function ChartReport()
|
|
@@ -141154,7 +141212,7 @@ function ChartReport()
|
|
|
141154
141212
|
if (IFrameSplitOperator.IsBool(item.EnableFormatDrawInfoEvent)) colItem.EnableFormatDrawInfoEvent=item.EnableFormatDrawInfoEvent;
|
|
141155
141213
|
|
|
141156
141214
|
if (IFrameSplitOperator.IsNumber(item.FloatPrecision)) colItem.FloatPrecision=item.FloatPrecision; //小数位数
|
|
141157
|
-
if (IFrameSplitOperator.IsNumber(item.ColorType)) colItem.ColorType=item.ColorType; //0=默认 1=(>0, =0, <0) 2=(>=0, <0)
|
|
141215
|
+
if (IFrameSplitOperator.IsNumber(item.ColorType)) colItem.ColorType=item.ColorType; //0=默认 1=(>0, =0, <0) 2=(>=0, <0) 3=(>YClose =YClose <YClose)
|
|
141158
141216
|
if (item.Icon) colItem.Icon=item.Icon;
|
|
141159
141217
|
if (IFrameSplitOperator.IsBool(item.EnableChartTooltip)) colItem.ChartTooltip={ Enable:item.EnableChartTooltip, Type:20 };
|
|
141160
141218
|
if (item.ChartTooltip) colItem.ChartTooltip={ Enable:item.ChartTooltip.Enable, Type:item.ChartTooltip.Type };
|
|
@@ -141223,6 +141281,11 @@ function ChartReport()
|
|
|
141223
141281
|
else if (this.IsReserveNumber(item.Type))
|
|
141224
141282
|
{
|
|
141225
141283
|
if (item.Format) colItem.Format=item.Format; //数据格式化设置{ Type:1=原始 2=千分位分割 3=万亿转换, ExFloatPrecision:万亿转换以后的小数位数 }
|
|
141284
|
+
if (item.StringFormat) colItem.StringFormat=item.StringFormat; //"{0}%" 输出增加固定字符
|
|
141285
|
+
}
|
|
141286
|
+
else if (this.IsReserveDateTime(item.Type))
|
|
141287
|
+
{
|
|
141288
|
+
if (item.DateTimeFormat) colItem.DateTimeFormat=item.DateTimeFormat; //日期格式化
|
|
141226
141289
|
}
|
|
141227
141290
|
else if (item.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
|
|
141228
141291
|
{
|
|
@@ -141467,6 +141530,18 @@ function ChartReport()
|
|
|
141467
141530
|
{ Type:REPORT_COLUMN_ID.RESERVE_BUTTON8_ID, Title:"按钮8", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() },
|
|
141468
141531
|
{ Type:REPORT_COLUMN_ID.RESERVE_BUTTON9_ID, Title:"按钮9", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() },
|
|
141469
141532
|
{ Type:REPORT_COLUMN_ID.RESERVE_BUTTON10_ID, Title:"按钮10", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() },
|
|
141533
|
+
|
|
141534
|
+
|
|
141535
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME1_ID, Title:"日期1", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141536
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME2_ID, Title:"日期2", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141537
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME3_ID, Title:"日期3", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141538
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME4_ID, Title:"日期4", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141539
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME5_ID, Title:"日期5", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141540
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME6_ID, Title:"日期6", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141541
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME7_ID, Title:"日期7", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141542
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME8_ID, Title:"日期8", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141543
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME9_ID, Title:"日期9", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141544
|
+
{ Type:REPORT_COLUMN_ID.RESERVE_DATETIME10_ID, Title:"日期10", TextAlign:"right", TextColor:g_JSChartResource.Report.FieldColor.Text, MaxText:"9999-99-99", DateTimeFormat:"YYYY-MM-DD" },
|
|
141470
141545
|
|
|
141471
141546
|
];
|
|
141472
141547
|
|
|
@@ -142111,6 +142186,9 @@ function ChartReport()
|
|
|
142111
142186
|
for(var i=this.Data.YOffset, j=0; i<dataCount && j<this.RowCount ;++i, ++j)
|
|
142112
142187
|
{
|
|
142113
142188
|
var symbol=this.Data.Data[i];
|
|
142189
|
+
var rtRowBG={ Left:left, Top:textTop, Width:rowWidth, Height:this.RowHeight };
|
|
142190
|
+
rtRowBG.Right=rtRowBG.Left+rtRowBG.Width;
|
|
142191
|
+
rtRowBG.Bottom=rtRowBG.Top+rtRowBG.Height;
|
|
142114
142192
|
|
|
142115
142193
|
var bFillRow=false;
|
|
142116
142194
|
if (this.MultiSelectModel==1)
|
|
@@ -142155,23 +142233,10 @@ function ChartReport()
|
|
|
142155
142233
|
bFillRow=false;
|
|
142156
142234
|
}
|
|
142157
142235
|
|
|
142158
|
-
|
|
142159
|
-
{
|
|
142160
|
-
//Out:{ BGColor: }
|
|
142161
|
-
var sendData={ RowIndex:i, Symbol:symbol, Out:null, Selected:selectedSymbol, MultiSelectModel:this.MultiSelectModel };
|
|
142162
|
-
eventDrawBG.Callback(eventDrawBG,sendData,this);
|
|
142163
|
-
if (sendData.Out && sendData.Out.BGColor)
|
|
142164
|
-
{
|
|
142165
|
-
this.Canvas.fillStyle=sendData.Out.BGColor;
|
|
142166
|
-
this.Canvas.fillRect(left,textTop,rowWidth,this.RowHeight);
|
|
142167
|
-
}
|
|
142168
|
-
}
|
|
142236
|
+
this.DrawFullRowBGColor(symbol, eventDrawBG, i, rtRowBG, { Selected:selectedSymbol } );
|
|
142169
142237
|
|
|
142170
142238
|
if (bFillRow)
|
|
142171
142239
|
{
|
|
142172
|
-
var rtRowBG={ Left:left, Top:textTop, Width:rowWidth, Height:this.RowHeight };
|
|
142173
|
-
rtRowBG.Right=rtRowBG.Left+rtRowBG.Width;
|
|
142174
|
-
rtRowBG.Bottom=rtRowBG.Top+rtRowBG.Height;
|
|
142175
142240
|
this.AryFullSelectedRow.push(rtRowBG);
|
|
142176
142241
|
|
|
142177
142242
|
if (this.SelectedStyle===1)
|
|
@@ -142187,8 +142252,35 @@ function ChartReport()
|
|
|
142187
142252
|
|
|
142188
142253
|
textTop+=this.RowHeight;
|
|
142189
142254
|
}
|
|
142255
|
+
}
|
|
142190
142256
|
|
|
142191
|
-
|
|
142257
|
+
//绘制整行背景色
|
|
142258
|
+
this.DrawFullRowBGColor=function(symbol, event, index, rtBG, option)
|
|
142259
|
+
{
|
|
142260
|
+
var data= { Symbol:symbol , Stock:null };
|
|
142261
|
+
if (this.GetStockDataCallback) data.Stock=this.GetStockDataCallback(symbol);
|
|
142262
|
+
if (data.Stock && data.Stock.BGColor)
|
|
142263
|
+
{
|
|
142264
|
+
this.Canvas.fillStyle=data.Stock.BGColor;
|
|
142265
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
142266
|
+
}
|
|
142267
|
+
|
|
142268
|
+
if (event && event.Callback)
|
|
142269
|
+
{
|
|
142270
|
+
//Out:{ BGColor: }
|
|
142271
|
+
var sendData={ RowIndex:index, Symbol:symbol, Out:null, MultiSelectModel:this.MultiSelectModel };
|
|
142272
|
+
if (option)
|
|
142273
|
+
{
|
|
142274
|
+
if (option.Selected) sendData.Selected=option.Selected;
|
|
142275
|
+
}
|
|
142276
|
+
|
|
142277
|
+
event.Callback(event,sendData,this);
|
|
142278
|
+
if (sendData.Out && sendData.Out.BGColor)
|
|
142279
|
+
{
|
|
142280
|
+
this.Canvas.fillStyle=sendData.Out.BGColor;
|
|
142281
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
142282
|
+
}
|
|
142283
|
+
}
|
|
142192
142284
|
}
|
|
142193
142285
|
|
|
142194
142286
|
this.DrawSelectedRow=function()
|
|
@@ -142744,6 +142836,11 @@ function ChartReport()
|
|
|
142744
142836
|
this.FormatReserveString(column, stock, drawInfo);
|
|
142745
142837
|
this.FormatDrawInfoEvent(stock, data, column, drawInfo);
|
|
142746
142838
|
}
|
|
142839
|
+
else if (this.IsReserveDateTime(column.Type))
|
|
142840
|
+
{
|
|
142841
|
+
this.FormatReserveDateTime(column, stock, drawInfo);
|
|
142842
|
+
this.FormatDrawInfoEvent(stock, data, column, drawInfo);
|
|
142843
|
+
}
|
|
142747
142844
|
else if (this.IsReserveProgressBarColumn(column.Type))
|
|
142748
142845
|
{
|
|
142749
142846
|
this.FormatReserveProgressBar(column, stock, drawInfo);
|
|
@@ -142913,6 +143010,18 @@ function ChartReport()
|
|
|
142913
143010
|
return ARARY_TYPE.includes(value);
|
|
142914
143011
|
}
|
|
142915
143012
|
|
|
143013
|
+
this.IsReserveDateTime=function(value)
|
|
143014
|
+
{
|
|
143015
|
+
var ARARY_TYPE=
|
|
143016
|
+
[
|
|
143017
|
+
REPORT_COLUMN_ID.RESERVE_DATETIME1_ID,REPORT_COLUMN_ID.RESERVE_DATETIME2_ID,REPORT_COLUMN_ID.RESERVE_DATETIME3_ID,REPORT_COLUMN_ID.RESERVE_DATETIME4_ID,
|
|
143018
|
+
REPORT_COLUMN_ID.RESERVE_DATETIME5_ID,REPORT_COLUMN_ID.RESERVE_DATETIME6_ID,REPORT_COLUMN_ID.RESERVE_DATETIME7_ID,REPORT_COLUMN_ID.RESERVE_DATETIME8_ID,
|
|
143019
|
+
REPORT_COLUMN_ID.RESERVE_DATETIME9_ID,REPORT_COLUMN_ID.RESERVE_DATETIME10_ID
|
|
143020
|
+
];
|
|
143021
|
+
|
|
143022
|
+
return ARARY_TYPE.includes(value);
|
|
143023
|
+
}
|
|
143024
|
+
|
|
142916
143025
|
|
|
142917
143026
|
|
|
142918
143027
|
this.DrawCustomText=function(drawInfo, column, left, top, cellWidth)
|
|
@@ -143291,6 +143400,10 @@ function ChartReport()
|
|
|
143291
143400
|
{
|
|
143292
143401
|
drawInfo.TextColor=this.GetUpDownColorV2(value,0);
|
|
143293
143402
|
}
|
|
143403
|
+
else if (column.ColorType==3)
|
|
143404
|
+
{
|
|
143405
|
+
drawInfo.TextColor=this.GetUpDownColor(value,data.YClose);
|
|
143406
|
+
}
|
|
143294
143407
|
}
|
|
143295
143408
|
|
|
143296
143409
|
var text=value.toFixed(column.FloatPrecision);
|
|
@@ -143312,6 +143425,11 @@ function ChartReport()
|
|
|
143312
143425
|
break;
|
|
143313
143426
|
}
|
|
143314
143427
|
}
|
|
143428
|
+
|
|
143429
|
+
if (column.StringFormat && text)
|
|
143430
|
+
{
|
|
143431
|
+
text=column.StringFormat.replace("{0}", text);
|
|
143432
|
+
}
|
|
143315
143433
|
|
|
143316
143434
|
drawInfo.Text=text;
|
|
143317
143435
|
}
|
|
@@ -143336,6 +143454,21 @@ function ChartReport()
|
|
|
143336
143454
|
}
|
|
143337
143455
|
}
|
|
143338
143456
|
|
|
143457
|
+
this.FormatReserveDateTime=function(column, data, drawInfo)
|
|
143458
|
+
{
|
|
143459
|
+
if (column.DefaultText) drawInfo.Text=column.DefaultText;
|
|
143460
|
+
|
|
143461
|
+
var fieldName=MAP_COLUMN_FIELD.get(column.Type);
|
|
143462
|
+
if (!data || !fieldName) return;
|
|
143463
|
+
|
|
143464
|
+
var item=data[fieldName];
|
|
143465
|
+
if (!IFrameSplitOperator.IsObject(item)) return;
|
|
143466
|
+
|
|
143467
|
+
if (item.DateTime) drawInfo.Text=IFrameSplitOperator.FormatDateTimeStringV2(item.DateTime,column.DateTimeFormat);
|
|
143468
|
+
if (item.TextColor) drawInfo.TextColor=item.TextColor;
|
|
143469
|
+
if (item.BGColor) drawInfo.BGColor=item.BGColor;
|
|
143470
|
+
}
|
|
143471
|
+
|
|
143339
143472
|
this.FormatReserveProgressBar=function(column, data, drawInfo)
|
|
143340
143473
|
{
|
|
143341
143474
|
var fieldName=MAP_COLUMN_FIELD.get(column.Type);
|
|
@@ -149193,7 +149326,7 @@ function ScrollBarBGChart()
|
|
|
149193
149326
|
|
|
149194
149327
|
|
|
149195
149328
|
|
|
149196
|
-
var HQCHART_VERSION="1.1.
|
|
149329
|
+
var HQCHART_VERSION="1.1.14807";
|
|
149197
149330
|
|
|
149198
149331
|
function PrintHQChartVersion()
|
|
149199
149332
|
{
|