Browse Source

1.界面查询功能bug修改

master
JinH 3 years ago
parent
commit
35696b1186
  1. 2
      Stone.WinForm/Stone.WinForm/frmMain.cs
  2. 16
      Stone.WinForm/Stone.WinModule/BasicData/frmBaseMain.cs

2
Stone.WinForm/Stone.WinForm/frmMain.cs

@ -305,7 +305,7 @@ namespace Stone.WinForm
frm.m_Base = f_JIS_VDA;
frm.init();
frm.Text = "SY88_" + "发货准备与跟踪";
frm.Text = "SY88_" + "号码预分配";
frm.TabText = frm.Text;
ShowWindow(frm);

16
Stone.WinForm/Stone.WinModule/BasicData/frmBaseMain.cs

@ -142,7 +142,8 @@ namespace Stone.WinModule.BasicData
if (frmFilter.SelectString != "")
{
strWhere = frmFilter.SelectString;
UpdateGridView();
// UpdateGridView();
UpdateGridViewByFilter();
}
else
{
@ -241,7 +242,6 @@ namespace Stone.WinModule.BasicData
{
try
{
this.txtCode.Focus();
this.txtCode.SelectAll();
UpdateGridView();
@ -280,17 +280,19 @@ namespace Stone.WinModule.BasicData
/// </summary>
public virtual void UpdateGridView()
{
string code = this.txtCode.Text.Trim();
Search(code);
m_Base.BindPageData(strWhere);
m_Base.GetView(this.dgrdView);
this.tlbAllCount.Text = "记录数:" + m_Base.dsMain.Tables["Data"].Rows.Count;
}
public virtual void UpdateGridViewByFilter()
{
string code = this.txtCode.Text.Trim();
m_Base.BindPageData(strWhere);
m_Base.GetView(this.dgrdView);
this.tlbAllCount.Text = "记录数:" + m_Base.dsMain.Tables["Data"].Rows.Count;
}
/// <summary>

Loading…
Cancel
Save