From be1a3b7b3224070dd20c824cda035d86575cec97 Mon Sep 17 00:00:00 2001 From: "754998852@qq.com" <754998852@qq.com> Date: Mon, 25 Nov 2024 17:52:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A8=E9=87=8F=E6=9C=88?= =?UTF-8?q?=E6=8A=A5=E4=BF=AE=E6=94=B9=E6=97=A5=E6=9C=9F=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManageReportNew/MonthReportEdit.aspx.cs | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs index c4149d2b..d451cdfa 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs @@ -65,6 +65,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew #endregion #region 加载所有单位 + [Serializable] public class UnitClass { public string UnitId { get; set; } public string UnitName { get; set; } @@ -72,16 +73,40 @@ namespace FineUIPro.Web.CQMS.ManageReportNew public string UnitType { get; set; } } - public List units = new List(); + //public List units = new List(); + + public List units + { + get + { + return (List)ViewState["units"]; + } + set + { + ViewState["units"] = value; + } + } #endregion #region 加载所有专业 + [Serializable] public class ProfessionalsClass { public string CNProfessionalId { get; set; } public string ProfessionalName { get; set; } } - public List CNProfessionals = new List(); + //public List CNProfessionals = new List(); + public List CNProfessionals + { + get + { + return (List)ViewState["CNProfessionals"]; + } + set + { + ViewState["CNProfessionals"] = value; + } + } #endregion #region 加载页面