提交代码

This commit is contained in:
2024-04-01 10:29:19 +08:00
parent 0ae4143492
commit 8df0e06e6b
23 changed files with 27332 additions and 53 deletions
@@ -36,7 +36,7 @@ namespace FineUIPro.Web.Personal
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT summary.TestRunMonthSummaryId,summary.ProjectId,summary.UserId,summary.RaiseDate,summary.ProcessName,summary.ProblemDescription,summary.HandleMethod,summary.ExperienceOrSuggestion,Users.UserName,case when summary.ProjectId='0' then '本部' else Project.ProjectName end as ProjectName "
string strSql = @"SELECT summary.TestRunMonthSummaryId,summary.ProjectId,summary.UserId,summary.RaiseDate,summary.Major,summary.ProcessName,summary.ProblemDescription,summary.HandleMethod,summary.ExperienceOrSuggestion,Users.UserName,case when summary.ProjectId='0' then '本部' else Project.ProjectName end as ProjectName "
+ @" From dbo.Person_TestRunMonthSummary AS summary"
+ @" LEFT JOIN Sys_User AS Users ON Users.UserId=summary.UserId"
+ @" LEFT JOIN Base_Project AS Project ON Project.ProjectId=summary.ProjectId"
@@ -200,5 +200,45 @@ namespace FineUIPro.Web.Personal
{
BindGrid();
}
/// <summary>
/// 获取整改前图片(放于Img中)
/// </summary>
/// <param name="TestRunMonthSummaryId"></param>
/// <returns></returns>
protected string ConvertImageUrlByImage(object TestRunMonthSummaryId)
{
string url = string.Empty;
string httpUrl = string.Empty;
if (TestRunMonthSummaryId != null)
{
var file = BLL.AttachFileService.GetAttachFileByToKeyId(TestRunMonthSummaryId.ToString());
if (file != null)
{
url = BLL.UploadAttachmentService.ShowImage(Funs.SGGLUrl, file.AttachUrl);
}
}
return url;
}
/// <summary>
/// 获取整改前图片(放于Img中)
/// </summary>
/// <param name="TestRunMonthSummaryId"></param>
/// <returns></returns>
protected string ConvertImageUrlByImage2(object TestRunMonthSummaryId)
{
string url = string.Empty;
string httpUrl = string.Empty;
if (TestRunMonthSummaryId != null)
{
var file = BLL.AttachFileService.GetAttachFileByToKeyId(TestRunMonthSummaryId.ToString() + "R");
if (file != null)
{
url = BLL.UploadAttachmentService.ShowImage(Funs.SGGLUrl, file.AttachUrl);
}
}
return url;
}
}
}