개정판 91e72bfe
issue #0000
유저등록 개발진행
Change-Id: I493f5ed73f8e1c797dc6889e463a5b6afee4c80f
ID2.Manager/ID2.Manager.Controller/Controllers/BaseController.cs | ||
---|---|---|
5 | 5 |
using System.Threading.Tasks; |
6 | 6 |
|
7 | 7 |
using System.Configuration; |
8 |
using System.IO; |
|
8 | 9 |
|
9 | 10 |
using ID2.Manager.Dapper; |
10 | 11 |
using ID2.Manager.Data.Models; |
... | ... | |
25 | 26 |
public BaseController(ID2ProjectInfo id2Info) |
26 | 27 |
{ |
27 | 28 |
this._MSSQLCONNSTR = ConfigurationManager.ConnectionStrings["ID2Manager"].ConnectionString; |
28 |
this._SQLITECONNSTR = String.Format(ConfigurationManager.AppSettings["ID2SQLite"], System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ConfigurationManager.AppSettings["ID2SQLiteInfo"]));
|
|
29 |
this._SQLITECONNSTR = String.Format(ConfigurationManager.AppSettings["ID2SQLite"], Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ConfigurationManager.AppSettings["ID2SQLiteInfo"])); |
|
29 | 30 |
this._MARKUSCONNSTR = ConfigurationManager.ConnectionStrings["Markus"].ToString(); |
30 | 31 |
|
31 |
if (id2Info != null) |
|
32 |
if (id2Info == null || id2Info.Id <= 0) |
|
33 |
{ |
|
34 |
this._ID2CONNSTR = string.Empty; |
|
35 |
} |
|
36 |
else |
|
32 | 37 |
{ |
33 | 38 |
DatabaseType DBType = (DatabaseType)Enum.Parse(typeof(DatabaseType), id2Info.DBTypeName.ToUpper()); |
34 | 39 |
switch (DBType) |
ID2.Manager/ID2.Manager.Controller/Controllers/DocumentController.cs | ||
---|---|---|
12 | 12 |
{ |
13 | 13 |
public class DocumentController : BaseController |
14 | 14 |
{ |
15 |
public DocumentController() { } |
|
15 |
public DocumentController() : base() { }
|
|
16 | 16 |
|
17 | 17 |
public DocumentController(ID2ProjectInfo id2Info) : base(id2Info) { } |
18 | 18 |
|
ID2.Manager/ID2.Manager.Controller/Controllers/UserController.cs | ||
---|---|---|
13 | 13 |
{ |
14 | 14 |
public IEnumerable<UserInfo> GetAllUserInfo() |
15 | 15 |
{ |
16 |
using (UserRepository rep = new UserRepository(this._MSSQLCONNSTR)) |
|
16 |
IEnumerable<UserInfo> ret = null; |
|
17 |
|
|
18 |
try |
|
19 |
{ |
|
20 |
using (UserRepository rep = new UserRepository(this._MSSQLCONNSTR)) |
|
21 |
{ |
|
22 |
ret = rep.GetAllUserInfo(); |
|
23 |
} |
|
24 |
} |
|
25 |
catch (Exception ex) |
|
17 | 26 |
{ |
18 |
return rep.GetAllUserInfo();
|
|
27 |
throw ex;
|
|
19 | 28 |
} |
29 |
|
|
30 |
return ret; |
|
20 | 31 |
} |
21 | 32 |
|
22 | 33 |
public UserInfo GetUserInfo(string userId, string userPW) |
23 | 34 |
{ |
24 |
using (UserRepository rep = new UserRepository(this._MSSQLCONNSTR)) |
|
35 |
UserInfo ret = null; |
|
36 |
|
|
37 |
try |
|
25 | 38 |
{ |
26 |
return rep.GetUserInfo(userId, userPW); |
|
39 |
using (UserRepository rep = new UserRepository(this._MSSQLCONNSTR)) |
|
40 |
{ |
|
41 |
ret = rep.GetUserInfo(userId, userPW); |
|
42 |
} |
|
27 | 43 |
} |
44 |
catch (Exception ex) |
|
45 |
{ |
|
46 |
throw ex; |
|
47 |
} |
|
48 |
|
|
49 |
return ret; |
|
50 |
} |
|
51 |
|
|
52 |
public bool SetUserInfo(UserInfo userInfo) |
|
53 |
{ |
|
54 |
bool ret = false; |
|
55 |
|
|
56 |
try |
|
57 |
{ |
|
58 |
using (UserRepository rep = new UserRepository(this._MSSQLCONNSTR)) |
|
59 |
{ |
|
60 |
ret = rep.SetUserInfo(userInfo); |
|
61 |
} |
|
62 |
} |
|
63 |
catch(Exception ex) |
|
64 |
{ |
|
65 |
throw ex; |
|
66 |
} |
|
67 |
|
|
68 |
return ret; |
|
28 | 69 |
} |
29 | 70 |
} |
30 | 71 |
} |
ID2.Manager/ID2.Manager.Dapper/Repository/UserRepository.cs | ||
---|---|---|
25 | 25 |
|
26 | 26 |
return Query<UserInfo>(query, new { userId, userPW }).FirstOrDefault(); |
27 | 27 |
} |
28 |
|
|
29 |
public bool SetUserInfo(UserInfo userInfo) |
|
30 |
{ |
|
31 |
bool isSuccess = false; |
|
32 |
|
|
33 |
try |
|
34 |
{ |
|
35 |
using (var transaction = base.BeginTransaction()) |
|
36 |
{ |
|
37 |
string query = string.Empty; |
|
38 |
|
|
39 |
if (userInfo.UID == null) |
|
40 |
{ |
|
41 |
query = $@" |
|
42 |
insert into dbo.Users([UID], ID, [Name], RefProjectID, [Password], [Role]) |
|
43 |
values (lower(newid()), @ID, @Name, @RefProjectID, @Password, @Role);"; |
|
44 |
} |
|
45 |
else |
|
46 |
{ |
|
47 |
query = $@" |
|
48 |
update dbo.Users |
|
49 |
set Password=@Password |
|
50 |
,Role=@Role |
|
51 |
where [UID]=@UID;"; |
|
52 |
} |
|
53 |
|
|
54 |
Execute(query, userInfo, transaction); |
|
55 |
} |
|
56 |
} |
|
57 |
catch (Exception ex) |
|
58 |
{ |
|
59 |
throw ex; |
|
60 |
} |
|
61 |
|
|
62 |
return isSuccess; |
|
63 |
} |
|
28 | 64 |
} |
29 | 65 |
} |
ID2.Manager/ID2.Manager/Forms/AddUser.Designer.cs | ||
---|---|---|
1 |
|
|
2 |
namespace ID2.Manager.Forms |
|
3 |
{ |
|
4 |
partial class AddUser |
|
5 |
{ |
|
6 |
/// <summary> |
|
7 |
/// Required designer variable. |
|
8 |
/// </summary> |
|
9 |
private System.ComponentModel.IContainer components = null; |
|
10 |
|
|
11 |
/// <summary> |
|
12 |
/// Clean up any resources being used. |
|
13 |
/// </summary> |
|
14 |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
15 |
protected override void Dispose(bool disposing) |
|
16 |
{ |
|
17 |
if (disposing && (components != null)) |
|
18 |
{ |
|
19 |
components.Dispose(); |
|
20 |
} |
|
21 |
base.Dispose(disposing); |
|
22 |
} |
|
23 |
|
|
24 |
#region Windows Form Designer generated code |
|
25 |
|
|
26 |
/// <summary> |
|
27 |
/// Required method for Designer support - do not modify |
|
28 |
/// the contents of this method with the code editor. |
|
29 |
/// </summary> |
|
30 |
private void InitializeComponent() |
|
31 |
{ |
|
32 |
this.radThemeManager1 = new Telerik.WinControls.RadThemeManager(); |
|
33 |
this.radTextBoxConfirm = new Telerik.WinControls.UI.RadTextBox(); |
|
34 |
this.radLabelConfirm = new Telerik.WinControls.UI.RadLabel(); |
|
35 |
this.radLabelPassword = new Telerik.WinControls.UI.RadLabel(); |
|
36 |
this.radLabelProject = new Telerik.WinControls.UI.RadLabel(); |
|
37 |
this.radLabelUserID = new Telerik.WinControls.UI.RadLabel(); |
|
38 |
this.radLabelUserName = new Telerik.WinControls.UI.RadLabel(); |
|
39 |
this.radTextBoxUserID = new Telerik.WinControls.UI.RadTextBox(); |
|
40 |
this.radTextBoxUserName = new Telerik.WinControls.UI.RadTextBox(); |
|
41 |
this.radLabelRole = new Telerik.WinControls.UI.RadLabel(); |
|
42 |
this.radDropDownListRole = new Telerik.WinControls.UI.RadDropDownList(); |
|
43 |
this.radDropDownListProject = new Telerik.WinControls.UI.RadDropDownList(); |
|
44 |
this.radTextBoxPassword = new Telerik.WinControls.UI.RadTextBox(); |
|
45 |
this.tableLayoutPanelWrap = new System.Windows.Forms.TableLayoutPanel(); |
|
46 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxConfirm)).BeginInit(); |
|
47 |
((System.ComponentModel.ISupportInitialize)(this.radLabelConfirm)).BeginInit(); |
|
48 |
((System.ComponentModel.ISupportInitialize)(this.radLabelPassword)).BeginInit(); |
|
49 |
((System.ComponentModel.ISupportInitialize)(this.radLabelProject)).BeginInit(); |
|
50 |
((System.ComponentModel.ISupportInitialize)(this.radLabelUserID)).BeginInit(); |
|
51 |
((System.ComponentModel.ISupportInitialize)(this.radLabelUserName)).BeginInit(); |
|
52 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxUserID)).BeginInit(); |
|
53 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxUserName)).BeginInit(); |
|
54 |
((System.ComponentModel.ISupportInitialize)(this.radLabelRole)).BeginInit(); |
|
55 |
((System.ComponentModel.ISupportInitialize)(this.radDropDownListRole)).BeginInit(); |
|
56 |
((System.ComponentModel.ISupportInitialize)(this.radDropDownListProject)).BeginInit(); |
|
57 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxPassword)).BeginInit(); |
|
58 |
this.tableLayoutPanelWrap.SuspendLayout(); |
|
59 |
((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); |
|
60 |
this.SuspendLayout(); |
|
61 |
// |
|
62 |
// radTextBoxConfirm |
|
63 |
// |
|
64 |
this.radTextBoxConfirm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
65 |
this.radTextBoxConfirm.Location = new System.Drawing.Point(103, 182); |
|
66 |
this.radTextBoxConfirm.Name = "radTextBoxConfirm"; |
|
67 |
this.radTextBoxConfirm.PasswordChar = '*'; |
|
68 |
this.radTextBoxConfirm.Size = new System.Drawing.Size(174, 20); |
|
69 |
this.radTextBoxConfirm.TabIndex = 13; |
|
70 |
// |
|
71 |
// radLabelConfirm |
|
72 |
// |
|
73 |
this.radLabelConfirm.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
74 |
this.radLabelConfirm.Location = new System.Drawing.Point(23, 183); |
|
75 |
this.radLabelConfirm.Name = "radLabelConfirm"; |
|
76 |
this.radLabelConfirm.Size = new System.Drawing.Size(66, 18); |
|
77 |
this.radLabelConfirm.TabIndex = 9; |
|
78 |
this.radLabelConfirm.Text = "Confirm PW"; |
|
79 |
// |
|
80 |
// radLabelPassword |
|
81 |
// |
|
82 |
this.radLabelPassword.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
83 |
this.radLabelPassword.Location = new System.Drawing.Point(23, 148); |
|
84 |
this.radLabelPassword.Name = "radLabelPassword"; |
|
85 |
this.radLabelPassword.Size = new System.Drawing.Size(53, 18); |
|
86 |
this.radLabelPassword.TabIndex = 8; |
|
87 |
this.radLabelPassword.Text = "Password"; |
|
88 |
// |
|
89 |
// radLabelProject |
|
90 |
// |
|
91 |
this.radLabelProject.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
92 |
this.radLabelProject.Location = new System.Drawing.Point(23, 113); |
|
93 |
this.radLabelProject.Name = "radLabelProject"; |
|
94 |
this.radLabelProject.Size = new System.Drawing.Size(41, 18); |
|
95 |
this.radLabelProject.TabIndex = 7; |
|
96 |
this.radLabelProject.Text = "Project"; |
|
97 |
// |
|
98 |
// radLabelUserID |
|
99 |
// |
|
100 |
this.radLabelUserID.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
101 |
this.radLabelUserID.Location = new System.Drawing.Point(23, 8); |
|
102 |
this.radLabelUserID.Name = "radLabelUserID"; |
|
103 |
this.radLabelUserID.Size = new System.Drawing.Size(17, 18); |
|
104 |
this.radLabelUserID.TabIndex = 0; |
|
105 |
this.radLabelUserID.Text = "ID"; |
|
106 |
// |
|
107 |
// radLabelUserName |
|
108 |
// |
|
109 |
this.radLabelUserName.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
110 |
this.radLabelUserName.Location = new System.Drawing.Point(23, 43); |
|
111 |
this.radLabelUserName.Name = "radLabelUserName"; |
|
112 |
this.radLabelUserName.Size = new System.Drawing.Size(36, 18); |
|
113 |
this.radLabelUserName.TabIndex = 1; |
|
114 |
this.radLabelUserName.Text = "Name"; |
|
115 |
// |
|
116 |
// radTextBoxUserID |
|
117 |
// |
|
118 |
this.radTextBoxUserID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
119 |
this.radTextBoxUserID.Location = new System.Drawing.Point(103, 7); |
|
120 |
this.radTextBoxUserID.Name = "radTextBoxUserID"; |
|
121 |
this.radTextBoxUserID.Size = new System.Drawing.Size(174, 20); |
|
122 |
this.radTextBoxUserID.TabIndex = 2; |
|
123 |
// |
|
124 |
// radTextBoxUserName |
|
125 |
// |
|
126 |
this.radTextBoxUserName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
127 |
this.radTextBoxUserName.Location = new System.Drawing.Point(103, 42); |
|
128 |
this.radTextBoxUserName.Name = "radTextBoxUserName"; |
|
129 |
this.radTextBoxUserName.Size = new System.Drawing.Size(174, 20); |
|
130 |
this.radTextBoxUserName.TabIndex = 3; |
|
131 |
// |
|
132 |
// radLabelRole |
|
133 |
// |
|
134 |
this.radLabelRole.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|
135 |
this.radLabelRole.Location = new System.Drawing.Point(23, 78); |
|
136 |
this.radLabelRole.Name = "radLabelRole"; |
|
137 |
this.radLabelRole.Size = new System.Drawing.Size(28, 18); |
|
138 |
this.radLabelRole.TabIndex = 6; |
|
139 |
this.radLabelRole.Text = "Role"; |
|
140 |
// |
|
141 |
// radDropDownListRole |
|
142 |
// |
|
143 |
this.radDropDownListRole.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
144 |
this.radDropDownListRole.DropDownAnimationEnabled = true; |
|
145 |
this.radDropDownListRole.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; |
|
146 |
this.radDropDownListRole.Location = new System.Drawing.Point(103, 77); |
|
147 |
this.radDropDownListRole.Name = "radDropDownListRole"; |
|
148 |
this.radDropDownListRole.Size = new System.Drawing.Size(174, 20); |
|
149 |
this.radDropDownListRole.TabIndex = 10; |
|
150 |
// |
|
151 |
// radDropDownListProject |
|
152 |
// |
|
153 |
this.radDropDownListProject.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
154 |
this.radDropDownListProject.DropDownAnimationEnabled = true; |
|
155 |
this.radDropDownListProject.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; |
|
156 |
this.radDropDownListProject.Location = new System.Drawing.Point(103, 112); |
|
157 |
this.radDropDownListProject.Name = "radDropDownListProject"; |
|
158 |
this.radDropDownListProject.Size = new System.Drawing.Size(174, 20); |
|
159 |
this.radDropDownListProject.TabIndex = 11; |
|
160 |
// |
|
161 |
// radTextBoxPassword |
|
162 |
// |
|
163 |
this.radTextBoxPassword.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
164 |
this.radTextBoxPassword.Location = new System.Drawing.Point(103, 147); |
|
165 |
this.radTextBoxPassword.Name = "radTextBoxPassword"; |
|
166 |
this.radTextBoxPassword.PasswordChar = '*'; |
|
167 |
this.radTextBoxPassword.Size = new System.Drawing.Size(174, 20); |
|
168 |
this.radTextBoxPassword.TabIndex = 12; |
|
169 |
// |
|
170 |
// tableLayoutPanelWrap |
|
171 |
// |
|
172 |
this.tableLayoutPanelWrap.ColumnCount = 4; |
|
173 |
this.tableLayoutPanelWrap.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); |
|
174 |
this.tableLayoutPanelWrap.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F)); |
|
175 |
this.tableLayoutPanelWrap.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F)); |
|
176 |
this.tableLayoutPanelWrap.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); |
|
177 |
this.tableLayoutPanelWrap.Controls.Add(this.radTextBoxConfirm, 2, 5); |
|
178 |
this.tableLayoutPanelWrap.Controls.Add(this.radLabelConfirm, 1, 5); |
|
179 |
this.tableLayoutPanelWrap.Controls.Add(this.radLabelPassword, 1, 4); |
|
180 |
this.tableLayoutPanelWrap.Controls.Add(this.radLabelProject, 1, 3); |
|
181 |
this.tableLayoutPanelWrap.Controls.Add(this.radLabelUserID, 1, 0); |
|
182 |
this.tableLayoutPanelWrap.Controls.Add(this.radLabelUserName, 1, 1); |
|
183 |
this.tableLayoutPanelWrap.Controls.Add(this.radTextBoxUserID, 2, 0); |
|
184 |
this.tableLayoutPanelWrap.Controls.Add(this.radTextBoxUserName, 2, 1); |
|
185 |
this.tableLayoutPanelWrap.Controls.Add(this.radLabelRole, 1, 2); |
|
186 |
this.tableLayoutPanelWrap.Controls.Add(this.radDropDownListRole, 2, 2); |
|
187 |
this.tableLayoutPanelWrap.Controls.Add(this.radDropDownListProject, 2, 3); |
|
188 |
this.tableLayoutPanelWrap.Controls.Add(this.radTextBoxPassword, 2, 4); |
|
189 |
this.tableLayoutPanelWrap.Dock = System.Windows.Forms.DockStyle.Fill; |
|
190 |
this.tableLayoutPanelWrap.Location = new System.Drawing.Point(0, 0); |
|
191 |
this.tableLayoutPanelWrap.Name = "tableLayoutPanelWrap"; |
|
192 |
this.tableLayoutPanelWrap.RowCount = 8; |
|
193 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
194 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
195 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
196 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
197 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
198 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F)); |
|
199 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|
200 |
this.tableLayoutPanelWrap.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); |
|
201 |
this.tableLayoutPanelWrap.Size = new System.Drawing.Size(299, 258); |
|
202 |
this.tableLayoutPanelWrap.TabIndex = 2; |
|
203 |
// |
|
204 |
// AddUser |
|
205 |
// |
|
206 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |
|
207 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
208 |
this.ClientSize = new System.Drawing.Size(299, 258); |
|
209 |
this.Controls.Add(this.tableLayoutPanelWrap); |
|
210 |
this.Name = "AddUser"; |
|
211 |
this.Text = "AddUser"; |
|
212 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxConfirm)).EndInit(); |
|
213 |
((System.ComponentModel.ISupportInitialize)(this.radLabelConfirm)).EndInit(); |
|
214 |
((System.ComponentModel.ISupportInitialize)(this.radLabelPassword)).EndInit(); |
|
215 |
((System.ComponentModel.ISupportInitialize)(this.radLabelProject)).EndInit(); |
|
216 |
((System.ComponentModel.ISupportInitialize)(this.radLabelUserID)).EndInit(); |
|
217 |
((System.ComponentModel.ISupportInitialize)(this.radLabelUserName)).EndInit(); |
|
218 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxUserID)).EndInit(); |
|
219 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxUserName)).EndInit(); |
|
220 |
((System.ComponentModel.ISupportInitialize)(this.radLabelRole)).EndInit(); |
|
221 |
((System.ComponentModel.ISupportInitialize)(this.radDropDownListRole)).EndInit(); |
|
222 |
((System.ComponentModel.ISupportInitialize)(this.radDropDownListProject)).EndInit(); |
|
223 |
((System.ComponentModel.ISupportInitialize)(this.radTextBoxPassword)).EndInit(); |
|
224 |
this.tableLayoutPanelWrap.ResumeLayout(false); |
|
225 |
this.tableLayoutPanelWrap.PerformLayout(); |
|
226 |
((System.ComponentModel.ISupportInitialize)(this)).EndInit(); |
|
227 |
this.ResumeLayout(false); |
|
228 |
|
|
229 |
} |
|
230 |
|
|
231 |
#endregion |
|
232 |
|
|
233 |
private Telerik.WinControls.RadThemeManager radThemeManager1; |
|
234 |
private Telerik.WinControls.UI.RadTextBox radTextBoxConfirm; |
|
235 |
private Telerik.WinControls.UI.RadLabel radLabelConfirm; |
|
236 |
private Telerik.WinControls.UI.RadLabel radLabelPassword; |
|
237 |
private Telerik.WinControls.UI.RadLabel radLabelProject; |
|
238 |
private Telerik.WinControls.UI.RadLabel radLabelUserID; |
|
239 |
private Telerik.WinControls.UI.RadLabel radLabelUserName; |
|
240 |
private Telerik.WinControls.UI.RadTextBox radTextBoxUserID; |
|
241 |
private Telerik.WinControls.UI.RadTextBox radTextBoxUserName; |
|
242 |
private Telerik.WinControls.UI.RadLabel radLabelRole; |
|
243 |
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelWrap; |
|
244 |
private Telerik.WinControls.UI.RadDropDownList radDropDownListRole; |
|
245 |
private Telerik.WinControls.UI.RadDropDownList radDropDownListProject; |
|
246 |
private Telerik.WinControls.UI.RadTextBox radTextBoxPassword; |
|
247 |
} |
|
248 |
} |
ID2.Manager/ID2.Manager/Forms/AddUser.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.ComponentModel; |
|
4 |
using System.Data; |
|
5 |
using System.Drawing; |
|
6 |
using System.Linq; |
|
7 |
using System.Text; |
|
8 |
using System.Threading.Tasks; |
|
9 |
using System.Windows.Forms; |
|
10 |
|
|
11 |
using ID2.Manager.Data.Models; |
|
12 |
using ID2.Manager.Controller.Controllers; |
|
13 |
|
|
14 |
using Telerik.WinControls; |
|
15 |
using Telerik.WinControls.UI; |
|
16 |
|
|
17 |
|
|
18 |
namespace ID2.Manager.Forms |
|
19 |
{ |
|
20 |
public partial class AddUser : RadForm |
|
21 |
{ |
|
22 |
public AddUser() |
|
23 |
{ |
|
24 |
InitializeComponent(); |
|
25 |
|
|
26 |
this.Initialize(); |
|
27 |
} |
|
28 |
|
|
29 |
private void Initialize() |
|
30 |
{ |
|
31 |
this.Load += AddUser_Load; |
|
32 |
} |
|
33 |
|
|
34 |
private void AddUser_Load(object sender, EventArgs e) |
|
35 |
{ |
|
36 |
|
|
37 |
} |
|
38 |
} |
|
39 |
} |
ID2.Manager/ID2.Manager/Forms/AddUser.resx | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<root> |
|
3 |
<!-- |
|
4 |
Microsoft ResX Schema |
|
5 |
|
|
6 |
Version 2.0 |
|
7 |
|
|
8 |
The primary goals of this format is to allow a simple XML format |
|
9 |
that is mostly human readable. The generation and parsing of the |
|
10 |
various data types are done through the TypeConverter classes |
|
11 |
associated with the data types. |
|
12 |
|
|
13 |
Example: |
|
14 |
|
|
15 |
... ado.net/XML headers & schema ... |
|
16 |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|
17 |
<resheader name="version">2.0</resheader> |
|
18 |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|
19 |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|
20 |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|
21 |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|
22 |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|
23 |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|
24 |
</data> |
|
25 |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
26 |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|
27 |
<comment>This is a comment</comment> |
|
28 |
</data> |
|
29 |
|
|
30 |
There are any number of "resheader" rows that contain simple |
|
31 |
name/value pairs. |
|
32 |
|
|
33 |
Each data row contains a name, and value. The row also contains a |
|
34 |
type or mimetype. Type corresponds to a .NET class that support |
|
35 |
text/value conversion through the TypeConverter architecture. |
|
36 |
Classes that don't support this are serialized and stored with the |
|
37 |
mimetype set. |
|
38 |
|
|
39 |
The mimetype is used for serialized objects, and tells the |
|
40 |
ResXResourceReader how to depersist the object. This is currently not |
|
41 |
extensible. For a given mimetype the value must be set accordingly: |
|
42 |
|
|
43 |
Note - application/x-microsoft.net.object.binary.base64 is the format |
|
44 |
that the ResXResourceWriter will generate, however the reader can |
|
45 |
read any of the formats listed below. |
|
46 |
|
|
47 |
mimetype: application/x-microsoft.net.object.binary.base64 |
|
48 |
value : The object must be serialized with |
|
49 |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|
50 |
: and then encoded with base64 encoding. |
|
51 |
|
|
52 |
mimetype: application/x-microsoft.net.object.soap.base64 |
|
53 |
value : The object must be serialized with |
|
54 |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|
55 |
: and then encoded with base64 encoding. |
|
56 |
|
|
57 |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|
58 |
value : The object must be serialized into a byte array |
|
59 |
: using a System.ComponentModel.TypeConverter |
|
60 |
: and then encoded with base64 encoding. |
|
61 |
--> |
|
62 |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|
63 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|
64 |
<xsd:element name="root" msdata:IsDataSet="true"> |
|
65 |
<xsd:complexType> |
|
66 |
<xsd:choice maxOccurs="unbounded"> |
|
67 |
<xsd:element name="metadata"> |
|
68 |
<xsd:complexType> |
|
69 |
<xsd:sequence> |
|
70 |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|
71 |
</xsd:sequence> |
|
72 |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|
73 |
<xsd:attribute name="type" type="xsd:string" /> |
|
74 |
<xsd:attribute name="mimetype" type="xsd:string" /> |
|
75 |
<xsd:attribute ref="xml:space" /> |
|
76 |
</xsd:complexType> |
|
77 |
</xsd:element> |
|
78 |
<xsd:element name="assembly"> |
|
79 |
<xsd:complexType> |
|
80 |
<xsd:attribute name="alias" type="xsd:string" /> |
|
81 |
<xsd:attribute name="name" type="xsd:string" /> |
|
82 |
</xsd:complexType> |
|
83 |
</xsd:element> |
|
84 |
<xsd:element name="data"> |
|
85 |
<xsd:complexType> |
|
86 |
<xsd:sequence> |
|
87 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
88 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|
89 |
</xsd:sequence> |
|
90 |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|
91 |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|
92 |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|
93 |
<xsd:attribute ref="xml:space" /> |
|
94 |
</xsd:complexType> |
|
95 |
</xsd:element> |
|
96 |
<xsd:element name="resheader"> |
|
97 |
<xsd:complexType> |
|
98 |
<xsd:sequence> |
|
99 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
100 |
</xsd:sequence> |
|
101 |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|
102 |
</xsd:complexType> |
|
103 |
</xsd:element> |
|
104 |
</xsd:choice> |
|
105 |
</xsd:complexType> |
|
106 |
</xsd:element> |
|
107 |
</xsd:schema> |
|
108 |
<resheader name="resmimetype"> |
|
109 |
<value>text/microsoft-resx</value> |
|
110 |
</resheader> |
|
111 |
<resheader name="version"> |
|
112 |
<value>2.0</value> |
|
113 |
</resheader> |
|
114 |
<resheader name="reader"> |
|
115 |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
116 |
</resheader> |
|
117 |
<resheader name="writer"> |
|
118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
119 |
</resheader> |
|
120 |
<metadata name="radThemeManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|
121 |
<value>17, 17</value> |
|
122 |
</metadata> |
|
123 |
</root> |
ID2.Manager/ID2.Manager/ID2.Manager.csproj | ||
---|---|---|
96 | 96 |
<Compile Include="Controls\PDFViewer.cs"> |
97 | 97 |
<SubType>UserControl</SubType> |
98 | 98 |
</Compile> |
99 |
<Compile Include="Forms\AddUser.cs"> |
|
100 |
<SubType>Form</SubType> |
|
101 |
</Compile> |
|
102 |
<Compile Include="Forms\AddUser.Designer.cs"> |
|
103 |
<DependentUpon>AddUser.cs</DependentUpon> |
|
104 |
</Compile> |
|
99 | 105 |
<Compile Include="Forms\ImageView.cs"> |
100 | 106 |
<SubType>Form</SubType> |
101 | 107 |
</Compile> |
... | ... | |
144 | 150 |
<EmbeddedResource Include="Controls\PDFViewer.resx"> |
145 | 151 |
<DependentUpon>PDFViewer.cs</DependentUpon> |
146 | 152 |
</EmbeddedResource> |
153 |
<EmbeddedResource Include="Forms\AddUser.resx"> |
|
154 |
<DependentUpon>AddUser.cs</DependentUpon> |
|
155 |
</EmbeddedResource> |
|
147 | 156 |
<EmbeddedResource Include="Forms\ImageView.resx"> |
148 | 157 |
<DependentUpon>ImageView.cs</DependentUpon> |
149 | 158 |
</EmbeddedResource> |
내보내기 Unified diff