From fd0399308b08ac68f32972b97e284662d2d17971 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 23 Sep 2025 14:38:47 +0800 Subject: [PATCH] 1 --- .../FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs index ba7f0b4..e3502d2 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs @@ -126,6 +126,17 @@ namespace FineUIPro.Web.WeldMat.UsingPlan strSql += " AND unit.UnitName LIKE @UnitName"; listStr.Add(new SqlParameter("@UnitName", "%" + this.txtUsingUnit.Text.Trim() + "%")); } + if (this.CurrUser.RoleId == BLL.Const.cgbgyId) + { + Model.Weld_Storeman storeMan = BLL.StoremanInfoService.GetStoremanByUserId(this.CurrUser.UserId); + string unitStoreId = string.Empty; + if (storeMan != null) + { + unitStoreId = storeMan.UnitStoreId; + } + strSql += " AND UsingPlan.UnitStoreId = @UnitStoreId"; + listStr.Add(new SqlParameter("@UnitStoreId", unitStoreId)); + } //if (cbIsNeedConfirm.Checked) //{ // strSql += " AND UsingPlan.IsNeedConfirm = 1";