From 35696b118679dfd9425550bef22b08c29926de2a Mon Sep 17 00:00:00 2001 From: JinH Date: Mon, 30 May 2022 08:58:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=95=8C=E9=9D=A2=E6=9F=A5=E8=AF=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BDbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Stone.WinForm/Stone.WinForm/frmMain.cs | 2 +- .../Stone.WinModule/BasicData/frmBaseMain.cs | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Stone.WinForm/Stone.WinForm/frmMain.cs b/Stone.WinForm/Stone.WinForm/frmMain.cs index bf58a93..f7c45b6 100644 --- a/Stone.WinForm/Stone.WinForm/frmMain.cs +++ b/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); diff --git a/Stone.WinForm/Stone.WinModule/BasicData/frmBaseMain.cs b/Stone.WinForm/Stone.WinModule/BasicData/frmBaseMain.cs index 14c8676..bd78a82 100644 --- a/Stone.WinForm/Stone.WinModule/BasicData/frmBaseMain.cs +++ b/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 /// 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; } ///