This commit is contained in:
2024-07-17 17:00:37 +08:00
parent 74550ff62a
commit f268912b72
12 changed files with 122 additions and 58 deletions
@@ -681,6 +681,37 @@ namespace FineUIPro.Web.HJGL.TrustManage
return;
}
}
protected void btnPrint3_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
Model.HJGL_CH_Trust trust = BLL.HJGL_TrustManageEditService.GetCH_TrustByID(this.CH_TrustID);
trust.CH_PrintDate = DateTime.Now.Date;
trust.CH_Printer = this.CurrUser.UserName;
BLL.HJGL_TrustManageEditService.PrintCH_Trust(trust);
this.SetTextTemp();
this.PageInfoLoad();
string projectId = string.Empty;
string project = tvControlItem.SelectedNode.ParentNode.NodeID;
if (!string.IsNullOrEmpty(project))
{
string[] ps = project.Split('|');
if (ps.Count() > 1)
{
projectId = ps[1];
}
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_TrustReport3Id, this.tvControlItem.SelectedNodeID, null, "打印 - ")));
}
else
{
Alert.ShowInTop("请选择委托单", MessageBoxIcon.Information);
return;
}
}
#endregion
}
}