개정판 b2d0f316
Feature: 선택한 객체를 앞으로(+)/뒤로(-) 보내기 기능 추가
Change-Id: I9130a93cfdb2d079f28258f3d669a6f532695f89
MarkupToPDF/Controls/Polygon/PolygonControl.cs | ||
---|---|---|
51 | 51 |
this.UserID = item.UserID; |
52 | 52 |
this.Paint = item.Paint; |
53 | 53 |
this.Memo = item.Memo; |
54 |
this.ZIndex = item.ZIndex; |
|
54 | 55 |
} |
55 | 56 |
} |
56 | 57 |
|
... | ... | |
635 | 636 |
/// <returns></returns> |
636 | 637 |
public override string Serialize() |
637 | 638 |
{ |
638 |
using (S_PolyControl STemp = new S_PolyControl())
|
|
639 |
{ |
|
640 |
STemp.TransformPoint = "0|0";
|
|
641 |
STemp.SizeSet = String.Format("{0}", this.LineSize);
|
|
642 |
STemp.StrokeColor = this.StrokeColor.Color.ToString();
|
|
643 |
//STemp.StrokeColor = "#FF000FFF";
|
|
644 |
STemp.Name = this.GetType().Name.ToString();
|
|
645 |
//STemp.Toler = this.Toler;
|
|
646 |
STemp.PaintState = this.Paint;
|
|
647 |
STemp.Opac = this.Opacity;
|
|
648 |
STemp.UserID = this.UserID;
|
|
649 |
STemp.PaintState = this.Paint;
|
|
639 |
using (S_PolyControl ctrl = new S_PolyControl())
|
|
640 |
{ |
|
641 |
ctrl.TransformPoint = "0|0";
|
|
642 |
ctrl.SizeSet = String.Format("{0}", this.LineSize);
|
|
643 |
ctrl.StrokeColor = this.StrokeColor.Color.ToString();
|
|
644 |
//ctrl.StrokeColor = "#FF000FFF";
|
|
645 |
ctrl.Name = this.GetType().Name.ToString();
|
|
646 |
//ctrl.Toler = this.Toler;
|
|
647 |
ctrl.PaintState = this.Paint;
|
|
648 |
ctrl.Opac = this.Opacity;
|
|
649 |
ctrl.UserID = this.UserID;
|
|
650 |
ctrl.PaintState = this.Paint;
|
|
650 | 651 |
//강인구 추가(Chain인지 Polygon인지 구분) |
651 |
STemp.Type = this.ControlType;
|
|
652 |
//STemp.IsTrans = this.isTransOn;
|
|
653 |
//STemp.IsChain = this.isChain;
|
|
654 |
STemp.PointSet = new List<Point>();
|
|
655 |
STemp.DashSize = this.DashSize;
|
|
656 |
STemp.StartPoint = this.StartPoint;
|
|
657 |
STemp.EndPoint = this.EndPoint;
|
|
658 |
STemp.IsCompleted = this.IsCompleted;
|
|
652 |
ctrl.Type = this.ControlType;
|
|
653 |
//ctrl.IsTrans = this.isTransOn;
|
|
654 |
//ctrl.IsChain = this.isChain;
|
|
655 |
ctrl.PointSet = new List<Point>();
|
|
656 |
ctrl.DashSize = this.DashSize;
|
|
657 |
ctrl.StartPoint = this.StartPoint;
|
|
658 |
ctrl.EndPoint = this.EndPoint;
|
|
659 |
ctrl.IsCompleted = this.IsCompleted;
|
|
659 | 660 |
foreach (var point in this.PointSet) |
660 | 661 |
{ |
661 |
STemp.PointSet.Add(point);
|
|
662 |
ctrl.PointSet.Add(point);
|
|
662 | 663 |
} |
663 | 664 |
///강인구 추가(2017.11.02) |
664 | 665 |
///Memo 추가 |
665 |
STemp.Memo = this.Memo;
|
|
666 |
ctrl.Memo = this.Memo;
|
|
666 | 667 |
|
667 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
668 |
ctrl.ZIndex = this.ZIndex; |
|
669 |
|
|
670 |
return "|DZ|" + JsonSerializerHelper.CompressString((ctrl.JsonSerialize())); |
|
668 | 671 |
} |
669 | 672 |
} |
670 | 673 |
|
... | ... | |
694 | 697 |
PointSet = s.PointSet, |
695 | 698 |
UserID = s.UserID, |
696 | 699 |
Paint = s.PaintState, |
697 |
Memo = s.Memo |
|
700 |
Memo = s.Memo, |
|
701 |
ZIndex = s.ZIndex |
|
698 | 702 |
}; |
699 | 703 |
} |
700 | 704 |
} |
내보내기 Unified diff