| | |
| | | |
| | | private void Asharesemiconductorcompany_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("ts_code", "è¡ç¥¨ä»£ç "); |
| | | ht.Add("name", "è¡ç¥¨ç®ç§°"); |
| | | ht.Add("stock_type_name", "å导ä½åç±»"); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | private void btnAStockLtd_Click_1(object sender, EventArgs e) |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "æ¶è´¹çµåè¯ç"; |
| | | this.Load += new System.EventHandler(this.ConsumerElectronicsChip_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void ConsumerElectronicsChip_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "æ°æ®ä¸å¿è¯ç"; |
| | | this.Load += new System.EventHandler(this.DataCenterChip_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void DataCenterChip_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "å½å
æ°é»æ°æ®"; |
| | | this.Load += new System.EventHandler(this.DomesticNewsData_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void DomesticNewsData_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.btnIndustryIndex.TabIndex = 30; |
| | | this.btnIndustryIndex.Text = "æ¥è¯¢"; |
| | | this.btnIndustryIndex.TipsFont = new System.Drawing.Font("微软é
é»", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.btnIndustryIndex.Click += new System.EventHandler(this.btnIndustryIndex_Click); |
| | | // |
| | | // txtIndustryIndex |
| | | // |
| | |
| | | this.txtIndustryIndex.TabIndex = 29; |
| | | this.txtIndustryIndex.TagString = ""; |
| | | this.txtIndustryIndex.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
| | | this.txtIndustryIndex.Watermark = "请è¾å
¥è¡ç¥¨ä»£ç æç®ç§°"; |
| | | this.txtIndustryIndex.Watermark = "请è¾å
¥å
³é®å"; |
| | | // |
| | | // dgViewIndustryIndex |
| | | // |
| | |
| | | using Newtonsoft.Json.Linq; |
| | | using Newtonsoft.Json; |
| | | using System.Collections; |
| | | using SqlSugar; |
| | | using Newtonsoft.Json.Converters; |
| | | |
| | | namespace Sunny.UI.Demo.Controls |
| | | { |
| | |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | string url = "http://1.117.218.88:8090/api/IndustryPolicyApp/GetPages?PageIndex=1&PageSize=1"; |
| | | JObject item = (JObject)GetChinaStockList(url, 1); |
| | | //string url = "http://1.117.218.88:8090/api/IndustryPolicyApp/GetPages?PageIndex=1&PageSize=1"; |
| | | JObject item = (JObject)GetChinaStockList(1, 1, "http://1.117.218.88:8090/api/IndustryPolicyApp/GetPages?PageIndex=1&PageSize=1"); |
| | | var items = item["data"]["totalItems"]; |
| | | uiPagination1.TotalCount = items.Value<int>(); |
| | | uiPagination1.PageSize = 5; |
| | | } |
| | | |
| | | public static String GetData(String url, Encoding encode) |
| | | //public static String GetData(String url, Encoding encode) |
| | | //{ |
| | | // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); |
| | | // request.Method = "GET"; |
| | | // request.ContentType = "text/html, application/xhtml+xml, */*"; |
| | | // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); |
| | | // Stream rs = response.GetResponseStream(); |
| | | // StreamReader sr = new StreamReader(rs, encode); |
| | | // var result = sr.ReadToEnd(); |
| | | // sr.Close(); |
| | | // rs.Close(); |
| | | // return result; |
| | | //} |
| | | |
| | | |
| | | //public object GetChinaStockList(string SearchInfo, int ReportType) |
| | | //{ |
| | | // //string URL = Configs.GetValue("HYSiteUrl"); |
| | | // //string GetSarchUrl = $"{URL}/ChinaStock/GetChinaStockList"; |
| | | // string Result = GetData(SearchInfo, Encoding.UTF8); |
| | | // //JavaMsgData javaMsgData = JsonHelper.ToObject<JavaMsgData>(Result); |
| | | // return (JObject)JsonConvert.DeserializeObject(Result); |
| | | //} |
| | | |
| | | |
| | | public object GetChinaStockList(int PageIndex, int PageSize, string fieldValue) |
| | | { |
| | | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); |
| | | request.Method = "GET"; |
| | | request.ContentType = "text/html, application/xhtml+xml, */*"; |
| | | HttpWebResponse response = (HttpWebResponse)request.GetResponse(); |
| | | Stream rs = response.GetResponseStream(); |
| | | StreamReader sr = new StreamReader(rs, encode); |
| | | var result = sr.ReadToEnd(); |
| | | sr.Close(); |
| | | rs.Close(); |
| | | return result; |
| | | PageSearchParam chinaStockListPara = new PageSearchParam(); |
| | | List<SugarTableSearchSimple> colCondition = new List<SugarTableSearchSimple>(); |
| | | SugarTableSearchSimple colCondition2 = new SugarTableSearchSimple(); |
| | | colCondition2.FieldValue = "ä¸å½"; |
| | | colCondition2.FieldName = "Country"; |
| | | colCondition.Add(colCondition2); |
| | | chinaStockListPara.PageIndex = PageIndex; |
| | | chinaStockListPara.PageSize = PageSize; |
| | | chinaStockListPara.ColCondition = colCondition; |
| | | string Content = JsonHelper.ToJson(chinaStockListPara); |
| | | string GetSarchUrl = fieldValue; |
| | | string Result = SendRequest(GetSarchUrl, Content, Encoding.UTF8); |
| | | return (JObject)JsonConvert.DeserializeObject(Result); |
| | | } |
| | | |
| | | public string SendRequest(string url, string content, Encoding encoding) |
| | | { |
| | | try |
| | | { |
| | | HttpWebRequest request = (System.Net.HttpWebRequest)WebRequest.Create(url); |
| | | request.Method = "POST"; |
| | | // å
容类å |
| | | request.ContentType = "application/json"; |
| | | //WebHeaderCollection headers = request.Headers; |
| | | //headers.Add("X-Access-Token: tokeninfo"); |
| | | var payload = System.Text.Encoding.UTF8.GetBytes(content); |
| | | request.ContentLength = payload.Length; |
| | | Stream writer = request.GetRequestStream(); |
| | | writer.Write(payload, 0, payload.Length); |
| | | writer.Close(); |
| | | System.Net.HttpWebResponse webResponse = (HttpWebResponse)request.GetResponse(); |
| | | StreamReader sr = new StreamReader(webResponse.GetResponseStream(), encoding); |
| | | return sr.ReadToEnd(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return ""; |
| | | } |
| | | |
| | | } |
| | | |
| | | public class PageSearchParam |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 页ç |
| | | /// </summary> |
| | | public int PageIndex { get; set; } |
| | | /// <summary> |
| | | /// æ¡æ° |
| | | /// </summary> |
| | | public int PageSize { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææ æ¥è¯¢æ¡ä»¶ |
| | | /// </summary> |
| | | public List<SugarTableSearchSimple> ColCondition { get; set; } |
| | | |
| | | } |
| | | |
| | | |
| | | public object GetChinaStockList(string SearchInfo, int ReportType) |
| | | public class SugarTableSearchSimple |
| | | { |
| | | //string URL = Configs.GetValue("HYSiteUrl"); |
| | | //string GetSarchUrl = $"{URL}/ChinaStock/GetChinaStockList"; |
| | | string Result = GetData(SearchInfo, Encoding.UTF8); |
| | | //JavaMsgData javaMsgData = JsonHelper.ToObject<JavaMsgData>(Result); |
| | | return (JObject)JsonConvert.DeserializeObject(Result); |
| | | /// <summary> |
| | | /// åæ®µå |
| | | /// </summary> |
| | | public string FieldName { get; set; } |
| | | /// <summary> |
| | | /// æ¡ä»¶ç±»å |
| | | /// https://www.donet5.com/Home/Doc?typeId=2314 |
| | | /// </summary> |
| | | [JsonConverter(typeof(StringEnumConverter))] |
| | | public ConditionalType ConditionalType { get; set; } |
| | | /// <summary> |
| | | /// å¼ |
| | | /// </summary> |
| | | public string FieldValue { get; set; } |
| | | } |
| | | |
| | | |
| | | public void GetdgViewIndustryIndex(int PageIndex, int PageSize) |
| | | { |
| | | string url = "http://1.117.218.88:8090/api/IndustryPolicyApp/GetPages?PageIndex=" + PageIndex + "&PageSize=" + PageSize; |
| | | JObject item = (JObject)GetChinaStockList(url, 1); |
| | | string url = "http://1.117.218.88:8090/api/IndustryPolicyApp/GetPages?pageIndex=" + PageIndex + "&PageSize=" + PageSize; |
| | | JObject item = (JObject)GetChinaStockList(PageIndex, PageSize, url); |
| | | if (item["data"]["items"] != null) |
| | | { |
| | | var items = item["data"]["items"]; |
| | |
| | | |
| | | private void DomesticPolicyData_Load(object sender, EventArgs e) |
| | | { |
| | | ht.Add("title","æ¿çåç§°"); |
| | | LoadingHelper.CloseForm(); |
| | | ht.Add("title", "æ¿çåç§°"); |
| | | ht.Add("publishDate", "æ¥æ"); |
| | | ht.Add("organization", "åå¸åä½"); |
| | | ht.Add("content", "主è¦å
容"); |
| | |
| | | GetdgViewIndustryIndex(pageIndex, uiPagination1.PageSize); |
| | | } |
| | | |
| | | private void btnIndustryIndex_Click(object sender, EventArgs e) |
| | | { |
| | | dgViewIndustryIndex.DataSource = null; |
| | | for (int i = 1; i <= uiPagination1.TotalCount; i++) |
| | | { |
| | | string url = "http://1.117.218.88:8090/api/IndustryPolicyApp/GetPages?pageIndex=" + i + "&PageSize=" + 1; |
| | | JObject item = (JObject)GetChinaStockList(i, 1, url); |
| | | if (item["data"]["items"] != null) |
| | | { |
| | | var items = item["data"]["items"]; |
| | | var title = items[0]["title"].Value<string>(); |
| | | if (this.txtIndustryIndex.Text.Trim() != "") |
| | | { |
| | | if (title.Contains(this.txtIndustryIndex.Text.Trim())) |
| | | { |
| | | dgViewIndustryIndex.DataSource = items; |
| | | for (int x = 0; x < dgViewIndustryIndex.Columns.Count; x++) |
| | | { |
| | | string colName = dgViewIndustryIndex.Columns[x].Name; |
| | | if (colName == "id") |
| | | { |
| | | dgViewIndustryIndex.Columns[x].Visible = false; |
| | | } |
| | | dgViewIndustryIndex.Columns[x].HeaderText = GetDgvColumName(colName); |
| | | } |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | GetdgViewIndustryIndex(1, uiPagination1.PageSize); |
| | | //DomesticPolicyData_Load(); |
| | | } |
| | | } |
| | | } |
| | | if (dgViewIndustryIndex.DataSource == null) |
| | | { |
| | | MessageBox.Show("æ²¡ææ¥è¯¢å°å¹é
æ°æ®ï¼"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "å½å¤æ°é»æ°æ®"; |
| | | this.Load += new System.EventHandler(this.ForeignNewsData_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | public ForeignNewsData() |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | } |
| | | |
| | | private void ForeignNewsData_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "å½å¤æ¿çæ°æ®"; |
| | | this.Load += new System.EventHandler(this.ForeignPolicyData_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void ForeignPolicyData_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.components = new System.ComponentModel.Container(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | |
| | | this.txtEndDate = new Sunny.UI.UITextBox(); |
| | | this.lblCompanyIn = new Sunny.UI.UITextBox(); |
| | | this.dgViewCompanyIn = new Sunny.UI.UIDataGridView(); |
| | | this.uiToolTip1 = new Sunny.UI.UIToolTip(this.components); |
| | | ((System.ComponentModel.ISupportInitialize)(this.dgViewCompanyIn)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | |
| | | this.txtCompanyIn.TagString = ""; |
| | | this.txtCompanyIn.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
| | | this.txtCompanyIn.Watermark = "请è¾å
¥è¡ç¥¨ä»£ç æç®ç§°"; |
| | | // |
| | | // dgViewCompanyIn |
| | | // |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.dgViewCompanyIn.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
| | | this.dgViewCompanyIn.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
| | | | System.Windows.Forms.AnchorStyles.Left) |
| | | | System.Windows.Forms.AnchorStyles.Right))); |
| | | this.dgViewCompanyIn.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.dgViewCompanyIn.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewCompanyIn.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
| | | this.dgViewCompanyIn.ColumnHeadersHeight = 32; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.dgViewCompanyIn.DefaultCellStyle = dataGridViewCellStyle3; |
| | | this.dgViewCompanyIn.EnableHeadersVisualStyles = false; |
| | | this.dgViewCompanyIn.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.dgViewCompanyIn.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255))))); |
| | | this.dgViewCompanyIn.Location = new System.Drawing.Point(17, 104); |
| | | this.dgViewCompanyIn.Name = "dgViewCompanyIn"; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle4.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewCompanyIn.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
| | | this.dgViewCompanyIn.RowHeight = 27; |
| | | dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle5.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | this.dgViewCompanyIn.RowsDefaultCellStyle = dataGridViewCellStyle5; |
| | | this.dgViewCompanyIn.RowTemplate.Height = 27; |
| | | this.dgViewCompanyIn.SelectedIndex = -1; |
| | | this.dgViewCompanyIn.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
| | | this.dgViewCompanyIn.ShowGridLine = true; |
| | | this.dgViewCompanyIn.Size = new System.Drawing.Size(834, 417); |
| | | this.dgViewCompanyIn.TabIndex = 8; |
| | | this.dgViewCompanyIn.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgViewCompanyIn_CellContentClick); |
| | | this.dgViewCompanyIn.CellMouseEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgViewCompanyIn_CellMouseEnter); |
| | | //this.dgViewCompanyIn.MouseHover += new System.EventHandler(this.dgViewCompanyIn_MouseHover); |
| | | |
| | | |
| | | // |
| | | // txtStartDate |
| | | // |
| | |
| | | this.dgViewCompanyIn.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgViewCompanyIn_CellContentClick); |
| | | this.dgViewCompanyIn.CellMouseEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgViewCompanyIn_CellMouseEnter); |
| | | // |
| | | // uiToolTip1 |
| | | // |
| | | this.uiToolTip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(54)))), ((int)(((byte)(54))))); |
| | | this.uiToolTip1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239))))); |
| | | this.uiToolTip1.OwnerDraw = true; |
| | | // |
| | | // FundamentalsOfChinaSemiconductorCorporation |
| | | // |
| | | this.AllowShowTitle = true; |
| | |
| | | this.Padding = new System.Windows.Forms.Padding(0, 35, 0, 0); |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "Aè¡å导ä½å
¬å¸åºæ¬é¢"; |
| | | this.Text = "Aè¡å导ä½å
¬å¸è¯¦æ
"; |
| | | this.Load += new System.EventHandler(this.FundamentalsOfChinaSemiconductorCorporation_Load); |
| | | ((System.ComponentModel.ISupportInitialize)(this.dgViewCompanyIn)).EndInit(); |
| | | this.ResumeLayout(false); |
| | |
| | | private UITextBox txtEndDate; |
| | | private UITextBox lblCompanyIn; |
| | | private UIDataGridView dgViewCompanyIn; |
| | | private UIToolTip uiToolTip1; |
| | | } |
| | | } |
| | |
| | | |
| | | private void FundamentalsOfChinaSemiconductorCorporation_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("ts_code", "è¡ç¥¨ä»£ç "); |
| | | ht.Add("name", "è¡ç¥¨ç®ç§°"); |
| | | ht.Add("stock_type_name", "å导ä½åç±»"); |
| | |
| | | ht.Add("employees", "å工人æ°"); |
| | | ht.Add("main_business_show", "主è¦ä¸å¡å产å"); |
| | | ht.Add("business_scope_show", "ç»è¥èå´"); |
| | | DateTime dateTime = DateTime.Now; |
| | | if (dateTime.Hour >= 16) |
| | | { |
| | | if (dateTime.Day < 10) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + dateTime.Day.ToString(); |
| | | } |
| | | else |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + dateTime.Day.ToString(); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (dateTime.Day < 10 && !(dateTime.Day - 1).Equals(0)) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + (dateTime.Day - 1).ToString(); |
| | | } |
| | | else |
| | | { |
| | | if ((dateTime.Month - 1).Equals(1) || (dateTime.Month - 1).Equals(3) || (dateTime.Month - 1).Equals(5) || (dateTime.Month - 1).Equals(7) || (dateTime.Month - 1).Equals(8) || (dateTime.Month - 1).Equals(10) || (dateTime.Month - 1).Equals(12) && !(dateTime.Month - 1).Equals(0)) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "31"; |
| | | } |
| | | else if ((dateTime.Month - 1).Equals(2)) |
| | | { |
| | | if ((dateTime.Year % 4 == 0 && dateTime.Year % 100 != 0) || dateTime.Year % 400 == 0) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "29"; |
| | | } |
| | | else |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "28"; |
| | | } |
| | | } |
| | | else if ((dateTime.Month - 1).Equals(0)) |
| | | { |
| | | this.txtEndDate.Text = (dateTime.Year - 1).ToString() + "12" + "31"; |
| | | } |
| | | } |
| | | } |
| | | GetCompanyInList(); |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | private void btnClearIn_Click(object sender, EventArgs e) |
| | |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <metadata name="uiToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | </root> |
| | |
| | | this.Padding = new System.Windows.Forms.Padding(0, 35, 0, 0); |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "æµ·å¤å导ä½å
¬å¸åºæ¬é¢"; |
| | | this.Text = "æµ·å¤å导ä½å
¬å¸è¯¦æ
"; |
| | | this.Load += new System.EventHandler(this.FundamentalsOfForeignSemiconductorCompanies_Load); |
| | | ((System.ComponentModel.ISupportInitialize)(this.dgViewCompanyIn)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | this.PerformLayout(); |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void FundamentalsOfForeignSemiconductorCompanies_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | namespace Sunny.UI.Demo.Controls |
| | | { |
| | | partial class LoaderForm |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// Clean up any resources being used. |
| | | /// </summary> |
| | | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows Form Designer generated code |
| | | |
| | | /// <summary> |
| | | /// Required method for Designer support - do not modify |
| | | /// the contents of this method with the code editor. |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.uiProgressIndicator1 = new Sunny.UI.UIProgressIndicator(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // uiProgressIndicator1 |
| | | // |
| | | this.uiProgressIndicator1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
| | | | System.Windows.Forms.AnchorStyles.Left) |
| | | | System.Windows.Forms.AnchorStyles.Right))); |
| | | this.uiProgressIndicator1.Font = new System.Drawing.Font("微软é
é»", 12F); |
| | | this.uiProgressIndicator1.Location = new System.Drawing.Point(168, 65); |
| | | this.uiProgressIndicator1.MinimumSize = new System.Drawing.Size(1, 1); |
| | | this.uiProgressIndicator1.Name = "uiProgressIndicator1"; |
| | | this.uiProgressIndicator1.Size = new System.Drawing.Size(424, 306); |
| | | this.uiProgressIndicator1.TabIndex = 88; |
| | | this.uiProgressIndicator1.Text = "uiProgressIndicator1"; |
| | | // |
| | | // LoaderForm |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(800, 450); |
| | | this.Controls.Add(this.uiProgressIndicator1); |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
| | | this.Name = "LoaderForm"; |
| | | this.ShowInTaskbar = false; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "LoaderForm"; |
| | | this.TopMost = true; |
| | | this.TransparencyKey = System.Drawing.SystemColors.Control; |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private UIProgressIndicator uiProgressIndicator1; |
| | | } |
| | | } |
| New file |
| | |
| | | using Sunny.UI.Demo.Controls; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Sunny.UI.Demo.Controls |
| | | { |
| | | public partial class LoaderForm : Form |
| | | { |
| | | public LoaderForm() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
³éå½ä»¤ |
| | | /// </summary> |
| | | public void closeOrder() |
| | | { |
| | | if (this.InvokeRequired) |
| | | { |
| | | CONSTANTDEFINE.SetUISomeInfo UIinfo = new CONSTANTDEFINE.SetUISomeInfo(new Action(() => |
| | | { |
| | | while (!this.IsHandleCreated) |
| | | { |
| | | ; |
| | | } |
| | | if (this.IsDisposed) |
| | | return; |
| | | if (!this.IsDisposed) |
| | | { |
| | | this.Dispose(); |
| | | } |
| | | |
| | | })); |
| | | this.Invoke(UIinfo); |
| | | } |
| | | else |
| | | { |
| | | if (this.IsDisposed) |
| | | return; |
| | | if (!this.IsDisposed) |
| | | { |
| | | this.Dispose(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void LoaderForm_FormClosing(object sender, FormClosingEventArgs e) |
| | | { |
| | | if (!this.IsDisposed) |
| | | { |
| | | this.Dispose(true); |
| | | } |
| | | |
| | | } |
| | | } |
| | | class CONSTANTDEFINE |
| | | { |
| | | public delegate void SetUISomeInfo(); |
| | | } |
| | | |
| | | |
| | | |
| | | public class LoadingHelper |
| | | { |
| | | #region ç¸å
³åéå®ä¹ |
| | | /// <summary> |
| | | /// å®ä¹å§æè¿è¡çªå£å
³é |
| | | /// </summary> |
| | | private delegate void CloseDelegate(); |
| | | private static LoaderForm loadingForm; |
| | | private static readonly Object syncLock = new Object(); //å éä½¿ç¨ |
| | | |
| | | #endregion |
| | | |
| | | //private LoadingHelper() |
| | | //{ |
| | | |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºloadingæ¡ |
| | | /// </summary> |
| | | public static void ShowLoadingScreen() |
| | | { |
| | | // Make sure it is only launched once. |
| | | if (loadingForm != null) |
| | | return; |
| | | Thread thread = new Thread(new ThreadStart(LoadingHelper.ShowForm)); |
| | | thread.IsBackground = true; |
| | | thread.SetApartmentState(ApartmentState.STA); |
| | | thread.Start(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºçªå£ |
| | | /// </summary> |
| | | private static void ShowForm() |
| | | { |
| | | if (loadingForm != null) |
| | | { |
| | | loadingForm.closeOrder(); |
| | | loadingForm = null; |
| | | } |
| | | loadingForm = new LoaderForm(); |
| | | loadingForm.TopMost = true; |
| | | loadingForm.ShowDialog(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
³éçªå£ |
| | | /// </summary> |
| | | public static void CloseForm() |
| | | { |
| | | Thread.Sleep(20); //å¯è½å°è¿é线ç¨è¿æªèµ·æ¥ï¼æä»¥è¿è¡å»¶æ¶ï¼å¯ä»¥ç¡®ä¿çº¿ç¨èµ·æ¥ï¼å½»åºå
³éçªå£ |
| | | if (loadingForm != null) |
| | | { |
| | | lock (syncLock) |
| | | { |
| | | Thread.Sleep(20); |
| | | if (loadingForm != null) |
| | | { |
| | | Thread.Sleep(20); //éè¿ä¸æ¬¡å»¶æ¶ï¼ç¡®ä¿å¯ä»¥å½»åºå
³éçªå£ |
| | | loadingForm.Invoke(new CloseDelegate(LoadingHelper.CloseFormInternal)); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
³éçªå£ï¼å§æä¸ä½¿ç¨ |
| | | /// </summary> |
| | | private static void CloseFormInternal() |
| | | { |
| | | |
| | | loadingForm.closeOrder(); |
| | | loadingForm = null; |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | </root> |
| | |
| | | this.lblCompanyMain.ReadOnly = true; |
| | | this.lblCompanyMain.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; |
| | | this.lblCompanyMain.ShowText = false; |
| | | this.lblCompanyMain.Size = new System.Drawing.Size(240, 35); |
| | | this.lblCompanyMain.Size = new System.Drawing.Size(344, 38); |
| | | this.lblCompanyMain.TabIndex = 10; |
| | | this.lblCompanyMain.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
| | | this.lblCompanyMain.WatermarkColor = System.Drawing.Color.Black; |
| | |
| | | |
| | | private void MajorSemiconductorCompaniesInTheWorld_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("ts_code", "è¡ç¥¨ä»£ç "); |
| | | ht.Add("stock_name", "è¡ç¥¨ç®ç§°"); |
| | | ht.Add("stock_type_name", "å导ä½åç±»"); |
| | |
| | | ht.Add("mid_report_q3", "ä¸å£æ¥æ¦è§"); |
| | | ht.Add("mid_report_y1", "å¹´æ¥æ¦è§"); |
| | | GetCompanyMainList(); |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | private void btnCompanyMain_Click(object sender, EventArgs e) |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "æ°è½æºè½¦è¯ç"; |
| | | this.Load += new System.EventHandler(this.NewEnergyVehicleChip_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void NewEnergyVehicleChip_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void btnOutStockLtd_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è¡¨æ ¼æ é¢éå½å |
| | | /// </summary> |
| | |
| | | |
| | | private void OverseasSemiconductorCompanies_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("ts_code", "è¡ç¥¨ä»£ç "); |
| | | ht.Add("stock_type_name", "å导ä½åç±»"); |
| | | ht.Add("name", "è¡ç¥¨ç®ç§°"); |
| | |
| | | ht.Add("low", "æä½ä»·"); |
| | | ht.Add("close", "æ¶çä»·"); |
| | | ht.Add("vol", "æäº¤éï¼æï¼"); |
| | | DateTime dateTime = DateTime.Now; |
| | | if (dateTime.Date.Hour >= 16) |
| | | { |
| | | if (dateTime.Day > 10) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + dateTime.Day.ToString(); |
| | | } |
| | | else |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + dateTime.Day.ToString(); |
| | | } |
| | | //DateTime dateTime = DateTime.Now; |
| | | //if (dateTime.Date.Hour >= 16) |
| | | //{ |
| | | // if (dateTime.Day > 10) |
| | | // { |
| | | // this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + dateTime.Day.ToString(); |
| | | // } |
| | | // else |
| | | // { |
| | | // this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + dateTime.Day.ToString(); |
| | | // } |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (dateTime.Day < 10 && !(dateTime.Day - 1).Equals(0)) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + (dateTime.Day - 1).ToString(); |
| | | } |
| | | else |
| | | { |
| | | if ((dateTime.Month - 1).Equals(1) || (dateTime.Month - 1).Equals(3) || (dateTime.Month - 1).Equals(5) || (dateTime.Month - 1).Equals(7) || (dateTime.Month - 1).Equals(8) || (dateTime.Month - 1).Equals(10) || (dateTime.Month - 1).Equals(12) && !(dateTime.Month - 1).Equals(0)) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "31"; |
| | | } |
| | | else if ((dateTime.Month - 1).Equals(2)) |
| | | { |
| | | if ((dateTime.Year % 4 == 0 && dateTime.Year % 100 != 0) || dateTime.Year % 400 == 0) |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "29"; |
| | | } |
| | | else |
| | | { |
| | | this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "28"; |
| | | } |
| | | } |
| | | else if ((dateTime.Month - 1).Equals(0)) |
| | | { |
| | | this.txtEndDate.Text = (dateTime.Year - 1).ToString() + "12" + "31"; |
| | | } |
| | | } |
| | | //} |
| | | //else |
| | | //{ |
| | | // if (dateTime.Day < 10 && !(dateTime.Day - 1).Equals(0)) |
| | | // { |
| | | // this.txtEndDate.Text = dateTime.Year.ToString() + dateTime.Month + "0" + (dateTime.Day - 1).ToString(); |
| | | // } |
| | | // else |
| | | // { |
| | | // if ((dateTime.Month - 1).Equals(1) || (dateTime.Month - 1).Equals(3) || (dateTime.Month - 1).Equals(5) || (dateTime.Month - 1).Equals(7) || (dateTime.Month - 1).Equals(8) || (dateTime.Month - 1).Equals(10) || (dateTime.Month - 1).Equals(12) && !(dateTime.Month - 1).Equals(0)) |
| | | // { |
| | | // this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "31"; |
| | | // } |
| | | // else if ((dateTime.Month - 1).Equals(2)) |
| | | // { |
| | | // if ((dateTime.Year % 4 == 0 && dateTime.Year % 100 != 0) || dateTime.Year % 400 == 0) |
| | | // { |
| | | // this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "29"; |
| | | // } |
| | | // else |
| | | // { |
| | | // this.txtEndDate.Text = dateTime.Year.ToString() + (dateTime.Month - 1) + "28"; |
| | | // } |
| | | // } |
| | | // else if ((dateTime.Month - 1).Equals(0)) |
| | | // { |
| | | // this.txtEndDate.Text = (dateTime.Year - 1).ToString() + "12" + "31"; |
| | | // } |
| | | // } |
| | | |
| | | } |
| | | //} |
| | | this.btnOutStockLtd_Click_1(sender, e); |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | private void btnOutStockLtd_Click_1(object sender, EventArgs e) |
| | |
| | | uiPanel1.Controls.Add(browser); |
| | | browser.Dock = DockStyle.Fill; |
| | | Control.CheckForIllegalCrossThreadCalls = false; |
| | | |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | public RealTimeFinancialShortNews() |
| | | { |
| | | InitializeComponent(); |
| | | InitBrowser("www.baidu.com"); |
| | | |
| | | //InitBrowser("www.baidu.com"); |
| | | //InitBrowser("http://101.133.134.71:9001/Pages/index.html#/newList"); |
| | | } |
| | | |
| | |
| | | |
| | | private void RealTimeFinancialShortNews_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | //this.webBrowser1.Navigate(@"http://101.133.134.71:9001/Pages/index.html#/newList"); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.dgViewIndustryIndex = new Sunny.UI.UIDataGridView(); |
| | | this.monthCalIndustry = new Sunny.UI.UIDatePicker(); |
| | | this.lblIndustryIndex = new Sunny.UI.UITextBox(); |
| | |
| | | // |
| | | // dgViewIndustryIndex |
| | | // |
| | | dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.dgViewIndustryIndex.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.dgViewIndustryIndex.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
| | | this.dgViewIndustryIndex.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
| | | | System.Windows.Forms.AnchorStyles.Left) |
| | | | System.Windows.Forms.AnchorStyles.Right))); |
| | | this.dgViewIndustryIndex.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.dgViewIndustryIndex.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; |
| | | dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle12.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewIndustryIndex.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewIndustryIndex.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
| | | this.dgViewIndustryIndex.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle13.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle13.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle13.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.dgViewIndustryIndex.DefaultCellStyle = dataGridViewCellStyle13; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.dgViewIndustryIndex.DefaultCellStyle = dataGridViewCellStyle3; |
| | | this.dgViewIndustryIndex.EnableHeadersVisualStyles = false; |
| | | this.dgViewIndustryIndex.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.dgViewIndustryIndex.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255))))); |
| | | this.dgViewIndustryIndex.Location = new System.Drawing.Point(17, 88); |
| | | this.dgViewIndustryIndex.MultiSelect = false; |
| | | this.dgViewIndustryIndex.Name = "dgViewIndustryIndex"; |
| | | dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle14.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewIndustryIndex.RowHeadersDefaultCellStyle = dataGridViewCellStyle14; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle4.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewIndustryIndex.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
| | | this.dgViewIndustryIndex.RowHeight = 27; |
| | | dataGridViewCellStyle15.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle15.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle15.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewIndustryIndex.RowsDefaultCellStyle = dataGridViewCellStyle15; |
| | | dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle5.Font = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.dgViewIndustryIndex.RowsDefaultCellStyle = dataGridViewCellStyle5; |
| | | this.dgViewIndustryIndex.RowTemplate.Height = 27; |
| | | this.dgViewIndustryIndex.SelectedIndex = -1; |
| | | this.dgViewIndustryIndex.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
| | |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Windows.Forms; |
| | | using ZTIC.BLL; |
| | | |
| | |
| | | |
| | | private void SemiconductorIndustryIndex_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("ts_code", "è¡ç¥¨ä»£ç "); |
| | | ht.Add("trade_date", "äº¤ææ¥æ"); |
| | | ht.Add("ts_name", "ææ åç§°"); |
| | |
| | | } |
| | | } |
| | | btnIndustryIndex_Click_1(sender, e); |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | private void uiButton1_Click(object sender, EventArgs e) |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "å导ä½åºåæ°æ®"; |
| | | this.Load += new System.EventHandler(this.SemiconductorInventoryData_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void SemiconductorInventoryData_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "å导ä½ä»·æ ¼æ°æ®"; |
| | | this.Load += new System.EventHandler(this.SemiconductorPriceData_Load); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void SemiconductorPriceData_Load(object sender, EventArgs e) |
| | | { |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.uiDataGridView1 = new Sunny.UI.UIDataGridView(); |
| | | this.Chinasproduction = new Sunny.UI.UIRadioButton(); |
| | | this.Globalproduction = new Sunny.UI.UIRadioButton(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // uiDataGridView1 |
| | | // |
| | | dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; |
| | | this.uiDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
| | | | System.Windows.Forms.AnchorStyles.Left) |
| | | | System.Windows.Forms.AnchorStyles.Right))); |
| | | this.uiDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; |
| | | this.uiDataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; |
| | | dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle7.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; |
| | | this.uiDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle8.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle8.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle8; |
| | | this.uiDataGridView1.EnableHeadersVisualStyles = false; |
| | | this.uiDataGridView1.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.Location = new System.Drawing.Point(18, 84); |
| | | this.uiDataGridView1.Name = "uiDataGridView1"; |
| | | dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle9.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle9; |
| | | dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle10.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle10; |
| | | this.uiDataGridView1.RowTemplate.Height = 23; |
| | | this.uiDataGridView1.SelectedIndex = -1; |
| | | this.uiDataGridView1.ShowGridLine = true; |
| | | this.uiDataGridView1.Size = new System.Drawing.Size(834, 417); |
| | | this.uiDataGridView1.TabIndex = 9; |
| | | // |
| | | // Chinasproduction |
| | | // |
| | | this.Chinasproduction.Cursor = System.Windows.Forms.Cursors.Hand; |
| | | this.Chinasproduction.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Chinasproduction.Location = new System.Drawing.Point(188, 48); |
| | | this.Chinasproduction.MinimumSize = new System.Drawing.Size(1, 1); |
| | | this.Chinasproduction.Name = "Chinasproduction"; |
| | | this.Chinasproduction.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); |
| | | this.Chinasproduction.Size = new System.Drawing.Size(150, 29); |
| | | this.Chinasproduction.TabIndex = 6; |
| | | this.Chinasproduction.Text = "ä¸å½ç产é¢"; |
| | | this.Chinasproduction.CheckedChanged += new System.EventHandler(this.Chinasproduction_CheckedChanged); |
| | | // |
| | | // Globalproduction |
| | | // |
| | | this.Globalproduction.Checked = true; |
| | | this.Globalproduction.Cursor = System.Windows.Forms.Cursors.Hand; |
| | | this.Globalproduction.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Globalproduction.Location = new System.Drawing.Point(18, 48); |
| | | this.Globalproduction.MinimumSize = new System.Drawing.Size(1, 1); |
| | | this.Globalproduction.Name = "Globalproduction"; |
| | | this.Globalproduction.Padding = new System.Windows.Forms.Padding(22, 0, 0, 0); |
| | | this.Globalproduction.Size = new System.Drawing.Size(150, 29); |
| | | this.Globalproduction.TabIndex = 5; |
| | | this.Globalproduction.Text = "å
¨çç产é¢"; |
| | | this.Globalproduction.CheckedChanged += new System.EventHandler(this.Globalproduction_CheckedChanged); |
| | | // |
| | | // SemiconductorProductionData |
| | | // |
| | | this.AllowShowTitle = true; |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; |
| | | this.ClientSize = new System.Drawing.Size(800, 450); |
| | | this.ClientSize = new System.Drawing.Size(879, 536); |
| | | this.Controls.Add(this.uiDataGridView1); |
| | | this.Controls.Add(this.Chinasproduction); |
| | | this.Controls.Add(this.Globalproduction); |
| | | this.Name = "SemiconductorProductionData"; |
| | | this.Padding = new System.Windows.Forms.Padding(0, 35, 0, 0); |
| | | this.ShowTitle = true; |
| | | this.Symbol = 362747; |
| | | this.Text = "å导ä½çäº§æ°æ®"; |
| | | this.Load += new System.EventHandler(this.SemiconductorProductionData_Load); |
| | | ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private UIDataGridView uiDataGridView1; |
| | | private UIRadioButton Chinasproduction; |
| | | private UIRadioButton Globalproduction; |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using CommonHelper; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | |
| | | { |
| | | public partial class SemiconductorProductionData : UIPage |
| | | { |
| | | |
| | | private Hashtable ht = new Hashtable(); |
| | | public SemiconductorProductionData() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | |
| | | public object GetChinaStockList(string fieldValue) |
| | | { |
| | | ChinaStockListPara chinaStockListPara = new ChinaStockListPara(); |
| | | List<colCondition> colCondition = new List<colCondition>(); |
| | | colCondition colCondition2 = new colCondition(); |
| | | colCondition2.fieldValue = fieldValue; |
| | | colCondition.Add(colCondition2); |
| | | dateRange dateRange = new dateRange(); |
| | | chinaStockListPara.colCondition = colCondition; |
| | | chinaStockListPara.dateRange = dateRange; |
| | | string Content = JsonHelper.ToJson(chinaStockListPara); |
| | | string GetSarchUrl = "http://1.117.218.88:8090/api/TableProductionSalesApp/SearchPages"; |
| | | string Result = SendRequest(GetSarchUrl, Content, Encoding.UTF8); |
| | | return (JObject)JsonConvert.DeserializeObject(Result); |
| | | } |
| | | |
| | | |
| | | private class colCondition |
| | | { |
| | | public string fieldName { get { return "name"; } } |
| | | public int conditionalType { get { return 1; } } |
| | | public string fieldValue { get; set; } |
| | | } |
| | | |
| | | private class dateRange |
| | | { |
| | | public string startTime { get { return "2000-01-01T00:00:00.000Z"; } } |
| | | public string endTime { get { return "2022-11-04T06:46:16.092Z"; } } |
| | | } |
| | | |
| | | private class ChinaStockListPara |
| | | { |
| | | public int pageIndex { get { return 1; } } |
| | | public int pageSize { get { return 15; } } |
| | | public List<colCondition> colCondition { set; get; } |
| | | public dateRange dateRange { set; get; } |
| | | } |
| | | |
| | | |
| | | public string SendRequest(string url, string content, Encoding encoding) |
| | | { |
| | | try |
| | | { |
| | | HttpWebRequest request = (System.Net.HttpWebRequest)WebRequest.Create(url); |
| | | request.Method = "POST"; |
| | | // å
容类å |
| | | request.ContentType = "application/json"; |
| | | //WebHeaderCollection headers = request.Headers; |
| | | //headers.Add("X-Access-Token: tokeninfo"); |
| | | var payload = System.Text.Encoding.UTF8.GetBytes(content); |
| | | request.ContentLength = payload.Length; |
| | | Stream writer = request.GetRequestStream(); |
| | | writer.Write(payload, 0, payload.Length); |
| | | writer.Close(); |
| | | System.Net.HttpWebResponse webResponse = (HttpWebResponse)request.GetResponse(); |
| | | StreamReader sr = new StreamReader(webResponse.GetResponseStream(), encoding); |
| | | return sr.ReadToEnd(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return ""; |
| | | } |
| | | |
| | | } |
| | | |
| | | private void SemiconductorProductionData_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("name", "ææ åç§°"); |
| | | ht.Add("frequency", "é¢ç"); |
| | | ht.Add("unit", "åä½"); |
| | | ht.Add("source", "æ¥æº"); |
| | | ht.Add("country", "å½å®¶"); |
| | | ht.Add("updateTime", "è·æ°æ¶é´"); |
| | | var items = (JObject)GetChinaStockList("å坼使æ:åºè´§é"); |
| | | this.uiDataGridView1.DataSource = items["data"]["items"]; |
| | | GetDgvColumName(); |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | private void GetDgvColumName() |
| | | { |
| | | for (int i = 0; i < uiDataGridView1.Columns.Count; i++) |
| | | { |
| | | string colName = uiDataGridView1.Columns[i].Name; |
| | | if (colName == "id") |
| | | { |
| | | uiDataGridView1.Columns[i].Visible = false; |
| | | } |
| | | uiDataGridView1.Columns[i].HeaderText = GetDgvColumName(colName); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è¡¨æ ¼æ é¢éå½å |
| | | /// </summary> |
| | | /// <param name="ColName"></param> |
| | | /// <returns></returns> |
| | | private string GetDgvColumName(string ColName) |
| | | { |
| | | if (ht.Contains(ColName)) return ht[ColName].ToString(); |
| | | else return ColName; |
| | | } |
| | | |
| | | private void Chinasproduction_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | if (this.Chinasproduction.Checked) |
| | | { |
| | | JObject items = (JObject)GetChinaStockList("产é:éæçµè·¯"); |
| | | this.uiDataGridView1.DataSource = items["data"]["items"]; |
| | | GetDgvColumName(); |
| | | } |
| | | else |
| | | { |
| | | JObject items = (JObject)GetChinaStockList("å坼使æ:åºè´§é"); |
| | | this.uiDataGridView1.DataSource = items["data"]["items"]; |
| | | GetDgvColumName(); |
| | | } |
| | | } |
| | | |
| | | private void Globalproduction_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | if (this.Chinasproduction.Checked) |
| | | { |
| | | JObject items = (JObject)GetChinaStockList("产é:éæçµè·¯"); |
| | | this.uiDataGridView1.DataSource = items["data"]["items"]; |
| | | GetDgvColumName(); |
| | | } |
| | | else |
| | | { |
| | | JObject items = (JObject)GetChinaStockList("å坼使æ:åºè´§é"); |
| | | this.uiDataGridView1.DataSource = items["data"]["items"]; |
| | | GetDgvColumName(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.Globalsales = new Sunny.UI.UIRadioButton(); |
| | | this.SalesinChina = new Sunny.UI.UIRadioButton(); |
| | | this.GlobalSemiconductorMaterials = new Sunny.UI.UIRadioButton(); |
| | |
| | | // |
| | | // uiDataGridView1 |
| | | // |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
| | | dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21; |
| | | this.uiDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
| | | | System.Windows.Forms.AnchorStyles.Left) |
| | | | System.Windows.Forms.AnchorStyles.Right))); |
| | | this.uiDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; |
| | | this.uiDataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
| | | dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle22.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle22.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle22.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; |
| | | this.uiDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
| | | dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle23.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle23.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle23.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle23.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle23.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle23; |
| | | this.uiDataGridView1.EnableHeadersVisualStyles = false; |
| | | this.uiDataGridView1.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255))))); |
| | | this.uiDataGridView1.Location = new System.Drawing.Point(19, 96); |
| | | this.uiDataGridView1.Name = "uiDataGridView1"; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle4.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
| | | dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle5.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5; |
| | | dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle24.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle24.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle24.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle24; |
| | | dataGridViewCellStyle25.BackColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle25.Font = new System.Drawing.Font("微软é
é»", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle25.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | dataGridViewCellStyle25.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255))))); |
| | | dataGridViewCellStyle25.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); |
| | | this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle25; |
| | | this.uiDataGridView1.RowTemplate.Height = 23; |
| | | this.uiDataGridView1.SelectedIndex = -1; |
| | | this.uiDataGridView1.ShowGridLine = true; |
| | |
| | | public SemiconductorSalesData() |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | private void SemiconductorSalesData_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | ht.Add("name", "ææ åç§°"); |
| | | ht.Add("frequency", "é¢ç"); |
| | | ht.Add("unit", "åä½"); |
| | |
| | | var items = (JObject)GetChinaStockList("å导ä½:éå®é¢"); |
| | | this.uiDataGridView1.DataSource = items["data"]["items"]; |
| | | GetDgvColumName(); |
| | | LoadingHelper.CloseForm(); |
| | | } |
| | | |
| | | public object GetChinaStockList(string fieldValue) |
| | |
| | | this.Aside.ShowOneNode = true; |
| | | this.Aside.ShowSecondBackColor = true; |
| | | this.Aside.ShowTips = true; |
| | | this.Aside.Size = new System.Drawing.Size(313, 573); |
| | | this.Aside.Size = new System.Drawing.Size(260, 573); |
| | | this.Aside.Style = Sunny.UI.UIStyle.Custom; |
| | | // |
| | | // Header |
| | |
| | | // |
| | | // pictureBox1 |
| | | // |
| | | this.pictureBox1.Image = global::Sunny.UI.Demo.Properties.Resources.RenSoftlogoblueç½åçæ¬1; |
| | | this.pictureBox1.Location = new System.Drawing.Point(7, 46); |
| | | this.pictureBox1.BackColor = System.Drawing.Color.CornflowerBlue; |
| | | this.pictureBox1.BackgroundImage = global::Sunny.UI.Demo.Properties.Resources.仿°éV2; |
| | | this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | this.pictureBox1.Location = new System.Drawing.Point(5, 51); |
| | | this.pictureBox1.Name = "pictureBox1"; |
| | | this.pictureBox1.Size = new System.Drawing.Size(357, 79); |
| | | this.pictureBox1.Size = new System.Drawing.Size(466, 79); |
| | | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; |
| | | this.pictureBox1.TabIndex = 4; |
| | | this.pictureBox1.TabStop = false; |
| | | // |
| | |
| | | this.ShowDragStretch = true; |
| | | this.ShowRadius = false; |
| | | this.ShowShadow = true; |
| | | |
| | | this.Text = "仿°é[å导ä½ç]--å
¨é¢å®æ¶ä¸ä¸çåç´æ°æ®ç»ç«¯"; |
| | | this.TitleFont = new System.Drawing.Font("微软é
é»", 9.6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | |
| | | this.TransparencyKey = System.Drawing.Color.Black; |
| | | this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
| | | this.Selecting += new Sunny.UI.UIMainFrame.OnSelecting(this.FMain_Selecting); |
| | |
| | | { |
| | | if (page != null) |
| | | { |
| | | if (!page.Text.Contains("宿¶è´¢ç»æ°é»")) |
| | | { |
| | | |
| | | } |
| | | LoadingHelper.ShowLoadingScreen(); |
| | | Console.WriteLine(page.Text); |
| | | } |
| | | } |
| | |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap 仿°éV2 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("仿°éV2", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <data name="relationship0" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\relationship0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="relationship" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\relationship.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="milan" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\milan.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="benfica" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\benfica.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <data name="inter" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\inter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="AHM" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\AHM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="SunnyUI" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\SunnyUI.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="HAM" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\HAM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="仿°éV2" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\仿°éV2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="Home_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\Home_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="save0" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\save0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="lazio" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\lazio.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="HMF1" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\HMF1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <data name="heerenveen" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\heerenveen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="milan" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\milan.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="ajax" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\ajax.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="psv" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\psv.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="RenSoftlogoblueç½åçæ¬1" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\RenSoftlogoblueç½åçæ¬1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="zaragoza" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\zaragoza.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <data name="_4" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="AHM" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\AHM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="save0" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\save0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="SunnyLogin" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\SunnyLogin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="ajax" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\ajax.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="HAM" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\HAM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="deportivo" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\deportivo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <data name="real_madrid" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\real_madrid.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="lazio" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\lazio.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="relationship" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\relationship.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="_3" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | </data> |
| | | <data name="AM1" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\AM1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="RenSoftlogoblueç½åçæ¬1" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\RenSoftlogoblueç½åçæ¬1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | </root> |
| | |
| | | <Compile Include="Controls\FundamentalsOfForeignSemiconductorCompanies.Designer.cs"> |
| | | <DependentUpon>FundamentalsOfForeignSemiconductorCompanies.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Controls\LoaderForm.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Controls\LoaderForm.Designer.cs"> |
| | | <DependentUpon>LoaderForm.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Controls\MajorSemiconductorCompaniesInTheWorld.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | |
| | | <EmbeddedResource Include="Controls\FundamentalsOfForeignSemiconductorCompanies.resx"> |
| | | <DependentUpon>FundamentalsOfForeignSemiconductorCompanies.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Controls\LoaderForm.resx"> |
| | | <DependentUpon>LoaderForm.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Controls\MajorSemiconductorCompaniesInTheWorld.resx"> |
| | | <DependentUpon>MajorSemiconductorCompaniesInTheWorld.cs</DependentUpon> |
| | | </EmbeddedResource> |
| | |
| | | <None Include="Resources\Home_32x32.png" /> |
| | | <Content Include="Resources\RenSoftlogoblueç½åçæ¬.png" /> |
| | | <None Include="Resources\RenSoftlogoblueç½åçæ¬1.png" /> |
| | | <None Include="Resources\仿°éV2.png" /> |
| | | <Content Include="SunnyUI.ico" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |