From 1a81b518e0edd87a310a5b477773657e23d49cbd Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期四, 30 九月 2021 17:53:10 +0800 Subject: [PATCH] 产品管理 --- web/web/ExportDocument.aspx.cs | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/web/web/ExportDocument.aspx.cs b/web/web/ExportDocument.aspx.cs index 0d28a08..7ce3bc4 100644 --- a/web/web/ExportDocument.aspx.cs +++ b/web/web/ExportDocument.aspx.cs @@ -25,6 +25,9 @@ case "exportGwStatisV3"://瀵煎嚭缁熻鎶ヨ〃 this.ExprortGwStatisV3(); break; + case "exGwProduct": + this.ExGwProduct(); + break; } } @@ -333,4 +336,34 @@ webTool.Export(dataTable, dictionary, "鏃ュ織_" + sDate, this.Context.Response); } } + + //浜у搧瀵煎嚭Excel + private void ExGwProduct() + { + string name = this.AppContext.GetString("name"); + string classes = this.AppContext.GetString("classes"); + string is_default = this.AppContext.GetString("is_default"); + string op_group_id = this.AppContext.GetString("op_group_id"); + using (GwProductDao gwProductDao = new GwProductDao()) + { + DataTable dataTable = gwProductDao.LoadGwProductDataTable(name, classes, is_default, op_group_id); + WebTool webTool = new WebTool(); + Dictionary<string, string> dictionary = new Dictionary<string, string>(); + //dictionary["浜у搧ID"] = "ID"; + dictionary["浜у搧鍚嶇О"] = "NAME"; + //dictionary["鍥炬爣"] = "ICON"; + dictionary["浣跨敤璇存槑"] = "INSTRUCTIONS"; + dictionary["绫诲埆"] = "CLASSES"; + dictionary["鐖剁骇浜у搧鍒嗙被"] = "PARENT_ID"; + //dictionary["璺緞"] = "PATH"; + dictionary["鏄惁榛樿"] = "IS_DEFAULT"; + dictionary["鏄惁鍚敤"] = "IS_ENABLE"; + dictionary["鎺掑簭"] = "SORT"; + dictionary["榛樿閫氶亾"] = "OP_GROUP_ID"; + dictionary["API璐﹀彿鐢熸垚瑙勫垯"] = "API_SP_XH_ID"; + dictionary["榛樿璧犻�佹潯鏁�"] = "GIVING_NUM"; + dictionary["澶囨敞"] = "REMARK"; + webTool.Export(dataTable, dictionary, "PRODUCT_" + (object)DateTime.Now.Ticks, this.Context.Response); + } + } } -- Gitblit v1.9.1