개정판 24678e06
issue #000: Add Commons.cs file
Change-Id: I14ae2a26673890b4be08a1c989faf570629ad3d1
KCOM/Common/Commons.cs | ||
---|---|---|
1 |
using KCOM.Common; |
|
2 |
using KCOM.Controls; |
|
3 |
using KCOM.Views; |
|
4 |
using MarkupToPDF.Common; |
|
5 |
using MarkupToPDF.Controls.Parsing; |
|
6 |
using Newtonsoft.Json; |
|
7 |
using Newtonsoft.Json.Converters; |
|
8 |
using Newtonsoft.Json.Linq; |
|
9 |
using Newtonsoft.Json.Serialization; |
|
10 |
using System; |
|
11 |
using System.Collections; |
|
12 |
using System.Collections.Generic; |
|
13 |
using System.ComponentModel; |
|
14 |
using System.Data; |
|
15 |
using System.IO; |
|
16 |
using System.Linq; |
|
17 |
using System.Reflection; |
|
18 |
using System.Runtime.Serialization.Formatters; |
|
19 |
using System.Runtime.Serialization.Formatters.Binary; |
|
20 |
using System.Runtime.Serialization.Json; |
|
21 |
using System.Text; |
|
22 |
using System.Windows; |
|
23 |
using System.Windows.Media; |
|
24 |
using System.Xml; |
|
25 |
using System.Xml.Serialization; |
|
26 |
|
|
27 |
namespace KCOM.Common |
|
28 |
{ |
|
29 |
public class Commons |
|
30 |
{ |
|
31 |
//GUID생성(최민수 사원 수정) //조장원 대리 다시 변경 |
|
32 |
public static string shortGuid() |
|
33 |
{ |
|
34 |
byte[] bytes = new byte[16]; |
|
35 |
using (var provider = System.Security.Cryptography.RandomNumberGenerator.Create()) |
|
36 |
{ |
|
37 |
provider.GetBytes(bytes); |
|
38 |
} |
|
39 |
|
|
40 |
var guid = new Guid(bytes); |
|
41 |
|
|
42 |
return Convert.ToBase64String(guid.ToByteArray()) |
|
43 |
.Substring(0, 10) |
|
44 |
.Replace("/", "") |
|
45 |
.Replace("+", "") + DateTime.UtcNow.Ticks.ToString("x"); |
|
46 |
} |
|
47 |
|
|
48 |
//조장원 네자리 |
|
49 |
public static string shortCommentKey() |
|
50 |
{ |
|
51 |
byte[] bytes = new byte[3]; |
|
52 |
using (var provider = System.Security.Cryptography.RandomNumberGenerator.Create()) |
|
53 |
{ |
|
54 |
provider.GetBytes(bytes); |
|
55 |
} |
|
56 |
|
|
57 |
return Convert.ToBase64String(bytes); |
|
58 |
} |
|
59 |
|
|
60 |
//강인구 추가 |
|
61 |
public static string shortFileKey() |
|
62 |
{ |
|
63 |
//byte[] bytes = new byte[3]; |
|
64 |
//using (var provider = System.IO.Path.GetRandomFileName()) |
|
65 |
//{ |
|
66 |
// provider.GetBytes(bytes); |
|
67 |
//} |
|
68 |
|
|
69 |
return System.IO.Path.GetRandomFileName(); |
|
70 |
} |
|
71 |
} |
|
72 |
} |
KCOM/Controls/CheckList.xaml.cs | ||
---|---|---|
679 | 679 |
{ |
680 | 680 |
Application.Current.MainWindow.Focus(); |
681 | 681 |
|
682 |
Common.ViewerDataModel.Instance.CheckList_ID = KCOM.Events.SaveCommand.shortGuid();
|
|
682 |
Common.ViewerDataModel.Instance.CheckList_ID = Commons.shortGuid();
|
|
683 | 683 |
Common.ViewerDataModel.Instance.Capture_Opacity = 0.5; |
684 | 684 |
(Application.Current.MainWindow as MainWindow).dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Capture; |
685 | 685 |
} |
... | ... | |
781 | 781 |
{ |
782 | 782 |
Check_History = new CHECK_LIST_HISTORY() |
783 | 783 |
{ |
784 |
ID = Events.SaveCommand.shortGuid(),
|
|
784 |
ID = Commons.shortGuid(),
|
|
785 | 785 |
CHECKLIST_ID = Check_ID, |
786 | 786 |
REVISION = ViewerDataModel.Instance.SystemMain.dzMainMenu.CurrentDoc.Revision, |
787 | 787 |
STATUS = state, |
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
269 | 269 |
byte[] Img_byte = fs.ToArray(); |
270 | 270 |
|
271 | 271 |
kr.co.devdoftech.cloud.FileUpload fileUploader = new kr.co.devdoftech.cloud.FileUpload(); |
272 |
filename = fileUploader.Run(App.ViewInfo.ProjectNO, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocItem.DOCUMENT_NO, App.ViewInfo.UserID, SaveCommand.shortGuid() + ".png", Img_byte);
|
|
272 |
filename = fileUploader.Run(App.ViewInfo.ProjectNO, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocItem.DOCUMENT_NO, App.ViewInfo.UserID, Commons.shortGuid() + ".png", Img_byte);
|
|
273 | 273 |
Check_Uri.UriCheck(filename); |
274 | 274 |
if (RadTab.SelectedIndex == 0) |
275 | 275 |
{ |
... | ... | |
297 | 297 |
{ |
298 | 298 |
SYMBOL_PRIVATE symbol_private = new SYMBOL_PRIVATE |
299 | 299 |
{ |
300 |
ID = Events.SaveCommand.shortGuid(),
|
|
300 |
ID = Commons.shortGuid(),
|
|
301 | 301 |
MEMBER_USER_ID = App.ViewInfo.UserID, |
302 | 302 |
NAME = Name, |
303 | 303 |
IMAGE_URL = Url, |
... | ... | |
320 | 320 |
{ |
321 | 321 |
SYMBOL_PUBLIC symbol_public = new SYMBOL_PUBLIC |
322 | 322 |
{ |
323 |
ID = Events.SaveCommand.shortGuid(),
|
|
323 |
ID = Commons.shortGuid(),
|
|
324 | 324 |
DEPARTMENT = Department, |
325 | 325 |
NAME = Name, |
326 | 326 |
IMAGE_URL = Url, |
... | ... | |
442 | 442 |
if (parse != "") |
443 | 443 |
{ |
444 | 444 |
System.Windows.Controls.Control item = MarkupParser.ParseEx(App.ViewInfo.ProjectNO, parse, ViewerDataModel.Instance.MarkupControls_USER, string.Empty, string.Empty); |
445 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Events.SaveCommand.shortGuid();
|
|
445 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
|
|
446 | 446 |
(item as MarkupToPDF.Common.CommentUserInfo).SymbolID = id; |
447 | 447 |
(item as MarkupToPDF.Common.CommentUserInfo).GroupID = group_id; |
448 | 448 |
ViewerDataModel.Instance.MarkupControls.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
... | ... | |
557 | 557 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
558 | 558 |
|
559 | 559 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
560 |
currentControl.CommentID = Events.SaveCommand.shortGuid();
|
|
560 |
currentControl.CommentID = Commons.shortGuid();
|
|
561 | 561 |
currentControl.SymbolID = id; |
562 | 562 |
currentControl.GroupID = group_id; |
563 | 563 |
currentControl.ApplyTemplate(); |
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
29 | 29 |
|
30 | 30 |
MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn markupReturn = new MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn(); |
31 | 31 |
|
32 |
private List<CommentUserInfo> SelectedItems
|
|
32 |
public List<CommentUserInfo> SelectedItems
|
|
33 | 33 |
{ |
34 | 34 |
get |
35 | 35 |
{ |
... | ... | |
302 | 302 |
data2 = parse.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries); |
303 | 303 |
|
304 | 304 |
System.Windows.Controls.Control item = MarkupParser.ParseEx(App.ViewInfo.ProjectNO, data2[0], ViewerDataModel.Instance.MarkupControls_USER, string.Empty, string.Empty); |
305 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Events.SaveCommand.shortGuid();
|
|
305 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
|
|
306 | 306 |
if(data2.Length >= 2) |
307 | 307 |
{ |
308 | 308 |
(item as MarkupToPDF.Common.CommentUserInfo).SymbolID = data2[1]; |
... | ... | |
357 | 357 |
|
358 | 358 |
string temppath = System.IO.Path.GetTempPath(); |
359 | 359 |
//string filename = KCOM.Events.Save.shortCommentKey(); |
360 |
string filename = KCOM.Events.SaveCommand.shortFileKey();
|
|
360 |
string filename = Commons.shortFileKey();
|
|
361 | 361 |
|
362 | 362 |
System.Drawing.Image clipboardImage = System.Windows.Forms.Clipboard.GetImage(); |
363 | 363 |
clipboardImage.Save(temppath + "\\" + filename); |
... | ... | |
442 | 442 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
443 | 443 |
|
444 | 444 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
445 |
currentControl.CommentID = Events.SaveCommand.shortGuid();
|
|
445 |
currentControl.CommentID = Commons.shortGuid();
|
|
446 | 446 |
|
447 | 447 |
currentControl.ApplyTemplate(); |
448 | 448 |
currentControl.SetImage(); |
... | ... | |
484 | 484 |
// if (parse != "") |
485 | 485 |
// { |
486 | 486 |
// System.Windows.Controls.Control item = layer.markupParse_Paste(parse, ViewerDataModel.Instance.MarkupControls_USER); |
487 |
// (item as MarkupToPDF.Common.CommentUserInfo).CommentID = Events.SaveCommand.shortGuid();
|
|
487 |
// (item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
|
|
488 | 488 |
|
489 | 489 |
// ViewerDataModel.Instance.MarkupControls.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
490 | 490 |
// ViewerDataModel.Instance.MarkupControls_USER.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
2150 | 2150 |
#endregion |
2151 | 2151 |
#region Delete |
2152 | 2152 |
case "Delete": |
2153 |
Delete_Start(); |
|
2153 |
DeleteCommand.Instance.Execute(this.ParentOfType<MainWindow>().SelectedItems); |
|
2154 |
this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Clear(); |
|
2155 |
|
|
2154 | 2156 |
instanceToggle.IsChecked = false; |
2155 | 2157 |
ViewerDataModel.Instance.SelectedControl = ""; |
2156 | 2158 |
ViewerDataModel.Instance.ControlTag = null; |
... | ... | |
2785 | 2787 |
if (parse != "") |
2786 | 2788 |
{ |
2787 | 2789 |
System.Windows.Controls.Control item = MarkupParser.ParseEx(App.ViewInfo.ProjectNO, parse, ViewerDataModel.Instance.MarkupControls_USER, string.Empty, string.Empty); |
2788 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Events.SaveCommand.shortGuid();
|
|
2790 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
|
|
2789 | 2791 |
|
2790 | 2792 |
ViewerDataModel.Instance.MarkupControls.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
2791 | 2793 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
... | ... | |
2847 | 2849 |
|
2848 | 2850 |
string temppath = System.IO.Path.GetTempPath(); |
2849 | 2851 |
//string filename = KCOM.Events.Save.shortCommentKey(); |
2850 |
string filename = KCOM.Events.SaveCommand.shortFileKey();
|
|
2852 |
string filename = Commons.shortFileKey();
|
|
2851 | 2853 |
|
2852 | 2854 |
System.Drawing.Image clipboardImage = System.Windows.Forms.Clipboard.GetImage(); |
2853 | 2855 |
clipboardImage.Save(temppath + "\\" + filename); |
... | ... | |
2931 | 2933 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
2932 | 2934 |
|
2933 | 2935 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
2934 |
currentControl.CommentID = Events.SaveCommand.shortGuid();
|
|
2936 |
currentControl.CommentID = Commons.shortGuid();
|
|
2935 | 2937 |
|
2936 | 2938 |
currentControl.ApplyTemplate(); |
2937 | 2939 |
currentControl.SetImage(); |
... | ... | |
2950 | 2952 |
} |
2951 | 2953 |
} |
2952 | 2954 |
} |
2953 |
|
|
2954 |
public void Delete_Start() |
|
2955 |
{ |
|
2956 |
if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0) |
|
2957 |
{ |
|
2958 |
Multi_Undo_data multi_Undo_Data = new Multi_Undo_data(); |
|
2959 |
|
|
2960 |
UndoData = new Undo_data() |
|
2961 |
{ |
|
2962 |
IsUndo = false, |
|
2963 |
Event = Event_Type.Delete, |
|
2964 |
EventTime = DateTime.Now, |
|
2965 |
Markup_List = new List<Multi_Undo_data>() |
|
2966 |
}; |
|
2967 |
|
|
2968 |
foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children) |
|
2969 |
{ |
|
2970 |
if (item.GetType().Name == "AdornerFinal") |
|
2971 |
{ |
|
2972 |
(item as Controls.AdornerFinal).unRegister(); |
|
2973 |
|
|
2974 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>()) |
|
2975 |
{ |
|
2976 |
//if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
|
2977 |
if (!ViewerDataModel.Instance.MarkupControls_USER.Contains(InnerItem.DrawingData)) |
|
2978 |
{ |
|
2979 |
|
|
2980 |
multi_Undo_Data.Markup = InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo; |
|
2981 |
UndoData.Markup_List.Add(multi_Undo_Data); |
|
2982 |
multi_Undo_Data = new Multi_Undo_data(); |
|
2983 |
|
|
2984 |
ViewerDataModel.Instance.MarkupControls.Remove(InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo); |
|
2985 |
|
|
2986 |
var Item_ = ViewerDataModel.Instance.MarkupList_USER.Where(d => d.ID == (InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID).FirstOrDefault(); |
|
2987 |
|
|
2988 |
ViewerDataModel.Instance.MarkupList_USER.Remove(Item_); |
|
2989 |
|
|
2990 |
//임시파일에서도 삭제한다. |
|
2991 |
TempFile.DelTemp((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID, this.ParentOfType<MainWindow>().dzMainMenu.pageNavigator.CurrentPage.PageNumber.ToString()); |
|
2992 |
|
|
2993 |
} |
|
2994 |
} |
|
2995 |
} |
|
2996 |
|
|
2997 |
ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i => |
|
2998 |
{ |
|
2999 |
ViewerDataModel.Instance.UndoDataList.Remove(i); |
|
3000 |
}); |
|
3001 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
3002 |
} |
|
3003 |
} |
|
3004 |
this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Clear(); |
|
3005 |
} |
|
3006 |
|
|
3007 | 2955 |
} |
3008 | 2956 |
} |
KCOM/Events/SaveCommand.cs | ||
---|---|---|
61 | 61 |
} |
62 | 62 |
#endregion |
63 | 63 |
|
64 |
//GUID생성(최민수 사원 수정) //조장원 대리 다시 변경 |
|
65 |
public static string shortGuid() |
|
66 |
{ |
|
67 |
byte[] bytes = new byte[16]; |
|
68 |
using (var provider = System.Security.Cryptography.RandomNumberGenerator.Create()) |
|
69 |
{ |
|
70 |
provider.GetBytes(bytes); |
|
71 |
} |
|
72 |
|
|
73 |
var guid = new Guid(bytes); |
|
74 |
|
|
75 |
return Convert.ToBase64String(guid.ToByteArray()) |
|
76 |
.Substring(0, 10) |
|
77 |
.Replace("/", "") |
|
78 |
.Replace("+", "") + DateTime.UtcNow.Ticks.ToString("x"); |
|
79 |
} |
|
80 |
|
|
81 |
//조장원 네자리 |
|
82 |
public static string shortCommentKey() |
|
83 |
{ |
|
84 |
byte[] bytes = new byte[3]; |
|
85 |
using (var provider = System.Security.Cryptography.RandomNumberGenerator.Create()) |
|
86 |
{ |
|
87 |
provider.GetBytes(bytes); |
|
88 |
} |
|
89 |
|
|
90 |
return Convert.ToBase64String(bytes); |
|
91 |
} |
|
92 |
|
|
93 |
//강인구 추가 |
|
94 |
public static string shortFileKey() |
|
95 |
{ |
|
96 |
//byte[] bytes = new byte[3]; |
|
97 |
//using (var provider = System.IO.Path.GetRandomFileName()) |
|
98 |
//{ |
|
99 |
// provider.GetBytes(bytes); |
|
100 |
//} |
|
101 |
|
|
102 |
return System.IO.Path.GetRandomFileName(); |
|
103 |
} |
|
104 |
|
|
105 | 64 |
public void MarkupConsolidate() |
106 | 65 |
{ |
107 | 66 |
|
... | ... | |
141 | 100 |
{ |
142 | 101 |
SYMBOL_PRIVATE symbol_private = new SYMBOL_PRIVATE |
143 | 102 |
{ |
144 |
ID = shortGuid(), |
|
103 |
ID = Commons.shortGuid(),
|
|
145 | 104 |
MEMBER_USER_ID = App.ViewInfo.UserID, |
146 | 105 |
NAME = Name, |
147 | 106 |
IMAGE_URL = Url, |
... | ... | |
162 | 121 |
{ |
163 | 122 |
SYMBOL_PUBLIC symbol_public = new SYMBOL_PUBLIC |
164 | 123 |
{ |
165 |
ID = shortGuid(), |
|
124 |
ID = Commons.shortGuid(),
|
|
166 | 125 |
DEPARTMENT = Department, |
167 | 126 |
NAME = Name, |
168 | 127 |
IMAGE_URL = Url, |
KCOM/KCOM.csproj | ||
---|---|---|
249 | 249 |
<Compile Include="AppSQLiteDatabase.cs" /> |
250 | 250 |
<Compile Include="Common\Check_Inferface.cs" /> |
251 | 251 |
<Compile Include="Common\Check_Uri.cs" /> |
252 |
<Compile Include="Common\Commons.cs" /> |
|
252 | 253 |
<Compile Include="Common\Converter\CmpUrlChange.cs" /> |
253 | 254 |
<Compile Include="Common\Converter\CommentTypeImgConverter.cs" /> |
254 | 255 |
<Compile Include="Common\Converter\enumStringColorConverter.cs" /> |
KCOM/KCOM.csproj.user | ||
---|---|---|
2 | 2 |
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 |
<PropertyGroup> |
4 | 4 |
<ReferencePath>C:\Users\Admin\Downloads\KCOM 2018-02-04(통합)\KCOM\x64\;C:\Users\Admin\Downloads\KCOM 2018-02-04(통합)\KCOM\x86\</ReferencePath> |
5 |
<ProjectView>ProjectFiles</ProjectView>
|
|
5 |
<ProjectView>ShowAllFiles</ProjectView>
|
|
6 | 6 |
</PropertyGroup> |
7 | 7 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> |
8 | 8 |
<StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjQwMDAwMTQyIiwiYlBhcnRuZXIiOmZhbHNlLCJDcmVhdGVGaW5hbFBERlBlcm1pc3Npb24iOnRydWUsIk5ld0NvbW1lbnRQZXJtaXNzaW9uIjp0cnVlLCJQcm9qZWN0Tk8iOiIwMDAwMDAiLCJVc2VySUQiOiJhZG1pbiIsIk1vZGUiOjB9</StartArguments> |
KCOM/MainWindow.xaml.cs | ||
---|---|---|
550 | 550 |
var unkownControl = JsonSerializerHelper.JsonDeserialize<S_BaseControl>(controldata); //복호화작업 |
551 | 551 |
ViewerDataModel.Instance.IsPressCtrl = false; |
552 | 552 |
|
553 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Events.SaveCommand.shortGuid();
|
|
553 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
|
|
554 | 554 |
if (data2.Length >= 2) |
555 | 555 |
{ |
556 | 556 |
(item as MarkupToPDF.Common.CommentUserInfo).SymbolID = data2[1]; |
... | ... | |
599 | 599 |
|
600 | 600 |
string temppath = System.IO.Path.GetTempPath(); |
601 | 601 |
//string filename = KCOM.Events.Save.shortCommentKey(); |
602 |
string filename = KCOM.Events.SaveCommand.shortFileKey();
|
|
602 |
string filename = Commons.shortFileKey();
|
|
603 | 603 |
|
604 | 604 |
System.Drawing.Image clipboardImage = System.Windows.Forms.Clipboard.GetImage(); |
605 | 605 |
clipboardImage.Save(temppath + "\\" + filename); |
... | ... | |
667 | 667 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
668 | 668 |
|
669 | 669 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
670 |
currentControl.CommentID = Events.SaveCommand.shortGuid();
|
|
670 |
currentControl.CommentID = Commons.shortGuid();
|
|
671 | 671 |
|
672 | 672 |
currentControl.ApplyTemplate(); |
673 | 673 |
currentControl.SetImage(); |
KCOM/Services/BaseServices.cs | ||
---|---|---|
241 | 241 |
//var currentUser = e.Result.Where(data => data.UserID == "H2014410").FirstOrDefault(); |
242 | 242 |
if (currentUser == null) |
243 | 243 |
{ |
244 |
var infoId = Events.SaveCommand.shortGuid();
|
|
244 |
var infoId = Commons.shortGuid();
|
|
245 | 245 |
PreviewUserMarkupInfoItem = new MarkupInfoItem |
246 | 246 |
{ |
247 | 247 |
CreateTime = DateTime.Now, |
... | ... | |
253 | 253 |
Description = "", |
254 | 254 |
MarkupInfoID = infoId, |
255 | 255 |
MarkupList = null, |
256 |
MarkupVersionID = Events.SaveCommand.shortGuid(),
|
|
256 |
MarkupVersionID = Commons.shortGuid(),
|
|
257 | 257 |
Consolidate = 0, |
258 | 258 |
PartConsolidate = 0, |
259 | 259 |
userDelete = true, |
... | ... | |
288 | 288 |
// UserName = userData.NAME + "(임시저장)", |
289 | 289 |
// PageCount = 1, |
290 | 290 |
// Description = "", |
291 |
// MarkupInfoID = Events.SaveCommand.shortGuid(),
|
|
291 |
// MarkupInfoID = Commons.shortGuid(),
|
|
292 | 292 |
// MarkupList = null, |
293 |
// MarkupVersionID = Events.SaveCommand.shortGuid(),
|
|
293 |
// MarkupVersionID = Commons.shortGuid(),
|
|
294 | 294 |
// Consolidate = 0, |
295 | 295 |
// PartConsolidate = 0, |
296 | 296 |
// userDelete = true, |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
329 | 329 |
{ |
330 | 330 |
if (gridViewMarkup.Items.Cast<MarkupInfoItem>().ToList().Where(d => d.UserID == App.ViewInfo.UserID).Count() == 0) |
331 | 331 |
{ |
332 |
var infoId = Events.SaveCommand.shortGuid();
|
|
332 |
var infoId = Commons.shortGuid();
|
|
333 | 333 |
PreviewUserMarkupInfoItem = new MarkupInfoItem |
334 | 334 |
{ |
335 | 335 |
CreateTime = DateTime.Now, |
... | ... | |
342 | 342 |
Description = "", |
343 | 343 |
MarkupInfoID = infoId, |
344 | 344 |
MarkupList = null, |
345 |
MarkupVersionID = Events.SaveCommand.shortGuid(),
|
|
345 |
MarkupVersionID = Commons.shortGuid(),
|
|
346 | 346 |
Consolidate = 0, |
347 | 347 |
PartConsolidate = 0, |
348 | 348 |
userDelete = true, |
... | ... | |
591 | 591 |
{ |
592 | 592 |
if ((InnerItem.DrawingData as PolygonControl).CommentID == null) |
593 | 593 |
{ |
594 |
(InnerItem.DrawingData as PolygonControl).CommentID = KCOM.Events.SaveCommand.shortGuid();
|
|
594 |
(InnerItem.DrawingData as PolygonControl).CommentID = Commons.shortGuid();
|
|
595 | 595 |
} |
596 | 596 |
} |
597 | 597 |
|
... | ... | |
3487 | 3487 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
3488 | 3488 |
|
3489 | 3489 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
3490 |
currentControl.CommentID = Events.SaveCommand.shortGuid();
|
|
3490 |
currentControl.CommentID = Commons.shortGuid();
|
|
3491 | 3491 |
currentControl.SymbolID = id; |
3492 | 3492 |
currentControl.GroupID = group_id; |
3493 | 3493 |
currentControl.ApplyTemplate(); |
... | ... | |
3913 | 3913 |
ControlType = ControlType.Coordinate |
3914 | 3914 |
}; |
3915 | 3915 |
|
3916 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
3916 |
currentControl.CommentID = Commons.shortGuid();
|
|
3917 | 3917 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
3918 | 3918 |
currentControl.IsNew = true; |
3919 | 3919 |
|
... | ... | |
3950 | 3950 |
ControlType = ControlType.InsideWhite |
3951 | 3951 |
}; |
3952 | 3952 |
|
3953 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
3953 |
currentControl.CommentID = Commons.shortGuid();
|
|
3954 | 3954 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
3955 | 3955 |
currentControl.IsNew = true; |
3956 | 3956 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
3985 | 3985 |
ControlType = ControlType.OverlapWhite |
3986 | 3986 |
}; |
3987 | 3987 |
|
3988 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
3988 |
currentControl.CommentID = Commons.shortGuid();
|
|
3989 | 3989 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
3990 | 3990 |
currentControl.IsNew = true; |
3991 | 3991 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4020 | 4020 |
ControlType = ControlType.ClipWhite |
4021 | 4021 |
}; |
4022 | 4022 |
|
4023 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4023 |
currentControl.CommentID = Commons.shortGuid();
|
|
4024 | 4024 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4025 | 4025 |
currentControl.IsNew = true; |
4026 | 4026 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4059 | 4059 |
ControlType = ControlType.Rectangle |
4060 | 4060 |
}; |
4061 | 4061 |
|
4062 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4062 |
currentControl.CommentID = Commons.shortGuid();
|
|
4063 | 4063 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4064 | 4064 |
currentControl.IsNew = true; |
4065 | 4065 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4099 | 4099 |
}; |
4100 | 4100 |
|
4101 | 4101 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4102 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4102 |
currentControl.CommentID = Commons.shortGuid();
|
|
4103 | 4103 |
currentControl.IsNew = true; |
4104 | 4104 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4105 | 4105 |
} |
... | ... | |
4134 | 4134 |
}; |
4135 | 4135 |
|
4136 | 4136 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4137 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4137 |
currentControl.CommentID = Commons.shortGuid();
|
|
4138 | 4138 |
currentControl.IsNew = true; |
4139 | 4139 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4140 | 4140 |
} |
... | ... | |
4178 | 4178 |
}; |
4179 | 4179 |
|
4180 | 4180 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4181 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4181 |
currentControl.CommentID = Commons.shortGuid();
|
|
4182 | 4182 |
currentControl.IsNew = true; |
4183 | 4183 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4184 | 4184 |
} |
... | ... | |
4214 | 4214 |
}; |
4215 | 4215 |
|
4216 | 4216 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4217 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4217 |
currentControl.CommentID = Commons.shortGuid();
|
|
4218 | 4218 |
currentControl.IsNew = true; |
4219 | 4219 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4220 | 4220 |
this.MainAngle.Visibility = Visibility.Visible; |
... | ... | |
4251 | 4251 |
}; |
4252 | 4252 |
|
4253 | 4253 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4254 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4254 |
currentControl.CommentID = Commons.shortGuid();
|
|
4255 | 4255 |
currentControl.IsNew = true; |
4256 | 4256 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4257 | 4257 |
this.MainAngle.Visibility = Visibility.Visible; |
... | ... | |
4288 | 4288 |
}; |
4289 | 4289 |
|
4290 | 4290 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4291 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4291 |
currentControl.CommentID = Commons.shortGuid();
|
|
4292 | 4292 |
currentControl.IsNew = true; |
4293 | 4293 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4294 | 4294 |
this.MainAngle.Visibility = Visibility.Visible; |
... | ... | |
4324 | 4324 |
Background = new SolidColorBrush(Colors.Black) |
4325 | 4325 |
}; |
4326 | 4326 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4327 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4327 |
currentControl.CommentID = Commons.shortGuid();
|
|
4328 | 4328 |
currentControl.IsNew = true; |
4329 | 4329 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4330 | 4330 |
this.MainAngle.Visibility = Visibility.Visible; |
... | ... | |
4359 | 4359 |
Background = new SolidColorBrush(Colors.Black) |
4360 | 4360 |
}; |
4361 | 4361 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4362 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4362 |
currentControl.CommentID = Commons.shortGuid();
|
|
4363 | 4363 |
currentControl.IsNew = true; |
4364 | 4364 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4365 | 4365 |
this.MainAngle.Visibility = Visibility.Visible; |
... | ... | |
4414 | 4414 |
//if (IsDrawingEnable(canvasZoomPanningMouseDownPoint)) |
4415 | 4415 |
//{ |
4416 | 4416 |
var polygonControl = (currentControl as PolygonControl); |
4417 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4417 |
currentControl.CommentID = Commons.shortGuid();
|
|
4418 | 4418 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4419 | 4419 |
currentControl.IsNew = true; |
4420 | 4420 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4454 | 4454 |
{ |
4455 | 4455 |
Background = new SolidColorBrush(Colors.Black) |
4456 | 4456 |
}; |
4457 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4457 |
currentControl.CommentID = Commons.shortGuid();
|
|
4458 | 4458 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4459 | 4459 |
currentControl.IsNew = true; |
4460 | 4460 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4499 | 4499 |
{ |
4500 | 4500 |
Background = new SolidColorBrush(Colors.Black) |
4501 | 4501 |
}; |
4502 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4502 |
currentControl.CommentID = Commons.shortGuid();
|
|
4503 | 4503 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4504 | 4504 |
currentControl.IsNew = true; |
4505 | 4505 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4561 | 4561 |
StartPoint = new Point(canvasDrawingMouseDownPoint.X, canvasDrawingMouseDownPoint.Y), |
4562 | 4562 |
Background = new SolidColorBrush(Colors.Black) |
4563 | 4563 |
}; |
4564 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4564 |
currentControl.CommentID = Commons.shortGuid();
|
|
4565 | 4565 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4566 | 4566 |
currentControl.IsNew = true; |
4567 | 4567 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4618 | 4618 |
//if (IsDrawingEnable(canvasZoomPanningMouseDownPoint)) |
4619 | 4619 |
//{ |
4620 | 4620 |
var polygonControl = (currentControl as CloudControl); |
4621 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4621 |
currentControl.CommentID = Commons.shortGuid();
|
|
4622 | 4622 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4623 | 4623 |
currentControl.IsNew = true; |
4624 | 4624 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4688 | 4688 |
}; |
4689 | 4689 |
|
4690 | 4690 |
|
4691 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4691 |
currentControl.CommentID = Commons.shortGuid();
|
|
4692 | 4692 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4693 | 4693 |
currentControl.IsNew = true; |
4694 | 4694 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4737 | 4737 |
{ |
4738 | 4738 |
Background = new SolidColorBrush(Colors.Black) |
4739 | 4739 |
}; |
4740 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4740 |
currentControl.CommentID = Commons.shortGuid();
|
|
4741 | 4741 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4742 | 4742 |
currentControl.IsNew = true; |
4743 | 4743 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4760 | 4760 |
ControlType = controlType |
4761 | 4761 |
}; |
4762 | 4762 |
(currentControl as TextControl).TextSize = ViewerDataModel.Instance.TextSize; |
4763 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4763 |
currentControl.CommentID = Commons.shortGuid();
|
|
4764 | 4764 |
currentControl.IsNew = true; |
4765 | 4765 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4766 | 4766 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4793 | 4793 |
|
4794 | 4794 |
(currentControl as TextControl).TextSize = ViewerDataModel.Instance.TextSize; |
4795 | 4795 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4796 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4796 |
currentControl.CommentID = Commons.shortGuid();
|
|
4797 | 4797 |
currentControl.IsNew = true; |
4798 | 4798 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
4799 | 4799 |
currentControl.SetValue(Canvas.ZIndexProperty, 3); |
... | ... | |
4824 | 4824 |
}; |
4825 | 4825 |
|
4826 | 4826 |
(currentControl as TextControl).TextSize = ViewerDataModel.Instance.TextSize; |
4827 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4827 |
currentControl.CommentID = Commons.shortGuid();
|
|
4828 | 4828 |
currentControl.IsNew = true; |
4829 | 4829 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4830 | 4830 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4869 | 4869 |
//if (IsDrawingEnable(canvasZoomPanningMouseDownPoint)) |
4870 | 4870 |
//{ |
4871 | 4871 |
currentControl = new ArrowTextControl(); |
4872 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4872 |
currentControl.CommentID = Commons.shortGuid();
|
|
4873 | 4873 |
currentControl.IsNew = true; |
4874 | 4874 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4875 | 4875 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4916 | 4916 |
//if (IsDrawingEnable(canvasZoomPanningMouseDownPoint)) |
4917 | 4917 |
//{ |
4918 | 4918 |
currentControl = new ArrowTextControl(); |
4919 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4919 |
currentControl.CommentID = Commons.shortGuid();
|
|
4920 | 4920 |
currentControl.IsNew = true; |
4921 | 4921 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4922 | 4922 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
4963 | 4963 |
{ |
4964 | 4964 |
ArrowTextStyle = MarkupToPDF.Controls.Text.ArrowTextControl.ArrowTextStyleSet.Rect |
4965 | 4965 |
}; |
4966 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
4966 |
currentControl.CommentID = Commons.shortGuid();
|
|
4967 | 4967 |
currentControl.IsNew = true; |
4968 | 4968 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
4969 | 4969 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5013 | 5013 |
{ |
5014 | 5014 |
ArrowTextStyle = MarkupToPDF.Controls.Text.ArrowTextControl.ArrowTextStyleSet.Rect |
5015 | 5015 |
}; |
5016 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5016 |
currentControl.CommentID = Commons.shortGuid();
|
|
5017 | 5017 |
currentControl.IsNew = true; |
5018 | 5018 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5019 | 5019 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5067 | 5067 |
{ |
5068 | 5068 |
ArrowTextStyle = MarkupToPDF.Controls.Text.ArrowTextControl.ArrowTextStyleSet.Cloud |
5069 | 5069 |
}; |
5070 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5070 |
currentControl.CommentID = Commons.shortGuid();
|
|
5071 | 5071 |
currentControl.IsNew = true; |
5072 | 5072 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5073 | 5073 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5114 | 5114 |
{ |
5115 | 5115 |
ArrowTextStyle = MarkupToPDF.Controls.Text.ArrowTextControl.ArrowTextStyleSet.Cloud |
5116 | 5116 |
}; |
5117 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5117 |
currentControl.CommentID = Commons.shortGuid();
|
|
5118 | 5118 |
currentControl.IsNew = true; |
5119 | 5119 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5120 | 5120 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5190 | 5190 |
//if (IsDrawingEnable(canvasZoomPanningMouseDownPoint)) |
5191 | 5191 |
//{ |
5192 | 5192 |
var polygonControl = (currentControl as PolygonControl); |
5193 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5193 |
currentControl.CommentID = Commons.shortGuid();
|
|
5194 | 5194 |
currentControl.IsNew = true; |
5195 | 5195 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5196 | 5196 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5249 | 5249 |
ControlType = ControlType.Sign |
5250 | 5250 |
}; |
5251 | 5251 |
|
5252 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5252 |
currentControl.CommentID = Commons.shortGuid();
|
|
5253 | 5253 |
currentControl.IsNew = true; |
5254 | 5254 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5255 | 5255 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5296 | 5296 |
}; |
5297 | 5297 |
|
5298 | 5298 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5299 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5299 |
currentControl.CommentID = Commons.shortGuid();
|
|
5300 | 5300 |
currentControl.IsNew = true; |
5301 | 5301 |
(currentControl as RectangleControl).DashSize = ViewerDataModel.Instance.DashSize; |
5302 | 5302 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
... | ... | |
5334 | 5334 |
|
5335 | 5335 |
currentControl.IsNew = true; |
5336 | 5336 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5337 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5337 |
currentControl.CommentID = Commons.shortGuid();
|
|
5338 | 5338 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
5339 | 5339 |
|
5340 | 5340 |
//20180903 LJY 회전된 방향으로 화면에 출력되지 않는 문제 수정 |
... | ... | |
5375 | 5375 |
|
5376 | 5376 |
currentControl.IsNew = true; |
5377 | 5377 |
currentControl.MarkupInfoID = App.Custom_ViewInfoId; |
5378 |
currentControl.CommentID = SaveCommand.shortGuid();
|
|
5378 |
currentControl.CommentID = Commons.shortGuid();
|
|
5379 | 5379 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl); |
5380 | 5380 |
//20180903 LJY 회전된 방향으로 화면에 출력되지 않는 문제 수정 |
5381 | 5381 |
(currentControl as SymControlN).Angle -= rotate.Angle; |
... | ... | |
6193 | 6193 |
if (symbolpng == true || symbolsvg == true) |
6194 | 6194 |
{ |
6195 | 6195 |
kr.co.devdoftech.cloud.FileUpload fileUploader = new kr.co.devdoftech.cloud.FileUpload(); |
6196 |
string guid = SaveCommand.shortGuid();
|
|
6196 |
string guid = Commons.shortGuid();
|
|
6197 | 6197 |
|
6198 | 6198 |
fileUploader.RunAsync(App.ViewInfo.ProjectNO, _DocItem.DOCUMENT_NO, App.ViewInfo.UserID, guid + ".png", Img_byte); |
6199 | 6199 |
//Check_Uri.UriCheck(); |
... | ... | |
6305 | 6305 |
{ |
6306 | 6306 |
SYMBOL_PRIVATE symbol_private = new SYMBOL_PRIVATE |
6307 | 6307 |
{ |
6308 |
ID = Events.SaveCommand.shortGuid(),
|
|
6308 |
ID = Commons.shortGuid(),
|
|
6309 | 6309 |
MEMBER_USER_ID = App.ViewInfo.UserID, |
6310 | 6310 |
NAME = Name, |
6311 | 6311 |
IMAGE_URL = Url, |
... | ... | |
6328 | 6328 |
{ |
6329 | 6329 |
SYMBOL_PUBLIC symbol_public = new SYMBOL_PUBLIC |
6330 | 6330 |
{ |
6331 |
ID = Events.SaveCommand.shortGuid(),
|
|
6331 |
ID = Commons.shortGuid(),
|
|
6332 | 6332 |
DEPARTMENT = Department, |
6333 | 6333 |
NAME = Name, |
6334 | 6334 |
IMAGE_URL = Url, |
... | ... | |
6423 | 6423 |
byte[] Img_byte = fs.ToArray(); |
6424 | 6424 |
|
6425 | 6425 |
kr.co.devdoftech.cloud.FileUpload fileUploader = new kr.co.devdoftech.cloud.FileUpload(); |
6426 |
filename = fileUploader.Run(App.ViewInfo.ProjectNO, _DocItem.DOCUMENT_NO, App.ViewInfo.UserID, SaveCommand.shortGuid() + ".png", Img_byte);
|
|
6426 |
filename = fileUploader.Run(App.ViewInfo.ProjectNO, _DocItem.DOCUMENT_NO, App.ViewInfo.UserID, Commons.shortGuid() + ".png", Img_byte);
|
|
6427 | 6427 |
Check_Uri.UriCheck(filename); |
6428 | 6428 |
if (symbolPanel_Instance.RadTab.SelectedIndex == 0) |
6429 | 6429 |
{ |
... | ... | |
6660 | 6660 |
{ |
6661 | 6661 |
check_ = new KCOMDataModel.DataModel.CHECK_LIST |
6662 | 6662 |
{ |
6663 |
ID = SaveCommand.shortGuid(),
|
|
6663 |
ID = Commons.shortGuid(),
|
|
6664 | 6664 |
USER_ID = App.ViewInfo.UserID, |
6665 | 6665 |
IMAGE_URL = Result, |
6666 | 6666 |
IMAGE_ANCHOR = x + "," + y + "," + width + "," + height, |
... | ... | |
7037 | 7037 |
if (item.PageNumber == pageNavigator.CurrentPage.PageNumber) |
7038 | 7038 |
{ |
7039 | 7039 |
MarkupParser.ParseEx(App.ViewInfo.ProjectNO, item.Data, Common.ViewerDataModel.Instance.MarkupControls_USER, "#FFFF0000", "", |
7040 |
items.MarkupInfoID, SaveCommand.shortGuid());
|
|
7040 |
items.MarkupInfoID, Commons.shortGuid());
|
|
7041 | 7041 |
} |
7042 | 7042 |
} |
7043 | 7043 |
} |
... | ... | |
7106 | 7106 |
pc.EndPoint = inkPointSet[inkPointSet.Count - 1]; |
7107 | 7107 |
pc.PointSet = inkPointSet; |
7108 | 7108 |
pc.LineSize = 3; |
7109 |
pc.CommentID = SaveCommand.shortGuid();
|
|
7109 |
pc.CommentID = Commons.shortGuid();
|
|
7110 | 7110 |
pc.StrokeColor = new SolidColorBrush(Colors.Red); |
7111 | 7111 |
ViewerDataModel.Instance.MarkupControls_USER.Add(pc); |
7112 | 7112 |
///pc.SetPolyPath(); |
... | ... | |
7271 | 7271 |
if (parse != "") |
7272 | 7272 |
{ |
7273 | 7273 |
System.Windows.Controls.Control item = MarkupParser.ParseEx(App.ViewInfo.ProjectNO, parse, ViewerDataModel.Instance.MarkupControls_USER, string.Empty, string.Empty); |
7274 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Events.SaveCommand.shortGuid();
|
|
7274 |
(item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
|
|
7275 | 7275 |
|
7276 | 7276 |
ViewerDataModel.Instance.MarkupControls.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
7277 | 7277 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(item as MarkupToPDF.Common.CommentUserInfo); |
내보내기 Unified diff