20240430 修改附件上传条件
This commit is contained in:
@@ -415,15 +415,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_SpecialEquipment));
|
||||
}
|
||||
Model.Comprehensive_SpecialEquipment specialEquipment = BLL.SpecialEquipmentServices.GetEquipmentById(this.SpecialEquipmentId);
|
||||
if (specialEquipment == null || ((specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_Compile) || (specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_ReCompile)))
|
||||
{
|
||||
//Model.Comprehensive_SpecialEquipment specialEquipment = BLL.SpecialEquipmentServices.GetEquipmentById(this.SpecialEquipmentId);
|
||||
//if (specialEquipment == null || ((specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_Compile) || (specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_ReCompile)))
|
||||
//{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/specialEquipment&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SpecialEquipmentMenuId)));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/specialEquipment&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SpecialEquipmentMenuId)));
|
||||
}
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/specialEquipment&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SpecialEquipmentMenuId)));
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user