From 69451f8610f82dd5d707bc78b378c4113ffb3b00 Mon Sep 17 00:00:00 2001 From: gaofei <231232131@163.com> Date: Fri, 3 Dec 2021 17:27:46 +0800 Subject: [PATCH] 1203-gaofei --- SGGL/BLL/WebService/MCSWebService.cs | 2 +- SGGL/FineUIPro.Web/CLGL/Material.aspx | 2 ++ SGGL/FineUIPro.Web/CLGL/Material.aspx.cs | 15 +++++++++++++++ SGGL/FineUIPro.Web/CLGL/Material.aspx.designer.cs | 9 +++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/SGGL/BLL/WebService/MCSWebService.cs b/SGGL/BLL/WebService/MCSWebService.cs index c25ee6e0..4c2c96bd 100644 --- a/SGGL/BLL/WebService/MCSWebService.cs +++ b/SGGL/BLL/WebService/MCSWebService.cs @@ -37,7 +37,7 @@ } #endregion - private static void GetCLData(object sender, ElapsedEventArgs e) + public static void GetCLData(object sender, ElapsedEventArgs e) { getPojectInfo(); getVendor(); diff --git a/SGGL/FineUIPro.Web/CLGL/Material.aspx b/SGGL/FineUIPro.Web/CLGL/Material.aspx index c0612114..19477c31 100644 --- a/SGGL/FineUIPro.Web/CLGL/Material.aspx +++ b/SGGL/FineUIPro.Web/CLGL/Material.aspx @@ -27,6 +27,8 @@ + diff --git a/SGGL/FineUIPro.Web/CLGL/Material.aspx.cs b/SGGL/FineUIPro.Web/CLGL/Material.aspx.cs index a94965f0..0c65d308 100644 --- a/SGGL/FineUIPro.Web/CLGL/Material.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/Material.aspx.cs @@ -21,12 +21,27 @@ namespace FineUIPro.Web.CLGL { if (!IsPostBack) { + if (this.CurrUser.UserId == BLL.Const.hfnbdId) + { + this.btnGetAll.Hidden = false; + } this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); // 绑定表格 this.BindGrid(); } } + /// + /// 获取全部 + /// + /// + /// + protected void btnGetAll_Click(object sender, EventArgs e) + { + BLL.MCSWebService.GetCLData(null, null); + this.BindGrid(); + } + /// /// 获取 /// diff --git a/SGGL/FineUIPro.Web/CLGL/Material.aspx.designer.cs b/SGGL/FineUIPro.Web/CLGL/Material.aspx.designer.cs index fa955592..9b6d328f 100644 --- a/SGGL/FineUIPro.Web/CLGL/Material.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CLGL/Material.aspx.designer.cs @@ -57,6 +57,15 @@ namespace FineUIPro.Web.CLGL { /// protected global::FineUIPro.Toolbar Toolbar2; + /// + /// btnGetAll 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnGetAll; + /// /// btnGet 控件。 ///