summary report 관련 데이터 업데이트
This commit is contained in:
@@ -19,7 +19,8 @@ namespace FEQ0000
|
||||
MOLD,
|
||||
FOL,
|
||||
BUMP,
|
||||
ING
|
||||
ING,
|
||||
OTHER
|
||||
}
|
||||
string tableName = string.Empty;
|
||||
eTabletype dataType = eTabletype.FOL;
|
||||
@@ -49,6 +50,13 @@ namespace FEQ0000
|
||||
this.dsEQ.EETGW_EquipmentIng.TableNewRow += Equipment_TableNewRow;
|
||||
dvc_param.Visible = false;
|
||||
}
|
||||
else if (dataType == eTabletype.OTHER)
|
||||
{
|
||||
|
||||
tableName = "EETGW_EquipmentOther";
|
||||
this.dsEQ.EETGW_EquipmentOther.TableNewRow += Equipment_TableNewRow;
|
||||
dvc_param.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -74,6 +82,7 @@ namespace FEQ0000
|
||||
if (dataType == eTabletype.BUMP) dtList = taDateList.GetDateListB();
|
||||
else if (dataType == eTabletype.FOL) dtList = taDateList.GetDateListF();
|
||||
else if (dataType == eTabletype.ING) dtList = taDateList.GetDateListIng();
|
||||
else if (dataType == eTabletype.OTHER) dtList = taDateList.GetDateListOther();
|
||||
else dtList = taDateList.GetDateListME();
|
||||
|
||||
this.cmbDate.Items.Clear();
|
||||
@@ -118,10 +127,10 @@ namespace FEQ0000
|
||||
if (this.cmbManu.Items.Count > 0) cmbManu.SelectedIndex = 0;
|
||||
if (this.cmbType.Items.Count > 0) cmbType.SelectedIndex = 0;
|
||||
|
||||
if (this.dataType == eTabletype.ING)
|
||||
dvc_param.HeaderText = "RCS Flag";
|
||||
else
|
||||
dvc_param.HeaderText = "Wafer Size";
|
||||
//if (this.dataType == eTabletype.ING)
|
||||
// dvc_param.HeaderText = "RCS Flag";
|
||||
//else
|
||||
dvc_param.HeaderText = "Wafer Size";
|
||||
|
||||
}
|
||||
|
||||
@@ -132,6 +141,7 @@ namespace FEQ0000
|
||||
this.bsF.EndEdit();
|
||||
this.bsME.EndEdit();
|
||||
this.bsIng.EndEdit();
|
||||
this.bsOther.EndEdit();
|
||||
|
||||
try
|
||||
{
|
||||
@@ -147,6 +157,10 @@ namespace FEQ0000
|
||||
{
|
||||
this.taIng.Update(this.dsEQ.EETGW_EquipmentIng);
|
||||
}
|
||||
else if(dataType == eTabletype.OTHER)
|
||||
{
|
||||
this.taOther.Update(this.dsEQ.EETGW_EquipmentOther);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.taF.Update(this.dsEQ.EquipmentF);
|
||||
@@ -177,6 +191,7 @@ namespace FEQ0000
|
||||
if (dataType == eTabletype.BUMP) dRows = this.dsEQ.EquipmentB.Select(filter);
|
||||
else if (dataType == eTabletype.MOLD) dRows = this.dsEQ.EquipmentME.Select(filter);
|
||||
else if (dataType == eTabletype.ING) dRows = this.dsEQ.EETGW_EquipmentIng.Select(filter);
|
||||
else if (dataType == eTabletype.OTHER) dRows = this.dsEQ.EETGW_EquipmentOther.Select(filter);
|
||||
else dRows = this.dsEQ.EquipmentF.Select(filter);
|
||||
|
||||
int cnt = 0;
|
||||
@@ -219,6 +234,7 @@ namespace FEQ0000
|
||||
if (dataType == eTabletype.MOLD) this.bsME.Filter = filter;
|
||||
else if (dataType == eTabletype.BUMP) this.bsB.Filter = filter;
|
||||
else if (dataType == eTabletype.ING) this.bsIng.Filter = filter;
|
||||
else if (dataType == eTabletype.OTHER) this.bsOther.Filter = filter;
|
||||
else this.bsF.Filter = filter;
|
||||
|
||||
if (key.isEmpty()) this.tbFilter.BackColor = Color.White;
|
||||
@@ -357,6 +373,17 @@ namespace FEQ0000
|
||||
dv.DataSource = bsIng;
|
||||
bn.BindingSource = bsIng;
|
||||
break;
|
||||
case eTabletype.OTHER:
|
||||
//select command
|
||||
if (this.taOther.Adapter.SelectCommand == null)
|
||||
this.taOther.Adapter.SelectCommand = new System.Data.SqlClient.SqlCommand();
|
||||
this.taOther.Adapter.SelectCommand.CommandText = string.Format(CommandText, "EETGW_EquipmentOther");
|
||||
this.dsEQ.EETGW_EquipmentOther.Clear();
|
||||
taOther.Fill(this.dsEQ.EETGW_EquipmentOther, this.cmbDate.Text);
|
||||
this.dsEQ.EETGW_EquipmentOther.AcceptChanges();
|
||||
dv.DataSource = bsOther;
|
||||
bn.BindingSource = bsOther;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -480,10 +507,11 @@ namespace FEQ0000
|
||||
var linedata = dtLineCode.Where(t => t.code == dr.linecode).FirstOrDefault();
|
||||
if (linedata != null)
|
||||
{
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team)
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team || dr.plant != linedata.plant)
|
||||
{
|
||||
dr.lineP = linedata.part;
|
||||
dr.lineT = linedata.team;
|
||||
dr.plant = linedata.plant;
|
||||
dr.EndEdit();
|
||||
ucnt += 1;
|
||||
}
|
||||
@@ -500,10 +528,11 @@ namespace FEQ0000
|
||||
var linedata = dtLineCode.Where(t => t.code == dr.linecode).FirstOrDefault();
|
||||
if (linedata != null)
|
||||
{
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team)
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team || dr.plant != linedata.plant)
|
||||
{
|
||||
dr.lineP = linedata.part;
|
||||
dr.lineT = linedata.team;
|
||||
dr.plant = linedata.plant;
|
||||
dr.EndEdit();
|
||||
ucnt += 1;
|
||||
}
|
||||
@@ -520,10 +549,32 @@ namespace FEQ0000
|
||||
var linedata = dtLineCode.Where(t => t.code == dr.linecode).FirstOrDefault();
|
||||
if (linedata != null)
|
||||
{
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team)
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team || dr.plant != linedata.plant)
|
||||
{
|
||||
dr.lineP = linedata.part;
|
||||
dr.lineT = linedata.team;
|
||||
dr.plant = linedata.plant;
|
||||
dr.EndEdit();
|
||||
ucnt += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dataType == eTabletype.OTHER)
|
||||
{
|
||||
this.prb1.Maximum = this.dsEQ.EETGW_EquipmentOther.Count;
|
||||
foreach (dsEQ.EETGW_EquipmentOtherRow dr in this.dsEQ.EETGW_EquipmentOther)
|
||||
{
|
||||
if (this.prb1.Value < this.prb1.Maximum) this.prb1.Value += 1;
|
||||
if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached) continue;
|
||||
var linedata = dtLineCode.Where(t => t.code == dr.linecode).FirstOrDefault();
|
||||
if (linedata != null)
|
||||
{
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team || dr.plant != linedata.plant)
|
||||
{
|
||||
dr.lineP = linedata.part;
|
||||
dr.lineT = linedata.team;
|
||||
dr.plant = linedata.plant;
|
||||
dr.EndEdit();
|
||||
ucnt += 1;
|
||||
}
|
||||
@@ -540,10 +591,11 @@ namespace FEQ0000
|
||||
var linedata = dtLineCode.Where(t => t.code == dr.linecode).FirstOrDefault();
|
||||
if (linedata != null)
|
||||
{
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team)
|
||||
if (dr.lineP != linedata.part || dr.lineT != linedata.team || dr.plant != linedata.plant)
|
||||
{
|
||||
dr.lineP = linedata.part;
|
||||
dr.lineT = linedata.team;
|
||||
dr.plant = linedata.plant;
|
||||
dr.EndEdit();
|
||||
ucnt += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user