diff --git a/Project/History.txt b/Project/History.txt
index e50c668..071cbd5 100644
--- a/Project/History.txt
+++ b/Project/History.txt
@@ -1,4 +1,5 @@
-201007 chi 부서로그인 기능 추가, 구매내역 메일 보내기 기능
+201027 chi 개인별/월별 근무시간 합계표 차트 -> 폼 변경
+201007 chi 부서로그인 기능 추가, 구매내역 메일 보내기 기능
200921 chi 파트리스트 저장시 sid 의 공백이 제거되게함
200812 chi 1일최대근무시간 8시간 적용
200730 chi 파트리스트에 입력되는 단가 자릿수 증가
diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs
index a74869b..a5bd9e5 100644
--- a/Project/Properties/AssemblyInfo.cs
+++ b/Project/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("20.10.12.1100")]
-[assembly: AssemblyFileVersion("20.10.12.1100")]
+[assembly: AssemblyVersion("20.10.27.1200")]
+[assembly: AssemblyFileVersion("20.10.27.1200")]
diff --git a/Project/_Common/fAddNewUser.Designer.cs b/Project/_Common/fAddNewUser.Designer.cs
new file mode 100644
index 0000000..e177d6e
--- /dev/null
+++ b/Project/_Common/fAddNewUser.Designer.cs
@@ -0,0 +1,412 @@
+namespace Project._Common
+{
+ partial class fAddNewUser
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.Label idLabel;
+ System.Windows.Forms.Label passwordLabel;
+ System.Windows.Forms.Label nameLabel;
+ System.Windows.Forms.Label deptLabel;
+ System.Windows.Forms.Label gradeLabel;
+ System.Windows.Forms.Label emailLabel;
+ System.Windows.Forms.Label levelLabel;
+ System.Windows.Forms.Label indateLabel;
+ System.Windows.Forms.Label outdateLabel;
+ System.Windows.Forms.Label memoLabel;
+ System.Windows.Forms.Label label1;
+ System.Windows.Forms.Label label2;
+ System.Windows.Forms.Label label3;
+ System.Windows.Forms.Label label4;
+ System.Windows.Forms.Label label5;
+ this.tbId = 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.button2 = new System.Windows.Forms.Button();
+ 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.tbProcess = new System.Windows.Forms.TextBox();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.button1 = new System.Windows.Forms.Button();
+ idLabel = new System.Windows.Forms.Label();
+ passwordLabel = new System.Windows.Forms.Label();
+ nameLabel = new System.Windows.Forms.Label();
+ deptLabel = new System.Windows.Forms.Label();
+ gradeLabel = new System.Windows.Forms.Label();
+ emailLabel = new System.Windows.Forms.Label();
+ levelLabel = new System.Windows.Forms.Label();
+ indateLabel = new System.Windows.Forms.Label();
+ outdateLabel = new System.Windows.Forms.Label();
+ memoLabel = new System.Windows.Forms.Label();
+ label1 = new System.Windows.Forms.Label();
+ label2 = new System.Windows.Forms.Label();
+ label3 = new System.Windows.Forms.Label();
+ label4 = new System.Windows.Forms.Label();
+ label5 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // idLabel
+ //
+ idLabel.AutoSize = true;
+ idLabel.Location = new System.Drawing.Point(26, 15);
+ idLabel.Name = "idLabel";
+ idLabel.Size = new System.Drawing.Size(74, 21);
+ idLabel.TabIndex = 0;
+ idLabel.Text = "사원번호";
+ //
+ // passwordLabel
+ //
+ passwordLabel.AutoSize = true;
+ passwordLabel.Location = new System.Drawing.Point(26, 49);
+ passwordLabel.Name = "passwordLabel";
+ passwordLabel.Size = new System.Drawing.Size(74, 21);
+ passwordLabel.TabIndex = 2;
+ passwordLabel.Text = "비밀번호";
+ //
+ // nameLabel
+ //
+ nameLabel.AutoSize = true;
+ nameLabel.Location = new System.Drawing.Point(58, 86);
+ nameLabel.Name = "nameLabel";
+ nameLabel.Size = new System.Drawing.Size(42, 21);
+ nameLabel.TabIndex = 4;
+ nameLabel.Text = "이름";
+ //
+ // deptLabel
+ //
+ deptLabel.AutoSize = true;
+ deptLabel.Location = new System.Drawing.Point(58, 123);
+ deptLabel.Name = "deptLabel";
+ deptLabel.Size = new System.Drawing.Size(42, 21);
+ deptLabel.TabIndex = 8;
+ deptLabel.Text = "부서";
+ //
+ // gradeLabel
+ //
+ gradeLabel.AutoSize = true;
+ gradeLabel.Location = new System.Drawing.Point(360, 123);
+ gradeLabel.Name = "gradeLabel";
+ gradeLabel.Size = new System.Drawing.Size(42, 21);
+ gradeLabel.TabIndex = 10;
+ gradeLabel.Text = "직책";
+ //
+ // emailLabel
+ //
+ emailLabel.AutoSize = true;
+ emailLabel.Location = new System.Drawing.Point(26, 159);
+ emailLabel.Name = "emailLabel";
+ emailLabel.Size = new System.Drawing.Size(74, 21);
+ emailLabel.TabIndex = 12;
+ emailLabel.Text = "전자메일";
+ //
+ // levelLabel
+ //
+ levelLabel.AutoSize = true;
+ levelLabel.Location = new System.Drawing.Point(360, 229);
+ levelLabel.Name = "levelLabel";
+ levelLabel.Size = new System.Drawing.Size(42, 21);
+ levelLabel.TabIndex = 18;
+ levelLabel.Text = "권한";
+ //
+ // indateLabel
+ //
+ indateLabel.AutoSize = true;
+ indateLabel.Location = new System.Drawing.Point(344, 15);
+ indateLabel.Name = "indateLabel";
+ indateLabel.Size = new System.Drawing.Size(58, 21);
+ indateLabel.TabIndex = 20;
+ indateLabel.Text = "입사일";
+ //
+ // outdateLabel
+ //
+ outdateLabel.AutoSize = true;
+ outdateLabel.Location = new System.Drawing.Point(344, 49);
+ outdateLabel.Name = "outdateLabel";
+ outdateLabel.Size = new System.Drawing.Size(58, 21);
+ outdateLabel.TabIndex = 22;
+ outdateLabel.Text = "퇴사일";
+ //
+ // memoLabel
+ //
+ memoLabel.AutoSize = true;
+ memoLabel.Location = new System.Drawing.Point(360, 156);
+ memoLabel.Name = "memoLabel";
+ memoLabel.Size = new System.Drawing.Size(42, 21);
+ memoLabel.TabIndex = 24;
+ memoLabel.Text = "비고";
+ //
+ // label1
+ //
+ label1.AutoSize = true;
+ label1.Location = new System.Drawing.Point(10, 193);
+ label1.Name = "label1";
+ label1.Size = new System.Drawing.Size(90, 21);
+ label1.TabIndex = 14;
+ label1.Text = "사무실전화";
+ //
+ // label2
+ //
+ label2.AutoSize = true;
+ label2.Location = new System.Drawing.Point(26, 229);
+ label2.Name = "label2";
+ label2.Size = new System.Drawing.Size(74, 21);
+ label2.TabIndex = 16;
+ label2.Text = "휴대전화";
+ //
+ // label3
+ //
+ label3.AutoSize = true;
+ label3.Location = new System.Drawing.Point(318, 86);
+ label3.Name = "label3";
+ label3.Size = new System.Drawing.Size(84, 21);
+ label3.TabIndex = 6;
+ label3.Text = "이름(영문)";
+ //
+ // label4
+ //
+ label4.AutoSize = true;
+ label4.Location = new System.Drawing.Point(106, 330);
+ label4.Name = "label4";
+ label4.Size = new System.Drawing.Size(96, 21);
+ label4.TabIndex = 27;
+ label4.Text = "견적서 위치";
+ //
+ // label5
+ //
+ 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.Location = new System.Drawing.Point(105, 11);
+ this.tbId.Name = "tbId";
+ this.tbId.Size = new System.Drawing.Size(145, 29);
+ this.tbId.TabIndex = 1;
+ //
+ // tbNameK
+ //
+ 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;
+ //
+ // tbDept
+ //
+ 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;
+ //
+ // tbGrade
+ //
+ 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;
+ //
+ // tbEmail
+ //
+ 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;
+ //
+ // tbLevel
+ //
+ 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;
+ //
+ // tbDateIn
+ //
+ 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;
+ //
+ // tbDateO
+ //
+ 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;
+ //
+ // tbMemo
+ //
+ 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;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(105, 264);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(491, 54);
+ this.button2.TabIndex = 26;
+ this.button2.Text = "저장(&S)";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // tbTel
+ //
+ 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;
+ //
+ // tbHp
+ //
+ 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;
+ //
+ // tbNameE
+ //
+ 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
+ //
+ this.tbKJPath.Location = new System.Drawing.Point(184, 327);
+ this.tbKJPath.Name = "tbKJPath";
+ this.tbKJPath.ReadOnly = true;
+ this.tbKJPath.Size = new System.Drawing.Size(177, 29);
+ this.tbKJPath.TabIndex = 28;
+ //
+ // tbProcess
+ //
+ 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;
+ //
+ // textBox1
+ //
+ this.textBox1.Location = new System.Drawing.Point(105, 45);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.ReadOnly = true;
+ this.textBox1.Size = new System.Drawing.Size(200, 29);
+ this.textBox1.TabIndex = 31;
+ this.textBox1.Text = "기본값 0";
+ this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // button1
+ //
+ this.button1.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.button1.Location = new System.Drawing.Point(256, 11);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(49, 29);
+ this.button1.TabIndex = 32;
+ this.button1.Text = "조회";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // fAddNewUser
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+ this.ClientSize = new System.Drawing.Size(601, 326);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.textBox1);
+ this.Controls.Add(label5);
+ this.Controls.Add(this.tbProcess);
+ this.Controls.Add(label4);
+ this.Controls.Add(this.tbKJPath);
+ this.Controls.Add(label3);
+ this.Controls.Add(this.tbNameE);
+ this.Controls.Add(label2);
+ this.Controls.Add(this.tbHp);
+ this.Controls.Add(label1);
+ this.Controls.Add(this.tbTel);
+ this.Controls.Add(this.button2);
+ this.Controls.Add(idLabel);
+ this.Controls.Add(this.tbId);
+ this.Controls.Add(passwordLabel);
+ this.Controls.Add(nameLabel);
+ this.Controls.Add(this.tbNameK);
+ this.Controls.Add(deptLabel);
+ this.Controls.Add(this.tbDept);
+ this.Controls.Add(gradeLabel);
+ this.Controls.Add(this.tbGrade);
+ this.Controls.Add(emailLabel);
+ this.Controls.Add(this.tbEmail);
+ this.Controls.Add(levelLabel);
+ this.Controls.Add(this.tbLevel);
+ this.Controls.Add(indateLabel);
+ this.Controls.Add(this.tbDateIn);
+ this.Controls.Add(outdateLabel);
+ this.Controls.Add(this.tbDateO);
+ this.Controls.Add(memoLabel);
+ 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;
+ this.Name = "fAddNewUser";
+ this.Text = "사용자추가";
+ this.Load += new System.EventHandler(this.fUserInfo_Load);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+ 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 button2;
+ 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 tbProcess;
+ private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.Button button1;
+ }
+}
\ No newline at end of file
diff --git a/Project/_Common/fAddNewUser.cs b/Project/_Common/fAddNewUser.cs
new file mode 100644
index 0000000..59edaa7
--- /dev/null
+++ b/Project/_Common/fAddNewUser.cs
@@ -0,0 +1,146 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Project._Common
+{
+ public partial class fAddNewUser : Form // FCOMMON.fBase
+ {
+ public fAddNewUser(string dept)
+ {
+ InitializeComponent();
+ this.tbDept.Text = dept;
+ }
+ dsMSSQL.UsersRow dr = null;
+
+ private void fUserInfo_Load(object sender, EventArgs e)
+ {
+
+ }
+ private void button1_Click(object sender, EventArgs e)
+ {
+ //입력한 id확인해서 잇으면 해당 자료를 표시해준다.
+ var id = this.tbId.Text.Trim();
+ if (id.isEmpty())
+ {
+ FCOMMON.Util.MsgE("id를 입력하세요");
+ this.tbId.SelectAll();
+ this.tbId.Focus();
+ return;
+ }
+
+ var db = new DataClasses1DataContext();
+ var dr_user = db.Users.Where(t => t.id == id).FirstOrDefault();
+ if (dr_user == null)
+ {
+ FCOMMON.Util.MsgE("등록된 자료가 없습니다");
+ tbNameK.Focus();
+ }
+ else
+ {
+ tbNameK.Text = dr_user.name;
+ tbNameE.Text = dr_user.nameE;
+ if (tbDept.Text.isEmpty()) tbDept.Text = dr_user.dept;
+ tbEmail.Text = dr_user.email;
+ tbTel.Text = dr_user.tel;
+ tbHp.Text = dr_user.hp;
+ tbDateIn.Text = dr_user.indate;
+ tbDateO.Text = dr_user.outdate;
+ tbGrade.Text = dr_user.grade;
+ tbMemo.Text = dr_user.memo;
+
+ tbProcess.Text = string.Empty;
+
+ //부서가잇다면 해당 부서에서 해당 사용자의 공정을 찾는다
+ if (tbDept.Text.isEmpty() == false)
+ {
+ var drGrp = db.vGroupUser.Where(t => t.id == id).FirstOrDefault();
+ if (drGrp != null)
+ {
+ tbProcess.Text = drGrp.processs;
+ }
+ }
+ }
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ this.Validate();
+ var db = new DataClasses1DataContext();
+
+ //해당 그룹에 데이터를 추가한다.
+ var drDept = db.UserGroup.Where(t => t.dept == tbDept.Text).FirstOrDefault();
+ if (drDept == null)
+ {
+ FCOMMON.Util.MsgE("해당 부서정보가 존재하지 않습니다\n\n부서를 신규로 추가할 수는 없습니다\n관리자에 문의하세요");
+ return;
+ }
+
+ //해당 그룹에 해당 사용자가 존재하는지 확이한다.
+ var gcode = drDept.gcode;
+ var drGuser = db.EETGW_GroupUser.Where(t => t.gcode == gcode && t.uid == this.tbId.Text.Trim()).FirstOrDefault();
+ if (drGuser != null)
+ {
+ drGuser.Process = this.tbProcess.Text.Trim();
+ }
+ else
+ {
+ drGuser = new EETGW_GroupUser();
+ drGuser.wuid = FCOMMON.info.Login.no;
+ drGuser.wdate = DateTime.Now;
+ drGuser.gcode = gcode;
+ drGuser.level = 1;
+ drGuser.uid = this.tbId.Text.Trim();
+
+ drGuser.Process = this.tbProcess.Text.Trim();
+ db.EETGW_GroupUser.InsertOnSubmit(drGuser);
+ }
+
+ //사용자 목록에 없다면 추가한다
+ var drUser = db.Users.Where(t => t.id == tbId.Text.Trim()).FirstOrDefault();
+ if(drUser == null)
+ {
+ drUser = new Users();
+ drUser.wuid = FCOMMON.info.Login.no;
+ drUser.wdate = DateTime.Now;
+ drUser.gcode = gcode;
+ drUser.level = 1;
+ drUser.id = tbId.Text.Trim();
+
+ drUser.name = tbNameK.Text.Trim();
+ drUser.nameE = tbNameE.Text.Trim();
+ drUser.dept = this.tbDept.Text.Trim();
+ drUser.email = tbEmail.Text;
+ drUser.tel = tbTel.Text;
+ drUser.hp = tbHp.Text;
+ drUser.indate = tbDateIn.Text;
+ drUser.outdate = tbDateO.Text;
+ drUser.memo = tbMemo.Text;
+ drUser.processs = tbProcess.Text;
+ db.Users.InsertOnSubmit(drUser);
+ }
+
+ else
+ {
+ drUser.name = tbNameK.Text.Trim();
+ drUser.nameE = tbNameE.Text.Trim();
+ drUser.dept = this.tbDept.Text.Trim();
+ drUser.email = tbEmail.Text;
+ drUser.tel = tbTel.Text;
+ drUser.hp = tbHp.Text;
+ drUser.indate = tbDateIn.Text;
+ drUser.outdate = tbDateO.Text;
+ drUser.memo = tbMemo.Text;
+ drUser.processs = tbProcess.Text;
+ }
+ db.SubmitChanges();
+ this.DialogResult = DialogResult.OK;
+
+ }
+ }
+}
diff --git a/Project/_Common/fAddNewUser.resx b/Project/_Common/fAddNewUser.resx
new file mode 100644
index 0000000..2b12c89
--- /dev/null
+++ b/Project/_Common/fAddNewUser.resx
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
+ False
+
+
\ No newline at end of file
diff --git a/SubProject/FCM0000/Item/fLovItem.cs b/SubProject/FCM0000/Item/fLovItem.cs
index f64fa58..78d26f7 100644
--- a/SubProject/FCM0000/Item/fLovItem.cs
+++ b/SubProject/FCM0000/Item/fLovItem.cs
@@ -22,6 +22,8 @@ namespace FCM0000
public string itemSupply { get; set; }
public int itemSupplyidx { get; set; }
+ public string itemManu { get; set; }
+
public fLovItem(string search_)
{
InitializeComponent();
@@ -37,6 +39,7 @@ namespace FCM0000
itemUnit = "EA";
itemSupply = string.Empty;
itemSupplyidx = -1;
+ itemManu = string.Empty;
this.KeyPreview = true;
this.KeyDown += (s1, e1) =>
@@ -61,6 +64,8 @@ namespace FCM0000
tbFind.SelectAll();
}
}
+
+ Boolean searchOk = false;
void refreshData(string search)
{
if(search == "")
@@ -77,6 +82,7 @@ namespace FCM0000
//검색을 수행
this.taPMP.Fill(this.dSPMP.SPMaster, "%" + search + "%");
this.arDatagridView1.AutoResizeColumns();
+ searchOk = true;
}
@@ -93,6 +99,7 @@ namespace FCM0000
itemprice = 0;
itemSupply = string.Empty;
itemSupplyidx = -1;
+ itemManu = string.Empty;
itemUnit = "EA";
SID = string.Empty;
return;
@@ -105,6 +112,8 @@ namespace FCM0000
else itemName = dr.name;
if (dr.IsmodelNull()) itemmodel = string.Empty;
else itemmodel = dr.model;
+ if (dr.IsmanuNull()) itemManu = string.Empty;
+ else itemManu = dr.manu;
if (dr.IspriceNull()) itemprice = 0;
else itemprice = dr.price;
if (dr.IssupplyNull()) itemSupply = string.Empty;
@@ -217,12 +226,20 @@ namespace FCM0000
private void btAdd_Click(object sender, EventArgs e)
{
+ if(searchOk==false)
+ {
+ FCOMMON.Util.MsgE("먼저 검색을 통해서 아이템을 찾은 후 없다면 신규추가를 눌러 주세요");
+ tbFind.Focus();
+ tbFind.SelectAll();
+ return;
+ }
var f = new Item.fItemAdd();
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
itemName = f.tbName.Text.Trim();
item = f.newIDX;
itemmodel = f.tbModel.Text.Trim();
+ itemManu = f.tbManu.Text.Trim();
decimal price;
decimal.TryParse(f.tbPrice.Text.Replace(",",""),out price);
itemprice =price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",",""));
diff --git a/SubProject/FEQ0000/Purchase/fPurchase.cs b/SubProject/FEQ0000/Purchase/fPurchase.cs
index 3166412..736951d 100644
--- a/SubProject/FEQ0000/Purchase/fPurchase.cs
+++ b/SubProject/FEQ0000/Purchase/fPurchase.cs
@@ -8,8 +8,8 @@ using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
-using NetOffice;
-using Outlook = NetOffice.OutlookApi;
+using NetOffice;
+using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
namespace FEQ0000
diff --git a/SubProject/FPJ0000/JobReport/fJobReport.Designer.cs b/SubProject/FPJ0000/JobReport/fJobReport.Designer.cs
index 4dd3c86..9bd53c2 100644
--- a/SubProject/FPJ0000/JobReport/fJobReport.Designer.cs
+++ b/SubProject/FPJ0000/JobReport/fJobReport.Designer.cs
@@ -302,7 +302,6 @@
// btReport
//
this.btReport.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
- this.btReport.Enabled = false;
this.btReport.Image = ((System.Drawing.Image)(resources.GetObject("btReport.Image")));
this.btReport.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btReport.Name = "btReport";
diff --git a/SubProject/FPJ0000/JobReport/rJobReport.Designer.cs b/SubProject/FPJ0000/JobReport/rJobReport.Designer.cs
index 26e3b70..a9b8e42 100644
--- a/SubProject/FPJ0000/JobReport/rJobReport.Designer.cs
+++ b/SubProject/FPJ0000/JobReport/rJobReport.Designer.cs
@@ -1,89 +1,144 @@
-namespace FPJ0000.JobReport
-{
- partial class rJobReport
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
- this.bs = new System.Windows.Forms.BindingSource(this.components);
- this.dsReport = new FPJ0000.dsReport();
- this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer();
- this.ta = new FPJ0000.dsReportTableAdapters.jobReportTableAdapter();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
- this.SuspendLayout();
- //
- // bs
- //
- this.bs.DataMember = "jobreport";
- this.bs.DataSource = this.dsReport;
- //
- // dsReport
- //
- this.dsReport.DataSetName = "dsReport";
- this.dsReport.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- //
- // reportViewer1
- //
- this.reportViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
- reportDataSource1.Name = "DataSet1";
- reportDataSource1.Value = this.bs;
- this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
- this.reportViewer1.LocalReport.ReportEmbeddedResource = "FPJ0000.JobReport.rJobReport.rdlc";
- this.reportViewer1.Location = new System.Drawing.Point(0, 0);
- this.reportViewer1.Name = "reportViewer1";
- this.reportViewer1.Size = new System.Drawing.Size(721, 586);
- this.reportViewer1.TabIndex = 0;
- //
- // ta
- //
- this.ta.ClearBeforeFill = true;
- //
- // rJobReport
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(721, 586);
- this.Controls.Add(this.reportViewer1);
- this.Name = "rJobReport";
- this.Text = "월/개인별 근무시간 내역 집계";
- this.Load += new System.EventHandler(this.rJobReport_Load);
- ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsReport)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private Microsoft.Reporting.WinForms.ReportViewer reportViewer1;
- private System.Windows.Forms.BindingSource bs;
- private dsReport dsReport;
- private dsReportTableAdapters.jobReportTableAdapter ta;
- }
+namespace FPJ0000.JobReport
+{
+ partial class rJobReport
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.bs = new System.Windows.Forms.BindingSource(this.components);
+ this.dsReport = new FPJ0000.dsReport();
+ this.ta = new FPJ0000.dsReportTableAdapters.jobReportTableAdapter();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.linkLabel1 = new System.Windows.Forms.LinkLabel();
+ this.btRefresh = new System.Windows.Forms.Button();
+ this.tbMon = new System.Windows.Forms.TextBox();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.panel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // bs
+ //
+ this.bs.DataMember = "jobreport";
+ this.bs.DataSource = this.dsReport;
+ //
+ // dsReport
+ //
+ this.dsReport.DataSetName = "dsReport";
+ this.dsReport.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+ //
+ // ta
+ //
+ this.ta.ClearBeforeFill = true;
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.AllowUserToAddRows = false;
+ this.dataGridView1.AllowUserToDeleteRows = false;
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.dataGridView1.Location = new System.Drawing.Point(0, 42);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.ReadOnly = true;
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(721, 544);
+ this.dataGridView1.TabIndex = 2;
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.linkLabel1);
+ this.panel1.Controls.Add(this.btRefresh);
+ this.panel1.Controls.Add(this.tbMon);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Padding = new System.Windows.Forms.Padding(5);
+ this.panel1.Size = new System.Drawing.Size(721, 42);
+ this.panel1.TabIndex = 3;
+ //
+ // linkLabel1
+ //
+ this.linkLabel1.AutoSize = true;
+ this.linkLabel1.Location = new System.Drawing.Point(13, 15);
+ this.linkLabel1.Name = "linkLabel1";
+ this.linkLabel1.Size = new System.Drawing.Size(45, 12);
+ this.linkLabel1.TabIndex = 0;
+ this.linkLabel1.TabStop = true;
+ this.linkLabel1.Text = "조회 년";
+ //
+ // btRefresh
+ //
+ this.btRefresh.Dock = System.Windows.Forms.DockStyle.Right;
+ this.btRefresh.Location = new System.Drawing.Point(641, 5);
+ this.btRefresh.Name = "btRefresh";
+ this.btRefresh.Size = new System.Drawing.Size(75, 32);
+ this.btRefresh.TabIndex = 2;
+ this.btRefresh.Text = "새로고침";
+ this.btRefresh.UseVisualStyleBackColor = true;
+ this.btRefresh.Click += new System.EventHandler(this.btRefresh_Click);
+ //
+ // tbMon
+ //
+ this.tbMon.Location = new System.Drawing.Point(66, 10);
+ this.tbMon.Name = "tbMon";
+ this.tbMon.Size = new System.Drawing.Size(115, 21);
+ this.tbMon.TabIndex = 1;
+ this.tbMon.Text = "2020";
+ this.tbMon.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // rJobReport
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(721, 586);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panel1);
+ this.Name = "rJobReport";
+ this.Text = "월/개인별 근무시간 내역 집계";
+ this.Load += new System.EventHandler(this.rJobReport_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsReport)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.BindingSource bs;
+ private dsReport dsReport;
+ private dsReportTableAdapters.jobReportTableAdapter ta;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.LinkLabel linkLabel1;
+ private System.Windows.Forms.Button btRefresh;
+ private System.Windows.Forms.TextBox tbMon;
+ }
}
\ No newline at end of file
diff --git a/SubProject/FPJ0000/JobReport/rJobReport.cs b/SubProject/FPJ0000/JobReport/rJobReport.cs
index 373789b..75b5fb6 100644
--- a/SubProject/FPJ0000/JobReport/rJobReport.cs
+++ b/SubProject/FPJ0000/JobReport/rJobReport.cs
@@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace FPJ0000.JobReport
{
public partial class rJobReport : Form
- {
+ {
public rJobReport()
{
InitializeComponent();
@@ -19,10 +19,92 @@ namespace FPJ0000.JobReport
private void rJobReport_Load(object sender, EventArgs e)
{
- this.ta.Fill(this.dsReport.jobReport, DateTime.Now.Year.ToString("0000"),FCOMMON.info.Login.gcode);
- this.reportViewer1.SetDisplayMode( Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
- this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
- this.reportViewer1.RefreshReport();
+ RefreshData();
+ }
+
+ void RefreshData()
+ {
+ this.ta.Fill(this.dsReport.jobReport, tbMon.Text, FCOMMON.info.Login.gcode);
+ //this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
+ //this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
+
+
+ //그리드뷰 생성
+ this.dataGridView1.AllowUserToAddRows = false;
+ this.dataGridView1.AllowUserToDeleteRows = false;
+ this.dataGridView1.Rows.Clear();
+ this.dataGridView1.Columns.Clear();
+ this.dataGridView1.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ this.dataGridView1.ColumnHeadersHeight = 35;
+ this.dataGridView1.Columns.Add("이름", "이름");
+
+ //이름/년도데이터추가
+ var ymlist = dsReport.jobReport.OrderBy(t => t.yymm).GroupBy(t => t.yymm);
+ foreach (var ym in ymlist)
+ {
+ var drYm = ym.FirstOrDefault();
+
+ var basehr = int.Parse(drYm.yymm.Substring(drYm.yymm.IndexOf('(')).Replace("(", "").Replace(")", ""));
+
+ this.dataGridView1.Columns.Add(drYm.yymm, drYm.yymm.Substring(0, 7) + "\r\n(" + basehr.ToString() + ")");
+ }
+
+ //이름으로 정렬해서 데이터를 가져온다
+ var namelist = this.dsReport.jobReport.OrderBy(t => t.uname).GroupBy(t => t.uname);
+ foreach (var uname in namelist)
+ {
+ var drName = uname.FirstOrDefault();
+
+ List rowdata = new List();
+ rowdata.Add(drName.uname + "(" + drName.uid + ")");
+
+ List high = new List();
+ List low = new List();
+ for (int i = 1; i < this.dataGridView1.ColumnCount; i++)
+ {
+ var coltitle = dataGridView1.Columns[i].HeaderText;
+ var basehr = int.Parse(coltitle.Split('\n')[1].Replace("(","").Replace(")",""));
+
+ var userDatas = dsReport.jobReport.Where(t => t.uid == drName.uid && t.yymm == dataGridView1.Columns[i].Name);
+ if (userDatas == null || userDatas.Count() == 0)
+ {
+ //이달에는 데이터가없다
+ rowdata.Add("--");
+ high.Add(false);
+ low.Add(false);
+ }
+ else
+ {
+ var sumhr = userDatas.Sum(t => t.hrs);
+ var sumot = userDatas.Sum(t => t.ot);
+ if (sumot == 0) rowdata.Add(string.Format("{0}", sumhr, sumot));
+ else rowdata.Add(string.Format("{0}+{1}", sumhr, sumot));
+
+ if (sumhr > basehr) high.Add(true);
+ else high.Add(false);
+ if (sumhr < basehr) low.Add(true);
+ else low.Add(false);
+ }
+ }
+
+ dataGridView1.Rows.Add(rowdata.ToArray());
+
+ //이번에 추가한 줄의 셀 컬러를 지정한다
+ var currentrow = dataGridView1.Rows.Count - 1;
+ for (int i = 1; i < this.dataGridView1.ColumnCount; i++)
+ {
+ if (high[i - 1]) dataGridView1.Rows[currentrow].Cells[i].Style.ForeColor = Color.Red;
+ else if (low[i - 1]) dataGridView1.Rows[currentrow].Cells[i].Style.ForeColor = Color.Blue;
+ else dataGridView1.Rows[currentrow].Cells[i].Style.ForeColor = Color.Black;
+ }
+ }
+ this.dataGridView1.AutoResizeColumns();
+
+ }
+
+ private void btRefresh_Click(object sender, EventArgs e)
+ {
+ RefreshData();
}
}
}
diff --git a/SubProject/FPJ0000/JobReport/rJobReport.resx b/SubProject/FPJ0000/JobReport/rJobReport.resx
index 512b523..81d7b0d 100644
--- a/SubProject/FPJ0000/JobReport/rJobReport.resx
+++ b/SubProject/FPJ0000/JobReport/rJobReport.resx
@@ -1,129 +1,132 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 119, 17
-
-
- 17, 17
-
-
- 183, 17
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 119, 17
+
+
+ 17, 17
+
+
+ 17, 17
+
+
+ 183, 17
+
\ No newline at end of file
diff --git a/SubProject/FPJ0000/JobReport/rJobReportDay.Designer.cs b/SubProject/FPJ0000/JobReport/rJobReportDay.Designer.cs
index 3e23deb..9ee0fa2 100644
--- a/SubProject/FPJ0000/JobReport/rJobReportDay.Designer.cs
+++ b/SubProject/FPJ0000/JobReport/rJobReportDay.Designer.cs
@@ -29,17 +29,16 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsReport = new FPJ0000.dsReport();
this.panel1 = new System.Windows.Forms.Panel();
+ this.tbProcess = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.btRefresh = new System.Windows.Forms.Button();
this.tbMon = new System.Windows.Forms.TextBox();
this.ta = new FPJ0000.dsReportTableAdapters.JobReportDayTableAdapter();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
- this.tbProcess = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
this.panel1.SuspendLayout();
@@ -70,6 +69,15 @@
this.panel1.Size = new System.Drawing.Size(751, 42);
this.panel1.TabIndex = 0;
//
+ // tbProcess
+ //
+ this.tbProcess.FormattingEnabled = true;
+ this.tbProcess.Location = new System.Drawing.Point(233, 10);
+ this.tbProcess.Name = "tbProcess";
+ this.tbProcess.Size = new System.Drawing.Size(158, 20);
+ this.tbProcess.TabIndex = 5;
+ this.tbProcess.SelectedIndexChanged += new System.EventHandler(this.tbProcess_SelectedIndexChanged);
+ //
// label1
//
this.label1.AutoSize = true;
@@ -115,30 +123,13 @@
//
// dataGridView1
//
- this.dataGridView1.AllowUserToAddRows = false;
- this.dataGridView1.AllowUserToDeleteRows = false;
- this.dataGridView1.AllowUserToResizeColumns = false;
- this.dataGridView1.AllowUserToResizeRows = false;
- dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 42);
this.dataGridView1.Name = "dataGridView1";
- this.dataGridView1.ReadOnly = true;
- this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(751, 546);
- this.dataGridView1.TabIndex = 2;
- //
- // tbProcess
- //
- this.tbProcess.FormattingEnabled = true;
- this.tbProcess.Location = new System.Drawing.Point(233, 10);
- this.tbProcess.Name = "tbProcess";
- this.tbProcess.Size = new System.Drawing.Size(158, 20);
- this.tbProcess.TabIndex = 5;
- this.tbProcess.SelectedIndexChanged += new System.EventHandler(this.tbProcess_SelectedIndexChanged);
+ this.dataGridView1.TabIndex = 1;
//
// rJobReportDay
//
@@ -167,8 +158,8 @@
private System.Windows.Forms.TextBox tbMon;
private System.Windows.Forms.LinkLabel linkLabel1;
private dsReportTableAdapters.JobReportDayTableAdapter ta;
- private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox tbProcess;
+ private System.Windows.Forms.DataGridView dataGridView1;
}
}
\ No newline at end of file
diff --git a/SubProject/FPJ0000/Project/fPartList.Designer.cs b/SubProject/FPJ0000/Project/fPartList.Designer.cs
index 8d25c09..9928e88 100644
--- a/SubProject/FPJ0000/Project/fPartList.Designer.cs
+++ b/SubProject/FPJ0000/Project/fPartList.Designer.cs
@@ -38,6 +38,7 @@
System.Windows.Forms.Label statusLabel;
System.Windows.Forms.Label label1;
System.Windows.Forms.Label label2;
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPartList));
FarPoint.Win.Spread.FlatFocusIndicatorRenderer flatFocusIndicatorRenderer1 = new FarPoint.Win.Spread.FlatFocusIndicatorRenderer();
FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer1 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer2 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
@@ -63,8 +64,9 @@
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPartList));
this.panel1 = new System.Windows.Forms.Panel();
+ this.button4 = new System.Windows.Forms.Button();
+ this.panel7 = new System.Windows.Forms.Panel();
this.button3 = new System.Windows.Forms.Button();
this.panel6 = new System.Windows.Forms.Panel();
this.button2 = new System.Windows.Forms.Button();
@@ -137,8 +139,6 @@
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
- this.panel7 = new System.Windows.Forms.Panel();
- this.button4 = new System.Windows.Forms.Button();
pdateLabel = new System.Windows.Forms.Label();
requestLabel = new System.Windows.Forms.Label();
reqstaffLabel = new System.Windows.Forms.Label();
@@ -263,6 +263,29 @@
this.panel1.Size = new System.Drawing.Size(1345, 170);
this.panel1.TabIndex = 0;
//
+ // button4
+ //
+ this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.button4.Dock = System.Windows.Forms.DockStyle.Left;
+ this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
+ this.button4.Location = new System.Drawing.Point(962, 0);
+ this.button4.Name = "button4";
+ this.button4.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
+ this.button4.Size = new System.Drawing.Size(87, 119);
+ this.button4.TabIndex = 42;
+ this.button4.Text = "공용폴더";
+ this.button4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ this.button4.UseVisualStyleBackColor = true;
+ this.button4.Click += new System.EventHandler(this.button4_Click);
+ //
+ // panel7
+ //
+ this.panel7.Dock = System.Windows.Forms.DockStyle.Left;
+ this.panel7.Location = new System.Drawing.Point(955, 0);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(7, 119);
+ this.panel7.TabIndex = 41;
+ //
// button3
//
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
@@ -1378,29 +1401,6 @@
this.fpSpread1_Sheet1.TitleInfo.Value = "Partlist";
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
- // panel7
- //
- this.panel7.Dock = System.Windows.Forms.DockStyle.Left;
- this.panel7.Location = new System.Drawing.Point(955, 0);
- this.panel7.Name = "panel7";
- this.panel7.Size = new System.Drawing.Size(7, 119);
- this.panel7.TabIndex = 41;
- //
- // button4
- //
- this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
- this.button4.Dock = System.Windows.Forms.DockStyle.Left;
- this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
- this.button4.Location = new System.Drawing.Point(962, 0);
- this.button4.Name = "button4";
- this.button4.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
- this.button4.Size = new System.Drawing.Size(87, 119);
- this.button4.TabIndex = 42;
- this.button4.Text = "공용폴더";
- this.button4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Click += new System.EventHandler(this.button4_Click);
- //
// fPartList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
diff --git a/SubProject/FPJ0000/Project/fPartList.cs b/SubProject/FPJ0000/Project/fPartList.cs
index f68e591..07c7a58 100644
--- a/SubProject/FPJ0000/Project/fPartList.cs
+++ b/SubProject/FPJ0000/Project/fPartList.cs
@@ -25,6 +25,7 @@ namespace FPJ0000
int colidx_supply = -1;
int colidx_supplyidx = -1;
int colidx_sid = -1;
+ int colidx_manu = -1;
public fPartList(int idx_)
@@ -112,6 +113,7 @@ namespace FPJ0000
else if (colname == "itemsupplyidx") colidx_supplyidx = col.Index;
else if (colname == "itemsupply") colidx_supply = col.Index;
else if (colname == "itemsid") colidx_sid = col.Index;
+ else if (colname == "itemmanu") colidx_manu = col.Index;
}
this.Show();
Application.DoEvents();
@@ -483,6 +485,8 @@ namespace FPJ0000
//fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.itemSupplyidx;
//fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supply].Value = f.itemSupply;
+ //제조사추가 201022
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_manu].Value = f.itemManu.Replace(" ", "").Trim();
if (f.itemmodel != "")
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_model].Value = f.itemmodel;
diff --git a/SubProject/FPJ0000/Project/fPartList.resx b/SubProject/FPJ0000/Project/fPartList.resx
index 8e43b9c..6398f9a 100644
--- a/SubProject/FPJ0000/Project/fPartList.resx
+++ b/SubProject/FPJ0000/Project/fPartList.resx
@@ -147,15 +147,15 @@
- iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAAIpoAACKaAb7d+yoAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwa
- AAABh0lEQVRYR+2VMUoDYRSE92i2igewslcsBCu7eAErIY0gNtY2FjZiYSt4BG+grdXqZ97wfsIgwYWX
- XdiBaSYz//sKTbpZQ3V7vLcYswHsx+zpAL4tz/r+5XoUhmUGHOIZcKgt4Fg9CcDVt/bR7rPCx8XhVqz7
- wbL6JZEi+C24v4sK6z4sgZUiVMGNK6z7sARWilAFN66w7sMSWClCFdy4wroPS2ClCFVw43W/3130r1en
- G5mue2Pdug9LYKUIVXDj1h8Pl+1jG/nzZ+Peat30hwF+PS37+/OD9sE/TZeNe6t1s5n/Sf5l3YclsFKE
- KrhxhXUflsBKEargxhXWfVgCK0WoghtXWPdhCawUoQpuXGHdhyWwUoQquHGFdR+WwEoRquD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