| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Muchinfo.MTPClient.Data.Model.Analysis
- {
- public class SubPriceData
- {
- /// <summary>
- /// 价格
- /// </summary>
- public decimal Price { get; set; }
-
- /// <summary>
- /// 成交量
- /// </summary>
- public long CompleteQte
- {
- get;
- set;
- }
- /// <summary>
- /// 总成交量
- /// </summary>
- public decimal TotalQte
- {
- get;
- set;
- }
- /// <summary>
- /// 柱形图长度
- /// </summary>
- public double Width
- {
- get { return Convert.ToDouble(CompleteQte / 2) < 3 ? 3 : Convert.ToDouble(CompleteQte / 2); }
- }
- /// <summary>
- /// 占比
- /// </summary>
- public string Scale
- {
- get
- {
- if (TotalQte == 0)
- {
- return "0%";
- }
- decimal scale = CompleteQte / TotalQte * 100;
- if (scale < 0)
- {
- scale = 0;
- }
- return scale.ToString("f2") + "%";
- }
- }
- }
- }
|