프로젝트

일반

사용자정보

개정판 684ef11c

ID684ef11c766d313d568ea0db90bdb1b2ce708613
상위 a74e3cbc
하위 022d64c4

이지연이(가) 5년 이상 전에 추가함

issue #719 AutoCAD 저장 작업 중

Change-Id: I46dfcaa8fb3b15907afe75a1e17ae643bef64f3f

차이점 보기:

MarkupToPDF/Controls/Parsing/MarkupCopy.cs
22 22
using System.Text;
23 23
using MarkupToPDF.Controls.Common;
24 24
using MarkupToPDF.Common;
25
using MarkupToPDF.Controls.Cad;
25 26

  
26 27
namespace MarkupToPDF.Controls.Parsing
27 28
{
......
1224 1225
                    break;
1225 1226
                #endregion
1226 1227
                #endregion
1228
                #region Cad
1229
                case "InsideWhiteControl":
1230
                    using (S_InsideWhiteControl STemp = new S_InsideWhiteControl())
1231
                    {
1232
                        var instance = Control as InsideWhiteControl;
1233
                        STemp.TransformPoint = "0|0";
1234
                        STemp.SizeSet = String.Format("{0}", instance.LineSize);
1235
                        STemp.PaintState = instance.Paint;
1236
                        STemp.PointSet = instance.PointSet;
1237
                        //STemp.StrokeColor = "#FF00FF00";
1238
                        STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1239
                        if (instance.FillColor != null)
1240
                        {
1241
                            STemp.FillColor = instance.FillColor.Color.ToString();
1242
                        }
1243
                        STemp.StartPoint = instance.StartPoint;
1244
                        STemp.UserID = UserId;
1245
                        STemp.EndPoint = instance.EndPoint;
1246
                        STemp.LB = instance.LeftBottomPoint;
1247
                        STemp.TR = instance.TopRightPoint;
1248
                        STemp.DashSize = instance.DashSize;
1249
                        STemp.Opac = instance.Opacity;
1250
                        STemp.Name = instance.GetType().Name.ToString();
1251
                        STemp.Memo = instance.Memo;
1252
                        Data.DATA_TYPE = (int)(instance.ControlType);
1253
                        Data.ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1254
                    };
1255
                    break;
1256
                case "OverlapWhiteControl":
1257
                    using (S_OverlapWhiteControl STemp = new S_OverlapWhiteControl())
1258
                    {
1259
                        var instance = Control as OverlapWhiteControl;
1260
                        STemp.TransformPoint = "0|0";
1261
                        STemp.SizeSet = String.Format("{0}", instance.LineSize);
1262
                        STemp.PaintState = instance.Paint;
1263
                        STemp.PointSet = instance.PointSet;
1264
                        //STemp.StrokeColor = "#FF00FF00";
1265
                        STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1266
                        if (instance.FillColor != null)
1267
                        {
1268
                            STemp.FillColor = instance.FillColor.Color.ToString();
1269
                        }
1270
                        STemp.StartPoint = instance.StartPoint;
1271
                        STemp.UserID = UserId;
1272
                        STemp.EndPoint = instance.EndPoint;
1273
                        STemp.LB = instance.LeftBottomPoint;
1274
                        STemp.TR = instance.TopRightPoint;
1275
                        STemp.DashSize = instance.DashSize;
1276
                        STemp.Opac = instance.Opacity;
1277
                        STemp.Name = instance.GetType().Name.ToString();
1278
                        STemp.Memo = instance.Memo;
1279
                        Data.DATA_TYPE = (int)(instance.ControlType);
1280
                        Data.ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1281
                    };
1282
                    break;
1283
                case "ClipWhiteControl":
1284
                    using (S_ClipWhiteControl STemp = new S_ClipWhiteControl())
1285
                    {
1286
                        var instance = Control as ClipWhiteControl;
1287
                        STemp.TransformPoint = "0|0";
1288
                        STemp.SizeSet = String.Format("{0}", instance.LineSize);
1289
                        STemp.PaintState = instance.Paint;
1290
                        STemp.PointSet = instance.PointSet;
1291
                        //STemp.StrokeColor = "#FF00FF00";
1292
                        STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1293
                        if (instance.FillColor != null)
1294
                        {
1295
                            STemp.FillColor = instance.FillColor.Color.ToString();
1296
                        }
1297
                        STemp.StartPoint = instance.StartPoint;
1298
                        STemp.UserID = UserId;
1299
                        STemp.EndPoint = instance.EndPoint;
1300
                        STemp.LB = instance.LeftBottomPoint;
1301
                        STemp.TR = instance.TopRightPoint;
1302
                        STemp.DashSize = instance.DashSize;
1303
                        STemp.Opac = instance.Opacity;
1304
                        STemp.Name = instance.GetType().Name.ToString();
1305
                        STemp.Memo = instance.Memo;
1306
                        Data.DATA_TYPE = (int)(instance.ControlType);
1307
                        Data.ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1308
                    };
1309
                    break;
1310
                case "CoordinateControl":
1311
                    using (S_CoordinateControl STemp = new S_CoordinateControl())
1312
                    {
1313
                        var instance = Control as CoordinateControl;
1314
                        STemp.TransformPoint = "0|0";
1315
                        STemp.SizeSet = String.Format("{0}", instance.LineSize);
1316
                        STemp.PaintState = instance.Paint;
1317
                        STemp.PointSet = instance.PointSet;
1318
                        //STemp.StrokeColor = "#FF00FF00";
1319
                        STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1320
                        if (instance.FillColor != null)
1321
                        {
1322
                            STemp.FillColor = instance.FillColor.Color.ToString();
1323
                        }
1324
                        STemp.StartPoint = instance.StartPoint;
1325
                        STemp.UserID = UserId;
1326
                        STemp.EndPoint = instance.EndPoint;
1327
                        STemp.LB = instance.LeftBottomPoint;
1328
                        STemp.TR = instance.TopRightPoint;
1329
                        STemp.DashSize = instance.DashSize;
1330
                        STemp.Opac = instance.Opacity;
1331
                        STemp.Name = instance.GetType().Name.ToString();
1332
                        STemp.Memo = instance.Memo;
1333

  
1334
                        Data.DATA_TYPE = (int)(instance.ControlType);
1335
                        Data.ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1336
                    };
1337
                    break;
1338
                #endregion
1227 1339
                default:
1228 1340
                    break;
1229 1341
            }
......
1798 1910
                        break;
1799 1911
                    #endregion
1800 1912
                    #endregion
1913

  
1914
                    #region Cad
1915
                    case "InsideWhiteControl":
1916
                        using (S_InsideWhiteControl STemp = new S_InsideWhiteControl())
1917
                        {
1918
                            var instance = item as InsideWhiteControl;
1919
                            STemp.TransformPoint = "0|0";
1920
                            STemp.SizeSet = String.Format("{0}", instance.LineSize);
1921
                            STemp.PaintState = instance.Paint;
1922
                            STemp.PointSet = instance.PointSet;
1923
                            //STemp.StrokeColor = "#FF00FF00";
1924
                            STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1925
                            if (instance.FillColor != null)
1926
                            {
1927
                                STemp.FillColor = instance.FillColor.Color.ToString();
1928
                            }
1929
                            STemp.StartPoint = instance.StartPoint;
1930
                            STemp.UserID = UserId;
1931
                            STemp.Angle = instance.Angle;
1932
                            STemp.EndPoint = instance.EndPoint;
1933
                            STemp.LB = instance.LeftBottomPoint;
1934
                            STemp.TR = instance.TopRightPoint;
1935
                            STemp.DashSize = instance.DashSize;
1936
                            STemp.Opac = instance.Opacity;
1937
                            STemp.Name = instance.GetType().Name.ToString();
1938
                            ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1939
                        };
1940
                        break;
1941
                    case "OverlapWhiteControl":
1942
                        using (S_OverlapWhiteControl STemp = new S_OverlapWhiteControl())
1943
                        {
1944
                            var instance = item as OverlapWhiteControl;
1945
                            STemp.TransformPoint = "0|0";
1946
                            STemp.SizeSet = String.Format("{0}", instance.LineSize);
1947
                            STemp.PaintState = instance.Paint;
1948
                            STemp.PointSet = instance.PointSet;
1949
                            //STemp.StrokeColor = "#FF00FF00";
1950
                            STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1951
                            if (instance.FillColor != null)
1952
                            {
1953
                                STemp.FillColor = instance.FillColor.Color.ToString();
1954
                            }
1955
                            STemp.StartPoint = instance.StartPoint;
1956
                            STemp.UserID = UserId;
1957
                            STemp.Angle = instance.Angle;
1958
                            STemp.EndPoint = instance.EndPoint;
1959
                            STemp.LB = instance.LeftBottomPoint;
1960
                            STemp.TR = instance.TopRightPoint;
1961
                            STemp.DashSize = instance.DashSize;
1962
                            STemp.Opac = instance.Opacity;
1963
                            STemp.Name = instance.GetType().Name.ToString();
1964
                            ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1965
                        };
1966
                        break;
1967
                    case "ClipWhiteControl":
1968
                        using (S_ClipWhiteControl STemp = new S_ClipWhiteControl())
1969
                        {
1970
                            var instance = item as ClipWhiteControl;
1971
                            STemp.TransformPoint = "0|0";
1972
                            STemp.SizeSet = String.Format("{0}", instance.LineSize);
1973
                            STemp.PaintState = instance.Paint;
1974
                            STemp.PointSet = instance.PointSet;
1975
                            //STemp.StrokeColor = "#FF00FF00";
1976
                            STemp.StrokeColor = instance.StrokeColor.Color.ToString();
1977
                            if (instance.FillColor != null)
1978
                            {
1979
                                STemp.FillColor = instance.FillColor.Color.ToString();
1980
                            }
1981
                            STemp.StartPoint = instance.StartPoint;
1982
                            STemp.UserID = UserId;
1983
                            STemp.Angle = instance.Angle;
1984
                            STemp.EndPoint = instance.EndPoint;
1985
                            STemp.LB = instance.LeftBottomPoint;
1986
                            STemp.TR = instance.TopRightPoint;
1987
                            STemp.DashSize = instance.DashSize;
1988
                            STemp.Opac = instance.Opacity;
1989
                            STemp.Name = instance.GetType().Name.ToString();
1990
                            ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
1991
                        };
1992
                        break;
1993
                    case "CoordinateControl":
1994
                        using (S_CoordinateControl STemp = new S_CoordinateControl())
1995
                        {
1996
                            var instance = item as CoordinateControl;
1997
                            STemp.TransformPoint = "0|0";
1998
                            STemp.SizeSet = String.Format("{0}", instance.LineSize);
1999
                            STemp.PaintState = instance.Paint;
2000
                            STemp.PointSet = instance.PointSet;
2001
                            //STemp.StrokeColor = "#FF00FF00";
2002
                            STemp.StrokeColor = instance.StrokeColor.Color.ToString();
2003
                            if (instance.FillColor != null)
2004
                            {
2005
                                STemp.FillColor = instance.FillColor.Color.ToString();
2006
                            }
2007
                            STemp.StartPoint = instance.StartPoint;
2008
                            STemp.UserID = UserId;
2009
                            STemp.Angle = instance.Angle;
2010
                            STemp.EndPoint = instance.EndPoint;
2011
                            STemp.LB = instance.LeftBottomPoint;
2012
                            STemp.TR = instance.TopRightPoint;
2013
                            STemp.DashSize = instance.DashSize;
2014
                            STemp.Opac = instance.Opacity;
2015
                            STemp.Name = instance.GetType().Name.ToString();
2016
                            ConvertData += "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
2017
                        };
2018
                        break;
2019
                    #endregion
1801 2020
                    default:
1802 2021
                        break;
1803 2022
                }

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)