..
This commit is contained in:
@@ -63,9 +63,12 @@ namespace FCM0000
|
||||
{
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
||||
this.Show();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
//사용자이름 181030
|
||||
this.tbName.Text = FCOMMON.info.Login.nameK;
|
||||
|
||||
//마지막 자료를 가져온날을 찾는다.
|
||||
var dateList = FCOMMON.DBM.getDateList("Inventory", "uid='" + FCOMMON.info.Login.no + "'");
|
||||
dtED.Text = DateTime.Now.ToShortDateString();
|
||||
@@ -82,7 +85,7 @@ namespace FCM0000
|
||||
{
|
||||
string sd = dtSD.Text;
|
||||
string ed = dtED.Text;
|
||||
this.ta.FillByUID(this.dsMSSQL.Inventory, sd, ed, FCOMMON.info.Login.no);
|
||||
this.ta.FillByName(this.dsMSSQL.Inventory, sd, ed,tbName.Text);
|
||||
this.dsMSSQL.Inventory.AcceptChanges();
|
||||
dv1.AutoResizeColumns();
|
||||
}
|
||||
@@ -143,11 +146,11 @@ namespace FCM0000
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
string inputstr = toolStripTextBox1.Text.Trim();
|
||||
string inputstr = tbFind.Text.Trim();
|
||||
if (inputstr == "")
|
||||
{
|
||||
bs.Filter = "";
|
||||
toolStripTextBox1.BackColor = Color.White;
|
||||
tbFind.BackColor = Color.White;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -161,13 +164,13 @@ namespace FCM0000
|
||||
try
|
||||
{
|
||||
bs.Filter = filter.ToString();
|
||||
toolStripTextBox1.BackColor = Color.Lime;
|
||||
toolStripTextBox1.SelectAll();
|
||||
toolStripTextBox1.Focus();
|
||||
tbFind.BackColor = Color.Lime;
|
||||
tbFind.SelectAll();
|
||||
tbFind.Focus();
|
||||
}
|
||||
catch (Exception eX)
|
||||
{
|
||||
toolStripTextBox1.BackColor = Color.Red;
|
||||
tbFind.BackColor = Color.Red;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -317,6 +320,19 @@ namespace FCM0000
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Inventory.RepInvStock f = new Inventory.RepInvStock(this.tbName.Text.Trim());
|
||||
f.MdiParent = this.MdiParent;
|
||||
f.Show();
|
||||
}
|
||||
|
||||
private void toolStripLabel3_Click(object sender, EventArgs e)
|
||||
{
|
||||
tbFind.Text = string.Empty;
|
||||
btFind.PerformClick();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user