From 663a2263f9483e2844b5a29b553be4f30115f86d Mon Sep 17 00:00:00 2001 From: "chikyun.kim" Date: Thu, 11 Oct 2018 08:27:09 +0900 Subject: [PATCH] .. --- Project/Dialog/fLogin.cs | 2 + Project/EETGW.csproj | 14 +- Project/_Common/fNewID.Designer.cs | 1 + Project/_Common/fNewPassword.Designer.cs | 57 +- Project/_Common/fUserInfo.Designer.cs | 37 +- Project/_Common/fUserInfo.cs | 4 +- Project/_Common/fUserInfo.resx | 16 +- Project/_Common/fUserList.Designer.cs | 389 +++++--- Project/_Common/fUserList.cs | 57 +- Project/_Common/fUserList.resx | 39 +- Project/_Info/fInfo_Staff.Designer.cs | 1 + Project/app.config | 2 +- Project/dsMSSQL.Designer.cs | 898 ++++++++++++++---- Project/dsMSSQL.xsd | 169 +++- Project/dsMSSQL.xss | 14 +- Project/fMain.Designer.cs | 60 +- Project/fMain.cs | 43 +- Project/fMain.resx | 20 +- SubProject/FCOMMON/DataBaseManager.cs | 34 + SubProject/FCOMMON/Info.cs | 1 + SubProject/FEQ0000/FEQ0000.csproj | 20 +- .../FEQ0000/Purchase/fPurchase.Designer.cs | 621 ++++++------ SubProject/FEQ0000/Purchase/fPurchase.cs | 155 +-- SubProject/FEQ0000/Purchase/fPurchase.resx | 12 +- SubProject/FEQ0000/app.config | 7 +- 25 files changed, 1775 insertions(+), 898 deletions(-) diff --git a/Project/Dialog/fLogin.cs b/Project/Dialog/fLogin.cs index 58de5f8..c8c999f 100644 --- a/Project/Dialog/fLogin.cs +++ b/Project/Dialog/fLogin.cs @@ -68,6 +68,8 @@ namespace Project.Dialog FCOMMON.info.Login.email = userdr.email; FCOMMON.info.Login.nameE = userdr.nameE; FCOMMON.info.Login.hp = userdr.hp; + FCOMMON.info.Login.tel = userdr.tel; + FCOMMON.info.Login.title = userdr.ads_title; } DialogResult = DialogResult.OK; } diff --git a/Project/EETGW.csproj b/Project/EETGW.csproj index 7c8d548..8b87350 100644 --- a/Project/EETGW.csproj +++ b/Project/EETGW.csproj @@ -1,5 +1,5 @@  - + Debug @@ -8,7 +8,7 @@ WinExe Project GWEE - v4.5 + v4.5.2 512 true False @@ -143,6 +143,7 @@ + @@ -233,6 +234,12 @@ + + Form + + + fADSUserList.cs + Form @@ -306,6 +313,9 @@ fSetting.cs + + fADSUserList.cs + fNewID.cs diff --git a/Project/_Common/fNewID.Designer.cs b/Project/_Common/fNewID.Designer.cs index 40ad8dd..0b30955 100644 --- a/Project/_Common/fNewID.Designer.cs +++ b/Project/_Common/fNewID.Designer.cs @@ -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); diff --git a/Project/_Common/fNewPassword.Designer.cs b/Project/_Common/fNewPassword.Designer.cs index 28fdf21..c298650 100644 --- a/Project/_Common/fNewPassword.Designer.cs +++ b/Project/_Common/fNewPassword.Designer.cs @@ -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); diff --git a/Project/_Common/fUserInfo.Designer.cs b/Project/_Common/fUserInfo.Designer.cs index c789b73..514c2bd 100644 --- a/Project/_Common/fUserInfo.Designer.cs +++ b/Project/_Common/fUserInfo.Designer.cs @@ -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(); diff --git a/Project/_Common/fUserInfo.cs b/Project/_Common/fUserInfo.cs index 3583cc9..41eab8f 100644 --- a/Project/_Common/fUserInfo.cs +++ b/Project/_Common/fUserInfo.cs @@ -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) diff --git a/Project/_Common/fUserInfo.resx b/Project/_Common/fUserInfo.resx index eedf3b6..c574b05 100644 --- a/Project/_Common/fUserInfo.resx +++ b/Project/_Common/fUserInfo.resx @@ -150,8 +150,11 @@ False - - 122, 17 + + False + + + False 122, 17 @@ -159,19 +162,10 @@ 17, 17 - - 17, 17 - 186, 17 248, 17 - - False - - - False - \ No newline at end of file diff --git a/Project/_Common/fUserList.Designer.cs b/Project/_Common/fUserList.Designer.cs index e2f05cb..8b63ac0 100644 --- a/Project/_Common/fUserList.Designer.cs +++ b/Project/_Common/fUserList.Designer.cs @@ -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; } } \ No newline at end of file diff --git a/Project/_Common/fUserList.cs b/Project/_Common/fUserList.cs index 412853b..0d0decb 100644 --- a/Project/_Common/fUserList.cs +++ b/Project/_Common/fUserList.cs @@ -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(); + } + } } diff --git a/Project/_Common/fUserList.resx b/Project/_Common/fUserList.resx index 0d264c0..cf16079 100644 --- a/Project/_Common/fUserList.resx +++ b/Project/_Common/fUserList.resx @@ -204,16 +204,37 @@ dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= - - True - - - True - - - True - + + + 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== + + 387, 17 + + 462, 17 + + + + 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= + + \ No newline at end of file diff --git a/Project/_Info/fInfo_Staff.Designer.cs b/Project/_Info/fInfo_Staff.Designer.cs index c424a35..012212b 100644 --- a/Project/_Info/fInfo_Staff.Designer.cs +++ b/Project/_Info/fInfo_Staff.Designer.cs @@ -101,6 +101,7 @@ this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Name = "fInfo_Staff"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "자리배치도"; this.Load += new System.EventHandler(this.fInfo_Staff_Load); this.panel1.ResumeLayout(false); diff --git a/Project/app.config b/Project/app.config index 02fe39d..f4e5079 100644 --- a/Project/app.config +++ b/Project/app.config @@ -37,4 +37,4 @@ namespace HelloWorld - + diff --git a/Project/dsMSSQL.Designer.cs b/Project/dsMSSQL.Designer.cs index feb38e1..f4a2456 100644 --- a/Project/dsMSSQL.Designer.cs +++ b/Project/dsMSSQL.Designer.cs @@ -449,6 +449,14 @@ namespace Project { private global::System.Data.DataColumn columnhp; + private global::System.Data.DataColumn columnplace; + + private global::System.Data.DataColumn columnads_title; + + private global::System.Data.DataColumn columnads_created; + + private global::System.Data.DataColumn columnads_employNo; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public UsersDataTable() { @@ -602,6 +610,38 @@ namespace Project { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn placeColumn { + get { + return this.columnplace; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ads_titleColumn { + get { + return this.columnads_title; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ads_createdColumn { + get { + return this.columnads_created; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ads_employNoColumn { + get { + return this.columnads_employNo; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -639,7 +679,26 @@ namespace Project { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public UsersRow AddUsersRow(string id, string password, string name, string dept, string grade, string email, short level, string indate, string outdate, string memo, string wuid, System.DateTime wdate, string tel, string nameE, string hp) { + public UsersRow AddUsersRow( + string id, + string password, + string name, + string dept, + string grade, + string email, + short level, + string indate, + string outdate, + string memo, + string wuid, + System.DateTime wdate, + string tel, + string nameE, + string hp, + string place, + string ads_title, + string ads_created, + string ads_employNo) { UsersRow rowUsersRow = ((UsersRow)(this.NewRow())); object[] columnValuesArray = new object[] { id, @@ -656,7 +715,11 @@ namespace Project { wdate, tel, nameE, - hp}; + hp, + place, + ads_title, + ads_created, + ads_employNo}; rowUsersRow.ItemArray = columnValuesArray; this.Rows.Add(rowUsersRow); return rowUsersRow; @@ -701,6 +764,10 @@ namespace Project { this.columntel = base.Columns["tel"]; this.columnnameE = base.Columns["nameE"]; this.columnhp = base.Columns["hp"]; + this.columnplace = base.Columns["place"]; + this.columnads_title = base.Columns["ads_title"]; + this.columnads_created = base.Columns["ads_created"]; + this.columnads_employNo = base.Columns["ads_employNo"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -736,25 +803,37 @@ namespace Project { base.Columns.Add(this.columnnameE); this.columnhp = new global::System.Data.DataColumn("hp", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnhp); + this.columnplace = new global::System.Data.DataColumn("place", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnplace); + this.columnads_title = new global::System.Data.DataColumn("ads_title", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnads_title); + this.columnads_created = new global::System.Data.DataColumn("ads_created", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnads_created); + this.columnads_employNo = new global::System.Data.DataColumn("ads_employNo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnads_employNo); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnid}, true)); this.columnid.AllowDBNull = false; this.columnid.Unique = true; this.columnid.MaxLength = 20; this.columnpassword.MaxLength = 50; - this.columnname.MaxLength = 50; - this.columndept.MaxLength = 20; + this.columnname.MaxLength = 100; + this.columndept.MaxLength = 100; this.columngrade.MaxLength = 10; - this.columnemail.MaxLength = 50; - this.columnindate.MaxLength = 10; - this.columnoutdate.MaxLength = 10; + this.columnemail.MaxLength = 100; + this.columnindate.MaxLength = 20; + this.columnoutdate.MaxLength = 20; this.columnmemo.MaxLength = 255; this.columnwuid.AllowDBNull = false; this.columnwuid.MaxLength = 20; this.columnwdate.AllowDBNull = false; this.columntel.MaxLength = 20; - this.columnnameE.MaxLength = 30; + this.columnnameE.MaxLength = 100; this.columnhp.MaxLength = 20; + this.columnplace.MaxLength = 100; + this.columnads_title.MaxLength = 100; + this.columnads_created.MaxLength = 50; + this.columnads_employNo.MaxLength = 50; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2569,11 +2648,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string password { get { - try { - return ((string)(this[this.tableUsers.passwordColumn])); + if (this.IspasswordNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'password\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.passwordColumn])); } } set { @@ -2585,11 +2664,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string name { get { - try { - return ((string)(this[this.tableUsers.nameColumn])); + if (this.IsnameNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'name\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.nameColumn])); } } set { @@ -2601,11 +2680,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string dept { get { - try { - return ((string)(this[this.tableUsers.deptColumn])); + if (this.IsdeptNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'dept\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.deptColumn])); } } set { @@ -2617,11 +2696,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string grade { get { - try { - return ((string)(this[this.tableUsers.gradeColumn])); + if (this.IsgradeNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'grade\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.gradeColumn])); } } set { @@ -2665,11 +2744,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string indate { get { - try { - return ((string)(this[this.tableUsers.indateColumn])); + if (this.IsindateNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'indate\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.indateColumn])); } } set { @@ -2681,11 +2760,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string outdate { get { - try { - return ((string)(this[this.tableUsers.outdateColumn])); + if (this.IsoutdateNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'outdate\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.outdateColumn])); } } set { @@ -2697,11 +2776,11 @@ namespace Project { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string memo { get { - try { - return ((string)(this[this.tableUsers.memoColumn])); + if (this.IsmemoNull()) { + return string.Empty; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e); + else { + return ((string)(this[this.tableUsers.memoColumn])); } } set { @@ -2779,6 +2858,70 @@ namespace Project { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string place { + get { + if (this.IsplaceNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableUsers.placeColumn])); + } + } + set { + this[this.tableUsers.placeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ads_title { + get { + if (this.Isads_titleNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableUsers.ads_titleColumn])); + } + } + set { + this[this.tableUsers.ads_titleColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ads_created { + get { + if (this.Isads_createdNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableUsers.ads_createdColumn])); + } + } + set { + this[this.tableUsers.ads_createdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ads_employNo { + get { + if (this.Isads_employNoNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableUsers.ads_employNoColumn])); + } + } + set { + this[this.tableUsers.ads_employNoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IspasswordNull() { @@ -2922,6 +3065,54 @@ namespace Project { public void SethpNull() { this[this.tableUsers.hpColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsplaceNull() { + return this.IsNull(this.tableUsers.placeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetplaceNull() { + this[this.tableUsers.placeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Isads_titleNull() { + return this.IsNull(this.tableUsers.ads_titleColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setads_titleNull() { + this[this.tableUsers.ads_titleColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Isads_createdNull() { + return this.IsNull(this.tableUsers.ads_createdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setads_createdNull() { + this[this.tableUsers.ads_createdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Isads_employNoNull() { + return this.IsNull(this.tableUsers.ads_employNoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setads_employNoNull() { + this[this.tableUsers.ads_employNoColumn] = global::System.Convert.DBNull; + } } /// @@ -4350,18 +4541,22 @@ namespace Project.dsMSSQLTableAdapters { tableMapping.ColumnMappings.Add("tel", "tel"); tableMapping.ColumnMappings.Add("nameE", "nameE"); tableMapping.ColumnMappings.Add("hp", "hp"); + tableMapping.ColumnMappings.Add("place", "place"); + tableMapping.ColumnMappings.Add("ads_title", "ads_title"); + tableMapping.ColumnMappings.Add("ads_created", "ads_created"); + tableMapping.ColumnMappings.Add("ads_employNo", "ads_employNo"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameE", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameE", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameE", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grade", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -4376,21 +4571,29 @@ namespace Project.dsMSSQLTableAdapters { this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_outdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_place", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_employNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_employNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_created", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_created", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [Users] ([id], [password], [name], [nameE], [dept], [grade], [email], [level], [indate], [outdate], [tel], [memo], [wuid], [wdate], [hp]) VALUES (@id, @password, @name, @nameE, @dept, @grade, @email, @level, @indate, @outdate, @tel, @memo, @wuid, @wdate, @hp); -SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, tel, memo, wuid, wdate, hp FROM Users WHERE (id = @id)"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [Users] ([id], [password], [nameE], [name], [dept], [grade], [email], [level], [indate], [outdate], [tel], [hp], [place], [ads_employNo], [ads_title], [ads_created], [memo], [wuid], [wdate]) VALUES (@id, @password, @nameE, @name, @dept, @grade, @email, @level, @indate, @outdate, @tel, @hp, @place, @ads_employNo, @ads_title, @ads_created, @memo, @wuid, @wdate); +SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -4398,19 +4601,46 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@outdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_employNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_created", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [Users] SET [id] = @id, [password] = @password, [name] = @name, [nameE] = @nameE, [dept] = @dept, [grade] = @grade, [email] = @email, [level] = @level, [indate] = @indate, [outdate] = @outdate, [tel] = @tel, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [hp] = @hp WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp))); -SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, tel, memo, wuid, wdate, hp FROM Users WHERE (id = @id)"; + this._adapter.UpdateCommand.CommandText = "UPDATE [Users] SET [id] = @id, [password] = @password, [nameE] = @nameE, [name] =" + + " @name, [dept] = @dept, [grade] = @grade, [email] = @email, [level] = @level, [i" + + "ndate] = @indate, [outdate] = @outdate, [tel] = @tel, [hp] = @hp, [place] = @pla" + + "ce, [ads_employNo] = @ads_employNo, [ads_title] = @ads_title, [ads_created] = @a" + + "ds_created, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([id] = @Ori" + + "ginal_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @O" + + "riginal_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @O" + + "riginal_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Origina" + + "l_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)" + + ") AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) A" + + "ND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND " + + "((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@" + + "IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((" + + "@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) A" + + "ND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNul" + + "l_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND" + + " [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1" + + " AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND (" + + "(@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_" + + "title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_create" + + "d] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([mem" + + "o] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wda" + + "te));\r\nSELECT id, password, nameE, name, dept, grade, email, level, indate, outd" + + "ate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FRO" + + "M Users WHERE (id = @id) ORDER BY name"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -4418,17 +4648,21 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@outdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_employNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_created", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameE", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameE", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameE", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameE", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grade", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -4443,12 +4677,20 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_outdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_place", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_employNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_employNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_created", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_created", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4461,30 +4703,60 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te" + - "l, memo, wuid, wdate, hp\r\nFROM Users"; + this._commandCollection[0].CommandText = "SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te" + + "l, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate\r\nFROM " + + "Users\r\nWHERE (ISNULL(dept, \'\') LIKE @dept)\r\nORDER BY name"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = @"SELECT dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, tel, wdate, wuid -FROM Users -WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR - (password = @encpw) AND (level > 0) AND (id = @idkey) OR - (password = @encpw) AND (level > 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') })"; + this._commandCollection[1].CommandText = "SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te" + + "l, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate\r\nFROM " + + "Users\r\nwhere id = @id\r\nORDER BY name"; this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@encpw", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idkey", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = @"SELECT ads_created, ads_employNo, ads_title, dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, tel, wdate, wuid FROM Users WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR (password = @encpw) AND (level > 0) AND (id = @idkey) OR (password = @encpw) AND (level > 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') })"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@encpw", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idkey", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = @"INSERT INTO Users + (id, password, nameE, name, dept, email, level, tel, ads_employNo, ads_title, ads_created, memo, wuid, wdate) +VALUES (@id, 'B6589FC6AB0DC82CF12099D1C2D40AB994E8410C',@nameE,@name,@dept,@email, 0,@tel,@ads_employNo,@ads_title,@ads_created,@memo,@wuid,@wdate); +SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_employNo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_title", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_created", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(dsMSSQL.UsersDataTable dataTable) { + public virtual int Fill(dsMSSQL.UsersDataTable dataTable, string dept) { this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((dept == null)) { + throw new global::System.ArgumentNullException("dept"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(dept)); + } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } @@ -4496,8 +4768,50 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual dsMSSQL.UsersDataTable GetData() { + public virtual dsMSSQL.UsersDataTable GetData(string dept) { this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((dept == null)) { + throw new global::System.ArgumentNullException("dept"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(dept)); + } + dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] + public virtual int FillID(dsMSSQL.UsersDataTable dataTable, string id) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((id == null)) { + throw new global::System.ArgumentNullException("id"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(id)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual dsMSSQL.UsersDataTable GetID(string id) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((id == null)) { + throw new global::System.ArgumentNullException("id"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(id)); + } dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -4508,7 +4822,7 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] public virtual int FillIDPW(dsMSSQL.UsersDataTable dataTable, string encpw, string idkey) { - this.Adapter.SelectCommand = this.CommandCollection[1]; + this.Adapter.SelectCommand = this.CommandCollection[2]; if ((encpw == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -4533,7 +4847,7 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual dsMSSQL.UsersDataTable GetIDPW(string encpw, string idkey) { - this.Adapter.SelectCommand = this.CommandCollection[1]; + this.Adapter.SelectCommand = this.CommandCollection[2]; if ((encpw == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -4584,7 +4898,26 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(string Original_id, string Original_password, string Original_name, string Original_nameE, string Original_dept, string Original_grade, string Original_email, global::System.Nullable Original_level, string Original_indate, string Original_outdate, string Original_tel, string Original_memo, string Original_wuid, System.DateTime Original_wdate, string Original_hp) { + public virtual int Delete( + string Original_id, + string Original_password, + string Original_nameE, + string Original_name, + string Original_dept, + string Original_grade, + string Original_email, + global::System.Nullable Original_level, + string Original_indate, + string Original_outdate, + string Original_tel, + string Original_hp, + string Original_place, + string Original_ads_employNo, + string Original_ads_title, + string Original_ads_created, + string Original_memo, + string Original_wuid, + System.DateTime Original_wdate) { if ((Original_id == null)) { throw new global::System.ArgumentNullException("Original_id"); } @@ -4599,21 +4932,21 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_password)); } - if ((Original_name == null)) { + if ((Original_nameE == null)) { this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_nameE)); } - if ((Original_nameE == null)) { + if ((Original_name == null)) { this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_nameE)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_name)); } if ((Original_dept == null)) { this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); @@ -4671,29 +5004,61 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_tel)); } - if ((Original_memo == null)) { + if ((Original_hp == null)) { this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_memo)); + this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_hp)); } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); + if ((Original_place == null)) { + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; } else { - this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_wuid)); + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_place)); } - this.Adapter.DeleteCommand.Parameters[24].Value = ((System.DateTime)(Original_wdate)); - if ((Original_hp == null)) { + if ((Original_ads_employNo == null)) { this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_hp)); + this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_ads_employNo)); } + if ((Original_ads_title == null)) { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_ads_title)); + } + if ((Original_ads_created == null)) { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_ads_created)); + } + if ((Original_memo == null)) { + this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_memo)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.DeleteCommand.Parameters[33].Value = ((string)(Original_wuid)); + } + this.Adapter.DeleteCommand.Parameters[34].Value = ((System.DateTime)(Original_wdate)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -4714,7 +5079,26 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string id, string password, string name, string nameE, string dept, string grade, string email, global::System.Nullable level, string indate, string outdate, string tel, string memo, string wuid, System.DateTime wdate, string hp) { + public virtual int Insert( + string id, + string password, + string nameE, + string name, + string dept, + string grade, + string email, + global::System.Nullable level, + string indate, + string outdate, + string tel, + string hp, + string place, + string ads_employNo, + string ads_title, + string ads_created, + string memo, + string wuid, + System.DateTime wdate) { if ((id == null)) { throw new global::System.ArgumentNullException("id"); } @@ -4727,17 +5111,17 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(password)); } - if ((name == null)) { + if ((nameE == null)) { this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(name)); + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(nameE)); } - if ((nameE == null)) { + if ((name == null)) { this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(nameE)); + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(name)); } if ((dept == null)) { this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; @@ -4781,25 +5165,49 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR else { this.Adapter.InsertCommand.Parameters[10].Value = ((string)(tel)); } - if ((memo == null)) { + if ((hp == null)) { this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(memo)); + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(hp)); + } + if ((place == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(place)); + } + if ((ads_employNo == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(ads_employNo)); + } + if ((ads_title == null)) { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(ads_title)); + } + if ((ads_created == null)) { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = ((string)(ads_created)); + } + if ((memo == null)) { + this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = ((string)(memo)); } if ((wuid == null)) { throw new global::System.ArgumentNullException("wuid"); } else { - this.Adapter.InsertCommand.Parameters[12].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[13].Value = ((System.DateTime)(wdate)); - if ((hp == null)) { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(hp)); + this.Adapter.InsertCommand.Parameters[17].Value = ((string)(wuid)); } + this.Adapter.InsertCommand.Parameters[18].Value = ((System.DateTime)(wdate)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -4823,8 +5231,8 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR public virtual int Update( string id, string password, - string name, string nameE, + string name, string dept, string grade, string email, @@ -4832,14 +5240,18 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR string indate, string outdate, string tel, + string hp, + string place, + string ads_employNo, + string ads_title, + string ads_created, string memo, string wuid, System.DateTime wdate, - string hp, string Original_id, string Original_password, - string Original_name, string Original_nameE, + string Original_name, string Original_dept, string Original_grade, string Original_email, @@ -4847,10 +5259,14 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR string Original_indate, string Original_outdate, string Original_tel, + string Original_hp, + string Original_place, + string Original_ads_employNo, + string Original_ads_title, + string Original_ads_created, string Original_memo, string Original_wuid, - System.DateTime Original_wdate, - string Original_hp) { + System.DateTime Original_wdate) { if ((id == null)) { throw new global::System.ArgumentNullException("id"); } @@ -4863,17 +5279,17 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR else { this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(password)); } - if ((name == null)) { + if ((nameE == null)) { this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(name)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(nameE)); } - if ((nameE == null)) { + if ((name == null)) { this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(nameE)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(name)); } if ((dept == null)) { this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; @@ -4917,126 +5333,135 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR else { this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(tel)); } - if ((memo == null)) { + if ((hp == null)) { this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(memo)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(hp)); + } + if ((place == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(place)); + } + if ((ads_employNo == null)) { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(ads_employNo)); + } + if ((ads_title == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(ads_title)); + } + if ((ads_created == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(ads_created)); + } + if ((memo == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(memo)); } if ((wuid == null)) { throw new global::System.ArgumentNullException("wuid"); } else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(wdate)); - if ((hp == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(hp)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(wuid)); } + this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(wdate)); if ((Original_id == null)) { throw new global::System.ArgumentNullException("Original_id"); } else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_id)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_id)); } if ((Original_password == null)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_password)); - } - if ((Original_name == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_name)); - } - if ((Original_nameE == null)) { this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_nameE)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_password)); } - if ((Original_dept == null)) { + if ((Original_nameE == null)) { this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_dept)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_nameE)); } - if ((Original_grade == null)) { + if ((Original_name == null)) { this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_grade)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_name)); } - if ((Original_email == null)) { + if ((Original_dept == null)) { this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_email)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_dept)); } - if ((Original_level.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[29].Value = ((short)(Original_level.Value)); - } - else { + if ((Original_grade == null)) { this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; } - if ((Original_indate == null)) { + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_grade)); + } + if ((Original_email == null)) { this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_indate)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_email)); } - if ((Original_outdate == null)) { + if ((Original_level.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[33].Value = ((short)(Original_level.Value)); + } + else { this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value; } - else { - this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_outdate)); - } - if ((Original_tel == null)) { + if ((Original_indate == null)) { this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_tel)); + this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_indate)); } - if ((Original_memo == null)) { + if ((Original_outdate == null)) { this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_memo)); + this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_outdate)); } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); + if ((Original_tel == null)) { + this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_wuid)); + this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_tel)); } - this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_wdate)); if ((Original_hp == null)) { this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; @@ -5045,6 +5470,53 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_hp)); } + if ((Original_place == null)) { + this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_place)); + } + if ((Original_ads_employNo == null)) { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(Original_ads_employNo)); + } + if ((Original_ads_title == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(Original_ads_title)); + } + if ((Original_ads_created == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_ads_created)); + } + if ((Original_memo == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_memo)); + } + if ((Original_wuid == null)) { + throw new global::System.ArgumentNullException("Original_wuid"); + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_wuid)); + } + this.Adapter.UpdateCommand.Parameters[53].Value = ((System.DateTime)(Original_wdate)); global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -5067,8 +5539,8 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] public virtual int Update( string password, - string name, string nameE, + string name, string dept, string grade, string email, @@ -5076,14 +5548,18 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR string indate, string outdate, string tel, + string hp, + string place, + string ads_employNo, + string ads_title, + string ads_created, string memo, string wuid, System.DateTime wdate, - string hp, string Original_id, string Original_password, - string Original_name, string Original_nameE, + string Original_name, string Original_dept, string Original_grade, string Original_email, @@ -5091,11 +5567,105 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR string Original_indate, string Original_outdate, string Original_tel, + string Original_hp, + string Original_place, + string Original_ads_employNo, + string Original_ads_title, + string Original_ads_created, string Original_memo, string Original_wuid, - System.DateTime Original_wdate, - string Original_hp) { - return this.Update(Original_id, password, name, nameE, dept, grade, email, level, indate, outdate, tel, memo, wuid, wdate, hp, Original_id, Original_password, Original_name, Original_nameE, Original_dept, Original_grade, Original_email, Original_level, Original_indate, Original_outdate, Original_tel, Original_memo, Original_wuid, Original_wdate, Original_hp); + System.DateTime Original_wdate) { + return this.Update(Original_id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, Original_id, Original_password, Original_nameE, Original_name, Original_dept, Original_grade, Original_email, Original_level, Original_indate, Original_outdate, Original_tel, Original_hp, Original_place, Original_ads_employNo, Original_ads_title, Original_ads_created, Original_memo, Original_wuid, Original_wdate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] + public virtual int InsertADSInfo(string id, string nameE, string name, string dept, string email, string tel, string ads_employNo, string ads_title, string ads_created, string memo, string wuid, System.DateTime wdate) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((id == null)) { + throw new global::System.ArgumentNullException("id"); + } + else { + command.Parameters[0].Value = ((string)(id)); + } + if ((nameE == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(nameE)); + } + if ((name == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(name)); + } + if ((dept == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(dept)); + } + if ((email == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(email)); + } + if ((tel == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(tel)); + } + if ((ads_employNo == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(ads_employNo)); + } + if ((ads_title == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(ads_title)); + } + if ((ads_created == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(ads_created)); + } + if ((memo == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } + else { + command.Parameters[9].Value = ((string)(memo)); + } + if ((wuid == null)) { + throw new global::System.ArgumentNullException("wuid"); + } + else { + command.Parameters[10].Value = ((string)(wuid)); + } + command.Parameters[11].Value = ((System.DateTime)(wdate)); + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; } } diff --git a/Project/dsMSSQL.xsd b/Project/dsMSSQL.xsd index 0bbc620..d38b1a0 100644 --- a/Project/dsMSSQL.xsd +++ b/Project/dsMSSQL.xsd @@ -12,15 +12,15 @@ - DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp))) + DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) + + - - @@ -35,24 +35,32 @@ + + + + + + + + + + - - - INSERT INTO [Users] ([id], [password], [name], [nameE], [dept], [grade], [email], [level], [indate], [outdate], [tel], [memo], [wuid], [wdate], [hp]) VALUES (@id, @password, @name, @nameE, @dept, @grade, @email, @level, @indate, @outdate, @tel, @memo, @wuid, @wdate, @hp); -SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, tel, memo, wuid, wdate, hp FROM Users WHERE (id = @id) + INSERT INTO [Users] ([id], [password], [nameE], [name], [dept], [grade], [email], [level], [indate], [outdate], [tel], [hp], [place], [ads_employNo], [ads_title], [ads_created], [memo], [wuid], [wdate]) VALUES (@id, @password, @nameE, @name, @dept, @grade, @email, @level, @indate, @outdate, @tel, @hp, @place, @ads_employNo, @ads_title, @ads_created, @memo, @wuid, @wdate); +SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name + - @@ -60,29 +68,37 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te + + + + + - - SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, tel, memo, wuid, wdate, hp -FROM Users - + SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate +FROM Users +WHERE (ISNULL(dept, '') LIKE @dept) +ORDER BY name + + + - UPDATE [Users] SET [id] = @id, [password] = @password, [name] = @name, [nameE] = @nameE, [dept] = @dept, [grade] = @grade, [email] = @email, [level] = @level, [indate] = @indate, [outdate] = @outdate, [tel] = @tel, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [hp] = @hp WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp))); -SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, tel, memo, wuid, wdate, hp FROM Users WHERE (id = @id) + UPDATE [Users] SET [id] = @id, [password] = @password, [nameE] = @nameE, [name] = @name, [dept] = @dept, [grade] = @grade, [email] = @email, [level] = @level, [indate] = @indate, [outdate] = @outdate, [tel] = @tel, [hp] = @hp, [place] = @place, [ads_employNo] = @ads_employNo, [ads_title] = @ads_title, [ads_created] = @ads_created, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); +SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name + - @@ -90,17 +106,21 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te + + + + + - + + - - @@ -115,12 +135,20 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te + + + + + + + + + + - - @@ -142,16 +170,29 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te + + + + + + + + SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate +FROM Users +where id = @id +ORDER BY name + + + + + + - SELECT dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, tel, wdate, wuid -FROM Users -WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR - (password = @encpw) AND (level > 0) AND (id = @idkey) OR - (password = @encpw) AND (level > 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') }) + SELECT ads_created, ads_employNo, ads_title, dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, tel, wdate, wuid FROM Users WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR (password = @encpw) AND (level > 0) AND (id = @idkey) OR (password = @encpw) AND (level > 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') }) @@ -159,6 +200,30 @@ WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR + + + + INSERT INTO Users + (id, password, nameE, name, dept, email, level, tel, ads_employNo, ads_title, ads_created, memo, wuid, wdate) +VALUES (@id, 'B6589FC6AB0DC82CF12099D1C2D40AB994E8410C',@nameE,@name,@dept,@email, 0,@tel,@ads_employNo,@ads_title,@ads_created,@memo,@wuid,@wdate); +SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name + + + + + + + + + + + + + + + + + @@ -664,28 +729,28 @@ WHERE (idx = @idx) - + - + - + - + - + - + @@ -695,26 +760,26 @@ WHERE (idx = @idx) - + - + - + - + - + - + @@ -739,7 +804,7 @@ WHERE (idx = @idx) - + @@ -750,6 +815,34 @@ WHERE (idx = @idx) + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Project/dsMSSQL.xss b/Project/dsMSSQL.xss index 2c02d87..92ed96b 100644 --- a/Project/dsMSSQL.xss +++ b/Project/dsMSSQL.xss @@ -4,14 +4,14 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - + + + + + + \ No newline at end of file diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs index 4a55b19..2575c8d 100644 --- a/Project/fMain.Designer.cs +++ b/Project/fMain.Designer.cs @@ -42,6 +42,7 @@ this.sbBWRun = new System.Windows.Forms.ToolStripStatusLabel(); this.sbBCD = new System.Windows.Forms.ToolStripStatusLabel(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); + this.sbRedis = new System.Windows.Forms.ToolStripStatusLabel(); this.sbLogin = new System.Windows.Forms.ToolStripStatusLabel(); this.btSetting = new System.Windows.Forms.ToolStripMenuItem(); this.btLog = new System.Windows.Forms.ToolStripMenuItem(); @@ -54,6 +55,9 @@ this.lineCodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.staffGridToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.userInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.userAccountToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aDSUserListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.myAccouserToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mailFormToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.customerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.boardsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -84,7 +88,6 @@ this.toolStrip = new System.Windows.Forms.ToolStrip(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); - this.sbRedis = new System.Windows.Forms.ToolStripStatusLabel(); this.cmVision.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); @@ -168,6 +171,12 @@ this.statusStrip1.TabIndex = 30; this.statusStrip1.Text = "statusStrip1"; // + // sbRedis + // + this.sbRedis.Name = "sbRedis"; + this.sbRedis.Size = new System.Drawing.Size(55, 17); + this.sbRedis.Text = "● REDIS"; + // // sbLogin // this.sbLogin.Name = "sbLogin"; @@ -241,49 +250,75 @@ // itemsToolStripMenuItem // this.itemsToolStripMenuItem.Name = "itemsToolStripMenuItem"; - this.itemsToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.itemsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.itemsToolStripMenuItem.Text = "Items"; this.itemsToolStripMenuItem.Click += new System.EventHandler(this.itemsToolStripMenuItem_Click); // // codesToolStripMenuItem // this.codesToolStripMenuItem.Name = "codesToolStripMenuItem"; - this.codesToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.codesToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.codesToolStripMenuItem.Text = "Codes"; this.codesToolStripMenuItem.Click += new System.EventHandler(this.codesToolStripMenuItem_Click); // // lineCodeToolStripMenuItem // this.lineCodeToolStripMenuItem.Name = "lineCodeToolStripMenuItem"; - this.lineCodeToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.lineCodeToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.lineCodeToolStripMenuItem.Text = "Line Code"; this.lineCodeToolStripMenuItem.Click += new System.EventHandler(this.lineCodeToolStripMenuItem_Click); // // staffGridToolStripMenuItem // this.staffGridToolStripMenuItem.Name = "staffGridToolStripMenuItem"; - this.staffGridToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.staffGridToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.staffGridToolStripMenuItem.Text = "Staff Grid"; this.staffGridToolStripMenuItem.Click += new System.EventHandler(this.staffGridToolStripMenuItem_Click); // // userInfoToolStripMenuItem // + this.userInfoToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.userAccountToolStripMenuItem, + this.myAccouserToolStripMenuItem, + this.aDSUserListToolStripMenuItem}); this.userInfoToolStripMenuItem.Name = "userInfoToolStripMenuItem"; - this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.userInfoToolStripMenuItem.Text = "User Info"; this.userInfoToolStripMenuItem.Click += new System.EventHandler(this.userInfoToolStripMenuItem_Click); // + // userAccountToolStripMenuItem + // + this.userAccountToolStripMenuItem.Name = "userAccountToolStripMenuItem"; + this.userAccountToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.userAccountToolStripMenuItem.Text = "User Account"; + this.userAccountToolStripMenuItem.Click += new System.EventHandler(this.userAccountToolStripMenuItem_Click); + // + // aDSUserListToolStripMenuItem + // + this.aDSUserListToolStripMenuItem.ForeColor = System.Drawing.Color.Blue; + this.aDSUserListToolStripMenuItem.Name = "aDSUserListToolStripMenuItem"; + this.aDSUserListToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.aDSUserListToolStripMenuItem.Text = "User List(ADS)"; + this.aDSUserListToolStripMenuItem.Click += new System.EventHandler(this.aDSUserListToolStripMenuItem_Click); + // + // myAccouserToolStripMenuItem + // + this.myAccouserToolStripMenuItem.Name = "myAccouserToolStripMenuItem"; + this.myAccouserToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.myAccouserToolStripMenuItem.Text = "User List"; + this.myAccouserToolStripMenuItem.Click += new System.EventHandler(this.myAccouserToolStripMenuItem_Click); + // // mailFormToolStripMenuItem // this.mailFormToolStripMenuItem.Name = "mailFormToolStripMenuItem"; - this.mailFormToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.mailFormToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.mailFormToolStripMenuItem.Text = "Mail Form"; this.mailFormToolStripMenuItem.Click += new System.EventHandler(this.mailFormToolStripMenuItem_Click); // // customerToolStripMenuItem // this.customerToolStripMenuItem.Name = "customerToolStripMenuItem"; - this.customerToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.customerToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.customerToolStripMenuItem.Text = "Customer"; this.customerToolStripMenuItem.Click += new System.EventHandler(this.customerToolStripMenuItem_Click); // @@ -516,12 +551,6 @@ this.toolStripButton2.ToolTipText = "파트구매신청서 작성"; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); // - // sbRedis - // - this.sbRedis.Name = "sbRedis"; - this.sbRedis.Size = new System.Drawing.Size(55, 17); - this.sbRedis.Text = "● REDIS"; - // // fMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -609,6 +638,9 @@ private System.Windows.Forms.ToolStripMenuItem customerToolStripMenuItem; private System.Windows.Forms.ToolStripButton toolStripButton2; private System.Windows.Forms.ToolStripStatusLabel sbRedis; + private System.Windows.Forms.ToolStripMenuItem userAccountToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aDSUserListToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem myAccouserToolStripMenuItem; } } diff --git a/Project/fMain.cs b/Project/fMain.cs index 85d6357..43db1bd 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -89,7 +89,11 @@ namespace Project if (FCOMMON.info.Login.level >= 10) btDev.Visible = true; - sbLogin.Text = string.Format("{0} {1}", FCOMMON.info.Login.no, FCOMMON.info.Login.nameK); + sbLogin.Text = string.Format("[{0}] ({1}-{2} T:{3})", + FCOMMON.info.Login.title, + FCOMMON.info.Login.no, + FCOMMON.info.Login.nameK, + FCOMMON.info.Login.tel); Pub.log.Add("Program Start"); @@ -272,17 +276,7 @@ namespace Project private void userInfoToolStripMenuItem_Click(object sender, EventArgs e) { - if (FCOMMON.info.Login.level >= 10) - { - var f = new _Common.fUserList(); - f.MdiParent = this; - f.Show(); - } - else - { - var f = new _Common.fUserInfo(); - f.ShowDialog(); - } + } private void cascadeToolStripMenuItem_Click(object sender, EventArgs e) @@ -399,5 +393,30 @@ namespace Project { nRPurchaseToolStripMenuItem.PerformClick(); } + + private void userAccountToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new _Common.fUserInfo(); + f.ShowDialog(); + } + + private void aDSUserListToolStripMenuItem_Click(object sender, EventArgs e) + { + if(FCOMMON.info.Login.level < 10) + { + FCOMMON.Util.MsgE("개발자 이상 사용가능한 메뉴 입니다."); + return; + } + var f = new _Common.fADSUserList(); + f.MdiParent = this; + f.Show(); + } + + private void myAccouserToolStripMenuItem_Click(object sender, EventArgs e) + { + var f = new _Common.fUserList(); + f.MdiParent = this; + f.Show(); + } } } diff --git a/Project/fMain.resx b/Project/fMain.resx index fe428fc..08d56d3 100644 --- a/Project/fMain.resx +++ b/Project/fMain.resx @@ -153,16 +153,16 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIaSURBVDhPY0iaW349aWbN/7Ty3ovplX3WDFAwrd5VbGad - +65pVS4WcH61y64pFW4qYAUwkDS/8lLi3KqLqZW9USkVfXcYGP4zTq10sZ9R7f52x/SoX7Nq3d9PrnRz - nVnn+mrn9Jg/cxrcHs8pteKFakcFqdU9f9JnlL0pmZL9Z+bKkv+7dtf/37g879/kJr9/VzYW/vt6rvX/ - kUWpP2fXehxdFRrKDNWGACmNXZ9b1s76P+vk0v99+2f9b9464X/5mtb/6Qsr/8fPKf+ft7j6f8Oq2v+1 - cwt+FU1MORY3uzwGqhUC0lo6r9TOn/5/14O9GHj73d3/V13Z+H/u6WX/Jxyc+796Y8/f+HkVb6FaISCp - uXlxbm//b5imnn0zsdIgPOfUsv/JC6ouQLVCQFJra2p6ffcfmKK4OWVYaRAGuSJ+XvlqqFYISOnokEmr - 6vu//d5uggY0bp/8I25OaQtUKwKkVPX+XXh8HVgRPi8Ur2n/GDunLBWqDQFS6rvfda2bD1eIDW+6tf1/ - wrzKHwkzK0yh2hAgubnjVGJXy19gCv0OwwnzK34kzAdqgOLEuWU/kxfU9EO1oIK0ir6M1Mq+rVAu6SC1 - rFcXmC/ep1T1G0CFSAcZtRMPZ1T3/8usmfQ/rbIfBWfUTATSE3/n1E3B7gUQSKvq/zFn3aH/6ZX936FC - cIBPDg4ygaanVkz4nV07uQcqBAeocgwMAAhppHUfe4MbAAAAAElFTkSuQmCC + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIbSURBVDhPlY9daFJhGMdPdN1tV112G3QTRF0E4WZX3a2L + OHPzzHNUFqOces579HgWKnN+nKNps+OOuiENsiksGpLSNxUtiC0GQVQE3UVrRMTc/HjK+XpEksV+8Ofl + fZ7n9/I+BKU63lOKGxg2sm5G0lkCMysOHFU8+vIsrzut3V26coIbPL430IHKonfGNL9Oo8hlipM+EgQc + uol05xKcfvN+/NJuEum34mhwIOk5/+1BnKyrU7qvquPMEaz3QrsCddMt23d7dLyu3LFDuSJCITfRlMWL + zbXCtebvt354kqF35oQLL/JDQ4ex1mX0evCXr5CC1OvbID1OgXclCuySH8wLCEZUFiZyLpjKCyCkr+7a + YqaXhjmWxGobxjezIWSTUP7y8J+UPlUgv7EM6TeLEH2aBnY53CAz3CZW21Beb84akWsdKfxI6Xu2oq4u + wtg8v4bVNpTfT5vF6XpnyKA6+56ttH4xkmHvYrWNKRA4xvASlD5X/vuAWIpXDarDh9Uuo85IY+FVcW9o + vxUml6Z/DqtOGmtdjGLoR7CY1Qb75d6HEpAZVB1VuFNY60J5A6vDQV+DUia3OyGzXJXMIi1GxbYzNu+W + sdILw0kWGkkr+HpwaGfkBMPObJl4+SQuHRyLEHtucYWaVvcNYJDcE4s7BpQjVrviSfRfoQXFh6pq8RmY + HfI2Lmns19Ow/n3daI/WxoV4GJc0ensE8Qccd6OMgOfxRwAAAABJRU5ErkJggg== diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs index e0860d7..50b89c7 100644 --- a/SubProject/FCOMMON/DataBaseManager.cs +++ b/SubProject/FCOMMON/DataBaseManager.cs @@ -216,6 +216,7 @@ namespace FCOMMON { retval.Add(rdr[0].ToString(), rdr[1].ToString()); } + rdr.Close(); cmd.Dispose(); cn.Close(); cn.Dispose(); @@ -227,6 +228,39 @@ namespace FCOMMON var list = getGroupList(GroupColumn, table, where, desc); return MakeDataTable(list); } + + /// + /// 데이터중 첫번째 자료를 반환 합니다. + /// + /// + /// + /// + /// + /// + public static String getFirstValue(string column,string table,string where="",string order="") + { + string retval = string.Empty; + var cn = getCn(); + cn.Open(); + var sql = "select {0} " + + " from {1} " + + " where isnull({0},'') != '' "; + + if (where != "") sql += " and " + where; + if (order != "") sql += " order by " + order; + + sql = string.Format(sql, "[" + column + "]", table); + var cmd = new SqlCommand(sql, cn); + var rdr = cmd.ExecuteReader(); + while (rdr.Read()) + { + if (rdr[0] != null) retval = rdr[0].ToString(); + } + cmd.Dispose(); + cn.Close(); + cn.Dispose(); + return retval; + } public static List getGroupList(string GroupColumn, string table, string where = "",Boolean desc=false) { List retval = new List(); diff --git a/SubProject/FCOMMON/Info.cs b/SubProject/FCOMMON/Info.cs index b76d87a..b997add 100644 --- a/SubProject/FCOMMON/Info.cs +++ b/SubProject/FCOMMON/Info.cs @@ -21,6 +21,7 @@ namespace FCOMMON { public struct sUserInfo { + public string title; public string tel; public string hp; public string no; diff --git a/SubProject/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj index d8e4aab..f680480 100644 --- a/SubProject/FEQ0000/FEQ0000.csproj +++ b/SubProject/FEQ0000/FEQ0000.csproj @@ -9,8 +9,9 @@ Properties FEQ0000 FEQ0000 - v4.0 + v4.5.2 512 + x86 @@ -21,6 +22,7 @@ DEBUG;TRACE prompt 4 + false AnyCPU @@ -30,17 +32,31 @@ TRACE prompt 4 + false ..\..\DLL\ArSetting.Net4.dll + + + + + + + + + + + + ..\..\DLL\libxl.net.dll + @@ -51,6 +67,7 @@ + @@ -143,6 +160,7 @@ fImpEquipment.cs + ResXFileCodeGenerator Resources.Designer.cs diff --git a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs index 9bff9df..0b72474 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs @@ -30,17 +30,29 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchase)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle(); + FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); this.dsPurchase = new FEQ0000.dsPurchase(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); @@ -60,14 +72,19 @@ this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.btSave = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); + this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.lbSum = new System.Windows.Forms.ToolStripLabel(); - this.dv1 = new System.Windows.Forms.DataGridView(); + this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); + this.tbFind = new System.Windows.Forms.ToolStripTextBox(); + this.btFind = new System.Windows.Forms.ToolStripButton(); this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.autoResizeColumnsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.viewThisUserDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.copyDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); + this.viewThisUserDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.lbStt = new System.Windows.Forms.ToolStripLabel(); this.dtSD = new System.Windows.Forms.ToolStripTextBox(); @@ -80,40 +97,16 @@ this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); this.tbRequest = new System.Windows.Forms.ToolStripTextBox(); this.btSearch = new System.Windows.Forms.ToolStripButton(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dvc_statename = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dvc_state = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.pumidx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.supplyidx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); - this.tbFind = new System.Windows.Forms.ToolStripTextBox(); - this.btFind = new System.Windows.Forms.ToolStripButton(); + this.FpSpread1 = new FarPoint.Win.Spread.FpSpread(); + this.FpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); this.bn.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit(); this.cm1.SuspendLayout(); this.toolStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.FpSpread1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.FpSpread1_Sheet1)).BeginInit(); this.SuspendLayout(); // // dsPurchase @@ -164,14 +157,14 @@ this.toolStripLabel2, this.tbFind, this.btFind}); - this.bn.Location = new System.Drawing.Point(0, 555); + this.bn.Location = new System.Drawing.Point(0, 493); 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(864, 26); + this.bn.Size = new System.Drawing.Size(878, 26); this.bn.TabIndex = 0; this.bn.Text = "bindingNavigator1"; // @@ -284,12 +277,11 @@ this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 26); // - // toolStripLabel5 + // toolStripSeparator4 // - this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.toolStripLabel5.Name = "toolStripLabel5"; - this.toolStripLabel5.Size = new System.Drawing.Size(58, 23); - this.toolStripLabel5.Text = "Sub Total"; + this.toolStripSeparator4.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripSeparator4.Name = "toolStripSeparator4"; + this.toolStripSeparator4.Size = new System.Drawing.Size(6, 26); // // lbSum // @@ -299,59 +291,47 @@ this.lbSum.Size = new System.Drawing.Size(22, 23); this.lbSum.Text = "0"; // - // dv1 + // toolStripLabel5 // - this.dv1.AllowUserToAddRows = false; - this.dv1.AllowUserToDeleteRows = 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.dataGridViewTextBoxColumn2, - this.dvc_statename, - this.dvc_state, - this.dataGridViewTextBoxColumn4, - this.dataGridViewTextBoxColumn7, - this.dataGridViewTextBoxColumn6, - this.dataGridViewTextBoxColumn5, - this.dataGridViewTextBoxColumn8, - this.dataGridViewTextBoxColumn9, - this.pumidx, - this.dataGridViewTextBoxColumn10, - this.dataGridViewTextBoxColumn11, - this.dataGridViewTextBoxColumn12, - this.dataGridViewTextBoxColumn13, - this.dataGridViewTextBoxColumn14, - this.dataGridViewTextBoxColumn15, - this.supplyidx, - this.dataGridViewTextBoxColumn17, - this.dataGridViewTextBoxColumn19, - this.dataGridViewTextBoxColumn20, - this.dataGridViewTextBoxColumn21, - this.dataGridViewTextBoxColumn22, - this.dataGridViewTextBoxColumn23}); - 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.MultiSelect = false; - this.dv1.Name = "dv1"; - this.dv1.ReadOnly = true; - this.dv1.RowTemplate.Height = 23; - this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dv1.Size = new System.Drawing.Size(864, 530); - this.dv1.TabIndex = 2; - this.dv1.DoubleClick += new System.EventHandler(this.dv1_DoubleClick); + this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripLabel5.Name = "toolStripLabel5"; + this.toolStripLabel5.Size = new System.Drawing.Size(58, 23); + this.toolStripLabel5.Text = "Sub Total"; + // + // toolStripLabel2 + // + this.toolStripLabel2.Name = "toolStripLabel2"; + this.toolStripLabel2.Size = new System.Drawing.Size(43, 23); + this.toolStripLabel2.Text = "Search"; + // + // tbFind + // + this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.tbFind.Name = "tbFind"; + this.tbFind.Size = new System.Drawing.Size(100, 26); + this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown); + // + // btFind + // + this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image"))); + this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btFind.Name = "btFind"; + this.btFind.Size = new System.Drawing.Size(23, 23); + this.btFind.Text = "toolStripButton2"; + this.btFind.Click += new System.EventHandler(this.btFind_Click); // // cm1 // this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.autoResizeColumnsToolStripMenuItem, - this.viewThisUserDataToolStripMenuItem, this.toolStripMenuItem1, - this.copyDataToolStripMenuItem}); + this.copyDataToolStripMenuItem, + this.editDataToolStripMenuItem, + this.toolStripMenuItem2, + this.viewThisUserDataToolStripMenuItem}); this.cm1.Name = "contextMenuStrip1"; - this.cm1.Size = new System.Drawing.Size(186, 76); + this.cm1.Size = new System.Drawing.Size(186, 104); // // autoResizeColumnsToolStripMenuItem // @@ -360,13 +340,6 @@ this.autoResizeColumnsToolStripMenuItem.Text = "AutoResize Columns"; this.autoResizeColumnsToolStripMenuItem.Click += new System.EventHandler(this.autoResizeColumnsToolStripMenuItem_Click); // - // viewThisUserDataToolStripMenuItem - // - this.viewThisUserDataToolStripMenuItem.Name = "viewThisUserDataToolStripMenuItem"; - this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(185, 22); - this.viewThisUserDataToolStripMenuItem.Text = "View This User data"; - this.viewThisUserDataToolStripMenuItem.Click += new System.EventHandler(this.viewThisUserDataToolStripMenuItem_Click); - // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; @@ -379,6 +352,25 @@ this.copyDataToolStripMenuItem.Text = "Copy Data"; this.copyDataToolStripMenuItem.Click += new System.EventHandler(this.copyDataToolStripMenuItem_Click); // + // editDataToolStripMenuItem + // + this.editDataToolStripMenuItem.Name = "editDataToolStripMenuItem"; + this.editDataToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.editDataToolStripMenuItem.Text = "Edit Data"; + this.editDataToolStripMenuItem.Click += new System.EventHandler(this.editDataToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(182, 6); + // + // viewThisUserDataToolStripMenuItem + // + this.viewThisUserDataToolStripMenuItem.Name = "viewThisUserDataToolStripMenuItem"; + this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.viewThisUserDataToolStripMenuItem.Text = "View This User data"; + this.viewThisUserDataToolStripMenuItem.Click += new System.EventHandler(this.viewThisUserDataToolStripMenuItem_Click); + // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -395,7 +387,7 @@ this.btSearch}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(864, 25); + this.toolStrip1.Size = new System.Drawing.Size(878, 25); this.toolStrip1.TabIndex = 3; this.toolStrip1.Text = "toolStrip1"; // @@ -475,235 +467,187 @@ this.btSearch.Text = "Refresh(&R)"; this.btSearch.Click += new System.EventHandler(this.btSearch_Click); // - // dataGridViewTextBoxColumn2 + // FpSpread1 // - this.dataGridViewTextBoxColumn2.DataPropertyName = "pdate"; - this.dataGridViewTextBoxColumn2.HeaderText = "Date"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.FpSpread1.AccessibleDescription = ""; + this.FpSpread1.ContextMenuStrip = this.cm1; + this.FpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; + this.FpSpread1.EditModeReplace = true; + this.FpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.FpSpread1.Location = new System.Drawing.Point(0, 25); + this.FpSpread1.Name = "FpSpread1"; + this.FpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { + this.FpSpread1_Sheet1}); + this.FpSpread1.Size = new System.Drawing.Size(878, 468); + this.FpSpread1.TabIndex = 4; // - // dvc_statename + // FpSpread1_Sheet1 // - this.dvc_statename.DataPropertyName = "stateName"; - dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.dvc_statename.DefaultCellStyle = dataGridViewCellStyle23; - this.dvc_statename.HeaderText = "State"; - this.dvc_statename.Name = "dvc_statename"; - this.dvc_statename.ReadOnly = true; - // - // dvc_state - // - this.dvc_state.DataPropertyName = "state"; - this.dvc_state.HeaderText = "state"; - this.dvc_state.Name = "dvc_state"; - this.dvc_state.ReadOnly = true; - this.dvc_state.Visible = false; - // - // dataGridViewTextBoxColumn4 - // - this.dataGridViewTextBoxColumn4.DataPropertyName = "process"; - this.dataGridViewTextBoxColumn4.HeaderText = "process"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; - // - // dataGridViewTextBoxColumn7 - // - this.dataGridViewTextBoxColumn7.DataPropertyName = "request"; - dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle24; - this.dataGridViewTextBoxColumn7.HeaderText = "request"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.ReadOnly = true; - // - // dataGridViewTextBoxColumn6 - // - this.dataGridViewTextBoxColumn6.DataPropertyName = "sc"; - dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle25; - this.dataGridViewTextBoxColumn6.HeaderText = "sc#"; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.ReadOnly = true; - // - // dataGridViewTextBoxColumn5 - // - this.dataGridViewTextBoxColumn5.DataPropertyName = "receive"; - dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle26; - this.dataGridViewTextBoxColumn5.HeaderText = "receive"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.ReadOnly = true; - // - // dataGridViewTextBoxColumn8 - // - this.dataGridViewTextBoxColumn8.DataPropertyName = "sid"; - dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle27; - this.dataGridViewTextBoxColumn8.HeaderText = "sid#"; - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.ReadOnly = true; - // - // dataGridViewTextBoxColumn9 - // - this.dataGridViewTextBoxColumn9.DataPropertyName = "pumname"; - this.dataGridViewTextBoxColumn9.HeaderText = "Item"; - this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; - this.dataGridViewTextBoxColumn9.ReadOnly = true; - // - // pumidx - // - this.pumidx.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; - this.pumidx.DataPropertyName = "pumidx"; - dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.pumidx.DefaultCellStyle = dataGridViewCellStyle28; - this.pumidx.HeaderText = "*"; - this.pumidx.Name = "pumidx"; - this.pumidx.ReadOnly = true; - this.pumidx.Width = 50; - // - // dataGridViewTextBoxColumn10 - // - this.dataGridViewTextBoxColumn10.DataPropertyName = "pumscale"; - this.dataGridViewTextBoxColumn10.HeaderText = "Model"; - this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; - this.dataGridViewTextBoxColumn10.ReadOnly = true; - // - // dataGridViewTextBoxColumn11 - // - this.dataGridViewTextBoxColumn11.DataPropertyName = "pumunit"; - this.dataGridViewTextBoxColumn11.HeaderText = "Unit"; - this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; - this.dataGridViewTextBoxColumn11.ReadOnly = true; - // - // dataGridViewTextBoxColumn12 - // - this.dataGridViewTextBoxColumn12.DataPropertyName = "pumqty"; - dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle29.Format = "N0"; - this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle29; - this.dataGridViewTextBoxColumn12.HeaderText = "Qty"; - this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; - this.dataGridViewTextBoxColumn12.ReadOnly = true; - // - // dataGridViewTextBoxColumn13 - // - this.dataGridViewTextBoxColumn13.DataPropertyName = "pumprice"; - dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle30.Format = "N0"; - this.dataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle30; - this.dataGridViewTextBoxColumn13.HeaderText = "Price"; - this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; - this.dataGridViewTextBoxColumn13.ReadOnly = true; - // - // dataGridViewTextBoxColumn14 - // - this.dataGridViewTextBoxColumn14.DataPropertyName = "pumamt"; - dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; - dataGridViewCellStyle31.Format = "N0"; - this.dataGridViewTextBoxColumn14.DefaultCellStyle = dataGridViewCellStyle31; - this.dataGridViewTextBoxColumn14.HeaderText = "Amt"; - this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; - this.dataGridViewTextBoxColumn14.ReadOnly = true; - // - // dataGridViewTextBoxColumn15 - // - this.dataGridViewTextBoxColumn15.DataPropertyName = "supply"; - this.dataGridViewTextBoxColumn15.HeaderText = "Supply"; - this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; - this.dataGridViewTextBoxColumn15.ReadOnly = true; - // - // supplyidx - // - this.supplyidx.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; - this.supplyidx.DataPropertyName = "supplyidx"; - dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.supplyidx.DefaultCellStyle = dataGridViewCellStyle32; - this.supplyidx.HeaderText = "*"; - this.supplyidx.Name = "supplyidx"; - this.supplyidx.ReadOnly = true; - this.supplyidx.Width = 50; - // - // dataGridViewTextBoxColumn17 - // - this.dataGridViewTextBoxColumn17.DataPropertyName = "project"; - this.dataGridViewTextBoxColumn17.HeaderText = "Project"; - this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; - this.dataGridViewTextBoxColumn17.ReadOnly = true; - // - // dataGridViewTextBoxColumn19 - // - this.dataGridViewTextBoxColumn19.DataPropertyName = "asset"; - this.dataGridViewTextBoxColumn19.HeaderText = "Asset"; - this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; - this.dataGridViewTextBoxColumn19.ReadOnly = true; - // - // dataGridViewTextBoxColumn20 - // - this.dataGridViewTextBoxColumn20.DataPropertyName = "edate"; - this.dataGridViewTextBoxColumn20.HeaderText = "ExDate"; - this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; - this.dataGridViewTextBoxColumn20.ReadOnly = true; - // - // dataGridViewTextBoxColumn21 - // - this.dataGridViewTextBoxColumn21.DataPropertyName = "indate"; - this.dataGridViewTextBoxColumn21.HeaderText = "InDate"; - this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; - this.dataGridViewTextBoxColumn21.ReadOnly = true; - // - // dataGridViewTextBoxColumn22 - // - this.dataGridViewTextBoxColumn22.DataPropertyName = "po"; - dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn22.DefaultCellStyle = dataGridViewCellStyle33; - this.dataGridViewTextBoxColumn22.HeaderText = "PO"; - this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; - this.dataGridViewTextBoxColumn22.ReadOnly = true; - // - // dataGridViewTextBoxColumn23 - // - this.dataGridViewTextBoxColumn23.DataPropertyName = "dept"; - this.dataGridViewTextBoxColumn23.HeaderText = "Dept"; - this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; - this.dataGridViewTextBoxColumn23.ReadOnly = true; - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 26); - // - // toolStripLabel2 - // - this.toolStripLabel2.Name = "toolStripLabel2"; - this.toolStripLabel2.Size = new System.Drawing.Size(43, 23); - this.toolStripLabel2.Text = "Search"; - // - // tbFind - // - this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.tbFind.Name = "tbFind"; - this.tbFind.Size = new System.Drawing.Size(100, 26); - this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown); - // - // btFind - // - this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image"))); - this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btFind.Name = "btFind"; - this.btFind.Size = new System.Drawing.Size(23, 23); - this.btFind.Text = "toolStripButton2"; - this.btFind.Click += new System.EventHandler(this.btFind_Click); + this.FpSpread1_Sheet1.Reset(); + this.FpSpread1_Sheet1.SheetName = "Sheet1"; + // Formulas and custom names must be loaded with R1C1 reference style + this.FpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; + this.FpSpread1_Sheet1.ColumnCount = 23; + this.FpSpread1_Sheet1.ActiveColumnIndex = -1; + this.FpSpread1_Sheet1.ActiveRowIndex = -1; + this.FpSpread1_Sheet1.AutoGenerateColumns = false; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "Date"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "state"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "sc#"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "sid#"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "Item"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "*"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "Model"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "Qty"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "Unit"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "Price"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "Amt"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Supply"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "*"; + this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "*"; + this.FpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; + this.FpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1; + this.FpSpread1_Sheet1.Columns.Get(0).DataField = "pdate"; + this.FpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(0).Label = "Date"; + this.FpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(0).Width = 34F; + this.FpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; + this.FpSpread1_Sheet1.Columns.Get(1).DataField = "stateName"; + this.FpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(1).Label = "state"; + this.FpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(1).Width = 34F; + this.FpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; + this.FpSpread1_Sheet1.Columns.Get(2).DataField = "process"; + this.FpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(2).Width = 49F; + this.FpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4; + this.FpSpread1_Sheet1.Columns.Get(3).DataField = "request"; + this.FpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(3).Width = 48F; + this.FpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5; + this.FpSpread1_Sheet1.Columns.Get(4).DataField = "sc"; + this.FpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(4).Label = "sc#"; + this.FpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(4).Width = 27F; + this.FpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6; + this.FpSpread1_Sheet1.Columns.Get(5).DataField = "receive"; + this.FpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(5).Width = 46F; + this.FpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7; + this.FpSpread1_Sheet1.Columns.Get(6).DataField = "sid"; + this.FpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(6).Label = "sid#"; + this.FpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(6).Width = 31F; + this.FpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8; + this.FpSpread1_Sheet1.Columns.Get(7).DataField = "pumname"; + this.FpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(7).Label = "Item"; + this.FpSpread1_Sheet1.Columns.Get(7).Width = 33F; + numberCellType1.DecimalPlaces = 0; + numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType1.MaximumValue = 2147483647D; + numberCellType1.MinimumValue = -2147483648D; + this.FpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType1; + this.FpSpread1_Sheet1.Columns.Get(8).DataField = "pumidx"; + this.FpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(8).Label = "*"; + this.FpSpread1_Sheet1.Columns.Get(8).Width = 14F; + this.FpSpread1_Sheet1.Columns.Get(9).CellType = textCellType9; + this.FpSpread1_Sheet1.Columns.Get(9).DataField = "pumscale"; + this.FpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(9).Label = "Model"; + this.FpSpread1_Sheet1.Columns.Get(9).Width = 43F; + numberCellType2.DecimalPlaces = 0; + numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType2.MaximumValue = 2147483647D; + numberCellType2.MinimumValue = -2147483648D; + this.FpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType2; + this.FpSpread1_Sheet1.Columns.Get(10).DataField = "pumqty"; + this.FpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(10).Label = "Qty"; + this.FpSpread1_Sheet1.Columns.Get(10).Width = 28F; + this.FpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10; + this.FpSpread1_Sheet1.Columns.Get(11).DataField = "pumunit"; + this.FpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(11).Label = "Unit"; + this.FpSpread1_Sheet1.Columns.Get(11).Width = 31F; + numberCellType3.MaximumValue = 999999999999999D; + numberCellType3.MinimumValue = -999999999999999D; + this.FpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType3; + this.FpSpread1_Sheet1.Columns.Get(12).DataField = "pumprice"; + this.FpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(12).Label = "Price"; + this.FpSpread1_Sheet1.Columns.Get(12).Width = 35F; + numberCellType4.MaximumValue = 999999999999999D; + numberCellType4.MinimumValue = -999999999999999D; + this.FpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType4; + this.FpSpread1_Sheet1.Columns.Get(13).DataField = "pumamt"; + this.FpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(13).Label = "Amt"; + this.FpSpread1_Sheet1.Columns.Get(13).Width = 32F; + this.FpSpread1_Sheet1.Columns.Get(14).CellType = textCellType11; + this.FpSpread1_Sheet1.Columns.Get(14).DataField = "supply"; + this.FpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(14).Label = "Supply"; + this.FpSpread1_Sheet1.Columns.Get(14).Width = 46F; + numberCellType5.DecimalPlaces = 0; + numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType5.MaximumValue = 2147483647D; + numberCellType5.MinimumValue = -2147483648D; + this.FpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType5; + this.FpSpread1_Sheet1.Columns.Get(15).DataField = "supplyidx"; + this.FpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(15).Label = "*"; + this.FpSpread1_Sheet1.Columns.Get(15).Width = 14F; + this.FpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12; + this.FpSpread1_Sheet1.Columns.Get(16).DataField = "project"; + this.FpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(16).Width = 46F; + numberCellType6.DecimalPlaces = 0; + numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType6.MaximumValue = 2147483647D; + numberCellType6.MinimumValue = -2147483648D; + this.FpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType6; + this.FpSpread1_Sheet1.Columns.Get(17).DataField = "projectidx"; + this.FpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(17).Label = "*"; + this.FpSpread1_Sheet1.Columns.Get(17).Width = 14F; + this.FpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13; + this.FpSpread1_Sheet1.Columns.Get(18).DataField = "asset"; + this.FpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(18).Width = 35F; + this.FpSpread1_Sheet1.Columns.Get(19).CellType = textCellType14; + this.FpSpread1_Sheet1.Columns.Get(19).DataField = "edate"; + this.FpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(19).Width = 38F; + this.FpSpread1_Sheet1.Columns.Get(20).CellType = textCellType15; + this.FpSpread1_Sheet1.Columns.Get(20).DataField = "indate"; + this.FpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(20).Width = 42F; + this.FpSpread1_Sheet1.Columns.Get(21).CellType = textCellType16; + this.FpSpread1_Sheet1.Columns.Get(21).DataField = "po"; + this.FpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(21).Width = 23F; + this.FpSpread1_Sheet1.Columns.Get(22).CellType = textCellType17; + this.FpSpread1_Sheet1.Columns.Get(22).DataField = "dept"; + this.FpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.FpSpread1_Sheet1.Columns.Get(22).Width = 33F; + this.FpSpread1_Sheet1.DataAutoSizeColumns = false; + this.FpSpread1_Sheet1.DataSource = this.bs; + this.FpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; + this.FpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // // fPurchase // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(864, 581); - this.Controls.Add(this.dv1); + this.ClientSize = new System.Drawing.Size(878, 519); + this.Controls.Add(this.FpSpread1); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.bn); this.DoubleBuffered = true; @@ -715,10 +659,11 @@ ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); this.bn.ResumeLayout(false); this.bn.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit(); this.cm1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.FpSpread1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.FpSpread1_Sheet1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -742,7 +687,6 @@ private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; - private System.Windows.Forms.DataGridView dv1; private System.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.ToolStripLabel lbStt; private System.Windows.Forms.ToolStripTextBox dtSD; @@ -765,32 +709,13 @@ private System.Windows.Forms.ToolStripMenuItem viewThisUserDataToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem copyDataToolStripMenuItem; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn dvc_statename; - private System.Windows.Forms.DataGridViewTextBoxColumn dvc_state; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; - private System.Windows.Forms.DataGridViewTextBoxColumn pumidx; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15; - private System.Windows.Forms.DataGridViewTextBoxColumn supplyidx; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripLabel toolStripLabel2; private System.Windows.Forms.ToolStripTextBox tbFind; private System.Windows.Forms.ToolStripButton btFind; + private FarPoint.Win.Spread.FpSpread FpSpread1; + private System.Windows.Forms.ToolStripMenuItem editDataToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2; + private FarPoint.Win.Spread.SheetView FpSpread1_Sheet1; } } diff --git a/SubProject/FEQ0000/Purchase/fPurchase.cs b/SubProject/FEQ0000/Purchase/fPurchase.cs index c089ccd..493b71a 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase.cs @@ -15,60 +15,49 @@ namespace FEQ0000 { InitializeComponent(); this.dsPurchase.Purchase.TableNewRow += Purchase_TableNewRow; - if (FCOMMON.info.Login.level > 9) - { - dv1.SelectionMode = DataGridViewSelectionMode.CellSelect; - dv1.EditMode = DataGridViewEditMode.EditOnKeystrokeOrF2; - btSave.Visible = true; - } - else - { - dv1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; - dv1.EditMode = DataGridViewEditMode.EditProgrammatically; - btSave.Visible = false; - } - this.dv1.CellFormatting += dv1_CellFormatting; + + //this.dv1.CellFormatting += dv1_CellFormatting; } void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { - if (e.ColumnIndex < 0 || e.RowIndex < 0) return; - var state = this.dv1.Rows[e.RowIndex].Cells["dvc_state"].Value.ToString(); - switch (state) - { - case "00": //입력대기(미확인) - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray; - break; - case "01": //파트장 승인 기다림 - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkBlue; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; - break; - case "03": //PO (협력업체 전달) - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkMagenta; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; - break; - case "04": //자재 수령 - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Green; - break; - case "05": //canceld (취소) - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Red; - break; - case "06": //cancel (취소됨) - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.HotPink; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black; - break; - case "08": //문의 - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.Green; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.White; - break; - default: - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; - this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black; - break; - } + //if (e.ColumnIndex < 0 || e.RowIndex < 0) return; + //var state = this.dv1.Rows[e.RowIndex].Cells["dvc_state"].Value.ToString(); + //switch (state) + //{ + // case "00": //입력대기(미확인) + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray; + // break; + // case "01": //파트장 승인 기다림 + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkBlue; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; + // break; + // case "03": //PO (협력업체 전달) + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkMagenta; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; + // break; + // case "04": //자재 수령 + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Green; + // break; + // case "05": //canceld (취소) + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Red; + // break; + // case "06": //cancel (취소됨) + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.HotPink; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black; + // break; + // case "08": //문의 + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.Green; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.White; + // break; + // default: + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White; + // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black; + // break; + //} } void Purchase_TableNewRow(object sender, DataTableNewRowEventArgs e) @@ -82,7 +71,7 @@ namespace FEQ0000 e.Row["pumprice"] = 0; e.Row["pumamt"] = 0; e.Row["request"] = FCOMMON.info.Login.nameK; - e.Row["receive"] = FCOMMON.info.Login.nameK; + e.Row["receive"] = "";// FCOMMON.info.Login.nameK; } private void __Load(object sender, EventArgs e) @@ -100,6 +89,19 @@ namespace FEQ0000 cmbState.Items.Add(item); this.cmbState.SelectedIndex = 1; + if (FCOMMON.info.Login.level > 9) + { + btSave.Visible = true; + } + else + { + FpSpread1.EditMode = false; + FpSpread1.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row; + FpSpread1.EditModePermanent = false; + FpSpread1.EditModeReplace = false; + btSave.Visible = false; + } + refreshData(); } @@ -138,11 +140,10 @@ namespace FEQ0000 cmd.Connection = this.ta.Connection; da.SelectCommand = cmd; + //read adata this.dsPurchase.Purchase.Clear(); da.Fill(this.dsPurchase.Purchase); this.dsPurchase.AcceptChanges(); - //this.ta.Fill(this.dsPurchase.Purchase, dtSD.Text, dtED.Text, request, state); - if (!tbRequest.Text.isEmpty()) this.dv1.AutoResizeColumns(); showSummary(); } catch (System.Exception ex) @@ -165,7 +166,10 @@ namespace FEQ0000 private void autoResizeColumnsToolStripMenuItem_Click(object sender, EventArgs e) { - dv1.AutoResizeColumns(); + this.FpSpread1.ActiveSheet.DataAutoSizeColumns = true; + for (int i = 0; i < this.FpSpread1.ActiveSheet.Rows.Count; i++) + this.FpSpread1.ActiveSheet.SetRowHeight(i, 25); + //dv1.AutoResizeColumns(); } private void toolStripButton1_Click(object sender, EventArgs e) @@ -224,25 +228,7 @@ namespace FEQ0000 private void dv1_DoubleClick(object sender, EventArgs e) { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPurchase.PurchaseRow; - - fPurchase_Add f = new fPurchase_Add(dr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - //존재하지 않는 sid 는 추가를 해준다. - var newidx = AddItemInfoGetIndex(dr); - if (newidx != -1) - { - dr.pumidx = newidx; - dr.EndEdit(); - } - - this.ta.Update(dr); - dr.AcceptChanges(); - } - else dr.RejectChanges(); + } private void lbStt_Click(object sender, EventArgs e) @@ -408,5 +394,28 @@ namespace FEQ0000 { if (e.KeyCode == Keys.Enter) btFind.PerformClick(); } + + private void editDataToolStripMenuItem_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPurchase.PurchaseRow; + + fPurchase_Add f = new fPurchase_Add(dr); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + //존재하지 않는 sid 는 추가를 해준다. + var newidx = AddItemInfoGetIndex(dr); + if (newidx != -1) + { + dr.pumidx = newidx; + dr.EndEdit(); + } + + this.ta.Update(dr); + dr.AcceptChanges(); + } + else dr.RejectChanges(); + } } } diff --git a/SubProject/FEQ0000/Purchase/fPurchase.resx b/SubProject/FEQ0000/Purchase/fPurchase.resx index 35ef55b..0346b34 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.resx +++ b/SubProject/FEQ0000/Purchase/fPurchase.resx @@ -223,15 +223,6 @@ GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== - - True - - - True - - - True - 502, 17 @@ -249,4 +240,7 @@ dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII= + + 577, 17 + \ No newline at end of file diff --git a/SubProject/FEQ0000/app.config b/SubProject/FEQ0000/app.config index 5aec38d..3f0787c 100644 --- a/SubProject/FEQ0000/app.config +++ b/SubProject/FEQ0000/app.config @@ -1,9 +1,8 @@ - + - + - \ No newline at end of file +