现场质量问题台账

This commit is contained in:
2026-01-19 15:31:10 +08:00
parent feb9e58357
commit d4f5233fe5
32 changed files with 520 additions and 212 deletions
@@ -30,7 +30,7 @@ namespace FineUIPro.Web.Comprehensive
public void BindGrid()
{
string strSql = @"select C.NCRManagementId, C.ProjectId, C.SendUnit, C.NCRCode, C.Contents,C.ReasonAnalysis,C.Problem,C.Measure,C.IssuedDate, C.ReceiveUnit,C.Status,
C.ClosedDate, C.CompleteDate, C.ResponsibleMan, C.AttachUrl, C.ImplementationFrontState,C.Supervisor,
C.ClosedDate, C.CompleteDate, C.ResponsibleMan, C.AttachUrl, C.ImplementationFrontState,C.Supervisor,C.Source,C.ProgressStatus,
C.CompileMan, C.UnitWorkId,CN.ProfessionalName,C.CNProfessionalId,u.UnitName,C.RemarkCode,su.UserName as SupervisorName
from Comprehensive_NCRManagement C
left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
@@ -49,6 +49,11 @@ namespace FineUIPro.Web.Comprehensive
strSql += " AND C.CNProfessionalId =@CNProfessionalId";
listStr.Add(new SqlParameter("@CNProfessionalId", drpProfessionalId.SelectedValue));
}
if (!string.IsNullOrWhiteSpace(this.ddlSource.SelectedValue))
{
strSql += " AND C.Source =@Source";
listStr.Add(new SqlParameter("@Source", this.ddlSource.SelectedValue));
}
if (!string.IsNullOrEmpty(this.txtNCRCode.Text.Trim()))
{
strSql += " AND C.NCRCode LIKE @NCRCode";
@@ -62,6 +67,7 @@ namespace FineUIPro.Web.Comprehensive
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
@@ -392,7 +398,7 @@ namespace FineUIPro.Web.Comprehensive
if (lists != null)
{
string projectName = BLL.ProjectService.GetShortNameByProjectId(this.CurrUser.LoginProjectId);
newUrl = uploadfilepath.Replace("NCR管理导入模板", "NCR管理" + projectName.Replace("/", "") + DateTime.Now.ToString("yyyyMMdd") + ")");
newUrl = uploadfilepath.Replace("现场质量问题台账导入模板", "现场质量问题台账" + projectName.Replace("/", "") + DateTime.Now.ToString("yyyyMMdd") + ")");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
@@ -438,6 +444,10 @@ namespace FineUIPro.Web.Comprehensive
cell = row.CreateCell(1);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.Source);//现场质量问题来源
cell = row.CreateCell(2);
cell.CellStyle = cellStyle;
string proName = string.Empty;
var cnp = BLL.CNProfessionalService.GetCNProfessional(item.CNProfessionalId);
if (cnp != null)
@@ -446,11 +456,11 @@ namespace FineUIPro.Web.Comprehensive
}
cell.SetCellValue(proName);//专业
cell = row.CreateCell(2);
cell = row.CreateCell(3);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.NCRCode);//NCR单号
cell = row.CreateCell(3);
cell = row.CreateCell(4);
cell.CellStyle = cellStyle;
string unitWorkName = string.Empty;
if (!string.IsNullOrEmpty(item.UnitWorkId))
@@ -459,27 +469,27 @@ namespace FineUIPro.Web.Comprehensive
}
cell.SetCellValue(unitWorkName);//单位工程
cell = row.CreateCell(4);
cell = row.CreateCell(5);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.Contents);//主要内容
cell = row.CreateCell(5);
cell = row.CreateCell(6);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.Problem);//问题类别
cell = row.CreateCell(6);
cell = row.CreateCell(7);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ReasonAnalysis);//问题原因分析
cell = row.CreateCell(7);
cell = row.CreateCell(8);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.Measure);//改进措施
cell = row.CreateCell(8);
cell = row.CreateCell(9);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.IssuedDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.IssuedDate) : "");//下发日期
cell = row.CreateCell(9);
cell = row.CreateCell(10);
cell.CellStyle = cellStyle;
string receiveUnitName = string.Empty;
if (!string.IsNullOrEmpty(item.ReceiveUnit))
@@ -488,7 +498,11 @@ namespace FineUIPro.Web.Comprehensive
}
cell.SetCellValue(receiveUnitName);//接收单位
cell = row.CreateCell(10);
cell = row.CreateCell(11);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ProgressStatus);//目前实施进展状况
cell = row.CreateCell(12);
cell.CellStyle = cellStyle;
string state = string.Empty;
if (!string.IsNullOrEmpty(item.ImplementationFrontState))
@@ -497,19 +511,19 @@ namespace FineUIPro.Web.Comprehensive
}
cell.SetCellValue(state);//实施状态
cell = row.CreateCell(11);
cell = row.CreateCell(13);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ClosedDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.ClosedDate) : "");//要求封闭日期
cell = row.CreateCell(12);
cell = row.CreateCell(14);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.CompleteDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.CompleteDate) : "");//完成日期
cell = row.CreateCell(13);
cell = row.CreateCell(15);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ResponsibleMan);//责任人
cell = row.CreateCell(14);
cell = row.CreateCell(16);
cell.CellStyle = cellStyle;
string supervisorName = string.Empty;
if (!string.IsNullOrEmpty(item.Supervisor))
@@ -518,7 +532,7 @@ namespace FineUIPro.Web.Comprehensive
}
cell.SetCellValue(supervisorName);//监督人
cell = row.CreateCell(15);
cell = row.CreateCell(17);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.RemarkCode.HasValue ? item.RemarkCode.ToString() : "");//标志编号