2023-10-13
This commit is contained in:
parent
d61950897d
commit
2ba9aa584b
|
@ -1110,33 +1110,44 @@ namespace FineUIPro.Web.CQMS.Solution
|
|||
}
|
||||
string id = HFConstructSolutionId.Text;
|
||||
Model.Solution_CQMSConstructSolution constructSolution = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(id);
|
||||
if (constructSolution.State == Const.CQMSConstructSolution_Audit || constructSolution.State == Const.CQMSConstructSolution_ReCompile)
|
||||
if (constructSolution != null)
|
||||
{
|
||||
Model.Solution_CQMSConstructSolutionApprove approve = CQMSConstructSolutionApproveService.GetConstructSolutionApproveByApproveMan(id, CurrUser.UserId);
|
||||
if (approve != null || CurrUser.UserId == Const.sysglyId)
|
||||
if (constructSolution.State == Const.CQMSConstructSolution_Audit || constructSolution.State == Const.CQMSConstructSolution_ReCompile)
|
||||
{
|
||||
Model.Solution_CQMSConstructSolutionApprove approve = CQMSConstructSolutionApproveService.GetConstructSolutionApproveByApproveMan(id, CurrUser.UserId);
|
||||
if (approve != null || CurrUser.UserId == Const.sysglyId)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/Solution&menuId={2}",
|
||||
ContactImg, HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId)));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!constructSolution.CompileMan.Equals(CurrUser.UserId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/Solution&menuId={2}&&editorMode={3}",
|
||||
ContactImg, HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId, "view")));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/Solution&menuId={2}",
|
||||
ContactImg, HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId)));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!constructSolution.CompileMan.Equals(CurrUser.UserId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/Solution&menuId={2}&&editorMode={3}",
|
||||
ContactImg, HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId,"view")));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/Solution&menuId={2}",
|
||||
ContactImg, HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void btnapprove_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in New Issue