合并最新

This commit is contained in:
2022-12-20 09:32:32 +08:00
parent 844e9f1488
commit 1abdaa9476
654 changed files with 73563 additions and 9746 deletions
@@ -35,10 +35,46 @@ namespace FineUIPro.Web.HSSE.EduTrain
this.divAttachUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", q.AttachUrl);
}
}
else
{
var q1 = BLL.CompanyTrainingItemService.GetCompanyTrainingItemById(Request.QueryString["TrainingEduItemId"]);
if (q1 != null)
{
this.txtTrainingEduItemCode.Text = q1.CompanyTrainingItemCode;
this.txtTrainingEduItemName.Text = q1.CompanyTrainingItemName;
//this.txtSummary.Text = q.Summary;
//this.txtInstallationNames.Text = q.InstallationNames;
//if (!string.IsNullOrEmpty(q.PictureUrl))
//{
// this.trImageUrl.Visible = true;
// this.divPictureUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../", q.PictureUrl);
// this.divBeImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowImage("../", q.PictureUrl);
//}
this.divAttachUrl.InnerHtml = GetBtnFileUrl(q1.CompanyTrainingItemId);
}
}
}
}
#endregion
public static string GetBtnFileUrl(object toKey)
{
string fileUrl = string.Empty;
if (toKey != null)
{
Model.AttachFile file = Funs.DB.AttachFile.FirstOrDefault(e => e.ToKeyId == toKey.ToString());
if (file != null && !string.IsNullOrEmpty(file.AttachUrl))
{
string url = file.AttachUrl.Replace('\\', '/');
fileUrl = BLL.UploadAttachmentService.ShowAttachment2("../../", url);
}
}
return fileUrl;
}
#region
/// <summary>
/// 上传附件