合并最新
This commit is contained in:
@@ -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>
|
||||
/// 上传附件
|
||||
|
||||
Reference in New Issue
Block a user