This commit is contained in:
2025-07-31 11:59:31 +08:00
parent 404ab72e55
commit 32c935b3c2
19 changed files with 466 additions and 228 deletions
@@ -198,7 +198,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
{
Response.ClearContent();
string filename = Funs.GetNewFileName();
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("车次管理" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("发货管理" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
this.Grid1.PageSize = 500;
@@ -254,5 +254,20 @@ namespace FineUIPro.Web.HJGL.PreDesign
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format(url, id, "操作 - ")));
}
}
protected void btnPrint_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
string id = Grid1.SelectedRowID;
string url = "TrainNumberManagerPrint.aspx?TrainNumberId={0}";
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format(url, id, "打印 - ")));
}
else
{
Alert.ShowInTop("请选择要打印的数据", MessageBoxIcon.Warning);
return;
}
}
}
}