개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Etc/DateControl.cs | ||
---|---|---|
12 | 12 |
using System.Collections.Generic; |
13 | 13 |
using MarkupToPDF.Controls.Common; |
14 | 14 |
using MarkupToPDF.Common; |
15 |
using MarkupToPDF.Serialize.Core; |
|
16 |
using MarkupToPDF.Serialize.S_Control; |
|
15 | 17 |
|
16 | 18 |
namespace MarkupToPDF.Controls.Etc |
17 | 19 |
{ |
... | ... | |
212 | 214 |
} |
213 | 215 |
} |
214 | 216 |
|
215 |
public ControlType ControlType |
|
217 |
override public ControlType ControlType
|
|
216 | 218 |
{ |
217 | 219 |
set |
218 | 220 |
{ |
... | ... | |
453 | 455 |
this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y); |
454 | 456 |
this.SetDate(); |
455 | 457 |
} |
458 |
|
|
459 |
/// <summary> |
|
460 |
/// Serialize this |
|
461 |
/// </summary> |
|
462 |
/// <param name="sUserId"></param> |
|
463 |
/// <returns></returns> |
|
464 |
public override string Serialize() |
|
465 |
{ |
|
466 |
using (S_DateControl STemp = new S_DateControl()) |
|
467 |
{ |
|
468 |
STemp.Angle = this.Angle; |
|
469 |
STemp.EndPoint = this.EndPoint; |
|
470 |
STemp.UserID = this.UserID; |
|
471 |
STemp.LB = this.LeftBottomPoint; |
|
472 |
STemp.Name = this.GetType().Name; |
|
473 |
STemp.PointSet = this.PointSet; |
|
474 |
STemp.StartPoint = this.StartPoint; |
|
475 |
STemp.Opac = this.Opacity; |
|
476 |
STemp.TR = this.TopRightPoint; |
|
477 |
STemp.TransformPoint = "0|0"; |
|
478 |
STemp.FontColor = this.FontColor.Color.ToString(); |
|
479 |
//STemp.FontColor = "#FFFFFF00"; |
|
480 |
STemp.SizeSet = String.Format("{0}", this.LineSize); |
|
481 |
STemp.Text = this.Text; |
|
482 |
///강인구 추가(2017.11.02) |
|
483 |
///Memo 추가 |
|
484 |
STemp.Memo = this.Memo; |
|
485 |
|
|
486 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
487 |
} |
|
488 |
} |
|
456 | 489 |
} |
457 | 490 |
} |
내보내기 Unified diff