lk
2022-11-06 ce8e2226eead53745a12d138d6246fee706ddd8b
已将国内政策数据标题修改完成20221106LK
3个文件已修改
27 ■■■■■ 已修改文件
SunnyUI.Demo/Bin/SunnyUI.Demo.exe 补丁 | 查看 | 原始文档 | blame | 历史
SunnyUI.Demo/Controls/DomesticPolicyData.cs 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SunnyUI.Demo/Controls/SemiconductorIndustryIndex.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SunnyUI.Demo/Bin/SunnyUI.Demo.exe
Binary files differ
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);
        }
SunnyUI.Demo/Controls/SemiconductorIndustryIndex.cs
@@ -56,9 +56,9 @@
            ht.Add("vol", "成交量(手)");
            ht.Add("amount", "成交额(千元)");
            DateTime dateTime = DateTime.Now;
            if (dateTime.Date.Hour >= 16)
            if (dateTime.Hour >= 16)
            {
                if (dateTime.Day > 10)
                if (dateTime.Day < 10)
                {
                    this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + dateTime.Day.ToString();
                }