구매 복사시 요청자 선택안되는 현상 수정
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
this.cmbRequest = new System.Windows.Forms.ComboBox();
|
||||
this.ta = new FPJ0000.dsPRJTableAdapters.JobReportTableAdapter();
|
||||
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
|
||||
this.chkAutoAdd = new System.Windows.Forms.CheckBox();
|
||||
hrsLabel = new System.Windows.Forms.Label();
|
||||
typeLabel = new System.Windows.Forms.Label();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
@@ -184,7 +185,7 @@
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripStatusLabel1,
|
||||
this.lbIndex});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 351);
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 443);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(538, 22);
|
||||
this.statusStrip1.TabIndex = 28;
|
||||
@@ -214,7 +215,7 @@
|
||||
//
|
||||
// btSave
|
||||
//
|
||||
this.btSave.Location = new System.Drawing.Point(141, 300);
|
||||
this.btSave.Location = new System.Drawing.Point(141, 376);
|
||||
this.btSave.Name = "btSave";
|
||||
this.btSave.Size = new System.Drawing.Size(381, 43);
|
||||
this.btSave.TabIndex = 20;
|
||||
@@ -230,7 +231,7 @@
|
||||
this.tbDescription.Multiline = true;
|
||||
this.tbDescription.Name = "tbDescription";
|
||||
this.tbDescription.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.tbDescription.Size = new System.Drawing.Size(381, 101);
|
||||
this.tbDescription.Size = new System.Drawing.Size(381, 181);
|
||||
this.tbDescription.TabIndex = 19;
|
||||
//
|
||||
// dtPdate
|
||||
@@ -352,11 +353,22 @@
|
||||
this.tam.ProjectsTableAdapter = null;
|
||||
this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
|
||||
//
|
||||
// chkAutoAdd
|
||||
//
|
||||
this.chkAutoAdd.AutoSize = true;
|
||||
this.chkAutoAdd.Location = new System.Drawing.Point(141, 424);
|
||||
this.chkAutoAdd.Name = "chkAutoAdd";
|
||||
this.chkAutoAdd.Size = new System.Drawing.Size(176, 16);
|
||||
this.chkAutoAdd.TabIndex = 54;
|
||||
this.chkAutoAdd.Text = "프로젝트 주간내역으로 등록";
|
||||
this.chkAutoAdd.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// fJobReport_Add
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(538, 373);
|
||||
this.ClientSize = new System.Drawing.Size(538, 465);
|
||||
this.Controls.Add(this.chkAutoAdd);
|
||||
this.Controls.Add(label5);
|
||||
this.Controls.Add(this.lbSummary);
|
||||
this.Controls.Add(this.cmbPackage);
|
||||
@@ -420,5 +432,6 @@
|
||||
private System.Windows.Forms.ComboBox cmbPackage;
|
||||
private System.Windows.Forms.ComboBox cmbRequest;
|
||||
private System.Windows.Forms.Label lbSummary;
|
||||
private System.Windows.Forms.CheckBox chkAutoAdd;
|
||||
}
|
||||
}
|
||||
@@ -100,6 +100,10 @@ namespace FPJ0000.JobReport
|
||||
tbProjectIndex.Text = dr.pidx.ToString();
|
||||
}
|
||||
|
||||
//신규일때만 사용가능 함
|
||||
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added) chkAutoAdd.Enabled = true;
|
||||
else chkAutoAdd.Enabled = false;
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
@@ -259,6 +263,22 @@ namespace FPJ0000.JobReport
|
||||
}
|
||||
}
|
||||
|
||||
if(chkAutoAdd.Checked && (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added))
|
||||
{
|
||||
if(tbProjectIndex.Text == "" || tbProjectIndex.Text == "-1")
|
||||
{
|
||||
FCOMMON.Util.MsgE("프로젝트 주간내역을 등록하려면 프로젝트가 지정되어야 합니다");
|
||||
tbProject.Focus();
|
||||
tbProject.SelectAll();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
//190906
|
||||
FCOMMON.DBM.addProjectHistory(int.Parse(tbProjectIndex.Text), dtPdate.Value.ToShortDateString(), tbDescription.Text.Trim());
|
||||
}
|
||||
}
|
||||
|
||||
this.dr.uid = this.cmbUser.SelectedValue.ToString();
|
||||
this.dr.pdate = dtPdate.Value.ToShortDateString();
|
||||
this.dr.status = cmbState.Text;
|
||||
|
||||
Reference in New Issue
Block a user