| | |
| | | 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(); |
| | |
| | | { |
| | | 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); |
| | | } |
| | | |