试压包增加打印分类打印

This commit is contained in:
2025-09-01 10:11:37 +08:00
parent 87bbd83e25
commit d9740180f2
13 changed files with 1776 additions and 30 deletions
@@ -257,6 +257,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
foreach (var ptp_id in selectedRows)
{
var item = exportWord(ptp_id);
TestPackagePrintService.AddPrintCountByPTP_ID(ptp_id);//增加明细打印次数
printFiles.Add(item.FirstOrDefault().Key, item.FirstOrDefault().Value);
}
if (printFiles.Count>1)
@@ -305,7 +306,15 @@ namespace FineUIPro.Web.HJGL.TestPackage
}
}
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "typePrint")
{
object[] keys = Grid1.DataKeys[e.RowIndex];
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TestPackageDatePrint.aspx?PTP_ID={0}", keys[0], "编辑 - ")));
}
}
protected Dictionary<string,string> exportWord(string ptp_id)
{
Dictionary<string,string> keyValuePairs = new Dictionary<string,string>();
@@ -470,8 +479,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
}
return keyValuePairs;
}
}
protected Model.FastReportItem GetFastReportItem(Model.PTP_TestPackage updateTestPackage, string printType, string ptp_id)
{