fix:危大工程

This commit is contained in:
geh
2025-03-25 21:54:21 +08:00
parent b8449b3139
commit 3e7c5e5804
23 changed files with 2895 additions and 1619 deletions
@@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.IO;
using System.Linq;
@@ -34,11 +35,12 @@ namespace FineUIPro.Web.Comprehensive
{
string strSql = @"select MajorPlanApprovalId, ProjectId, PlanCode, PlanName, ReviewMan, ApprovalDate,
AuditMan, ApprovalMan, ImplementationDeviation, AttachUrl, CompileMan, CompileDate,
UnitWorkId,CN.ProfessionalName,C.CNProfessionalId,C.UnitId,u.UnitName ,
UnitWorkId,CN.ProfessionalName,C.CNProfessionalId,C.UnitId,u.UnitName ,Const.ConstText as TypeName,C.SchemeType,
case IsReview when 1 then '是' else '否' end as IsReview,C.RemarkCode
from Comprehensive_MajorPlanApproval C
left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
left join Base_Unit as u on u.UnitId = C.UnitId
LEFT JOIN Sys_Const AS Const ON C.HazardType=Const.ConstValue and Const.GroupId='LargerHazardType'
where C.ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -431,5 +433,14 @@ namespace FineUIPro.Web.Comprehensive
}
}
#endregion
protected void attchUrl_Click(object sender, EventArgs e)
{
Debug.WriteLine("attchUrl_Click");
var d = Grid1.SelectedRowID;
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format(
"../../AttachFile/webuploader.aspx?type=-1&source=1&toKeyId={0}&path=FileUpload/CQMS/MajorPlanApproval&menuId={1}",
d, BLL.Const.MajorPlanApprovalMenuId)));
}
}
}