2023-11-13

This commit is contained in:
2023-11-13 17:46:33 +08:00
parent 833dc56cb6
commit 6464e225c3
7 changed files with 142 additions and 48 deletions
@@ -355,10 +355,13 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
protected void btnPrint_Click(object sender, EventArgs e)
{
Print(Grid1.SelectedRowIDArray);
HJGL_PipelineComponentService.UpdateIsPrint(Grid1.SelectedRowIDArray); //打印后修改打印状态
if (Print(Grid1.SelectedRowIDArray))
{
HJGL_PipelineComponentService.UpdateIsPrint(Grid1.SelectedRowIDArray); //打印后修改打印状态
}
}
private void Print(string[] PipelineComponentId)
private bool Print(string[] PipelineComponentId)
{
BLL.FastReportService.ResetData();
@@ -370,8 +373,8 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
else
{
ShowNotify("请查看组件是否上传二维码!", MessageBoxIcon.Question);
return;
ShowNotify("请查看组件是否上传二维码!", MessageBoxIcon.Question);
return false;
}
BLL.FastReportService.AddFastreportTable(tb);
string initTemplatePath = "";
@@ -382,7 +385,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
return true;
}
/// <summary>