구매수량없이 구매신청되지 않게 함

This commit is contained in:
chi
2024-02-08 09:49:47 +09:00
parent 283597f612
commit 3691bee8a9
17 changed files with 3146 additions and 941 deletions

View File

@@ -35,16 +35,20 @@
System.Windows.Forms.Label label6;
System.Windows.Forms.Label label7;
System.Windows.Forms.Label label2;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectPartToPurchaseCR));
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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.Label label17;
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.tbProject = new System.Windows.Forms.TextBox();
this.tbProjectIndex = new System.Windows.Forms.TextBox();
this.dtPdate = new System.Windows.Forms.DateTimePicker();
@@ -61,18 +65,6 @@
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.dv1 = new arCtl.arDatagridView();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.taProject = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.dvc_sid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_model = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -82,12 +74,30 @@
this.dvc_amt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_spm = new System.Windows.Forms.DataGridViewButtonColumn();
this.dvc_remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton6 = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.taProject = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
this.btEQManu = new System.Windows.Forms.Button();
this.btEQProc = new System.Windows.Forms.Button();
this.btEQModel = new System.Windows.Forms.Button();
this.tbManager = new System.Windows.Forms.ComboBox();
projectLabel = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
label6 = new System.Windows.Forms.Label();
label7 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
label17 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.groupBox1.SuspendLayout();
@@ -110,7 +120,7 @@
// label1
//
label1.AutoSize = true;
label1.Location = new System.Drawing.Point(7, 28);
label1.Location = new System.Drawing.Point(34, 28);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(47, 17);
label1.TabIndex = 0;
@@ -146,12 +156,39 @@
// label2
//
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(7, 58);
label2.Location = new System.Drawing.Point(34, 59);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(47, 17);
label2.TabIndex = 3;
label2.Text = "요청자";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(275, 59);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(34, 17);
this.label4.TabIndex = 5;
this.label4.Text = "공정";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(8, 90);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(73, 17);
this.label5.TabIndex = 7;
this.label5.Text = "장비제조사";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(249, 90);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(60, 17);
this.label8.TabIndex = 9;
this.label8.Text = "장비모델";
//
// tbProject
//
this.tbProject.BackColor = System.Drawing.SystemColors.Control;
@@ -177,7 +214,7 @@
//
// dtPdate
//
this.dtPdate.Location = new System.Drawing.Point(65, 24);
this.dtPdate.Location = new System.Drawing.Point(88, 24);
this.dtPdate.Name = "dtPdate";
this.dtPdate.Size = new System.Drawing.Size(251, 25);
this.dtPdate.TabIndex = 1;
@@ -188,9 +225,9 @@
this.cmbRequest.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.cmbRequest.FormattingEnabled = true;
this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.cmbRequest.Location = new System.Drawing.Point(65, 55);
this.cmbRequest.Location = new System.Drawing.Point(88, 55);
this.cmbRequest.Name = "cmbRequest";
this.cmbRequest.Size = new System.Drawing.Size(251, 25);
this.cmbRequest.Size = new System.Drawing.Size(155, 25);
this.cmbRequest.TabIndex = 2;
//
// textBox2
@@ -278,6 +315,14 @@
//
// groupBox2
//
this.groupBox2.Controls.Add(this.tbManager);
this.groupBox2.Controls.Add(label17);
this.groupBox2.Controls.Add(this.btEQModel);
this.groupBox2.Controls.Add(this.btEQProc);
this.groupBox2.Controls.Add(this.btEQManu);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(label2);
this.groupBox2.Controls.Add(this.cmbRequest);
this.groupBox2.Controls.Add(label1);
@@ -285,7 +330,7 @@
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(493, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(481, 155);
this.groupBox2.Size = new System.Drawing.Size(572, 155);
this.groupBox2.TabIndex = 24;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "구매 등록 정보";
@@ -297,7 +342,7 @@
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox3.Location = new System.Drawing.Point(5, 168);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(974, 441);
this.groupBox3.Size = new System.Drawing.Size(1065, 441);
this.groupBox3.TabIndex = 26;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "파트리스트";
@@ -324,24 +369,96 @@
this.dvc_amt,
this.dvc_spm,
this.dvc_remark});
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle9.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle45.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle45.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle45.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle45.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle45.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle45.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle45;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(3, 21);
this.dv1.Name = "dv1";
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(968, 370);
this.dv1.Size = new System.Drawing.Size(1059, 370);
this.dv1.TabIndex = 27;
this.dv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellContentClick);
this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit_1);
this.dv1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dv1_CellFormatting);
//
// dvc_sid
//
dataGridViewCellStyle37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_sid.DefaultCellStyle = dataGridViewCellStyle37;
this.dvc_sid.HeaderText = "SID";
this.dvc_sid.Name = "dvc_sid";
this.dvc_sid.ReadOnly = true;
//
// dvc_name
//
dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle38.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_name.DefaultCellStyle = dataGridViewCellStyle38;
this.dvc_name.HeaderText = "품명";
this.dvc_name.Name = "dvc_name";
this.dvc_name.ReadOnly = true;
//
// dvc_model
//
dataGridViewCellStyle39.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_model.DefaultCellStyle = dataGridViewCellStyle39;
this.dvc_model.HeaderText = "모델";
this.dvc_model.Name = "dvc_model";
this.dvc_model.ReadOnly = true;
//
// dvc_price
//
dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle40.Format = "N0";
this.dvc_price.DefaultCellStyle = dataGridViewCellStyle40;
this.dvc_price.HeaderText = "단가";
this.dvc_price.Name = "dvc_price";
//
// dvc_qtyreq
//
dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle41.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_qtyreq.DefaultCellStyle = dataGridViewCellStyle41;
this.dvc_qtyreq.HeaderText = "구매요청";
this.dvc_qtyreq.Name = "dvc_qtyreq";
this.dvc_qtyreq.ReadOnly = true;
//
// dvc_qty
//
dataGridViewCellStyle42.Format = "N0";
this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle42;
this.dvc_qty.HeaderText = "구매신청";
this.dvc_qty.Name = "dvc_qty";
//
// dvc_amt
//
dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle43.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
dataGridViewCellStyle43.Format = "N0";
this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle43;
this.dvc_amt.HeaderText = "구매금액";
this.dvc_amt.Name = "dvc_amt";
this.dvc_amt.ReadOnly = true;
//
// dvc_spm
//
this.dvc_spm.HeaderText = "SPM";
this.dvc_spm.Name = "dvc_spm";
//
// dvc_remark
//
this.dvc_remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.dvc_remark.DefaultCellStyle = dataGridViewCellStyle44;
this.dvc_remark.HeaderText = "비고";
this.dvc_remark.Name = "dvc_remark";
//
// toolStrip1
//
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
@@ -352,10 +469,11 @@
this.toolStripButton8,
this.toolStripButton1,
this.toolStripButton3,
this.toolStripButton5});
this.toolStripButton5,
this.toolStripButton6});
this.toolStrip1.Location = new System.Drawing.Point(3, 391);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(968, 47);
this.toolStrip1.Size = new System.Drawing.Size(1059, 47);
this.toolStrip1.TabIndex = 26;
this.toolStrip1.Text = "toolStrip1";
//
@@ -407,6 +525,24 @@
this.toolStripButton3.Visible = false;
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// toolStripButton5
//
this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton5.Name = "toolStripButton5";
this.toolStripButton5.Size = new System.Drawing.Size(136, 44);
this.toolStripButton5.Text = "SPM사이트열기";
this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
//
// toolStripButton6
//
this.toolStripButton6.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton6.Image")));
this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton6.Name = "toolStripButton6";
this.toolStripButton6.Size = new System.Drawing.Size(135, 44);
this.toolStripButton6.Text = "견적서폴더열기";
this.toolStripButton6.Click += new System.EventHandler(this.toolStripButton6_Click);
//
// panel1
//
this.panel1.Controls.Add(this.groupBox2);
@@ -416,7 +552,7 @@
this.panel1.Location = new System.Drawing.Point(5, 5);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(0, 3, 0, 5);
this.panel1.Size = new System.Drawing.Size(974, 163);
this.panel1.Size = new System.Drawing.Size(1065, 163);
this.panel1.TabIndex = 0;
//
// panel3
@@ -431,7 +567,7 @@
//
this.statusStrip1.Location = new System.Drawing.Point(5, 609);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(974, 22);
this.statusStrip1.Size = new System.Drawing.Size(1065, 22);
this.statusStrip1.TabIndex = 28;
this.statusStrip1.Text = "statusStrip1";
//
@@ -443,93 +579,65 @@
//
this.taPart.ClearBeforeFill = true;
//
// toolStripButton5
// btEQManu
//
this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton5.Name = "toolStripButton5";
this.toolStripButton5.Size = new System.Drawing.Size(136, 44);
this.toolStripButton5.Text = "SPM사이트열기";
this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
this.btEQManu.Location = new System.Drawing.Point(88, 86);
this.btEQManu.Name = "btEQManu";
this.btEQManu.Size = new System.Drawing.Size(155, 25);
this.btEQManu.TabIndex = 13;
this.btEQManu.Text = "공용코드06";
this.btEQManu.UseVisualStyleBackColor = true;
this.btEQManu.Click += new System.EventHandler(this.cmbManu_Click);
//
// dvc_sid
// btEQProc
//
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_sid.DefaultCellStyle = dataGridViewCellStyle1;
this.dvc_sid.HeaderText = "SID";
this.dvc_sid.Name = "dvc_sid";
this.dvc_sid.ReadOnly = true;
this.btEQProc.Location = new System.Drawing.Point(315, 55);
this.btEQProc.Name = "btEQProc";
this.btEQProc.Size = new System.Drawing.Size(144, 25);
this.btEQProc.TabIndex = 14;
this.btEQProc.Text = " 공용코드08";
this.btEQProc.UseVisualStyleBackColor = true;
this.btEQProc.Click += new System.EventHandler(this.cmbProcess_Click);
//
// dvc_name
// btEQModel
//
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_name.DefaultCellStyle = dataGridViewCellStyle2;
this.dvc_name.HeaderText = "품명";
this.dvc_name.Name = "dvc_name";
this.dvc_name.ReadOnly = true;
this.btEQModel.Location = new System.Drawing.Point(315, 86);
this.btEQModel.Name = "btEQModel";
this.btEQModel.Size = new System.Drawing.Size(144, 25);
this.btEQModel.TabIndex = 15;
this.btEQModel.Text = "공용코드07";
this.btEQModel.UseVisualStyleBackColor = true;
this.btEQModel.Click += new System.EventHandler(this.cmbModel_Click);
//
// dvc_model
// tbManager
//
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_model.DefaultCellStyle = dataGridViewCellStyle3;
this.dvc_model.HeaderText = "모델";
this.dvc_model.Name = "dvc_model";
this.dvc_model.ReadOnly = true;
this.tbManager.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.tbManager.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.tbManager.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.tbManager.FormattingEnabled = true;
this.tbManager.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbManager.Location = new System.Drawing.Point(88, 116);
this.tbManager.Margin = new System.Windows.Forms.Padding(4);
this.tbManager.Name = "tbManager";
this.tbManager.Size = new System.Drawing.Size(155, 25);
this.tbManager.TabIndex = 49;
//
// dvc_price
// label17
//
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle4.Format = "N0";
this.dvc_price.DefaultCellStyle = dataGridViewCellStyle4;
this.dvc_price.HeaderText = "단가";
this.dvc_price.Name = "dvc_price";
//
// dvc_qtyreq
//
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_qtyreq.DefaultCellStyle = dataGridViewCellStyle5;
this.dvc_qtyreq.HeaderText = "구매요청";
this.dvc_qtyreq.Name = "dvc_qtyreq";
this.dvc_qtyreq.ReadOnly = true;
//
// dvc_qty
//
dataGridViewCellStyle6.Format = "N0";
this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle6;
this.dvc_qty.HeaderText = "구매신청";
this.dvc_qty.Name = "dvc_qty";
//
// dvc_amt
//
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
dataGridViewCellStyle7.Format = "N0";
this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle7;
this.dvc_amt.HeaderText = "구매금액";
this.dvc_amt.Name = "dvc_amt";
this.dvc_amt.ReadOnly = true;
//
// dvc_spm
//
this.dvc_spm.HeaderText = "SPM";
this.dvc_spm.Name = "dvc_spm";
//
// dvc_remark
//
this.dvc_remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.dvc_remark.DefaultCellStyle = dataGridViewCellStyle8;
this.dvc_remark.HeaderText = "비고";
this.dvc_remark.Name = "dvc_remark";
label17.AutoSize = true;
label17.Location = new System.Drawing.Point(8, 119);
label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label17.Name = "label17";
label17.Size = new System.Drawing.Size(73, 17);
label17.TabIndex = 48;
label17.Text = "구매담당자";
//
// fProjectPartToPurchaseCR
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.ClientSize = new System.Drawing.Size(984, 636);
this.ClientSize = new System.Drawing.Size(1075, 636);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.statusStrip1);
@@ -596,5 +704,13 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_amt;
private System.Windows.Forms.DataGridViewButtonColumn dvc_spm;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_remark;
private System.Windows.Forms.ToolStripButton toolStripButton6;
private System.Windows.Forms.Button btEQModel;
private System.Windows.Forms.Button btEQProc;
private System.Windows.Forms.Button btEQManu;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.ComboBox tbManager;
}
}

View File

@@ -36,6 +36,18 @@ namespace FPJ0000
this.Text = isCR ? "파트리스트 CR등록" : "파트리스트 NR등록";
this.panel1.BackColor = isCR ? Color.FromArgb(192, 192, 255) : Color.FromArgb(192, 255, 255);
toolStripButton4.Text = isCR ? "CR구매등록" : "NR구매등록";
toolStripButton6.Visible = isCR == false;
if (isCR)
{
btEQManu.Visible = false;
btEQModel.Visible = false;
btEQProc.Visible = false;
label4.Visible = false;
label8.Visible = false;
label5.Visible = false;
}
}
int Col_Price = -1;
@@ -73,7 +85,12 @@ namespace FPJ0000
{
if (this.IDXList.Contains(dr.idx) == false) continue;
if (dr.IsItemSidNull() || dr.ItemSid.Length != 9)
if (dr.IsItemSidNull())
{
emptycount += 1;
continue;
}
else if (dr.ItemSid.Length != 9 && isCR) //cR은 신규를 허용하지 않는다.
{
emptycount += 1;
continue;
@@ -118,14 +135,30 @@ namespace FPJ0000
this.tbProjectIndex.Text = drPrj.idx.ToString();
this.textBox1.Text = drPrj.remark_ans;
this.tbProject.Text = drPrj.name;
this.btEQProc.Text = drPrj.process; //공정 240207
this.btEQProc.Tag = "";
this.btEQManu.Tag = "";
this.btEQModel.Tag = "";
this.tbCr.Text = drPrj.orderno;
//this.tbOrderNo.Text = drPrj.orderno;
//구매-담당
var LstMan = FCOMMON.DBM.getCodeTable("65");
this.tbManager.DisplayMember = "Value";
this.tbManager.ValueMember = "Value";
this.tbManager.DataSource = LstMan;
//파트리스트 합계금액
var dtPart = taPart.GetData(this.ProjectIndex);
MakeList(dtPart);
if (tbManager.Text.isEmpty() && tbManager.Items.Count == 1)
{
tbManager.Text = (tbManager.Items[0] as DataRowView)["Value"].ToString();
}
////상태
//var stateList = FCOMMON.DBM.getCodeTable("04");
//this.cmbState.DisplayMember = "Value";
@@ -280,8 +313,26 @@ namespace FPJ0000
return false;
}
}
else
{
if (btEQProc.Tag.ToString() == "")
{
FCOMMON.Util.MsgE("장비 공정을 선택하세요");
return false;
}
if (btEQManu.Tag.ToString() == "")
{
FCOMMON.Util.MsgE("장비 제조사를 선택하세요");
return false;
}
}
if (tbManager.Text.isEmpty())
{
FCOMMON.Util.MsgE("구매담당자를 선택 하세요");
tbManager.Focus();
return false;
}
int itemCount = 0;
decimal itemAmt = 0;
@@ -397,7 +448,11 @@ namespace FPJ0000
newdr.wdate = DateTime.Now;
newdr.orderno = tbCr.Text.Trim();
newdr.bigo = item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
// if (newdr.bigo.isEmpty()) newdr.bigo = tbProject.Text;
newdr.chk1 = true;
newdr.currency = "KRW";
newdr.EndEdit();
dtCR.AddEETGW_PurchaseCRRow(newdr);
}
@@ -405,7 +460,15 @@ namespace FPJ0000
{
newdr.pumqtyReq += v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
newdr.pumamt += v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
if (newdr.bigo.isEmpty() == false) newdr.bigo += ",";
newdr.bigo += item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
if (newdr.IscurrencyNull() || newdr.currency.isEmpty())
newdr.currency = "KRW";
// if (newdr.bigo.isEmpty()) newdr.bigo = tbProject.Text;
newdr.chk1 = true;
newdr.EndEdit();
}
@@ -426,7 +489,7 @@ namespace FPJ0000
{
var newdr = dtNR.Where(t => t.sid == sid).FirstOrDefault();
//insert query
if (newdr == null)
if (newdr == null || sid.Equals("신규"))
{
newdr = dtNR.NewPurchaseRow();
newadd = true;
@@ -439,6 +502,7 @@ namespace FPJ0000
if (newadd)
{
newdr.process = FCOMMON.info.Login.process;
newdr.gcode = FCOMMON.info.Login.gcode;
newdr.pdate = dtPdate.Value.ToShortDateString();
newdr.state = "---";// cmbState.Text.Trim();
@@ -459,8 +523,14 @@ namespace FPJ0000
newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.orderno = tbCr.Text.Trim();
newdr.purchase_manager = tbManager.Text.Trim();
newdr.currency = "KRW";
newdr.bigo = item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
if (newdr.bigo.isEmpty()) newdr.bigo = $"[{tbProject.Text}]";
newdr.chk1 = true;
newdr.dept = btEQProc.Tag.ToString();
newdr.manuproc = btEQManu.Tag.ToString();
newdr.asset = btEQModel.Tag.ToString();
newdr.EndEdit();
dtNR.AddPurchaseRow(newdr);
}
@@ -469,7 +539,18 @@ namespace FPJ0000
newdr.chk1 = true;
newdr.pumqtyReq += v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
newdr.pumamt += v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
newdr.process = FCOMMON.info.Login.process;
if (newdr.bigo.isEmpty() == false) newdr.bigo += ",";
newdr.bigo += item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
//if (newdr.bigo.isEmpty()) newdr.bigo = $"[{tbProject.Text}]";
if (newdr.IscurrencyNull() || newdr.currency.isEmpty())
newdr.currency = "KRW";
newdr.dept = btEQProc.Tag.ToString();
newdr.manuproc = btEQManu.Tag.ToString();
newdr.asset = btEQModel.Tag.ToString();
//newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
newdr.purchase_manager = tbManager.Text.Trim();
newdr.EndEdit();
}
@@ -614,6 +695,7 @@ namespace FPJ0000
{
FCOMMON.Util.MsgI($"{ecnt} 개의 자료가 SPM에서 자료가 검색되었습니다\n각 수량을 클릭해서 내용을 확인하세요");
}
this.dv1.AutoResizeColumns();
}
private void toolStripButton3_Click(object sender, EventArgs e)
@@ -701,5 +783,71 @@ namespace FPJ0000
}
else dv1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.DimGray;
}
private void toolStripButton6_Click(object sender, EventArgs e)
{
var datapath = FCOMMON.DBM.getCodeSvalue("55", "02");
if (datapath.isEmpty())
{
FCOMMON.Util.MsgE("견적서 기본폴더 공용코드 55-02 값을 입력하세요");
return;
}
string path = System.IO.Path.Combine(datapath, DateTime.Now.Year.ToString("0000") + "년");// "\\\\k4fs3201n\\ee1t$\\1. 장비기술1파트\\24_Project & Overhaul 예산 사용 실적\\구매 견적서\\" + DateTime.Now.Year.ToString("0000") + "년";
if (System.IO.Directory.Exists(path) == false)
FCOMMON.Util.RunExplorer(datapath);
else
FCOMMON.Util.RunExplorer(path);
}
private void cmbProcess_Click(object sender, EventArgs e)
{
var bt = sender as Button;
var guun = "08";// bt.Tag.ToString();
var f = new FCM0000.fCode(guun);
var dlg = f.ShowDialog();
if (dlg == DialogResult.OK)
{
//장비기술공정;
bt.Text = f.SelectedTitle;// cbProcess.SelectedIndex = -1;
bt.Tag = f.SelectedTitle;
}
}
private void cmbManu_Click(object sender, EventArgs e)
{
var bt = sender as Button;
var guun = "06";// bt.Tag.ToString();
var f = new FCM0000.fCode(guun);
var dlg = f.ShowDialog();
if (dlg == DialogResult.OK)
{
//장비기술공정;
bt.Text = f.SelectedTitle;// cbProcess.SelectedIndex = -1;
bt.Tag = f.SelectedTitle;
}
}
private void cmbModel_Click(object sender, EventArgs e)
{
if (btEQManu.Text.isEmpty())
{
FCOMMON.Util.MsgE("장비 제조사가 선택되지 않았습니다");
btEQManu.Focus();
return;
}
string filter = "svalue='" + btEQManu.Text.Replace("'", "''") + "'";
var bt = sender as Button;
var guun = "07";// bt.Tag.ToString();
var f = new FCM0000.fCode(guun, filter);
var dlg = f.ShowDialog();
if (dlg == DialogResult.OK)
{
//장비기술공정;
bt.Text = f.SelectedTitle;// cbProcess.SelectedIndex = -1;
bt.Tag = f.SelectedTitle;
}
}
}
}

View File

@@ -138,6 +138,9 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>257, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>257, 17</value>
</metadata>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
@@ -147,6 +150,12 @@
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>195, 17</value>
</metadata>
<metadata name="label17.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>656, 17</value>
</metadata>
<metadata name="dvc_sid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -262,6 +271,21 @@
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton6.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">