20260224 交工资料

This commit is contained in:
毕文静 2026-02-24 10:00:17 +08:00
parent dd57620f93
commit 40eab764a1
4 changed files with 20 additions and 8 deletions

View File

@ -391,7 +391,7 @@ namespace FineUIPro.Web.JGZL
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); //keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
}
initTemplatePath = "File\\Fastreport\\JGZL\\管道吹扫、清洗检验记录.frx"; initTemplatePath = "File\\Fastreport\\JGZL\\管道吹扫、清洗检验记录.frx";
if (File.Exists(rootPath + initTemplatePath)) if (File.Exists(rootPath + initTemplatePath))
{ {
@ -399,6 +399,12 @@ namespace FineUIPro.Web.JGZL
} }
} }
else else
{
Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
return;
}
}
else
{ {
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; return;

View File

@ -371,7 +371,7 @@ namespace FineUIPro.Web.JGZL
BLL.Common.FastReportService.ResetData(); BLL.Common.FastReportService.ResetData();
var report = (from x in Funs.DB.JGZL_PressureTestOfPipelineSystemConfirmationRecord where x.ProjectId == projectId select x); var report = (from x in Funs.DB.JGZL_PressureTestOfPipelineSystemConfirmationRecord where x.ProjectId == projectId select x);
if (report != null) if (report.Count() > 0)
{ {
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);

View File

@ -380,7 +380,7 @@ namespace FineUIPro.Web.JGZL
keyValuePairs.Add("TestConclusion", report.TestConclusion); keyValuePairs.Add("TestConclusion", report.TestConclusion);
keyValuePairs.Add("Remark", report.Remark); keyValuePairs.Add("Remark", report.Remark);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
}
initTemplatePath = "File\\Fastreport\\JGZL\\管道系统压力试验记录.frx"; initTemplatePath = "File\\Fastreport\\JGZL\\管道系统压力试验记录.frx";
if (File.Exists(rootPath + initTemplatePath)) if (File.Exists(rootPath + initTemplatePath))
{ {
@ -388,6 +388,12 @@ namespace FineUIPro.Web.JGZL
} }
} }
else else
{
Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
return;
}
}
else
{ {
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; return;