This commit is contained in:
chikyun.kim
2018-10-11 08:27:09 +09:00
parent 68ebe71800
commit 663a2263f9
25 changed files with 1775 additions and 898 deletions

View File

@@ -96,6 +96,7 @@
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fNewID";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "fNewPassword";
this.Load += new System.EventHandler(this.fNewPassword_Load);
this.ResumeLayout(false);

View File

@@ -52,16 +52,6 @@
nameLabel.TabIndex = 0;
nameLabel.Text = "User ID";
//
// tbUserID
//
this.tbUserID.Location = new System.Drawing.Point(112, 12);
this.tbUserID.Name = "tbUserID";
this.tbUserID.ReadOnly = true;
this.tbUserID.Size = new System.Drawing.Size(170, 21);
this.tbUserID.TabIndex = 1;
this.tbUserID.TabStop = false;
this.tbUserID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// deptLabel
//
deptLabel.AutoSize = true;
@@ -71,15 +61,6 @@
deptLabel.TabIndex = 4;
deptLabel.Text = "New Password";
//
// tbPass1
//
this.tbPass1.Location = new System.Drawing.Point(112, 64);
this.tbPass1.Name = "tbPass1";
this.tbPass1.PasswordChar = '*';
this.tbPass1.Size = new System.Drawing.Size(170, 21);
this.tbPass1.TabIndex = 5;
this.tbPass1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// gradeLabel
//
gradeLabel.AutoSize = true;
@@ -89,15 +70,6 @@
gradeLabel.TabIndex = 6;
gradeLabel.Text = "Verify";
//
// tbPass2
//
this.tbPass2.Location = new System.Drawing.Point(112, 90);
this.tbPass2.Name = "tbPass2";
this.tbPass2.PasswordChar = '*';
this.tbPass2.Size = new System.Drawing.Size(170, 21);
this.tbPass2.TabIndex = 7;
this.tbPass2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label1
//
label1.AutoSize = true;
@@ -107,6 +79,34 @@
label1.TabIndex = 2;
label1.Text = "OLD Password";
//
// tbUserID
//
this.tbUserID.Location = new System.Drawing.Point(112, 12);
this.tbUserID.Name = "tbUserID";
this.tbUserID.ReadOnly = true;
this.tbUserID.Size = new System.Drawing.Size(170, 21);
this.tbUserID.TabIndex = 1;
this.tbUserID.TabStop = false;
this.tbUserID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbPass1
//
this.tbPass1.Location = new System.Drawing.Point(112, 64);
this.tbPass1.Name = "tbPass1";
this.tbPass1.PasswordChar = '*';
this.tbPass1.Size = new System.Drawing.Size(170, 21);
this.tbPass1.TabIndex = 5;
this.tbPass1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbPass2
//
this.tbPass2.Location = new System.Drawing.Point(112, 90);
this.tbPass2.Name = "tbPass2";
this.tbPass2.PasswordChar = '*';
this.tbPass2.Size = new System.Drawing.Size(170, 21);
this.tbPass2.TabIndex = 7;
this.tbPass2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbPassO
//
this.tbPassO.Location = new System.Drawing.Point(112, 38);
@@ -143,6 +143,7 @@
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fNewPassword";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "fNewPassword";
this.Load += new System.EventHandler(this.fNewPassword_Load);
this.ResumeLayout(false);

View File

@@ -176,6 +176,24 @@
label1.TabIndex = 14;
label1.Text = "Tel";
//
// label2
//
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(22, 230);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(20, 12);
label2.TabIndex = 16;
label2.Text = "Hp";
//
// label3
//
label3.AutoSize = true;
label3.Location = new System.Drawing.Point(22, 95);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(55, 12);
label3.TabIndex = 6;
label3.Text = "name(E)";
//
// idTextBox
//
this.idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "id", true));
@@ -302,15 +320,6 @@
this.textBox1.Size = new System.Drawing.Size(200, 21);
this.textBox1.TabIndex = 15;
//
// label2
//
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(22, 230);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(20, 12);
label2.TabIndex = 16;
label2.Text = "Hp";
//
// textBox2
//
this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "hp", true));
@@ -319,15 +328,6 @@
this.textBox2.Size = new System.Drawing.Size(200, 21);
this.textBox2.TabIndex = 17;
//
// label3
//
label3.AutoSize = true;
label3.Location = new System.Drawing.Point(22, 95);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(55, 12);
label3.TabIndex = 6;
label3.Text = "name(E)";
//
// textBox3
//
this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "nameE", true));
@@ -371,6 +371,7 @@
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fUserInfo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "fUserInfo";
this.Load += new System.EventHandler(this.fUserInfo_Load);
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();

View File

@@ -20,8 +20,8 @@ namespace Project._Common
private void fUserInfo_Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.Users' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
this.ta.Fill(this.dsMSSQL.Users);
this.bs.Filter = "id='" + FCOMMON.info.Login.no + "'";
this.ta.FillID(this.dsMSSQL.Users,FCOMMON.info.Login.no);
//this.bs.Filter = "id='" + FCOMMON.info.Login.no + "'";
}
private void button1_Click(object sender, EventArgs e)

View File

@@ -150,8 +150,11 @@
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
@@ -159,19 +162,10 @@
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value>
</metadata>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>

View File

@@ -30,13 +30,8 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fUserList));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsMSSQL = new Project.dsMSSQL();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new Project.dsMSSQLTableAdapters.UsersTableAdapter();
@@ -54,30 +49,42 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.usersBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.usersDataGridView = new System.Windows.Forms.DataGridView();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.btDevel = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dv1 = new System.Windows.Forms.DataGridView();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.iDChangeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.passwordChangeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.mailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameE = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.hp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.autoResizeColumnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.cmbdept = new System.Windows.Forms.ToolStripComboBox();
this.btRef = new System.Windows.Forms.ToolStripButton();
this.textBox1 = new System.Windows.Forms.TextBox();
this.dvc_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_level = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.deptDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.gradeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.emailDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.indateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.telDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.hpDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.placeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.memoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.usersDataGridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// dsMSSQL
@@ -123,15 +130,17 @@
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.usersBindingNavigatorSaveItem});
this.bn.Location = new System.Drawing.Point(0, 377);
this.usersBindingNavigatorSaveItem,
this.toolStripSeparator1,
this.btDevel});
this.bn.Location = new System.Drawing.Point(0, 419);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(687, 25);
this.bn.Size = new System.Drawing.Size(755, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -226,175 +235,254 @@
this.usersBindingNavigatorSaveItem.Text = "Save(&S)";
this.usersBindingNavigatorSaveItem.Click += new System.EventHandler(this.usersBindingNavigatorSaveItem_Click);
//
// usersDataGridView
// toolStripSeparator1
//
this.usersDataGridView.AllowUserToAddRows = false;
this.usersDataGridView.AutoGenerateColumns = false;
this.usersDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.usersDataGridView.ColumnHeadersHeight = 30;
this.usersDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.usersDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn3,
this.nameE,
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn5,
this.dataGridViewTextBoxColumn6,
this.tel,
this.hp,
this.dataGridViewTextBoxColumn7,
this.dataGridViewTextBoxColumn8,
this.dataGridViewTextBoxColumn9,
this.dataGridViewTextBoxColumn10});
this.usersDataGridView.ContextMenuStrip = this.cm1;
this.usersDataGridView.DataSource = this.bs;
this.usersDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.usersDataGridView.Location = new System.Drawing.Point(0, 0);
this.usersDataGridView.Name = "usersDataGridView";
this.usersDataGridView.RowTemplate.Height = 23;
this.usersDataGridView.Size = new System.Drawing.Size(687, 377);
this.usersDataGridView.TabIndex = 1;
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
//
// btDevel
//
this.btDevel.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btDevel.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.btDevel.Image = ((System.Drawing.Image)(resources.GetObject("btDevel.Image")));
this.btDevel.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btDevel.Name = "btDevel";
this.btDevel.Size = new System.Drawing.Size(88, 22);
this.btDevel.Text = "developer";
//
// 한글이름분리ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "한글이름분리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
this.ToolStripMenuItem.Text = "한글이름분리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// dv1
//
this.dv1.AllowUserToAddRows = false;
this.dv1.AutoGenerateColumns = false;
this.dv1.ColumnHeadersHeight = 30;
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dvc_id,
this.dvc_level,
this.nameDataGridViewTextBoxColumn,
this.nameEDataGridViewTextBoxColumn,
this.deptDataGridViewTextBoxColumn,
this.gradeDataGridViewTextBoxColumn,
this.emailDataGridViewTextBoxColumn,
this.indateDataGridViewTextBoxColumn,
this.outdateDataGridViewTextBoxColumn,
this.telDataGridViewTextBoxColumn,
this.hpDataGridViewTextBoxColumn,
this.placeDataGridViewTextBoxColumn,
this.memoDataGridViewTextBoxColumn});
this.dv1.ContextMenuStrip = this.cm1;
this.dv1.DataSource = this.bs;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(0, 25);
this.dv1.Name = "dv1";
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(755, 373);
this.dv1.TabIndex = 1;
//
// cm1
//
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.autoResizeColumnToolStripMenuItem,
this.toolStripMenuItem2,
this.iDChangeToolStripMenuItem,
this.passwordChangeToolStripMenuItem,
this.toolStripMenuItem1,
this.mailToolStripMenuItem});
this.cm1.Name = "cm1";
this.cm1.Size = new System.Drawing.Size(170, 76);
this.cm1.Size = new System.Drawing.Size(181, 126);
//
// iDChangeToolStripMenuItem
//
this.iDChangeToolStripMenuItem.Name = "iDChangeToolStripMenuItem";
this.iDChangeToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
this.iDChangeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.iDChangeToolStripMenuItem.Text = "ID Change";
this.iDChangeToolStripMenuItem.Click += new System.EventHandler(this.iDChangeToolStripMenuItem_Click);
//
// passwordChangeToolStripMenuItem
//
this.passwordChangeToolStripMenuItem.Name = "passwordChangeToolStripMenuItem";
this.passwordChangeToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
this.passwordChangeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.passwordChangeToolStripMenuItem.Text = "Password Change";
this.passwordChangeToolStripMenuItem.Click += new System.EventHandler(this.passwordChangeToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(166, 6);
this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6);
//
// mailToolStripMenuItem
//
this.mailToolStripMenuItem.Name = "mailToolStripMenuItem";
this.mailToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
this.mailToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.mailToolStripMenuItem.Text = "Mail";
this.mailToolStripMenuItem.Click += new System.EventHandler(this.mailToolStripMenuItem_Click);
//
// dataGridViewTextBoxColumn1
// autoResizeColumnToolStripMenuItem
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "id";
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
this.dataGridViewTextBoxColumn1.HeaderText = "id";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Width = 40;
this.autoResizeColumnToolStripMenuItem.Name = "autoResizeColumnToolStripMenuItem";
this.autoResizeColumnToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.autoResizeColumnToolStripMenuItem.Text = "AutoResize Column";
this.autoResizeColumnToolStripMenuItem.Click += new System.EventHandler(this.autoResizeColumnToolStripMenuItem_Click);
//
// dataGridViewTextBoxColumn3
// toolStrip1
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "name";
this.dataGridViewTextBoxColumn3.HeaderText = "name";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.Width = 62;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.cmbdept,
this.btRef});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(755, 25);
this.toolStrip1.TabIndex = 2;
this.toolStrip1.Text = "toolStrip1";
//
// nameE
// toolStripLabel1
//
this.nameE.DataPropertyName = "nameE";
this.nameE.HeaderText = "nameE";
this.nameE.Name = "nameE";
this.nameE.Width = 70;
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(43, 22);
this.toolStripLabel1.Text = "Depart";
//
// dataGridViewTextBoxColumn4
// cmbdept
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "dept";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridViewTextBoxColumn4.HeaderText = "dept";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.Width = 54;
this.cmbdept.Name = "cmbdept";
this.cmbdept.Size = new System.Drawing.Size(121, 25);
//
// dataGridViewTextBoxColumn5
// btRef
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "grade";
this.btRef.Image = ((System.Drawing.Image)(resources.GetObject("btRef.Image")));
this.btRef.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btRef.Name = "btRef";
this.btRef.Size = new System.Drawing.Size(66, 22);
this.btRef.Text = "Refresh";
this.btRef.Click += new System.EventHandler(this.btRef_Click);
//
// textBox1
//
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "ads_title", true));
this.textBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.textBox1.Location = new System.Drawing.Point(0, 398);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(755, 21);
this.textBox1.TabIndex = 3;
//
// dvc_id
//
this.dvc_id.DataPropertyName = "id";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle3;
this.dataGridViewTextBoxColumn5.HeaderText = "grade";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.Width = 62;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_id.DefaultCellStyle = dataGridViewCellStyle3;
this.dvc_id.HeaderText = "id";
this.dvc_id.Name = "dvc_id";
this.dvc_id.Width = 40;
//
// dataGridViewTextBoxColumn6
// dvc_level
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "email";
this.dataGridViewTextBoxColumn6.HeaderText = "email";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.Width = 61;
//
// tel
//
this.tel.DataPropertyName = "tel";
this.dvc_level.DataPropertyName = "level";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.tel.DefaultCellStyle = dataGridViewCellStyle4;
this.tel.HeaderText = "tel";
this.tel.Name = "tel";
this.tel.Width = 43;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.dvc_level.DefaultCellStyle = dataGridViewCellStyle4;
this.dvc_level.HeaderText = "level";
this.dvc_level.Name = "dvc_level";
this.dvc_level.Width = 56;
//
// hp
// nameDataGridViewTextBoxColumn
//
this.hp.DataPropertyName = "hp";
this.hp.HeaderText = "hp";
this.hp.Name = "hp";
this.hp.Width = 44;
this.nameDataGridViewTextBoxColumn.DataPropertyName = "name";
this.nameDataGridViewTextBoxColumn.HeaderText = "name";
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
this.nameDataGridViewTextBoxColumn.Width = 62;
//
// dataGridViewTextBoxColumn7
// nameEDataGridViewTextBoxColumn
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "level";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle5;
this.dataGridViewTextBoxColumn7.HeaderText = "level";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.Width = 56;
this.nameEDataGridViewTextBoxColumn.DataPropertyName = "nameE";
this.nameEDataGridViewTextBoxColumn.HeaderText = "nameE";
this.nameEDataGridViewTextBoxColumn.Name = "nameEDataGridViewTextBoxColumn";
this.nameEDataGridViewTextBoxColumn.Width = 70;
//
// dataGridViewTextBoxColumn8
// deptDataGridViewTextBoxColumn
//
this.dataGridViewTextBoxColumn8.DataPropertyName = "indate";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle6;
this.dataGridViewTextBoxColumn8.HeaderText = "indate";
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
this.dataGridViewTextBoxColumn8.Width = 64;
this.deptDataGridViewTextBoxColumn.DataPropertyName = "dept";
this.deptDataGridViewTextBoxColumn.HeaderText = "dept";
this.deptDataGridViewTextBoxColumn.Name = "deptDataGridViewTextBoxColumn";
this.deptDataGridViewTextBoxColumn.Width = 54;
//
// dataGridViewTextBoxColumn9
// gradeDataGridViewTextBoxColumn
//
this.dataGridViewTextBoxColumn9.DataPropertyName = "outdate";
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle7;
this.dataGridViewTextBoxColumn9.HeaderText = "outdate";
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
this.dataGridViewTextBoxColumn9.Width = 71;
this.gradeDataGridViewTextBoxColumn.DataPropertyName = "grade";
this.gradeDataGridViewTextBoxColumn.HeaderText = "grade";
this.gradeDataGridViewTextBoxColumn.Name = "gradeDataGridViewTextBoxColumn";
this.gradeDataGridViewTextBoxColumn.Width = 62;
//
// dataGridViewTextBoxColumn10
// emailDataGridViewTextBoxColumn
//
this.dataGridViewTextBoxColumn10.DataPropertyName = "memo";
this.dataGridViewTextBoxColumn10.HeaderText = "memo";
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
this.dataGridViewTextBoxColumn10.Width = 66;
this.emailDataGridViewTextBoxColumn.DataPropertyName = "email";
this.emailDataGridViewTextBoxColumn.HeaderText = "email";
this.emailDataGridViewTextBoxColumn.Name = "emailDataGridViewTextBoxColumn";
this.emailDataGridViewTextBoxColumn.Width = 61;
//
// indateDataGridViewTextBoxColumn
//
this.indateDataGridViewTextBoxColumn.DataPropertyName = "indate";
this.indateDataGridViewTextBoxColumn.HeaderText = "indate";
this.indateDataGridViewTextBoxColumn.Name = "indateDataGridViewTextBoxColumn";
this.indateDataGridViewTextBoxColumn.Width = 64;
//
// outdateDataGridViewTextBoxColumn
//
this.outdateDataGridViewTextBoxColumn.DataPropertyName = "outdate";
this.outdateDataGridViewTextBoxColumn.HeaderText = "outdate";
this.outdateDataGridViewTextBoxColumn.Name = "outdateDataGridViewTextBoxColumn";
this.outdateDataGridViewTextBoxColumn.Width = 71;
//
// telDataGridViewTextBoxColumn
//
this.telDataGridViewTextBoxColumn.DataPropertyName = "tel";
this.telDataGridViewTextBoxColumn.HeaderText = "tel";
this.telDataGridViewTextBoxColumn.Name = "telDataGridViewTextBoxColumn";
this.telDataGridViewTextBoxColumn.Width = 43;
//
// hpDataGridViewTextBoxColumn
//
this.hpDataGridViewTextBoxColumn.DataPropertyName = "hp";
this.hpDataGridViewTextBoxColumn.HeaderText = "hp";
this.hpDataGridViewTextBoxColumn.Name = "hpDataGridViewTextBoxColumn";
this.hpDataGridViewTextBoxColumn.Width = 44;
//
// placeDataGridViewTextBoxColumn
//
this.placeDataGridViewTextBoxColumn.DataPropertyName = "place";
this.placeDataGridViewTextBoxColumn.HeaderText = "place";
this.placeDataGridViewTextBoxColumn.Name = "placeDataGridViewTextBoxColumn";
this.placeDataGridViewTextBoxColumn.Width = 61;
//
// memoDataGridViewTextBoxColumn
//
this.memoDataGridViewTextBoxColumn.DataPropertyName = "memo";
this.memoDataGridViewTextBoxColumn.HeaderText = "memo";
this.memoDataGridViewTextBoxColumn.Name = "memoDataGridViewTextBoxColumn";
this.memoDataGridViewTextBoxColumn.Width = 66;
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
//
// fUserList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(687, 402);
this.Controls.Add(this.usersDataGridView);
this.ClientSize = new System.Drawing.Size(755, 444);
this.Controls.Add(this.dv1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.Name = "fUserList";
this.Text = "fUserList";
@@ -404,8 +492,10 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.usersDataGridView)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm1.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -430,23 +520,34 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton usersBindingNavigatorSaveItem;
private System.Windows.Forms.DataGridView usersDataGridView;
private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.ContextMenuStrip cm1;
private System.Windows.Forms.ToolStripMenuItem iDChangeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem passwordChangeToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem mailToolStripMenuItem;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn nameE;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.DataGridViewTextBoxColumn tel;
private System.Windows.Forms.DataGridViewTextBoxColumn hp;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripDropDownButton btDevel;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripComboBox cmbdept;
private System.Windows.Forms.ToolStripButton btRef;
private System.Windows.Forms.ToolStripMenuItem autoResizeColumnToolStripMenuItem;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_id;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_level;
private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn nameEDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn deptDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn gradeDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn emailDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn indateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn outdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn telDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn hpDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn placeDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn memoDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
}
}

View File

@@ -36,11 +36,37 @@ namespace Project._Common
{
var form = this as Form;
Pub.SetFormStatus(ref form, this.Name , true);
this.Show();
this.Show();
Application.DoEvents();
//read data
this.ta.Fill(this.dsMSSQL.Users);
if(FCOMMON.info.Login.level > 9)
{
this.btDevel.Visible = true;
this.dv1.EditMode = DataGridViewEditMode.EditOnKeystrokeOrF2;
}
else
{
this.dv1.EditMode = DataGridViewEditMode.EditProgrammatically;
this.dv1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
this.btDevel.Visible = false;
this.textBox1.Enabled = false;
this.dvc_id.Visible = false;
this.dvc_level.Visible = false;
this.usersBindingNavigatorSaveItem.Enabled = false;
this.bindingNavigatorAddNewItem.Enabled = false;
this.bindingNavigatorDeleteItem.Enabled = false;
}
//부서목록 업데이트
this.cmbdept.Items.Clear();
var deptList = FCOMMON.DBM.getGroupList("dept", "users");
foreach (var item in deptList)
this.cmbdept.Items.Add(item);
this.cmbdept.Text = FCOMMON.info.Login.dept;
btRef.PerformClick();
}
private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
@@ -114,5 +140,30 @@ namespace Project._Common
Util.RunExplorer(cmd);
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach(dsMSSQL.UsersRow dr in this.dsMSSQL.Users.Rows)
{
var name = dr.name;
var newname = name.Split(' ')[0];
dr.name = newname;
dr.EndEdit();
}
}
private void btRef_Click(object sender, EventArgs e)
{
//read data
this.dsMSSQL.Users.Clear();
this.ta.Fill(this.dsMSSQL.Users, this.cmbdept.Text );
this.dsMSSQL.Users.AcceptChanges();
}
private void autoResizeColumnToolStripMenuItem_Click(object sender, EventArgs e)
{
this.dv1.AutoResizeColumns();
}
}
}

View File

@@ -204,16 +204,37 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
</value>
</data>
<metadata name="nameE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="hp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="btDevel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>387, 17</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>462, 17</value>
</metadata>
<data name="btRef.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFKSURBVDhPtZMxSwNRDMfvu9SC4ODW0q1+G8GhIIp2qINL
ERGk0IK4ugkiKjq0q4KDRZw8QfHQoUhxExShsb+YXE+9K3TwB+Hx8vJPcnnvgizkF+aO/bZNh4DSckMK
ZsWVHRXB7OKurhb6l/ChJ8XVlrR7b3IWveqKFdYPpN4OJV/Zy07Awcx8XYWN7rNa+TCU8lEkm1d9OXn6
lNzSaXoCF2/sd3TFphdasn0ZaYK5475s3bxLrno+PgHtJ6Hl5t2HirGpWlf9JhuBk4H5ISsdkIC2qYw4
v3Ydx8SoZ0JM+g0OMlOBSlSkMh14MGuywx/gRMyU+V7Mr8thNswITDYCJ5URMm2mzvTpAEveTnaCYdsk
4L5JwP37W2he3GaLgQNa5qXx4qiOIcRo//7xRQaDMQn8jQNv3/8D/gmw0HQ0Yoht471j7v8gCL4AjZn0
BRhVTtsAAAAASUVORK5CYII=
</value>
</data>
</root>