개정판 482f6326
issue #0000
Login 적용
Documents Model 수정
Login Config 수정
Command Column Defaut Value 추가
Resource 수정(Save, Link)
Change-Id: I089397c91e630da142945f6bf6679fd5ceaee0b3
ID2.Manager/ID2.Manager.Common/Informations.cs | ||
---|---|---|
45 | 45 |
get { return _ClientStatus; } |
46 | 46 |
} |
47 | 47 |
|
48 |
private readonly List<string> _ValidationResult = new List<string>() { "O", "X" };
|
|
48 |
private readonly List<string> _ValidationResult = new List<string>() { "O", "X" };
|
|
49 | 49 |
public List<string> ValidationResult |
50 | 50 |
{ |
51 | 51 |
get { return _ValidationResult; } |
ID2.Manager/ID2.Manager.Dapper/Repository/BaseRepository.cs | ||
---|---|---|
14 | 14 |
{ |
15 | 15 |
public abstract class BaseRepository : IBaseRepository |
16 | 16 |
{ |
17 |
private readonly IDbConnection _DbConnection;//readonly 삭제해야하는지 확인
|
|
17 |
protected readonly IDbConnection _DbConnection;//readonly 삭제해야하는지 확인
|
|
18 | 18 |
|
19 | 19 |
public SqlConnection DBConnection(string connectionStr) |
20 | 20 |
{ |
ID2.Manager/ID2.Manager.Dapper/Repository/DocumentRepository.cs | ||
---|---|---|
21 | 21 |
|
22 | 22 |
return Query<Documents>(query); |
23 | 23 |
} |
24 |
|
|
25 |
public bool SetDocumentData(List<Documents> docList) |
|
26 |
{ |
|
27 |
bool isSuccess = false; |
|
28 |
|
|
29 |
try |
|
30 |
{ |
|
31 |
using (var transaction = base._DbConnection.BeginTransaction()) |
|
32 |
{ |
|
33 |
var param = new |
|
34 |
{ |
|
35 |
Cases_UID = "" |
|
36 |
}; |
|
37 |
string query = @" |
|
38 |
delete dbo.Documents where Cases_UID=@Cases_UID"; |
|
39 |
base.Execute(query, param, transaction); |
|
40 |
|
|
41 |
foreach (Documents doc in docList) |
|
42 |
{ |
|
43 |
if (string.IsNullOrEmpty(doc.DocID)) |
|
44 |
{ |
|
45 |
query = $@" |
|
46 |
insert into dbo.Documents |
|
47 |
( |
|
48 |
[DocID] |
|
49 |
,[DocumentNo] |
|
50 |
,[RevisonNo] |
|
51 |
,[RefProjectID] |
|
52 |
,[IsLatest] |
|
53 |
,[DocFilePath] |
|
54 |
,[DocFileName] |
|
55 |
,[Place] |
|
56 |
,[JobLevel] |
|
57 |
,[IsTypical] |
|
58 |
,[PersonInCharge] |
|
59 |
,[IsDeleted] |
|
60 |
,[RegisteredDate] |
|
61 |
,[ModifiedDate] |
|
62 |
,[DeletedDate] |
|
63 |
,[ToIsDiscussion] |
|
64 |
,[ToRemarks] |
|
65 |
,[ToCreator] |
|
66 |
,[ToModifier] |
|
67 |
,[ToCapturePath] |
|
68 |
,[ToIsMarkup] |
|
69 |
,[FrReviewStatus] |
|
70 |
,[FrRemarks] |
|
71 |
,[FrCreator] |
|
72 |
,[FrModifier] |
|
73 |
,[FrCapturePath] |
|
74 |
,[FrIsMarkup] |
|
75 |
,[IsID2Work] |
|
76 |
,[ID2Connection] |
|
77 |
,[ID2StartDate] |
|
78 |
,[ID2EndDate] |
|
79 |
,[ID2JobTime] |
|
80 |
,[ID2Status] |
|
81 |
,[ID2Issues] |
|
82 |
,[AVEVAConnection] |
|
83 |
,[AVEVAConvertDate] |
|
84 |
,[AVEVAReviewDate] |
|
85 |
,[AVEVAStatus] |
|
86 |
,[AVEVAIssues] |
|
87 |
,[ReviewFilePath] |
|
88 |
,[ReviewFileName] |
|
89 |
,[ProdReviewer] |
|
90 |
,[ProdIsResult] |
|
91 |
,[ProdRemarks] |
|
92 |
,[ClientReviewer] |
|
93 |
,[ClientIsResult] |
|
94 |
,[ClientRemarks] |
|
95 |
,[DTIsGateWay] |
|
96 |
,[DTIsImport] |
|
97 |
,[DTIsRegSystem] |
|
98 |
,[DTRemarks] |
|
99 |
) |
|
100 |
values |
|
101 |
( |
|
102 |
lower(newid()) |
|
103 |
,@DocumentNo |
|
104 |
,@RevisonNo |
|
105 |
,@RefProjectID |
|
106 |
,@IsLatest |
|
107 |
,@DocFilePath |
|
108 |
,@DocFileName |
|
109 |
,@Place |
|
110 |
,@JobLevel |
|
111 |
,@IsTypical |
|
112 |
,@PersonInCharge |
|
113 |
,@IsDeleted |
|
114 |
,@RegisteredDate |
|
115 |
,@ModifiedDate |
|
116 |
,@DeletedDate |
|
117 |
,@ToIsDiscussion |
|
118 |
,@ToRemarks |
|
119 |
,@ToCreator |
|
120 |
,@ToModifier |
|
121 |
,@ToCapturePath |
|
122 |
,@ToIsMarkup |
|
123 |
,@FrReviewStatus |
|
124 |
,@FrRemarks |
|
125 |
,@FrCreator |
|
126 |
,@FrModifier |
|
127 |
,@FrCapturePath |
|
128 |
,@FrIsMarkup |
|
129 |
,@IsID2Work |
|
130 |
,@ID2Connection |
|
131 |
,@ID2StartDate |
|
132 |
,@ID2EndDate |
|
133 |
,@ID2JobTime |
|
134 |
,@ID2Status |
|
135 |
,@ID2Issues |
|
136 |
,@AVEVAConnection |
|
137 |
,@AVEVAConvertDate |
|
138 |
,@AVEVAReviewDate |
|
139 |
,@AVEVAStatus |
|
140 |
,@AVEVAIssues |
|
141 |
,@ReviewFilePath |
|
142 |
,@ReviewFileName |
|
143 |
,@ProdReviewer |
|
144 |
,@ProdIsResult |
|
145 |
,@ProdRemarks |
|
146 |
,@ClientReviewer |
|
147 |
,@ClientIsResult |
|
148 |
,@ClientRemarks |
|
149 |
,@DTIsGateWay |
|
150 |
,@DTIsImport |
|
151 |
,@DTIsRegSystem |
|
152 |
,@DTRemarks |
|
153 |
)"; |
|
154 |
} |
|
155 |
else |
|
156 |
{ |
|
157 |
query = $@" |
|
158 |
update dbo.Documents |
|
159 |
set [DocumentNo] |
|
160 |
,[RevisonNo] |
|
161 |
,[RefProjectID] |
|
162 |
,[IsLatest] |
|
163 |
,[DocFilePath] |
|
164 |
,[DocFileName] |
|
165 |
,[Place] |
|
166 |
,[JobLevel] |
|
167 |
,[IsTypical] |
|
168 |
,[PersonInCharge] |
|
169 |
,[IsDeleted] |
|
170 |
,[RegisteredDate] |
|
171 |
,[ModifiedDate] |
|
172 |
,[DeletedDate] |
|
173 |
,[ToIsDiscussion] |
|
174 |
,[ToRemarks] |
|
175 |
,[ToCreator] |
|
176 |
,[ToModifier] |
|
177 |
,[ToCapturePath] |
|
178 |
,[ToIsMarkup] |
|
179 |
,[FrReviewStatus] |
|
180 |
,[FrRemarks] |
|
181 |
,[FrCreator] |
|
182 |
,[FrModifier] |
|
183 |
,[FrCapturePath] |
|
184 |
,[FrIsMarkup] |
|
185 |
,[IsID2Work] |
|
186 |
,[ID2Connection] |
|
187 |
,[ID2StartDate] |
|
188 |
,[ID2EndDate] |
|
189 |
,[ID2JobTime] |
|
190 |
,[ID2Status] |
|
191 |
,[ID2Issues] |
|
192 |
,[AVEVAConnection] |
|
193 |
,[AVEVAConvertDate] |
|
194 |
,[AVEVAReviewDate] |
|
195 |
,[AVEVAStatus] |
|
196 |
,[AVEVAIssues] |
|
197 |
,[ReviewFilePath] |
|
198 |
,[ReviewFileName] |
|
199 |
,[ProdReviewer] |
|
200 |
,[ProdIsResult] |
|
201 |
,[ProdRemarks] |
|
202 |
,[ClientReviewer] |
|
203 |
,[ClientIsResult] |
|
204 |
,[ClientRemarks] |
|
205 |
,[DTIsGateWay] |
|
206 |
,[DTIsImport] |
|
207 |
,[DTIsRegSystem] |
|
208 |
,[DTRemarks] |
|
209 |
where [DocID]=@DocID |
|
210 |
"; |
|
211 |
} |
|
212 |
base.Execute(query, doc, transaction); |
|
213 |
} |
|
214 |
|
|
215 |
transaction.Commit(); |
|
216 |
isSuccess = true; |
|
217 |
} |
|
218 |
} |
|
219 |
catch (Exception ex) |
|
220 |
{ |
|
221 |
throw ex; |
|
222 |
} |
|
223 |
|
|
224 |
return isSuccess; |
|
225 |
} |
|
24 | 226 |
} |
25 | 227 |
} |
ID2.Manager/ID2.Manager.Dapper/Repository/UserRepository.cs | ||
---|---|---|
15 | 15 |
public UserInfo GetUserInfo(string userId, string userPW) |
16 | 16 |
{ |
17 | 17 |
string query = $@" |
18 |
select * from dbo.Users"; |
|
18 |
select * from dbo.Users where ID=@userId and Password=@userPW";
|
|
19 | 19 |
|
20 | 20 |
return Query<UserInfo>(query, new { userId, userPW }).FirstOrDefault(); |
21 | 21 |
} |
ID2.Manager/ID2.Manager.Data/Models/Documents.cs | ||
---|---|---|
24 | 24 |
[DataMember] |
25 | 25 |
public bool IsLatest { get; set; } |
26 | 26 |
[DataMember] |
27 |
public string AutoCADFilie { get; set; } |
|
28 |
[DataMember] |
|
29 |
public string PDFFile { get; set; } |
|
30 |
[DataMember] |
|
31 |
public string MarkupLink { get; set; } |
|
32 |
[DataMember] |
|
33 |
public string AVEVALink { get; set; } |
|
34 |
[DataMember] |
|
27 | 35 |
public string DocFilePath { get; set; } |
28 | 36 |
[DataMember] |
29 | 37 |
public string DocFileName { get; set; } |
... | ... | |
40 | 48 |
[DataMember] |
41 | 49 |
public DateTime RegisteredDate { get; set; } |
42 | 50 |
[DataMember] |
43 |
public DateTime ModifiedDate { get; set; } |
|
51 |
public DateTime? ModifiedDate { get; set; }
|
|
44 | 52 |
[DataMember] |
45 |
public DateTime DeletedDate { get; set; } |
|
53 |
public DateTime? DeletedDate { get; set; }
|
|
46 | 54 |
[DataMember] |
47 | 55 |
public string ToIsDiscussion { get; set; } |
48 | 56 |
[DataMember] |
... | ... | |
84 | 92 |
[DataMember] |
85 | 93 |
public string AVEVAConnection { get; set; } |
86 | 94 |
[DataMember] |
87 |
public DateTime AVEVAConvertDate { get; set; } |
|
95 |
public DateTime? AVEVAConvertDate { get; set; }
|
|
88 | 96 |
[DataMember] |
89 |
public DateTime AVEVAReviewDate { get; set; } |
|
97 |
public DateTime? AVEVAReviewDate { get; set; }
|
|
90 | 98 |
[DataMember] |
91 | 99 |
public string AVEVAStatus { get; set; } |
92 | 100 |
[DataMember] |
... | ... | |
98 | 106 |
[DataMember] |
99 | 107 |
public string ProdReviewer { get; set; } |
100 | 108 |
[DataMember] |
101 |
public bool ProdIsResult { get; set; }
|
|
109 |
public string ProdIsResult { get; set; }
|
|
102 | 110 |
[DataMember] |
103 | 111 |
public string ProdRemarks { get; set; } |
104 | 112 |
[DataMember] |
105 | 113 |
public string ClientReviewer { get; set; } |
106 | 114 |
[DataMember] |
107 |
public bool ClientIsResult { get; set; }
|
|
115 |
public string ClientIsResult { get; set; }
|
|
108 | 116 |
[DataMember] |
109 | 117 |
public string ClientRemarks { get; set; } |
110 | 118 |
[DataMember] |
ID2.Manager/ID2.Manager/App.config | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8" ?> |
2 | 2 |
<configuration> |
3 |
<configSections> |
|
4 |
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > |
|
5 |
<section name="ID2.Manager.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> |
|
6 |
</sectionGroup> |
|
7 |
</configSections> |
|
3 | 8 |
<startup> |
4 | 9 |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> |
5 | 10 |
</startup> |
6 | 11 |
<connectionStrings> |
7 | 12 |
<add name="ID2Manager" providerName="System.Data.SqlClient" connectionString="data source=192.168.0.67;initial catalog=ID2Manager;persist security info=True;user id=sa;password=dof1073#;multipleactiveresultsets=True"/> |
8 | 13 |
</connectionStrings> |
14 |
<userSettings> |
|
15 |
<ID2.Manager.Properties.Settings> |
|
16 |
<setting name="GemBoxLicense" serializeAs="String"> |
|
17 |
<value>SN-2021May25-IPYYaC5T2J/LIzFImndeajkkMS/Fn1fLWGfjRRxTNu/uan2hm9KrTK/v9hdsQfLCOuUeMZXrEHCPsmS7Pnp4YGIGsOw==A</value> |
|
18 |
</setting> |
|
19 |
<setting name="UserInfo" serializeAs="String"> |
|
20 |
<value /> |
|
21 |
</setting> |
|
22 |
</ID2.Manager.Properties.Settings> |
|
23 |
</userSettings> |
|
9 | 24 |
</configuration> |
ID2.Manager/ID2.Manager/Forms/Login.Designer.cs | ||
---|---|---|
30 | 30 |
private void InitializeComponent() |
31 | 31 |
{ |
32 | 32 |
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
33 |
this.radCheckBoxRememberID = new Telerik.WinControls.UI.RadCheckBox(); |
|
34 |
this.radTextBoxID = new Telerik.WinControls.UI.RadTextBox(); |
|
33 |
this.radButtonOK = new Telerik.WinControls.UI.RadButton(); |
|
35 | 34 |
this.radTextBoxPW = new Telerik.WinControls.UI.RadTextBox(); |
35 |
this.radTextBoxID = new Telerik.WinControls.UI.RadTextBox(); |
|
36 |
this.radCheckBoxRememberID = new Telerik.WinControls.UI.RadCheckBox(); |
|
36 | 37 |
this.radButtonCancel = new Telerik.WinControls.UI.RadButton(); |
37 |
this.radButtonOK = new Telerik.WinControls.UI.RadButton(); |
|
38 | 38 |
this.tableLayoutPanel1.SuspendLayout(); |
39 |
((System.ComponentModel.ISupportInitialize)(this.radCheckBoxRememberID)).BeginInit(); |
|
40 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxID)).BeginInit(); |
|
39 |
((System.ComponentModel.ISupportInitialize)(this.radButtonOK)).BeginInit(); |
|
41 | 40 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxPW)).BeginInit(); |
41 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxID)).BeginInit(); |
|
42 |
((System.ComponentModel.ISupportInitialize)(this.radCheckBoxRememberID)).BeginInit(); |
|
42 | 43 |
((System.ComponentModel.ISupportInitialize)(this.radButtonCancel)).BeginInit(); |
43 |
((System.ComponentModel.ISupportInitialize)(this.radButtonOK)).BeginInit();
|
|
44 |
((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); |
|
44 | 45 |
this.SuspendLayout(); |
45 | 46 |
// |
46 | 47 |
// tableLayoutPanel1 |
... | ... | |
70 | 71 |
this.tableLayoutPanel1.Size = new System.Drawing.Size(281, 162); |
71 | 72 |
this.tableLayoutPanel1.TabIndex = 5; |
72 | 73 |
// |
74 |
// radButtonOK |
|
75 |
// |
|
76 |
this.radButtonOK.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
77 |
this.radButtonOK.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(35)))), ((int)(((byte)(64))))); |
|
78 |
this.radButtonOK.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
79 |
this.radButtonOK.ForeColor = System.Drawing.Color.White; |
|
80 |
this.radButtonOK.Location = new System.Drawing.Point(103, 116); |
|
81 |
this.radButtonOK.Name = "radButtonOK"; |
|
82 |
this.radButtonOK.Size = new System.Drawing.Size(69, 28); |
|
83 |
this.radButtonOK.TabIndex = 31; |
|
84 |
this.radButtonOK.Text = "LOGIN"; |
|
85 |
// |
|
86 |
// radTextBoxPW |
|
87 |
// |
|
88 |
this.radTextBoxPW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
89 |
this.tableLayoutPanel1.SetColumnSpan(this.radTextBoxPW, 3); |
|
90 |
this.radTextBoxPW.Dock = System.Windows.Forms.DockStyle.Fill; |
|
91 |
this.radTextBoxPW.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); |
|
92 |
this.radTextBoxPW.Location = new System.Drawing.Point(23, 53); |
|
93 |
this.radTextBoxPW.Name = "radTextBoxPW"; |
|
94 |
this.radTextBoxPW.NullText = "Password"; |
|
95 |
this.radTextBoxPW.PasswordChar = '*'; |
|
96 |
this.radTextBoxPW.Size = new System.Drawing.Size(234, 24); |
|
97 |
this.radTextBoxPW.TabIndex = 29; |
|
98 |
((Telerik.WinControls.UI.RadTextBoxItem)(this.radTextBoxPW.GetChildAt(0).GetChildAt(0))).NullText = "Password"; |
|
99 |
((Telerik.WinControls.UI.RadTextBoxItem)(this.radTextBoxPW.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
100 |
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTextBoxPW.GetChildAt(0).GetChildAt(1))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
101 |
// |
|
102 |
// radTextBoxID |
|
103 |
// |
|
104 |
this.radTextBoxID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
105 |
this.tableLayoutPanel1.SetColumnSpan(this.radTextBoxID, 3); |
|
106 |
this.radTextBoxID.Dock = System.Windows.Forms.DockStyle.Fill; |
|
107 |
this.radTextBoxID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); |
|
108 |
this.radTextBoxID.Location = new System.Drawing.Point(23, 23); |
|
109 |
this.radTextBoxID.Name = "radTextBoxID"; |
|
110 |
this.radTextBoxID.NullText = "Email"; |
|
111 |
this.radTextBoxID.ShowNullText = true; |
|
112 |
this.radTextBoxID.Size = new System.Drawing.Size(234, 24); |
|
113 |
this.radTextBoxID.TabIndex = 27; |
|
114 |
((Telerik.WinControls.UI.RadTextBoxElement)(this.radTextBoxID.GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
115 |
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTextBoxID.GetChildAt(0).GetChildAt(1))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
116 |
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTextBoxID.GetChildAt(0).GetChildAt(2))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
117 |
// |
|
73 | 118 |
// radCheckBoxRememberID |
74 | 119 |
// |
75 | 120 |
this.radCheckBoxRememberID.Anchor = System.Windows.Forms.AnchorStyles.Right; |
... | ... | |
91 | 136 |
((Telerik.WinControls.Primitives.FillPrimitive)(this.radCheckBoxRememberID.GetChildAt(0).GetChildAt(1).GetChildAt(1).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225))))); |
92 | 137 |
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radCheckBoxRememberID.GetChildAt(0).GetChildAt(1).GetChildAt(1).GetChildAt(1))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; |
93 | 138 |
((Telerik.WinControls.Primitives.CheckPrimitive)(this.radCheckBoxRememberID.GetChildAt(0).GetChildAt(1).GetChildAt(1).GetChildAt(2))).ForeColor = System.Drawing.Color.Black; |
94 |
((Telerik.WinControls.Primitives.CheckPrimitive)(this.radCheckBoxRememberID.GetChildAt(0).GetChildAt(1).GetChildAt(1).GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Visible;
|
|
139 |
((Telerik.WinControls.Primitives.CheckPrimitive)(this.radCheckBoxRememberID.GetChildAt(0).GetChildAt(1).GetChildAt(1).GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;
|
|
95 | 140 |
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radCheckBoxRememberID.GetChildAt(0).GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; |
96 | 141 |
// |
97 |
// radTextBoxID |
|
98 |
// |
|
99 |
this.radTextBoxID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
100 |
this.tableLayoutPanel1.SetColumnSpan(this.radTextBoxID, 3); |
|
101 |
this.radTextBoxID.Dock = System.Windows.Forms.DockStyle.Fill; |
|
102 |
this.radTextBoxID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); |
|
103 |
this.radTextBoxID.Location = new System.Drawing.Point(23, 23); |
|
104 |
this.radTextBoxID.Name = "radTextBoxID"; |
|
105 |
this.radTextBoxID.NullText = "Email"; |
|
106 |
this.radTextBoxID.ShowNullText = true; |
|
107 |
this.radTextBoxID.Size = new System.Drawing.Size(234, 20); |
|
108 |
this.radTextBoxID.TabIndex = 27; |
|
109 |
((Telerik.WinControls.UI.RadTextBoxElement)(this.radTextBoxID.GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
110 |
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTextBoxID.GetChildAt(0).GetChildAt(1))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
111 |
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTextBoxID.GetChildAt(0).GetChildAt(2))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
112 |
// |
|
113 |
// radTextBoxPW |
|
114 |
// |
|
115 |
this.radTextBoxPW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
116 |
this.tableLayoutPanel1.SetColumnSpan(this.radTextBoxPW, 3); |
|
117 |
this.radTextBoxPW.Dock = System.Windows.Forms.DockStyle.Fill; |
|
118 |
this.radTextBoxPW.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); |
|
119 |
this.radTextBoxPW.Location = new System.Drawing.Point(23, 53); |
|
120 |
this.radTextBoxPW.Name = "radTextBoxPW"; |
|
121 |
this.radTextBoxPW.NullText = "Password"; |
|
122 |
this.radTextBoxPW.PasswordChar = '*'; |
|
123 |
this.radTextBoxPW.Size = new System.Drawing.Size(234, 20); |
|
124 |
this.radTextBoxPW.TabIndex = 29; |
|
125 |
((Telerik.WinControls.UI.RadTextBoxItem)(this.radTextBoxPW.GetChildAt(0).GetChildAt(0))).NullText = "Password"; |
|
126 |
((Telerik.WinControls.UI.RadTextBoxItem)(this.radTextBoxPW.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
127 |
((Telerik.WinControls.Primitives.FillPrimitive)(this.radTextBoxPW.GetChildAt(0).GetChildAt(1))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246))))); |
|
128 |
// |
|
129 | 142 |
// radButtonCancel |
130 | 143 |
// |
131 | 144 |
this.radButtonCancel.Anchor = System.Windows.Forms.AnchorStyles.Left; |
... | ... | |
136 | 149 |
this.radButtonCancel.TabIndex = 30; |
137 | 150 |
this.radButtonCancel.Text = "CANCEL"; |
138 | 151 |
// |
139 |
// radButtonOK |
|
140 |
// |
|
141 |
this.radButtonOK.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
142 |
this.radButtonOK.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(35)))), ((int)(((byte)(64))))); |
|
143 |
this.radButtonOK.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
144 |
this.radButtonOK.ForeColor = System.Drawing.Color.White; |
|
145 |
this.radButtonOK.Location = new System.Drawing.Point(103, 116); |
|
146 |
this.radButtonOK.Name = "radButtonOK"; |
|
147 |
this.radButtonOK.Size = new System.Drawing.Size(69, 28); |
|
148 |
this.radButtonOK.TabIndex = 31; |
|
149 |
this.radButtonOK.Text = "LOGIN"; |
|
150 |
// |
|
151 | 152 |
// Login |
152 | 153 |
// |
153 | 154 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |
... | ... | |
161 | 162 |
this.Text = "Login"; |
162 | 163 |
this.tableLayoutPanel1.ResumeLayout(false); |
163 | 164 |
this.tableLayoutPanel1.PerformLayout(); |
164 |
((System.ComponentModel.ISupportInitialize)(this.radCheckBoxRememberID)).EndInit(); |
|
165 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxID)).EndInit(); |
|
165 |
((System.ComponentModel.ISupportInitialize)(this.radButtonOK)).EndInit(); |
|
166 | 166 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxPW)).EndInit(); |
167 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxID)).EndInit(); |
|
168 |
((System.ComponentModel.ISupportInitialize)(this.radCheckBoxRememberID)).EndInit(); |
|
167 | 169 |
((System.ComponentModel.ISupportInitialize)(this.radButtonCancel)).EndInit(); |
168 |
((System.ComponentModel.ISupportInitialize)(this.radButtonOK)).EndInit();
|
|
170 |
((System.ComponentModel.ISupportInitialize)(this)).EndInit(); |
|
169 | 171 |
this.ResumeLayout(false); |
170 | 172 |
|
171 | 173 |
} |
ID2.Manager/ID2.Manager/Forms/Login.cs | ||
---|---|---|
22 | 22 |
{ |
23 | 23 |
InitializeComponent(); |
24 | 24 |
|
25 |
this.Initialize(); |
|
26 |
|
|
27 |
this.Load += Login_Load; |
|
25 | 28 |
this.radButtonOK.Click += RadButtonOK_Click; |
29 |
this.radButtonCancel.Click += RadButtonCancel_Click; |
|
30 |
} |
|
31 |
|
|
32 |
private void Login_Load(object sender, EventArgs e) |
|
33 |
{ |
|
34 |
this.LoadConfig(); |
|
35 |
} |
|
36 |
|
|
37 |
private void Initialize() |
|
38 |
{ |
|
39 |
this.ActiveControl = this.radTextBoxID; |
|
40 |
this.radTextBoxID.KeyDown += RadTextBox_KeyDown; |
|
41 |
this.radTextBoxPW.KeyDown += RadTextBox_KeyDown; |
|
42 |
} |
|
43 |
|
|
44 |
private void SaveConfig(UserInfo userInfo) |
|
45 |
{ |
|
46 |
if (radCheckBoxRememberID.Checked) |
|
47 |
{ |
|
48 |
Properties.Settings.Default.UserInfo = $"Checked_{userInfo.ID}"; |
|
49 |
Properties.Settings.Default.Save(); |
|
50 |
} |
|
51 |
else |
|
52 |
{ |
|
53 |
Properties.Settings.Default.UserInfo = $"unChecked_"; |
|
54 |
Properties.Settings.Default.Save(); |
|
55 |
} |
|
56 |
} |
|
57 |
|
|
58 |
private void LoadConfig() |
|
59 |
{ |
|
60 |
var rememeberID = Properties.Settings.Default.UserInfo.ToString().Split('_'); |
|
61 |
if (rememeberID[0] == "Checked") |
|
62 |
{ |
|
63 |
this.radCheckBoxRememberID.Checked = true; |
|
64 |
this.radTextBoxID.Text = rememeberID[1]; |
|
65 |
} |
|
66 |
} |
|
67 |
|
|
68 |
private void RadTextBox_KeyDown(object sender, KeyEventArgs e) |
|
69 |
{ |
|
70 |
if (e.KeyCode == Keys.Enter) |
|
71 |
{ |
|
72 |
this.radButtonOK.Focus(); |
|
73 |
this.radButtonOK.PerformClick(); |
|
74 |
} |
|
26 | 75 |
} |
27 | 76 |
|
28 | 77 |
private void RadButtonOK_Click(object sender, EventArgs e) |
... | ... | |
32 | 81 |
//DB연결해서 체크로직추가 |
33 | 82 |
UserInfo userInfo = new UserController().GetUserInfo(this.radTextBoxID.Text, Globals.EncryptionSHA256(this.radTextBoxPW.Text)); |
34 | 83 |
|
84 |
if (userInfo == null) |
|
85 |
{ |
|
86 |
RadMessageBox.Show("User Information does not match.", Globals.Name, MessageBoxButtons.OK, RadMessageIcon.Exclamation); |
|
87 |
radTextBoxPW.Focus(); |
|
88 |
return; |
|
89 |
} |
|
90 |
|
|
35 | 91 |
//체크완료 시 로그인 |
36 | 92 |
informations.ActiveUser = userInfo; |
93 |
SaveConfig(userInfo); |
|
37 | 94 |
|
38 | 95 |
this.DialogResult = DialogResult.OK; |
39 | 96 |
} |
... | ... | |
71 | 128 |
|
72 | 129 |
return isSuccess; |
73 | 130 |
} |
131 |
|
|
132 |
private void RadButtonCancel_Click(object sender, EventArgs e) |
|
133 |
{ |
|
134 |
this.Close(); |
|
135 |
} |
|
74 | 136 |
} |
75 | 137 |
} |
ID2.Manager/ID2.Manager/ID2.Manager.csproj | ||
---|---|---|
183 | 183 |
<ItemGroup> |
184 | 184 |
<None Include="Resources\link18_purple.png" /> |
185 | 185 |
</ItemGroup> |
186 |
<ItemGroup> |
|
187 |
<None Include="Resources\Save.png" /> |
|
188 |
</ItemGroup> |
|
186 | 189 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
187 | 190 |
</Project> |
ID2.Manager/ID2.Manager/Main.Designer.cs | ||
---|---|---|
76 | 76 |
Telerik.WinControls.UI.TableViewDefinition tableViewDefinition1 = new Telerik.WinControls.UI.TableViewDefinition(); |
77 | 77 |
this.ID2ManagerRadRibbonBar = new Telerik.WinControls.UI.RadRibbonBar(); |
78 | 78 |
this.ribbonTabProjMgt = new Telerik.WinControls.UI.RibbonTab(); |
79 |
this.radRibbonBarGroup1 = new Telerik.WinControls.UI.RadRibbonBarGroup();
|
|
79 |
this.radRibbonBarGroupExcel = new Telerik.WinControls.UI.RadRibbonBarGroup();
|
|
80 | 80 |
this.radButtonElementExcelImport = new Telerik.WinControls.UI.RadButtonElement(); |
81 | 81 |
this.radButtonElementExcelExport = new Telerik.WinControls.UI.RadButtonElement(); |
82 | 82 |
this.radSplitContainerWrap = new Telerik.WinControls.UI.RadSplitContainer(); |
... | ... | |
85 | 85 |
this.radGridViewDocuments = new Telerik.WinControls.UI.RadGridView(); |
86 | 86 |
this.splitPanelRight = new Telerik.WinControls.UI.SplitPanel(); |
87 | 87 |
this.radButtonElementImportPCWBS = new Telerik.WinControls.UI.RadButtonElement(); |
88 |
this.ribbonTabHome = new Telerik.WinControls.UI.RibbonTab(); |
|
89 |
this.radRibbonBarGroup1 = new Telerik.WinControls.UI.RadRibbonBarGroup(); |
|
90 |
this.radButtonElementSave = new Telerik.WinControls.UI.RadButtonElement(); |
|
88 | 91 |
((System.ComponentModel.ISupportInitialize)(this.ID2ManagerRadRibbonBar)).BeginInit(); |
89 | 92 |
((System.ComponentModel.ISupportInitialize)(this.radSplitContainerWrap)).BeginInit(); |
90 | 93 |
this.radSplitContainerWrap.SuspendLayout(); |
... | ... | |
100 | 103 |
// ID2ManagerRadRibbonBar |
101 | 104 |
// |
102 | 105 |
this.ID2ManagerRadRibbonBar.CommandTabs.AddRange(new Telerik.WinControls.RadItem[] { |
106 |
this.ribbonTabHome, |
|
103 | 107 |
this.ribbonTabProjMgt}); |
104 | 108 |
this.ID2ManagerRadRibbonBar.Location = new System.Drawing.Point(0, 0); |
105 | 109 |
this.ID2ManagerRadRibbonBar.Name = "ID2ManagerRadRibbonBar"; |
... | ... | |
110 | 114 |
// |
111 | 115 |
// ribbonTabProjMgt |
112 | 116 |
// |
113 |
this.ribbonTabProjMgt.IsSelected = true;
|
|
117 |
this.ribbonTabProjMgt.IsSelected = false;
|
|
114 | 118 |
this.ribbonTabProjMgt.Items.AddRange(new Telerik.WinControls.RadItem[] { |
115 |
this.radRibbonBarGroup1});
|
|
119 |
this.radRibbonBarGroupExcel});
|
|
116 | 120 |
this.ribbonTabProjMgt.Name = "ribbonTabProjMgt"; |
117 | 121 |
this.ribbonTabProjMgt.Text = "Project Manager"; |
118 | 122 |
this.ribbonTabProjMgt.UseMnemonic = false; |
119 | 123 |
// |
120 |
// radRibbonBarGroup1
|
|
124 |
// radRibbonBarGroupExcel
|
|
121 | 125 |
// |
122 |
this.radRibbonBarGroup1.Items.AddRange(new Telerik.WinControls.RadItem[] {
|
|
126 |
this.radRibbonBarGroupExcel.Items.AddRange(new Telerik.WinControls.RadItem[] {
|
|
123 | 127 |
this.radButtonElementExcelImport, |
124 | 128 |
this.radButtonElementExcelExport}); |
125 |
this.radRibbonBarGroup1.Name = "radRibbonBarGroup1";
|
|
126 |
this.radRibbonBarGroup1.Text = "Excel";
|
|
129 |
this.radRibbonBarGroupExcel.Name = "radRibbonBarGroupExcel";
|
|
130 |
this.radRibbonBarGroupExcel.Text = "Excel";
|
|
127 | 131 |
// |
128 | 132 |
// radButtonElementExcelImport |
129 | 133 |
// |
... | ... | |
165 | 169 |
// |
166 | 170 |
// |
167 | 171 |
this.splitPanelLeft.RootElement.MinSize = new System.Drawing.Size(25, 25); |
168 |
this.splitPanelLeft.Size = new System.Drawing.Size(892, 552);
|
|
169 |
this.splitPanelLeft.SizeInfo.AutoSizeScale = new System.Drawing.SizeF(0.2552921F, 0F);
|
|
170 |
this.splitPanelLeft.SizeInfo.SplitterCorrection = new System.Drawing.Size(302, 0);
|
|
172 |
this.splitPanelLeft.Size = new System.Drawing.Size(967, 552);
|
|
173 |
this.splitPanelLeft.SizeInfo.AutoSizeScale = new System.Drawing.SizeF(0.3187976F, 0F);
|
|
174 |
this.splitPanelLeft.SizeInfo.SplitterCorrection = new System.Drawing.Size(377, 0);
|
|
171 | 175 |
this.splitPanelLeft.TabIndex = 0; |
172 | 176 |
this.splitPanelLeft.TabStop = false; |
173 | 177 |
// |
... | ... | |
185 | 189 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 100F)); |
186 | 190 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
187 | 191 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); |
188 |
this.tableLayoutPanel1.Size = new System.Drawing.Size(892, 552);
|
|
192 |
this.tableLayoutPanel1.Size = new System.Drawing.Size(967, 552);
|
|
189 | 193 |
this.tableLayoutPanel1.TabIndex = 0; |
190 | 194 |
// |
191 | 195 |
// radGridViewDocuments |
... | ... | |
202 | 206 |
this.radGridViewDocuments.MasterTemplate.AllowSearchRow = true; |
203 | 207 |
this.radGridViewDocuments.MasterTemplate.AutoGenerateColumns = false; |
204 | 208 |
this.radGridViewDocuments.MasterTemplate.ChildViewTabsPosition = Telerik.WinControls.UI.TabPositions.Left; |
209 |
gridViewCommandColumn1.FieldName = "AutoCADLink"; |
|
205 | 210 |
gridViewCommandColumn1.HeaderText = "AutoCAD"; |
206 | 211 |
gridViewCommandColumn1.Name = "AutoCADLink"; |
207 | 212 |
gridViewCommandColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; |
208 | 213 |
gridViewCommandColumn1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
209 | 214 |
gridViewCommandColumn1.Width = 70; |
215 |
gridViewCommandColumn2.FieldName = "PDFLink"; |
|
210 | 216 |
gridViewCommandColumn2.HeaderText = "PDF"; |
211 | 217 |
gridViewCommandColumn2.ImageLayout = System.Windows.Forms.ImageLayout.Center; |
212 | 218 |
gridViewCommandColumn2.MaxWidth = 50; |
... | ... | |
214 | 220 |
gridViewCommandColumn2.Name = "PDFLink"; |
215 | 221 |
gridViewCommandColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; |
216 | 222 |
gridViewCommandColumn2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
223 |
gridViewCommandColumn3.FieldName = "MarkupLink"; |
|
217 | 224 |
gridViewCommandColumn3.HeaderText = "Markus"; |
218 | 225 |
gridViewCommandColumn3.Name = "MarkupLink"; |
219 | 226 |
gridViewCommandColumn3.Width = 70; |
227 |
gridViewCommandColumn4.FieldName = "AVEVALink"; |
|
220 | 228 |
gridViewCommandColumn4.HeaderText = "AVEVA"; |
221 | 229 |
gridViewCommandColumn4.Name = "AVEVALink"; |
222 | 230 |
gridViewCommandColumn4.Width = 70; |
... | ... | |
463 | 471 |
this.radGridViewDocuments.MasterTemplate.ViewDefinition = tableViewDefinition1; |
464 | 472 |
this.radGridViewDocuments.Name = "radGridViewDocuments"; |
465 | 473 |
this.radGridViewDocuments.ShowHeaderCellButtons = true; |
466 |
this.radGridViewDocuments.Size = new System.Drawing.Size(846, 396);
|
|
474 |
this.radGridViewDocuments.Size = new System.Drawing.Size(921, 396);
|
|
467 | 475 |
this.radGridViewDocuments.TabIndex = 0; |
468 | 476 |
// |
469 | 477 |
// splitPanelRight |
470 | 478 |
// |
471 |
this.splitPanelRight.Location = new System.Drawing.Point(896, 0);
|
|
479 |
this.splitPanelRight.Location = new System.Drawing.Point(971, 0);
|
|
472 | 480 |
this.splitPanelRight.Name = "splitPanelRight"; |
473 | 481 |
// |
474 | 482 |
// |
475 | 483 |
// |
476 | 484 |
this.splitPanelRight.RootElement.MinSize = new System.Drawing.Size(25, 25); |
477 |
this.splitPanelRight.Size = new System.Drawing.Size(289, 552);
|
|
478 |
this.splitPanelRight.SizeInfo.AutoSizeScale = new System.Drawing.SizeF(-0.2552921F, 0F);
|
|
479 |
this.splitPanelRight.SizeInfo.SplitterCorrection = new System.Drawing.Size(-302, 0);
|
|
485 |
this.splitPanelRight.Size = new System.Drawing.Size(214, 552);
|
|
486 |
this.splitPanelRight.SizeInfo.AutoSizeScale = new System.Drawing.SizeF(-0.3187976F, 0F);
|
|
487 |
this.splitPanelRight.SizeInfo.SplitterCorrection = new System.Drawing.Size(-377, 0);
|
|
480 | 488 |
this.splitPanelRight.TabIndex = 1; |
481 | 489 |
this.splitPanelRight.TabStop = false; |
482 | 490 |
// |
... | ... | |
489 | 497 |
this.radButtonElementImportPCWBS.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
490 | 498 |
this.radButtonElementImportPCWBS.UseCompatibleTextRendering = false; |
491 | 499 |
// |
500 |
// ribbonTabHome |
|
501 |
// |
|
502 |
this.ribbonTabHome.IsSelected = true; |
|
503 |
this.ribbonTabHome.Items.AddRange(new Telerik.WinControls.RadItem[] { |
|
504 |
this.radRibbonBarGroup1}); |
|
505 |
this.ribbonTabHome.Name = "ribbonTabHome"; |
|
506 |
this.ribbonTabHome.Text = "Home"; |
|
507 |
this.ribbonTabHome.UseMnemonic = false; |
|
508 |
// |
|
509 |
// radRibbonBarGroup1 |
|
510 |
// |
|
511 |
this.radRibbonBarGroup1.Items.AddRange(new Telerik.WinControls.RadItem[] { |
|
512 |
this.radButtonElementSave}); |
|
513 |
this.radRibbonBarGroup1.Name = "radRibbonBarGroup1"; |
|
514 |
this.radRibbonBarGroup1.Text = "Save"; |
|
515 |
// |
|
516 |
// radButtonElementSave |
|
517 |
// |
|
518 |
this.radButtonElementSave.Image = global::ID2.Manager.Properties.Resources.Save; |
|
519 |
this.radButtonElementSave.Name = "radButtonElementSave"; |
|
520 |
this.radButtonElementSave.Text = "Save"; |
|
521 |
this.radButtonElementSave.TextAlignment = System.Drawing.ContentAlignment.BottomCenter; |
|
522 |
this.radButtonElementSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
|
523 |
// |
|
492 | 524 |
// Main |
493 | 525 |
// |
494 | 526 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |
... | ... | |
525 | 557 |
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; |
526 | 558 |
private Telerik.WinControls.UI.RibbonTab ribbonTabProjMgt; |
527 | 559 |
private Telerik.WinControls.UI.RadButtonElement radButtonElementImportPCWBS; |
528 |
private Telerik.WinControls.UI.RadRibbonBarGroup radRibbonBarGroup1;
|
|
560 |
private Telerik.WinControls.UI.RadRibbonBarGroup radRibbonBarGroupExcel;
|
|
529 | 561 |
private Telerik.WinControls.UI.RadButtonElement radButtonElementExcelImport; |
530 | 562 |
private Telerik.WinControls.UI.RadButtonElement radButtonElementExcelExport; |
563 |
private Telerik.WinControls.UI.RibbonTab ribbonTabHome; |
|
564 |
private Telerik.WinControls.UI.RadRibbonBarGroup radRibbonBarGroup1; |
|
565 |
private Telerik.WinControls.UI.RadButtonElement radButtonElementSave; |
|
531 | 566 |
} |
532 | 567 |
} |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
31 | 31 |
SpreadsheetInfo.SetLicense(Properties.Settings.Default.GemBoxLicense); |
32 | 32 |
|
33 | 33 |
this.Load += Main_Load; |
34 |
this.radButtonElementSave.Click += RadButtonElementSave_Click; |
|
34 | 35 |
this.radButtonElementExcelImport.Click += RadButtonElementExcelImport_Click; |
35 | 36 |
this.radButtonElementExcelExport.Click += RadButtonElementExcelExport_Click; |
36 | 37 |
this.radGridViewDocuments.ViewCellFormatting += RadGridViewDocuments_ViewCellFormatting; |
37 | 38 |
this.radGridViewDocuments.CellBeginEdit += RadGridViewDocuments_CellBeginEdit; |
38 | 39 |
this.radGridViewDocuments.CommandCellClick += RadGridViewDocuments_CommandCellClick; |
39 | 40 |
|
41 |
this.radGridViewDocuments.MasterView.TableHeaderRow.MinHeight = 36; |
|
42 |
this.radGridViewDocuments.TableElement.RowHeaderColumnWidth = 36; |
|
43 |
|
|
40 | 44 |
this.InitColumnGroupsViewDefinition(this.radGridViewDocuments); |
41 | 45 |
} |
42 | 46 |
|
47 |
private void Main_Load(object sender, EventArgs e) |
|
48 |
{ |
|
49 |
this.GetDocList(); |
|
50 |
} |
|
51 |
|
|
52 |
public void GetDocList() |
|
53 |
{ |
|
54 |
IEnumerable<Documents> docList = new DocumentController().GetAllDocuments(); |
|
55 |
this.radGridViewDocuments.DataSource = docList; |
|
56 |
|
|
57 |
BeginInvoke(new Action(() => |
|
58 |
{ |
|
59 |
if (this.radGridViewDocuments.DataSource != null) |
|
60 |
this.radGridViewDocuments.DataSource = null; |
|
61 |
|
|
62 |
this.radGridViewDocuments.DataSource = docList; |
|
63 |
})); |
|
64 |
} |
|
65 |
|
|
43 | 66 |
private void RadGridViewDocuments_CommandCellClick(object sender, GridViewCellEventArgs e) |
44 | 67 |
{ |
45 |
switch (e.Column.Name)
|
|
68 |
if (e.Row is GridViewNewRowInfo)
|
|
46 | 69 |
{ |
47 |
case "AutoCADLink": |
|
48 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
49 |
break; |
|
50 |
case "PDFLink": |
|
51 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
52 |
break; |
|
53 |
case "MarkupLink": |
|
54 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
55 |
break; |
|
56 |
case "AVEVALink": |
|
57 |
case "AVEVAConnection": |
|
58 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
59 |
break; |
|
60 |
case "ReviewFileName"://일단주석 |
|
61 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
62 |
break; |
|
63 |
case "SystemLink": |
|
64 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
65 |
break; |
|
66 |
case "ToCapturePath": |
|
67 |
case "FrCapturePath": |
|
68 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
69 |
break; |
|
70 |
case "ID2Connection": |
|
71 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
72 |
break; |
|
70 |
|
|
71 |
} |
|
72 |
else |
|
73 |
{ |
|
74 |
switch (e.Column.Name) |
|
75 |
{ |
|
76 |
case "AutoCADLink": |
|
77 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
78 |
break; |
|
79 |
case "PDFLink": |
|
80 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
81 |
break; |
|
82 |
case "MarkupLink": |
|
83 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
84 |
break; |
|
85 |
case "AVEVALink": |
|
86 |
case "AVEVAConnection": |
|
87 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
88 |
break; |
|
89 |
case "ReviewFileName"://일단주석 |
|
90 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
91 |
break; |
|
92 |
case "SystemLink": |
|
93 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
94 |
break; |
|
95 |
case "ToCapturePath": |
|
96 |
case "FrCapturePath": |
|
97 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
98 |
break; |
|
99 |
case "ID2Connection": |
|
100 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
101 |
break; |
|
102 |
} |
|
73 | 103 |
} |
74 | 104 |
} |
75 | 105 |
|
... | ... | |
105 | 135 |
break; |
106 | 136 |
case "ProdIsResult": |
107 | 137 |
case "ClientIsResult": |
108 |
//GridViewComboBoxColumn ColResult = this.radGridViewDocuments.Columns[e.Column.Name] as GridViewComboBoxColumn;
|
|
109 |
//ColResult.DataSource = informations.ValidationResult;
|
|
138 |
GridViewComboBoxColumn ColResult = this.radGridViewDocuments.Columns[e.Column.Name] as GridViewComboBoxColumn; |
|
139 |
ColResult.DataSource = (new string[] { string.Empty }).Union<string>(informations.ValidationResult);
|
|
110 | 140 |
break; |
111 | 141 |
} |
112 | 142 |
} |
... | ... | |
114 | 144 |
|
115 | 145 |
private void RadGridViewDocuments_ViewCellFormatting(object sender, CellFormattingEventArgs e) |
116 | 146 |
{ |
117 |
RadButtonElement GetBtnElement(RadElement elem, string colName)
|
|
147 |
if (e.CellElement is GridRowHeaderCellElement)
|
|
118 | 148 |
{ |
119 |
RadButtonElement btnElem = null; |
|
120 |
Bitmap bitmap = null; ; |
|
121 |
|
|
122 |
switch (colName) |
|
123 |
{ |
|
124 |
case "AutoCADLink": |
|
125 |
bitmap = new Bitmap(Properties.Resources.cad18); |
|
126 |
break; |
|
127 |
case "PDFLink": |
|
128 |
bitmap = new Bitmap(Properties.Resources.pdf18); |
|
129 |
break; |
|
130 |
case "MarkupLink": |
|
131 |
bitmap = new Bitmap(Properties.Resources.link18_green); |
|
132 |
break; |
|
133 |
case "AVEVALink": |
|
134 |
case "AVEVAConnection": |
|
135 |
bitmap = new Bitmap(Properties.Resources.link18_blue); |
|
136 |
break; |
|
137 |
case "ReviewFileName"://일단주석 |
|
138 |
bitmap = new Bitmap(Properties.Resources.pdf18); |
|
139 |
break; |
|
140 |
case "SystemLink": |
|
141 |
bitmap = new Bitmap(Properties.Resources.link18_yellow); |
|
142 |
break; |
|
143 |
case "ToCapturePath": |
|
144 |
case "FrCapturePath": |
|
145 |
bitmap = new Bitmap(Properties.Resources.files18); |
|
146 |
break; |
|
147 |
case "ID2Connection": |
|
148 |
bitmap = new Bitmap(Properties.Resources.link18_purple); |
|
149 |
break; |
|
150 |
} |
|
151 |
|
|
152 |
switch (colName) |
|
149 |
e.CellElement.Text = (e.CellElement.RowIndex + 1).ToString(); |
|
150 |
} |
|
151 |
else if (e.Row is GridViewNewRowInfo) |
|
152 |
{ |
|
153 |
switch (e.CellElement.ColumnInfo.Name) |
|
153 | 154 |
{ |
154 | 155 |
case "AutoCADLink": |
155 | 156 |
case "PDFLink": |
... | ... | |
161 | 162 |
case "ToCapturePath": |
162 | 163 |
case "FrCapturePath": |
163 | 164 |
case "ID2Connection": |
164 |
btnElem = (RadButtonElement)elem; |
|
165 |
btnElem.Margin = new Padding(0); |
|
166 |
btnElem.Padding = new Padding(0); |
|
167 |
btnElem.BorderElement.Opacity = 0; |
|
168 |
btnElem.Alignment = ContentAlignment.MiddleCenter; |
|
169 |
btnElem.DisplayStyle = DisplayStyle.Image; |
|
170 |
btnElem.Image = bitmap; |
|
171 |
btnElem.ImageAlignment = ContentAlignment.MiddleCenter; |
|
172 |
btnElem.MaxSize = bitmap.Size; |
|
165 |
this.GetCommandColBtnElement(e.CellElement.Children[0], e.CellElement.ColumnInfo.Name); |
|
173 | 166 |
break; |
174 | 167 |
} |
175 |
|
|
176 |
return btnElem; |
|
177 |
} |
|
178 |
|
|
179 |
if (e.CellElement is GridRowHeaderCellElement) |
|
180 |
{ |
|
181 |
e.CellElement.Text = (e.CellElement.RowIndex + 1).ToString(); |
|
182 | 168 |
} |
183 | 169 |
else |
184 | 170 |
{ |
... | ... | |
197 | 183 |
case "ToCapturePath": |
198 | 184 |
case "FrCapturePath": |
199 | 185 |
case "ID2Connection": |
200 |
GetBtnElement(e.CellElement.Children[0], e.CellElement.ColumnInfo.Name);
|
|
186 |
this.GetCommandColBtnElement(e.CellElement.Children[0], e.CellElement.ColumnInfo.Name);
|
|
201 | 187 |
break; |
202 | 188 |
} |
203 | 189 |
} |
204 | 190 |
} |
205 | 191 |
} |
206 | 192 |
|
193 |
private RadButtonElement GetCommandColBtnElement(RadElement elem, string colName) |
|
194 |
{ |
|
195 |
RadButtonElement btnElem = null; |
|
196 |
Bitmap bitmap = null; ; |
|
197 |
|
|
198 |
switch (colName) |
|
199 |
{ |
|
200 |
case "AutoCADLink": |
|
201 |
bitmap = new Bitmap(Properties.Resources.cad18); |
|
202 |
break; |
|
203 |
case "PDFLink": |
|
204 |
bitmap = new Bitmap(Properties.Resources.pdf18); |
|
205 |
break; |
|
206 |
case "MarkupLink": |
|
207 |
bitmap = new Bitmap(Properties.Resources.link18_green); |
|
208 |
break; |
|
209 |
case "AVEVALink": |
|
210 |
case "AVEVAConnection": |
|
211 |
bitmap = new Bitmap(Properties.Resources.link18_blue); |
|
212 |
break; |
|
213 |
case "ReviewFileName"://일단주석 |
|
214 |
bitmap = new Bitmap(Properties.Resources.pdf18); |
|
215 |
break; |
|
216 |
case "SystemLink": |
|
217 |
bitmap = new Bitmap(Properties.Resources.link18_yellow); |
|
218 |
break; |
|
219 |
case "ToCapturePath": |
|
220 |
case "FrCapturePath": |
|
221 |
bitmap = new Bitmap(Properties.Resources.files18); |
|
222 |
break; |
|
223 |
case "ID2Connection": |
|
224 |
bitmap = new Bitmap(Properties.Resources.link18_purple); |
|
225 |
break; |
|
226 |
} |
|
227 |
|
|
228 |
switch (colName) |
|
229 |
{ |
|
230 |
case "AutoCADLink": |
|
231 |
case "PDFLink": |
|
232 |
case "MarkupLink": |
|
233 |
case "AVEVALink": |
|
234 |
case "AVEVAConnection": |
|
235 |
case "ReviewFileName"://일단주석 |
|
236 |
case "SystemLink": |
|
237 |
case "ToCapturePath": |
|
238 |
case "FrCapturePath": |
|
239 |
case "ID2Connection": |
|
240 |
btnElem = (RadButtonElement)elem; |
|
241 |
btnElem.Margin = new Padding(0); |
|
242 |
btnElem.Padding = new Padding(0); |
|
243 |
btnElem.BorderElement.Opacity = 0; |
|
244 |
btnElem.Alignment = ContentAlignment.MiddleCenter; |
|
245 |
btnElem.DisplayStyle = DisplayStyle.Image; |
|
246 |
btnElem.Image = bitmap; |
|
247 |
btnElem.ImageAlignment = ContentAlignment.MiddleCenter; |
|
248 |
btnElem.MaxSize = bitmap.Size; |
|
249 |
break; |
|
250 |
} |
|
251 |
|
|
252 |
return btnElem; |
|
253 |
} |
|
254 |
|
|
207 | 255 |
#region Excel |
208 | 256 |
private void RadButtonElementExcelImport_Click(object sender, EventArgs e) |
209 | 257 |
{ |
... | ... | |
229 | 277 |
int columnCount = ws.CalculateMaxUsedColumns(); |
230 | 278 |
|
231 | 279 |
#region Excel 유효성검사 |
232 |
if (rowCount <= 4 || columnCount != 6)
|
|
280 |
if (rowCount <= 10 || columnCount != 45)
|
|
233 | 281 |
{ |
234 | 282 |
RadMessageBox.Show("Please, check the excel.\n", "Information", System.Windows.Forms.MessageBoxButtons.OK, RadMessageIcon.Info); |
235 | 283 |
return; |
236 | 284 |
} |
237 | 285 |
|
238 |
ws.Rows.SelectMany(row => row.AllocatedCells).Where(col => col.Column.Index > 0 && col.Row.Index > 4 && col.Value == null).ToList().ForEach(p => sbErrMsg.Append(", " + p.Column.Name + p.Row.Name));
|
|
286 |
ws.Rows.SelectMany(row => row.AllocatedCells).Where(col => col.Column.Index > 4 && col.Row.Index > 11 && col.Value == null).ToList().ForEach(p => sbErrMsg.Append(", " + p.Column.Name + p.Row.Name));
|
|
239 | 287 |
if (sbErrMsg.Length > 0) |
240 | 288 |
{ |
241 | 289 |
RadMessageBox.Show("Please, check null value in excel.\n" + sbErrMsg.ToString().Substring(2), "Information", System.Windows.Forms.MessageBoxButtons.OK, RadMessageIcon.Info); |
... | ... | |
243 | 291 |
} |
244 | 292 |
|
245 | 293 |
ws.Rows.SelectMany(row => row.AllocatedCells) |
246 |
.Where(col => col.Column.Index > 0 && col.Row.Index > 4)
|
|
294 |
.Where(col => col.Column.Index > 4 && col.Row.Index > 11)
|
|
247 | 295 |
.GroupBy(g => g.Row.Index) |
248 | 296 |
.Select(p => new { |
249 | 297 |
rIndex = p.Key, |
... | ... | |
370 | 418 |
} |
371 | 419 |
#endregion |
372 | 420 |
|
373 |
private void Main_Load(object sender, EventArgs e)
|
|
421 |
private void RadButtonElementSave_Click(object sender, EventArgs e)
|
|
374 | 422 |
{ |
375 |
this.GetDocList();
|
|
423 |
//저장
|
|
376 | 424 |
} |
377 | 425 |
|
378 |
public void GetDocList() |
|
379 |
{ |
|
380 |
IEnumerable<Documents> docList = new DocumentController().GetAllDocuments(); |
|
381 |
this.radGridViewDocuments.DataSource = docList; |
|
382 |
|
|
383 |
BeginInvoke(new Action(() => |
|
384 |
{ |
|
385 |
this.radGridViewDocuments.DataSource = null; |
|
386 |
this.radGridViewDocuments.DataSource = docList; |
|
387 |
})); |
|
388 |
} |
|
389 |
|
|
390 | 426 |
#region ColumnGroup |
391 | 427 |
private void InitColumnGroupsViewDefinition(RadGridView gridView) |
392 | 428 |
{ |
... | ... | |
404 | 440 |
List<string> valCntColNames = new List<string>() { "ClientReviewer", "ClientIsResult", "ClientRemarks" }; |
405 | 441 |
List<string> dtColNames = new List<string>() { "DTIsGateWay", "DTIsImport", "DTIsRegSystem", "DTRemarks" }; |
406 | 442 |
|
407 |
|
|
408 | 443 |
//도면 |
409 | 444 |
GridViewColumnGroup docColGrp = new GridViewColumnGroup("도면"); |
410 | 445 |
GridViewColumnGroup docLinkColGrp = new GridViewColumnGroup("파일링크"); |
ID2.Manager/ID2.Manager/Properties/Resources.Designer.cs | ||
---|---|---|
159 | 159 |
return ((System.Drawing.Bitmap)(obj)); |
160 | 160 |
} |
161 | 161 |
} |
162 |
|
|
163 |
/// <summary> |
|
164 |
/// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다. |
|
165 |
/// </summary> |
|
166 |
internal static System.Drawing.Bitmap Save { |
|
167 |
get { |
|
168 |
object obj = ResourceManager.GetObject("Save", resourceCulture); |
|
169 |
return ((System.Drawing.Bitmap)(obj)); |
|
170 |
} |
|
171 |
} |
|
162 | 172 |
} |
163 | 173 |
} |
ID2.Manager/ID2.Manager/Properties/Resources.resx | ||
---|---|---|
148 | 148 |
<data name="pdf18" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
149 | 149 |
<value>..\Resources\pdf18.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
150 | 150 |
</data> |
151 |
<data name="Save" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
|
152 |
<value>..\Resources\Save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
|
153 |
</data> |
|
151 | 154 |
</root> |
ID2.Manager/ID2.Manager/Properties/Settings.Designer.cs | ||
---|---|---|
35 | 35 |
this["GemBoxLicense"] = value; |
36 | 36 |
} |
37 | 37 |
} |
38 |
|
|
39 |
[global::System.Configuration.UserScopedSettingAttribute()] |
|
40 |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
41 |
[global::System.Configuration.DefaultSettingValueAttribute("")] |
|
42 |
public string UserInfo { |
|
43 |
get { |
|
44 |
return ((string)(this["UserInfo"])); |
|
45 |
} |
|
46 |
set { |
|
47 |
this["UserInfo"] = value; |
|
48 |
} |
|
49 |
} |
|
38 | 50 |
} |
39 | 51 |
} |
ID2.Manager/ID2.Manager/Properties/Settings.settings | ||
---|---|---|
5 | 5 |
<Setting Name="GemBoxLicense" Type="System.String" Scope="User"> |
6 | 6 |
<Value Profile="(Default)">SN-2021May25-IPYYaC5T2J/LIzFImndeajkkMS/Fn1fLWGfjRRxTNu/uan2hm9KrTK/v9hdsQfLCOuUeMZXrEHCPsmS7Pnp4YGIGsOw==A</Value> |
7 | 7 |
</Setting> |
8 |
<Setting Name="UserInfo" Type="System.String" Scope="User"> |
|
9 |
<Value Profile="(Default)" /> |
|
10 |
</Setting> |
|
8 | 11 |
</Settings> |
9 | 12 |
</SettingsFile> |
내보내기 Unified diff