개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Etc/SignControl.cs | ||
---|---|---|
13 | 13 |
using System.Linq; |
14 | 14 |
using MarkupToPDF.Controls.Common; |
15 | 15 |
using MarkupToPDF.Common; |
16 |
using MarkupToPDF.Serialize.Core; |
|
17 |
using MarkupToPDF.Serialize.S_Control; |
|
16 | 18 |
|
17 | 19 |
//강인구 추가 |
18 | 20 |
namespace MarkupToPDF.Controls.Etc |
... | ... | |
213 | 215 |
} |
214 | 216 |
} |
215 | 217 |
|
216 |
public ControlType ControlType |
|
218 |
override public ControlType ControlType
|
|
217 | 219 |
{ |
218 | 220 |
set |
219 | 221 |
{ |
... | ... | |
289 | 291 |
this.LeftBottomPoint = new Point(this.PointSet[1].X, this.PointSet[1].Y); |
290 | 292 |
this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y); |
291 | 293 |
} |
292 |
public double LineSize |
|
294 |
|
|
295 |
/// <summary> |
|
296 |
/// Serialize this |
|
297 |
/// </summary> |
|
298 |
/// <param name="sUserId"></param> |
|
299 |
/// <returns></returns> |
|
300 |
public override string Serialize() |
|
301 |
{ |
|
302 |
using (S_SignControl STemp = new S_SignControl()) |
|
303 |
{ |
|
304 |
STemp.Angle = this.Angle; |
|
305 |
STemp.EndPoint = this.EndPoint; |
|
306 |
STemp.UserID = this.UserID; |
|
307 |
STemp.LB = this.LeftBottomPoint; |
|
308 |
STemp.Name = this.GetType().Name; |
|
309 |
STemp.PointSet = this.PointSet; |
|
310 |
STemp.StartPoint = this.StartPoint; |
|
311 |
STemp.Opac = this.Opacity; |
|
312 |
STemp.TR = this.TopRightPoint; |
|
313 |
STemp.UserNumber = this.UserNumber == null ? this.UserID: this.UserNumber; |
|
314 |
|
|
315 |
///강인구 추가(2017.11.02) |
|
316 |
///Memo 추가 |
|
317 |
STemp.Memo = this.Memo; |
|
318 |
|
|
319 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
320 |
} |
|
321 |
} |
|
322 |
|
|
323 |
public double LineSize |
|
293 | 324 |
{ |
294 | 325 |
get; |
295 | 326 |
set; |
내보내기 Unified diff