From ce8e2226eead53745a12d138d6246fee706ddd8b Mon Sep 17 00:00:00 2001
From: lk <1837241092@qq.com>
Date: 星期日, 06 十一月 2022 16:37:27 +0800
Subject: [PATCH] 已将国内政策数据标题修改完成20221106LK
---
SunnyUI.Demo/Controls/DomesticPolicyData.cs | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/SunnyUI.Demo/Controls/DomesticPolicyData.cs b/SunnyUI.Demo/Controls/DomesticPolicyData.cs
index 3f86794..a632c63 100644
--- a/SunnyUI.Demo/Controls/DomesticPolicyData.cs
+++ b/SunnyUI.Demo/Controls/DomesticPolicyData.cs
@@ -12,11 +12,25 @@
using System.Windows.Forms;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
+using System.Collections;
namespace Sunny.UI.Demo.Controls
{
public partial class DomesticPolicyData : UIPage
{
+ private Hashtable ht = new Hashtable();
+
+ /// <summary>
+ /// 琛ㄦ牸鏍囬閲嶅懡鍚�
+ /// </summary>
+ /// <param name="ColName"></param>
+ /// <returns></returns>
+ private string GetDgvColumName(string ColName)
+ {
+ if (ht.Contains(ColName)) return ht[ColName].ToString();
+ else return ColName;
+ }
+
public DomesticPolicyData()
{
InitializeComponent();
@@ -68,12 +82,21 @@
{
dgViewIndustryIndex.Columns[i].Visible = false;
}
+ dgViewIndustryIndex.Columns[i].HeaderText = GetDgvColumName(colName);
}
}
}
private void DomesticPolicyData_Load(object sender, EventArgs e)
{
+ ht.Add("title","鏀跨瓥鍚嶇О");
+ ht.Add("publishDate", "鏃ユ湡");
+ ht.Add("organization", "鍙戝竷鍗曚綅");
+ ht.Add("content", "涓昏鍐呭");
+ ht.Add("country", "鍥藉");
+ ht.Add("area", "鍖哄煙");
+ ht.Add("type", "鏀跨瓥鎬ц川");
+ ht.Add("url", "鏉ユ簮");
GetdgViewIndustryIndex(1, uiPagination1.PageSize);
}
--
Gitblit v1.8.0