Merge branch 'master' of https://gitee.com/frane-yang/SGGL_SeDin_New
This commit is contained in:
Binary file not shown.
@@ -308,19 +308,18 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||||||
//private static bool canSave; //是否可以保存
|
//private static bool canSave; //是否可以保存
|
||||||
public string ConvertPipeArea(object PipeArea)
|
public string ConvertPipeArea(object PipeArea)
|
||||||
{
|
{
|
||||||
string StateName = string.Empty;
|
string stateName = string.Empty;
|
||||||
if (!string.IsNullOrEmpty(PipeArea.ToString()))
|
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 txt;
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
return StateName;
|
|
||||||
|
return stateName;
|
||||||
}
|
}
|
||||||
#region 焊接日报 提交事件
|
#region 焊接日报 提交事件
|
||||||
// 检查用户权限
|
// 检查用户权限
|
||||||
|
|||||||
@@ -40,20 +40,26 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
var model = new Model.PHTGL_ContractStandingBook();
|
var model = new Model.PHTGL_ContractStandingBook();
|
||||||
var RoleIds = this.CurrUser.RoleIds;
|
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;
|
//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;
|
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.UnitId = this.CurrUser.UnitId;
|
||||||
model.DepartId= this.CurrUser.DepartId;
|
model.DepartId= this.CurrUser.DepartId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
model.UnitId = "normal";
|
model.UnitId = "normal";
|
||||||
@@ -177,6 +183,12 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
//txtSubConstruction.Text = string.Empty;
|
//txtSubConstruction.Text = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 状态
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="State"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public string ConvertState(object State)
|
public string ConvertState(object State)
|
||||||
{
|
{
|
||||||
string StateName = string.Empty;
|
string StateName = string.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user