diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index bf54086..8aa7c11 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ true - Debug|Any CPU + Release|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs index 86fc6c9..d4feb41 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs @@ -210,10 +210,20 @@ if ((batchDetail != null || hotItems.Count() > 0) && this.CurrUser.UserId != BLL.Const.GlyId) { this.TextIsReadOnly(true); - if (this.CurrUser.UserId == BLL.Const.GlyId) + var trustItem = (from x in Funs.DB.HJGL_CH_TrustItem + where x.JOT_ID == JOT_ID + select x).FirstOrDefault(); + if (trustItem == null) //未委托普通用户可修改焊缝类型 { ddlJOTY_ID.Enabled = true; } + else + { + if (this.CurrUser.UserId == BLL.Const.GlyId) //已委托管理员可修改焊缝类型 + { + ddlJOTY_ID.Enabled = true; + } + } if (batchDetail != null) { //var batch = BLL.HJGL_BO_BatchService.GetBatchById(batchDetail.BatchId); diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index a48b337..28be9c4 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU FolderProfile true