|
@@ -51,7 +51,6 @@ namespace HOZProject
|
|
|
set
|
|
|
{
|
|
|
titleFont = value;
|
|
|
- ReloadItems();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -71,7 +70,6 @@ namespace HOZProject
|
|
|
set
|
|
|
{
|
|
|
titleForcolor = value;
|
|
|
- ReloadItems();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -91,7 +89,6 @@ namespace HOZProject
|
|
|
set
|
|
|
{
|
|
|
detailsFont = value;
|
|
|
- ReloadItems();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -111,7 +108,6 @@ namespace HOZProject
|
|
|
set
|
|
|
{
|
|
|
detailsForcolor = value;
|
|
|
- ReloadItems();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -131,13 +127,12 @@ namespace HOZProject
|
|
|
set
|
|
|
{
|
|
|
items = value;
|
|
|
- ReloadItems();
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// Initializes a new instance of the <see cref="UCTimeLine"/> class.
|
|
|
/// </summary>
|
|
|
- public UCTimeLine(TimeLineItem[] tlItem)
|
|
|
+ public UCTimeLine(TimeLineItem[] tlItem,int measureType)
|
|
|
{
|
|
|
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
|
|
this.SetStyle(ControlStyles.DoubleBuffer, true);
|
|
@@ -147,22 +142,15 @@ namespace HOZProject
|
|
|
this.SetStyle(ControlStyles.UserPaint, true);
|
|
|
InitializeComponent();
|
|
|
items = tlItem;
|
|
|
- //for (int i = 0; i < 4; i++)
|
|
|
- //{
|
|
|
- // items[i] = new TimeLineItem()
|
|
|
- // {
|
|
|
- // Title = DateTime.Now.AddMonths(-1 * (3 - i)).ToString("yyyy年MM月"),
|
|
|
- // Details = DateTime.Now.AddMonths(-1 * (3 - i)).ToString("yyyy年MM月")
|
|
|
- // };
|
|
|
- //}
|
|
|
- ReloadItems();
|
|
|
+ //加载节点信息
|
|
|
+ ReloadItems(measureType);
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// Reloads the items.
|
|
|
/// </summary>
|
|
|
- public void ReloadItems()
|
|
|
+ public void ReloadItems(int measureType)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
@@ -172,6 +160,24 @@ namespace HOZProject
|
|
|
{
|
|
|
foreach (var item in items)
|
|
|
{
|
|
|
+ switch (measureType)
|
|
|
+ {
|
|
|
+ case (int)MeasureMsgManage.measureType.Photo:
|
|
|
+ if (item.Type.ToUpper() == "PT" || item.Type.ToLower() == "FIB")
|
|
|
+ {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case (int)MeasureMsgManage.measureType.Cut:
|
|
|
+ if (item.Type == "PT")
|
|
|
+ {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case (int)MeasureMsgManage.measureType.PT:
|
|
|
+
|
|
|
+ break;
|
|
|
+ }
|
|
|
FlowLayoutPanel panelTitle = new FlowLayoutPanel();
|
|
|
panelTitle.Dock = DockStyle.Top;
|
|
|
panelTitle.AutoScroll = false;
|
|
@@ -305,5 +311,10 @@ namespace HOZProject
|
|
|
/// </summary>
|
|
|
/// <value>The IsData.</value>
|
|
|
public bool IsData { get; set; }
|
|
|
+ /// <summary>
|
|
|
+ /// Gets or sets the Type.
|
|
|
+ /// </summary>
|
|
|
+ /// <value>The Type.</value>
|
|
|
+ public string Type { get; set; }
|
|
|
}
|
|
|
}
|