diff --git a/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSaveZJ.aspx.cs b/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSaveZJ.aspx.cs index ef2d0dd..ba1e5f5 100644 --- a/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSaveZJ.aspx.cs +++ b/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSaveZJ.aspx.cs @@ -53,10 +53,9 @@ namespace FineUIPro.Web.ZHGL.Information { if (!IsPostBack) { - IsThisUnit = this.CurrUser.Base_Unit != null ? (bool)this.CurrUser.Base_Unit.IsThisUnit : false; + IsThisUnit = this.CurrUser.Base_Unit != null && this.CurrUser.Base_Unit.IsThisUnit != null ? (bool)this.CurrUser.Base_Unit.IsThisUnit : false; //是否是分公司 - IsBranch = this.CurrUser.Base_Unit != null ? (bool)this.CurrUser.Base_Unit.IsBranch : false; - + IsBranch = this.CurrUser.Base_Unit != null && this.CurrUser.Base_Unit.IsBranch != null ? (bool)this.CurrUser.Base_Unit.IsBranch : false; this.GetButtonPower(); items.Clear(); BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, false);