구매내역 색상 및 필터 정렬 기능 추가, 삭제시 데이터 숨김처리하게
This commit is contained in:
146
Project/_Common/fUserInfo.Designer.cs
generated
146
Project/_Common/fUserInfo.Designer.cs
generated
@@ -42,6 +42,7 @@
|
||||
System.Windows.Forms.Label label1;
|
||||
System.Windows.Forms.Label label2;
|
||||
System.Windows.Forms.Label label3;
|
||||
System.Windows.Forms.Label label4;
|
||||
this.idTextBox = new System.Windows.Forms.TextBox();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dsMSSQL = new Project.dsMSSQL();
|
||||
@@ -60,6 +61,7 @@
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.tbKJPath = new System.Windows.Forms.TextBox();
|
||||
idLabel = new System.Windows.Forms.Label();
|
||||
passwordLabel = new System.Windows.Forms.Label();
|
||||
nameLabel = new System.Windows.Forms.Label();
|
||||
@@ -73,6 +75,7 @@
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
label3 = new System.Windows.Forms.Label();
|
||||
label4 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -80,119 +83,119 @@
|
||||
// idLabel
|
||||
//
|
||||
idLabel.AutoSize = true;
|
||||
idLabel.Location = new System.Drawing.Point(22, 15);
|
||||
idLabel.Location = new System.Drawing.Point(33, 15);
|
||||
idLabel.Name = "idLabel";
|
||||
idLabel.Size = new System.Drawing.Size(19, 12);
|
||||
idLabel.Size = new System.Drawing.Size(53, 12);
|
||||
idLabel.TabIndex = 0;
|
||||
idLabel.Text = "id:";
|
||||
idLabel.Text = "사원번호";
|
||||
//
|
||||
// passwordLabel
|
||||
//
|
||||
passwordLabel.AutoSize = true;
|
||||
passwordLabel.Location = new System.Drawing.Point(22, 42);
|
||||
passwordLabel.Location = new System.Drawing.Point(33, 42);
|
||||
passwordLabel.Name = "passwordLabel";
|
||||
passwordLabel.Size = new System.Drawing.Size(65, 12);
|
||||
passwordLabel.Size = new System.Drawing.Size(53, 12);
|
||||
passwordLabel.TabIndex = 2;
|
||||
passwordLabel.Text = "password:";
|
||||
passwordLabel.Text = "비밀번호";
|
||||
//
|
||||
// nameLabel
|
||||
//
|
||||
nameLabel.AutoSize = true;
|
||||
nameLabel.Location = new System.Drawing.Point(22, 69);
|
||||
nameLabel.Location = new System.Drawing.Point(57, 69);
|
||||
nameLabel.Name = "nameLabel";
|
||||
nameLabel.Size = new System.Drawing.Size(41, 12);
|
||||
nameLabel.Size = new System.Drawing.Size(29, 12);
|
||||
nameLabel.TabIndex = 4;
|
||||
nameLabel.Text = "name:";
|
||||
nameLabel.Text = "이름";
|
||||
//
|
||||
// deptLabel
|
||||
//
|
||||
deptLabel.AutoSize = true;
|
||||
deptLabel.Location = new System.Drawing.Point(22, 122);
|
||||
deptLabel.Location = new System.Drawing.Point(317, 69);
|
||||
deptLabel.Name = "deptLabel";
|
||||
deptLabel.Size = new System.Drawing.Size(33, 12);
|
||||
deptLabel.Size = new System.Drawing.Size(29, 12);
|
||||
deptLabel.TabIndex = 8;
|
||||
deptLabel.Text = "dept:";
|
||||
deptLabel.Text = "부서";
|
||||
//
|
||||
// gradeLabel
|
||||
//
|
||||
gradeLabel.AutoSize = true;
|
||||
gradeLabel.Location = new System.Drawing.Point(22, 149);
|
||||
gradeLabel.Location = new System.Drawing.Point(317, 96);
|
||||
gradeLabel.Name = "gradeLabel";
|
||||
gradeLabel.Size = new System.Drawing.Size(41, 12);
|
||||
gradeLabel.Size = new System.Drawing.Size(29, 12);
|
||||
gradeLabel.TabIndex = 10;
|
||||
gradeLabel.Text = "grade:";
|
||||
gradeLabel.Text = "직책";
|
||||
//
|
||||
// emailLabel
|
||||
//
|
||||
emailLabel.AutoSize = true;
|
||||
emailLabel.Location = new System.Drawing.Point(22, 176);
|
||||
emailLabel.Location = new System.Drawing.Point(33, 122);
|
||||
emailLabel.Name = "emailLabel";
|
||||
emailLabel.Size = new System.Drawing.Size(40, 12);
|
||||
emailLabel.Size = new System.Drawing.Size(53, 12);
|
||||
emailLabel.TabIndex = 12;
|
||||
emailLabel.Text = "email:";
|
||||
emailLabel.Text = "전자메일";
|
||||
//
|
||||
// levelLabel
|
||||
//
|
||||
levelLabel.AutoSize = true;
|
||||
levelLabel.Location = new System.Drawing.Point(22, 257);
|
||||
levelLabel.Location = new System.Drawing.Point(319, 177);
|
||||
levelLabel.Name = "levelLabel";
|
||||
levelLabel.Size = new System.Drawing.Size(35, 12);
|
||||
levelLabel.Size = new System.Drawing.Size(29, 12);
|
||||
levelLabel.TabIndex = 18;
|
||||
levelLabel.Text = "level:";
|
||||
levelLabel.Text = "권한";
|
||||
//
|
||||
// indateLabel
|
||||
//
|
||||
indateLabel.AutoSize = true;
|
||||
indateLabel.Location = new System.Drawing.Point(22, 284);
|
||||
indateLabel.Location = new System.Drawing.Point(305, 15);
|
||||
indateLabel.Name = "indateLabel";
|
||||
indateLabel.Size = new System.Drawing.Size(43, 12);
|
||||
indateLabel.Size = new System.Drawing.Size(41, 12);
|
||||
indateLabel.TabIndex = 20;
|
||||
indateLabel.Text = "indate:";
|
||||
indateLabel.Text = "입사일";
|
||||
//
|
||||
// outdateLabel
|
||||
//
|
||||
outdateLabel.AutoSize = true;
|
||||
outdateLabel.Location = new System.Drawing.Point(22, 311);
|
||||
outdateLabel.Location = new System.Drawing.Point(305, 42);
|
||||
outdateLabel.Name = "outdateLabel";
|
||||
outdateLabel.Size = new System.Drawing.Size(50, 12);
|
||||
outdateLabel.Size = new System.Drawing.Size(41, 12);
|
||||
outdateLabel.TabIndex = 22;
|
||||
outdateLabel.Text = "outdate:";
|
||||
outdateLabel.Text = "퇴사일";
|
||||
//
|
||||
// memoLabel
|
||||
//
|
||||
memoLabel.AutoSize = true;
|
||||
memoLabel.Location = new System.Drawing.Point(22, 338);
|
||||
memoLabel.Location = new System.Drawing.Point(320, 119);
|
||||
memoLabel.Name = "memoLabel";
|
||||
memoLabel.Size = new System.Drawing.Size(45, 12);
|
||||
memoLabel.Size = new System.Drawing.Size(29, 12);
|
||||
memoLabel.TabIndex = 24;
|
||||
memoLabel.Text = "memo:";
|
||||
memoLabel.Text = "비고";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(22, 203);
|
||||
label1.Location = new System.Drawing.Point(21, 149);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(23, 12);
|
||||
label1.Size = new System.Drawing.Size(65, 12);
|
||||
label1.TabIndex = 14;
|
||||
label1.Text = "Tel";
|
||||
label1.Text = "사무실전화";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new System.Drawing.Point(22, 230);
|
||||
label2.Location = new System.Drawing.Point(33, 176);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(20, 12);
|
||||
label2.Size = new System.Drawing.Size(53, 12);
|
||||
label2.TabIndex = 16;
|
||||
label2.Text = "Hp";
|
||||
label2.Text = "휴대전화";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new System.Drawing.Point(22, 95);
|
||||
label3.Location = new System.Drawing.Point(23, 95);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new System.Drawing.Size(55, 12);
|
||||
label3.Size = new System.Drawing.Size(63, 12);
|
||||
label3.TabIndex = 6;
|
||||
label3.Text = "name(E)";
|
||||
label3.Text = "이름(영문)";
|
||||
//
|
||||
// idTextBox
|
||||
//
|
||||
@@ -225,23 +228,23 @@
|
||||
// deptTextBox
|
||||
//
|
||||
this.deptTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "dept", true));
|
||||
this.deptTextBox.Location = new System.Drawing.Point(93, 119);
|
||||
this.deptTextBox.Location = new System.Drawing.Point(355, 66);
|
||||
this.deptTextBox.Name = "deptTextBox";
|
||||
this.deptTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.deptTextBox.Size = new System.Drawing.Size(177, 21);
|
||||
this.deptTextBox.TabIndex = 9;
|
||||
//
|
||||
// gradeTextBox
|
||||
//
|
||||
this.gradeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "grade", true));
|
||||
this.gradeTextBox.Location = new System.Drawing.Point(93, 146);
|
||||
this.gradeTextBox.Location = new System.Drawing.Point(355, 93);
|
||||
this.gradeTextBox.Name = "gradeTextBox";
|
||||
this.gradeTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.gradeTextBox.Size = new System.Drawing.Size(177, 21);
|
||||
this.gradeTextBox.TabIndex = 11;
|
||||
//
|
||||
// emailTextBox
|
||||
//
|
||||
this.emailTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "email", true));
|
||||
this.emailTextBox.Location = new System.Drawing.Point(93, 173);
|
||||
this.emailTextBox.Location = new System.Drawing.Point(93, 119);
|
||||
this.emailTextBox.Name = "emailTextBox";
|
||||
this.emailTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.emailTextBox.TabIndex = 13;
|
||||
@@ -249,33 +252,35 @@
|
||||
// levelTextBox
|
||||
//
|
||||
this.levelTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "level", true));
|
||||
this.levelTextBox.Location = new System.Drawing.Point(93, 254);
|
||||
this.levelTextBox.Location = new System.Drawing.Point(355, 173);
|
||||
this.levelTextBox.Name = "levelTextBox";
|
||||
this.levelTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.levelTextBox.ReadOnly = true;
|
||||
this.levelTextBox.Size = new System.Drawing.Size(177, 21);
|
||||
this.levelTextBox.TabIndex = 19;
|
||||
//
|
||||
// indateTextBox
|
||||
//
|
||||
this.indateTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "indate", true));
|
||||
this.indateTextBox.Location = new System.Drawing.Point(93, 281);
|
||||
this.indateTextBox.Location = new System.Drawing.Point(355, 12);
|
||||
this.indateTextBox.Name = "indateTextBox";
|
||||
this.indateTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.indateTextBox.Size = new System.Drawing.Size(177, 21);
|
||||
this.indateTextBox.TabIndex = 21;
|
||||
//
|
||||
// outdateTextBox
|
||||
//
|
||||
this.outdateTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "outdate", true));
|
||||
this.outdateTextBox.Location = new System.Drawing.Point(93, 308);
|
||||
this.outdateTextBox.Location = new System.Drawing.Point(355, 39);
|
||||
this.outdateTextBox.Name = "outdateTextBox";
|
||||
this.outdateTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.outdateTextBox.Size = new System.Drawing.Size(177, 21);
|
||||
this.outdateTextBox.TabIndex = 23;
|
||||
//
|
||||
// memoTextBox
|
||||
//
|
||||
this.memoTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "memo", true));
|
||||
this.memoTextBox.Location = new System.Drawing.Point(93, 335);
|
||||
this.memoTextBox.Location = new System.Drawing.Point(355, 122);
|
||||
this.memoTextBox.Multiline = true;
|
||||
this.memoTextBox.Name = "memoTextBox";
|
||||
this.memoTextBox.Size = new System.Drawing.Size(200, 21);
|
||||
this.memoTextBox.Size = new System.Drawing.Size(177, 45);
|
||||
this.memoTextBox.TabIndex = 25;
|
||||
//
|
||||
// button1
|
||||
@@ -284,17 +289,17 @@
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(200, 21);
|
||||
this.button1.TabIndex = 3;
|
||||
this.button1.Text = "Change";
|
||||
this.button1.Text = "변경";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(93, 363);
|
||||
this.button2.Location = new System.Drawing.Point(93, 231);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(200, 30);
|
||||
this.button2.Size = new System.Drawing.Size(439, 30);
|
||||
this.button2.TabIndex = 26;
|
||||
this.button2.Text = "Save";
|
||||
this.button2.Text = "저장(&S)";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
@@ -315,7 +320,7 @@
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tel", true));
|
||||
this.textBox1.Location = new System.Drawing.Point(93, 200);
|
||||
this.textBox1.Location = new System.Drawing.Point(93, 146);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(200, 21);
|
||||
this.textBox1.TabIndex = 15;
|
||||
@@ -323,7 +328,7 @@
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "hp", true));
|
||||
this.textBox2.Location = new System.Drawing.Point(93, 227);
|
||||
this.textBox2.Location = new System.Drawing.Point(93, 173);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(200, 21);
|
||||
this.textBox2.TabIndex = 17;
|
||||
@@ -336,11 +341,31 @@
|
||||
this.textBox3.Size = new System.Drawing.Size(200, 21);
|
||||
this.textBox3.TabIndex = 7;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Location = new System.Drawing.Point(17, 204);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new System.Drawing.Size(69, 12);
|
||||
label4.TabIndex = 27;
|
||||
label4.Text = "견적서 위치";
|
||||
//
|
||||
// tbKJPath
|
||||
//
|
||||
this.tbKJPath.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "level", true));
|
||||
this.tbKJPath.Location = new System.Drawing.Point(93, 200);
|
||||
this.tbKJPath.Name = "tbKJPath";
|
||||
this.tbKJPath.ReadOnly = true;
|
||||
this.tbKJPath.Size = new System.Drawing.Size(439, 21);
|
||||
this.tbKJPath.TabIndex = 28;
|
||||
//
|
||||
// fUserInfo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(305, 402);
|
||||
this.ClientSize = new System.Drawing.Size(542, 270);
|
||||
this.Controls.Add(label4);
|
||||
this.Controls.Add(this.tbKJPath);
|
||||
this.Controls.Add(label3);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(label2);
|
||||
@@ -372,7 +397,7 @@
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "fUserInfo";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "fUserInfo";
|
||||
this.Text = "사용자 정보";
|
||||
this.Load += new System.EventHandler(this.fUserInfo_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
|
||||
@@ -401,5 +426,6 @@
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.TextBox tbKJPath;
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,10 @@ namespace Project._Common
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsMSSQL.Users' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
this.ta.FillID(this.dsMSSQL.Users,FCOMMON.info.Login.no);
|
||||
tbKJPath.Text = FCOMMON.DBM.getPathKJ(FCOMMON.info.Login.dept);
|
||||
tbKJPath.Tag = tbKJPath.Text;
|
||||
if (FCOMMON.info.Login.level > 4) tbKJPath.Enabled = true;
|
||||
else tbKJPath.Enabled = false;
|
||||
//this.bs.Filter = "id='" + FCOMMON.info.Login.no + "'";
|
||||
}
|
||||
|
||||
@@ -63,6 +67,18 @@ namespace Project._Common
|
||||
this.bs.EndEdit();
|
||||
try
|
||||
{
|
||||
if (tbKJPath.Enabled)
|
||||
{
|
||||
if (tbKJPath.Text.Trim() != tbKJPath.Tag.ToString().Trim())
|
||||
{
|
||||
if (!FCOMMON.DBM.setPathKJ(FCOMMON.info.Login.dept, tbKJPath.Text.Trim()))
|
||||
{
|
||||
FCOMMON.Util.MsgE("견적서 폴더 업데이트 실패");
|
||||
}
|
||||
else Pub.log.AddI("견적서폴더 업뎅트 : " + tbKJPath.Text);
|
||||
}
|
||||
}
|
||||
|
||||
var cnt = this.tam.UpdateAll(this.dsMSSQL);
|
||||
Util.MsgI(string.Format("{0}건의 자료가 업데이트 됨", cnt));
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
|
||||
@@ -168,4 +168,7 @@
|
||||
<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="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in New Issue
Block a user