장비목록에 필터기능 업데이트 및 매크로 일괄 적용기능확인
This commit is contained in:
@@ -152,9 +152,13 @@ namespace FEQ0000
|
||||
|
||||
try
|
||||
{
|
||||
var dRows = this.dsEQ.EquipmentB.Select(filter);
|
||||
DataRow[] dRows = null;
|
||||
if(dataType == eTabletype.BUMP) dRows = this.dsEQ.EquipmentB.Select(filter);
|
||||
else if (dataType == eTabletype.MOLD) dRows = this.dsEQ.EquipmentME.Select(filter);
|
||||
else dRows = this.dsEQ.EquipmentF.Select(filter);
|
||||
|
||||
int cnt = 0;
|
||||
foreach(dsEQ.EquipmentBRow dr in dRows)
|
||||
foreach(DataRow dr in dRows)
|
||||
{
|
||||
var appList = apply.Split(';');
|
||||
foreach (var item in appList)
|
||||
@@ -181,9 +185,29 @@ namespace FEQ0000
|
||||
{
|
||||
try
|
||||
{
|
||||
this.bsB.Filter = tbFilter.Text;
|
||||
if (tbFilter.Text.isEmpty()) tbFilter.BackColor = Color.White;
|
||||
else tbFilter.BackColor = Color.Lime;
|
||||
string key = tbFilter.Text.Trim();
|
||||
string filter = "";
|
||||
if(!key.isEmpty())
|
||||
{
|
||||
filter = "asset like @ or type like @ or manu like @ or model like @ or linecode like @ or serial like @";
|
||||
filter = filter.Replace("@", "'%" + key.Replace("'","''") + "%'");
|
||||
}
|
||||
try
|
||||
{
|
||||
if (dataType == eTabletype.MOLD) this.bsME.Filter = filter;
|
||||
else if (dataType == eTabletype.BUMP) this.bsB.Filter = filter;
|
||||
else this.bsF.Filter = filter;
|
||||
|
||||
if (key.isEmpty()) this.tbFilter.BackColor = Color.White;
|
||||
else this.tbFilter.BackColor = Color.Lime;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
tbFilter.BackColor = Color.HotPink;
|
||||
FCOMMON.Util.MsgE("filter error\n" + ex.Message);
|
||||
}
|
||||
tbFilter.Focus();
|
||||
tbFilter.SelectAll();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -362,5 +386,10 @@ namespace FEQ0000
|
||||
else FCOMMON.Util.MsgI(cnt.ToString() + "건의 자료가 변경되었습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
private void tbFilter_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) btFind.PerformClick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user