임현대수석님 건의사항 적용.
This commit is contained in:
@@ -50,14 +50,17 @@ namespace FCM0000
|
||||
this.fpSpread1.KeyDown += (s1, e1) => { btOK.PerformClick(); };
|
||||
this.fpSpread1.CellDoubleClick += (s1, e1) => { btOK.PerformClick(); };
|
||||
this.tbFind.Text = search_;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
}
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
refreshData(this.tbFind.Text);
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
if (this.bs.Count >0) fpSpread1.Focus();
|
||||
|
||||
refreshData(this.tbFind.Text);
|
||||
|
||||
if (this.bs.Count > 0) fpSpread1.Focus();
|
||||
else
|
||||
{
|
||||
tbFind.Focus();
|
||||
@@ -68,9 +71,10 @@ namespace FCM0000
|
||||
Boolean searchOk = false;
|
||||
void refreshData(string search)
|
||||
{
|
||||
if(search == "")
|
||||
if (search == "")
|
||||
{
|
||||
// MessageBox.Show("검색어가 없습니다.");
|
||||
|
||||
FCOMMON.Util.MsgI("(품명,모델,SID)을 검색 한 후 없는 경우 '품목추가' 버튼을 이용해서 추가 하시기 바랍니다");
|
||||
tbFind.Focus();
|
||||
}
|
||||
else
|
||||
@@ -84,8 +88,8 @@ namespace FCM0000
|
||||
this.arDatagridView1.AutoResizeColumns();
|
||||
searchOk = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
@@ -146,7 +150,7 @@ namespace FCM0000
|
||||
if (img1 != null) this.pictureBox1.Image = img1;
|
||||
else this.pictureBox1.Image = null;
|
||||
}
|
||||
catch
|
||||
catch
|
||||
{
|
||||
this.pictureBox1.Image = null;
|
||||
}
|
||||
@@ -219,14 +223,19 @@ namespace FCM0000
|
||||
void Find()
|
||||
{
|
||||
var search = tbFind.Text.Trim();
|
||||
refreshData(search);
|
||||
if (search.isEmpty())
|
||||
{
|
||||
FCOMMON.Util.MsgE("검색어를 입력하세요");
|
||||
return;
|
||||
}
|
||||
else refreshData(search);
|
||||
tbFind.SelectAll();
|
||||
tbFind.Focus();
|
||||
}
|
||||
|
||||
private void btAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(searchOk==false)
|
||||
if (searchOk == false)
|
||||
{
|
||||
FCOMMON.Util.MsgE("먼저 검색을 통해서 아이템을 찾은 후 없다면 신규추가를 눌러 주세요");
|
||||
tbFind.Focus();
|
||||
@@ -234,15 +243,15 @@ namespace FCM0000
|
||||
return;
|
||||
}
|
||||
var f = new Item.fItemAdd();
|
||||
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
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(",",""));
|
||||
decimal.TryParse(f.tbPrice.Text.Replace(",", ""), out price);
|
||||
itemprice = price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",",""));
|
||||
SID = f.tbSid.Text.Trim();
|
||||
itemUnit = f.tbUnit.Text.Trim();
|
||||
itemSupply = f.tbSupply.Text.Trim();
|
||||
|
||||
Reference in New Issue
Block a user