This commit is contained in:
chi
2020-06-23 18:37:02 +09:00
parent 6103a340e5
commit d88b1e1909
16 changed files with 1033 additions and 1105 deletions

View File

@@ -44,26 +44,26 @@
System.Windows.Forms.Label label3;
System.Windows.Forms.Label label4;
System.Windows.Forms.Label label5;
this.idTextBox = new System.Windows.Forms.TextBox();
this.tbId = new System.Windows.Forms.TextBox();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new Project.dsMSSQL();
this.nameTextBox = new System.Windows.Forms.TextBox();
this.deptTextBox = new System.Windows.Forms.TextBox();
this.gradeTextBox = new System.Windows.Forms.TextBox();
this.emailTextBox = new System.Windows.Forms.TextBox();
this.levelTextBox = new System.Windows.Forms.TextBox();
this.indateTextBox = new System.Windows.Forms.TextBox();
this.outdateTextBox = new System.Windows.Forms.TextBox();
this.memoTextBox = new System.Windows.Forms.TextBox();
this.tbNameK = new System.Windows.Forms.TextBox();
this.tbDept = new System.Windows.Forms.TextBox();
this.tbGrade = new System.Windows.Forms.TextBox();
this.tbEmail = new System.Windows.Forms.TextBox();
this.tbLevel = new System.Windows.Forms.TextBox();
this.tbDateIn = new System.Windows.Forms.TextBox();
this.tbDateO = new System.Windows.Forms.TextBox();
this.tbMemo = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.ta = new Project.dsMSSQLTableAdapters.UsersTableAdapter();
this.tam = new Project.dsMSSQLTableAdapters.TableAdapterManager();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.tbTel = new System.Windows.Forms.TextBox();
this.tbHp = new System.Windows.Forms.TextBox();
this.tbNameE = new System.Windows.Forms.TextBox();
this.tbKJPath = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.tbProcess = new System.Windows.Forms.TextBox();
idLabel = new System.Windows.Forms.Label();
passwordLabel = new System.Windows.Forms.Label();
nameLabel = new System.Windows.Forms.Label();
@@ -209,14 +209,23 @@
label4.TabIndex = 27;
label4.Text = "견적서 위치";
//
// idTextBox
// label5
//
this.idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "id", true));
this.idTextBox.Location = new System.Drawing.Point(105, 11);
this.idTextBox.Name = "idTextBox";
this.idTextBox.ReadOnly = true;
this.idTextBox.Size = new System.Drawing.Size(200, 29);
this.idTextBox.TabIndex = 1;
label5.AutoSize = true;
label5.Location = new System.Drawing.Point(360, 193);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(42, 21);
label5.TabIndex = 29;
label5.Text = "공정";
//
// tbId
//
this.tbId.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "id", true));
this.tbId.Location = new System.Drawing.Point(105, 11);
this.tbId.Name = "tbId";
this.tbId.ReadOnly = true;
this.tbId.Size = new System.Drawing.Size(200, 29);
this.tbId.TabIndex = 1;
//
// bs
//
@@ -229,70 +238,70 @@
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// nameTextBox
// tbNameK
//
this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "name", true));
this.nameTextBox.Location = new System.Drawing.Point(105, 82);
this.nameTextBox.Name = "nameTextBox";
this.nameTextBox.Size = new System.Drawing.Size(200, 29);
this.nameTextBox.TabIndex = 5;
this.tbNameK.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "name", true));
this.tbNameK.Location = new System.Drawing.Point(105, 82);
this.tbNameK.Name = "tbNameK";
this.tbNameK.Size = new System.Drawing.Size(200, 29);
this.tbNameK.TabIndex = 5;
//
// deptTextBox
// tbDept
//
this.deptTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "dept", true));
this.deptTextBox.Location = new System.Drawing.Point(105, 119);
this.deptTextBox.Name = "deptTextBox";
this.deptTextBox.Size = new System.Drawing.Size(200, 29);
this.deptTextBox.TabIndex = 9;
this.tbDept.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "dept", true));
this.tbDept.Location = new System.Drawing.Point(105, 119);
this.tbDept.Name = "tbDept";
this.tbDept.Size = new System.Drawing.Size(200, 29);
this.tbDept.TabIndex = 9;
//
// gradeTextBox
// tbGrade
//
this.gradeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "grade", true));
this.gradeTextBox.Location = new System.Drawing.Point(407, 119);
this.gradeTextBox.Name = "gradeTextBox";
this.gradeTextBox.Size = new System.Drawing.Size(189, 29);
this.gradeTextBox.TabIndex = 11;
this.tbGrade.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "grade", true));
this.tbGrade.Location = new System.Drawing.Point(407, 119);
this.tbGrade.Name = "tbGrade";
this.tbGrade.Size = new System.Drawing.Size(189, 29);
this.tbGrade.TabIndex = 11;
//
// emailTextBox
// tbEmail
//
this.emailTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "email", true));
this.emailTextBox.Location = new System.Drawing.Point(105, 156);
this.emailTextBox.Name = "emailTextBox";
this.emailTextBox.Size = new System.Drawing.Size(200, 29);
this.emailTextBox.TabIndex = 13;
this.tbEmail.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "email", true));
this.tbEmail.Location = new System.Drawing.Point(105, 156);
this.tbEmail.Name = "tbEmail";
this.tbEmail.Size = new System.Drawing.Size(200, 29);
this.tbEmail.TabIndex = 13;
//
// levelTextBox
// tbLevel
//
this.levelTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "level", true));
this.levelTextBox.Location = new System.Drawing.Point(407, 225);
this.levelTextBox.Name = "levelTextBox";
this.levelTextBox.ReadOnly = true;
this.levelTextBox.Size = new System.Drawing.Size(189, 29);
this.levelTextBox.TabIndex = 19;
this.tbLevel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "level", true));
this.tbLevel.Location = new System.Drawing.Point(407, 225);
this.tbLevel.Name = "tbLevel";
this.tbLevel.ReadOnly = true;
this.tbLevel.Size = new System.Drawing.Size(189, 29);
this.tbLevel.TabIndex = 19;
//
// indateTextBox
// tbDateIn
//
this.indateTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "indate", true));
this.indateTextBox.Location = new System.Drawing.Point(407, 11);
this.indateTextBox.Name = "indateTextBox";
this.indateTextBox.Size = new System.Drawing.Size(189, 29);
this.indateTextBox.TabIndex = 21;
this.tbDateIn.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "indate", true));
this.tbDateIn.Location = new System.Drawing.Point(407, 11);
this.tbDateIn.Name = "tbDateIn";
this.tbDateIn.Size = new System.Drawing.Size(189, 29);
this.tbDateIn.TabIndex = 21;
//
// outdateTextBox
// tbDateO
//
this.outdateTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "outdate", true));
this.outdateTextBox.Location = new System.Drawing.Point(407, 45);
this.outdateTextBox.Name = "outdateTextBox";
this.outdateTextBox.Size = new System.Drawing.Size(189, 29);
this.outdateTextBox.TabIndex = 23;
this.tbDateO.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "outdate", true));
this.tbDateO.Location = new System.Drawing.Point(407, 45);
this.tbDateO.Name = "tbDateO";
this.tbDateO.Size = new System.Drawing.Size(189, 29);
this.tbDateO.TabIndex = 23;
//
// memoTextBox
// tbMemo
//
this.memoTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "memo", true));
this.memoTextBox.Location = new System.Drawing.Point(407, 156);
this.memoTextBox.Name = "memoTextBox";
this.memoTextBox.Size = new System.Drawing.Size(189, 29);
this.memoTextBox.TabIndex = 25;
this.tbMemo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "memo", true));
this.tbMemo.Location = new System.Drawing.Point(407, 156);
this.tbMemo.Name = "tbMemo";
this.tbMemo.Size = new System.Drawing.Size(189, 29);
this.tbMemo.TabIndex = 25;
//
// button1
//
@@ -325,33 +334,34 @@
this.tam.ItemsTableAdapter = null;
this.tam.LineCodeTableAdapter = null;
this.tam.ProjectsTableAdapter = null;
this.tam.SPMasterTableAdapter = null;
this.tam.UpdateOrder = Project.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
this.tam.UserGroupTableAdapter = null;
this.tam.UsersTableAdapter = this.ta;
//
// textBox1
// tbTel
//
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tel", true));
this.textBox1.Location = new System.Drawing.Point(105, 190);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(200, 29);
this.textBox1.TabIndex = 15;
this.tbTel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tel", true));
this.tbTel.Location = new System.Drawing.Point(105, 190);
this.tbTel.Name = "tbTel";
this.tbTel.Size = new System.Drawing.Size(200, 29);
this.tbTel.TabIndex = 15;
//
// textBox2
// tbHp
//
this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "hp", true));
this.textBox2.Location = new System.Drawing.Point(105, 225);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(200, 29);
this.textBox2.TabIndex = 17;
this.tbHp.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "hp", true));
this.tbHp.Location = new System.Drawing.Point(105, 225);
this.tbHp.Name = "tbHp";
this.tbHp.Size = new System.Drawing.Size(200, 29);
this.tbHp.TabIndex = 17;
//
// textBox3
// tbNameE
//
this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "nameE", true));
this.textBox3.Location = new System.Drawing.Point(407, 82);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(189, 29);
this.textBox3.TabIndex = 7;
this.tbNameE.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "nameE", true));
this.tbNameE.Location = new System.Drawing.Point(407, 82);
this.tbNameE.Name = "tbNameE";
this.tbNameE.Size = new System.Drawing.Size(189, 29);
this.tbNameE.TabIndex = 7;
//
// tbKJPath
//
@@ -362,58 +372,49 @@
this.tbKJPath.Size = new System.Drawing.Size(177, 29);
this.tbKJPath.TabIndex = 28;
//
// label5
// tbProcess
//
label5.AutoSize = true;
label5.Location = new System.Drawing.Point(360, 193);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(42, 21);
label5.TabIndex = 29;
label5.Text = "공정";
//
// textBox4
//
this.textBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "processs", true));
this.textBox4.Location = new System.Drawing.Point(407, 190);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(189, 29);
this.textBox4.TabIndex = 30;
this.tbProcess.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "processs", true));
this.tbProcess.Location = new System.Drawing.Point(407, 190);
this.tbProcess.Name = "tbProcess";
this.tbProcess.Size = new System.Drawing.Size(189, 29);
this.tbProcess.TabIndex = 30;
//
// fUserInfo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(601, 326);
this.Controls.Add(label5);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.tbProcess);
this.Controls.Add(label4);
this.Controls.Add(this.tbKJPath);
this.Controls.Add(label3);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.tbNameE);
this.Controls.Add(label2);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.tbHp);
this.Controls.Add(label1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.tbTel);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(idLabel);
this.Controls.Add(this.idTextBox);
this.Controls.Add(this.tbId);
this.Controls.Add(passwordLabel);
this.Controls.Add(nameLabel);
this.Controls.Add(this.nameTextBox);
this.Controls.Add(this.tbNameK);
this.Controls.Add(deptLabel);
this.Controls.Add(this.deptTextBox);
this.Controls.Add(this.tbDept);
this.Controls.Add(gradeLabel);
this.Controls.Add(this.gradeTextBox);
this.Controls.Add(this.tbGrade);
this.Controls.Add(emailLabel);
this.Controls.Add(this.emailTextBox);
this.Controls.Add(this.tbEmail);
this.Controls.Add(levelLabel);
this.Controls.Add(this.levelTextBox);
this.Controls.Add(this.tbLevel);
this.Controls.Add(indateLabel);
this.Controls.Add(this.indateTextBox);
this.Controls.Add(this.tbDateIn);
this.Controls.Add(outdateLabel);
this.Controls.Add(this.outdateTextBox);
this.Controls.Add(this.tbDateO);
this.Controls.Add(memoLabel);
this.Controls.Add(this.memoTextBox);
this.Controls.Add(this.tbMemo);
this.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.MaximizeBox = false;
this.MinimizeBox = false;
@@ -433,21 +434,21 @@
private System.Windows.Forms.BindingSource bs;
private dsMSSQLTableAdapters.UsersTableAdapter ta;
private dsMSSQLTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.TextBox idTextBox;
private System.Windows.Forms.TextBox nameTextBox;
private System.Windows.Forms.TextBox deptTextBox;
private System.Windows.Forms.TextBox gradeTextBox;
private System.Windows.Forms.TextBox emailTextBox;
private System.Windows.Forms.TextBox levelTextBox;
private System.Windows.Forms.TextBox indateTextBox;
private System.Windows.Forms.TextBox outdateTextBox;
private System.Windows.Forms.TextBox memoTextBox;
private System.Windows.Forms.TextBox tbId;
private System.Windows.Forms.TextBox tbNameK;
private System.Windows.Forms.TextBox tbDept;
private System.Windows.Forms.TextBox tbGrade;
private System.Windows.Forms.TextBox tbEmail;
private System.Windows.Forms.TextBox tbLevel;
private System.Windows.Forms.TextBox tbDateIn;
private System.Windows.Forms.TextBox tbDateO;
private System.Windows.Forms.TextBox tbMemo;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox tbTel;
private System.Windows.Forms.TextBox tbHp;
private System.Windows.Forms.TextBox tbNameE;
private System.Windows.Forms.TextBox tbKJPath;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox tbProcess;
}
}

View File

@@ -9,18 +9,20 @@ using System.Windows.Forms;
namespace Project._Common
{
public partial class fUserInfo : FCOMMON.fBase
public partial class fUserInfo : Form // FCOMMON.fBase
{
public fUserInfo()
{
InitializeComponent();
}
dsMSSQL.UsersRow dr = null;
private void fUserInfo_Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.Users' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
//
this.ta.FillID(this.dsMSSQL.Users,FCOMMON.info.Login.no);
dr = this.dsMSSQL.Users.Rows[0] as dsMSSQL.UsersRow;
tbKJPath.Text = FCOMMON.DBM.getPathKJ(FCOMMON.info.Login.dept);
tbKJPath.Tag = tbKJPath.Text;
if (FCOMMON.info.Login.level > 4) tbKJPath.Enabled = true;
@@ -42,11 +44,13 @@ namespace Project._Common
}
else
{
this.Validate();
this.bs.EndEdit();
var drv = bs.Current as DataRowView;
drv["password"] = encpassN;
this.bs.EndEdit();
//this.Validate();
//this.bs.EndEdit();
dr.password = encpassN;
dr.EndEdit();
//var drv = bs.Current as DataRowView;
//drv["password"] = encpassN;
//this.bs.EndEdit();
}
}
}
@@ -64,7 +68,28 @@ namespace Project._Common
private void button2_Click(object sender, EventArgs e)
{
this.Validate();
dr.name = tbNameK.Text;
dr.dept = tbDept.Text;
dr.email = tbEmail.Text;
dr.tel = tbTel.Text;
dr.hp = tbHp.Text;
dr.indate = tbDateIn.Text;
dr.outdate = tbDateO.Text;
dr.nameE = tbNameE.Text;
dr.grade = tbGrade.Text;
dr.memo = tbMemo.Text;
dr.processs = tbProcess.Text;
dr.level = short.Parse(tbLevel.Text);
dr.EndEdit();
this.bs.EndEdit();
// dr.processs = tbProcess.Text;
// dr.EndEdit();
try
{
if (tbKJPath.Enabled)
@@ -79,9 +104,15 @@ namespace Project._Common
}
}
var cnt = this.tam.UpdateAll(this.dsMSSQL);
Util.MsgI(string.Format("{0}건의 자료가 업데이트 됨", cnt));
DialogResult = System.Windows.Forms.DialogResult.OK;
var cnt = this.ta.Update(this.dsMSSQL.Users);
if(cnt == 1)
{
Util.MsgI(string.Format("{0}건의 자료가 업데이트 됨", cnt));
DialogResult = System.Windows.Forms.DialogResult.OK;
}
else
Util.MsgE(string.Format("{0}건의 자료가 업데이트 됨", cnt));
}
catch (Exception ex)
{

View File

@@ -159,8 +159,8 @@
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
@@ -177,7 +177,4 @@
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value>
</metadata>
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>