2024-02-26
This commit is contained in:
parent
2449c9fa32
commit
a9d2260381
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue