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