This commit is contained in:
2024-02-27 13:31:53 +08:00
3 changed files with 24 additions and 13 deletions
Binary file not shown.
@@ -308,19 +308,18 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
//private static bool canSave; //是否可以保存
public string ConvertPipeArea(object PipeArea)
{
string StateName = string.Empty;
if (!string.IsNullOrEmpty(PipeArea.ToString()))
string stateName = string.Empty;
if (PipeArea != null && !string.IsNullOrEmpty(PipeArea.ToString()))
{
if (PipeArea != null)
{
string txt = PipelineService.GetPipeArea().FirstOrDefault(x => x.Value == PipeArea.ToString()).Text;
string txt = PipelineService.GetPipeArea().FirstOrDefault(x => x.Value == PipeArea.ToString())?.Text;
return txt;
}
return "";
}
return StateName;
return stateName;
}
#region
// 检查用户权限
@@ -40,20 +40,26 @@ namespace FineUIPro.Web.PHTGL.Filing
var model = new Model.PHTGL_ContractStandingBook();
var RoleIds = this.CurrUser.RoleIds;
if (RoleIds.Contains(Const.SedinHTGLManager))
if (this.CurrUser.PersonId == Const.hfnbdId || this.CurrUser.PersonId == Const.sysglyId)
{
}
else if (RoleIds.Contains(Const.SedinHTGLManager) && !string.IsNullOrEmpty(RoleIds))
{
//model.UnitId=this.CurrUser.UnitId;
}
else if (RoleIds.Contains(Const.OtherHTGLManager))
else if (RoleIds.Contains(Const.OtherHTGLManager) && !string.IsNullOrEmpty(RoleIds))
{
model.UnitId = this.CurrUser.UnitId;
}
else if (RoleIds.Contains(Const.SedinHTGLDepartManager))
else if (RoleIds.Contains(Const.SedinHTGLDepartManager) && !string.IsNullOrEmpty(RoleIds))
{
model.UnitId = this.CurrUser.UnitId;
model.DepartId= this.CurrUser.DepartId;
}
else
{
model.UnitId = "normal";
@@ -176,7 +182,13 @@ namespace FineUIPro.Web.PHTGL.Filing
dropState.SelectedValue = Const._Null;
//txtSubConstruction.Text = string.Empty;
}
/// <summary>
/// 状态
/// </summary>
/// <param name="State"></param>
/// <returns></returns>
public string ConvertState(object State)
{
string StateName = string.Empty;