예제 #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            #region Comfup Add
            GenerateReport();
            #endregion
            PI30001 i30001 = new PI30001();
            i30001 = quoteCom.GetProductSTOCK(txtStkno.Text);
            if (i30001 == null)
            {
                AddInfo("無法取得該商品明細,可能商品檔未下載或該商品不存在!!");
                return;
            }

            StringBuilder sb;
            sb = new StringBuilder(Environment.NewLine);
            sb.Append("    股票代碼:").Append(i30001.StockNo);
            sb.Append("    股票名稱:").Append(i30001.StockName);
            sb.Append("    市場別:").Append(i30001.Market);
            sb.Append("    漲停價:").Append(i30001.Bull_Price);
            sb.Append("    參考價:").Append(i30001.Ref_Price);
            sb.Append("    跌停價:").Append(i30001.Bear_Price);
            sb.Append("上次交易日:").Append(i30001.LastTradeDate).Append(Environment.NewLine);
            sb.Append("==========================================");
            AddInfo(sb.ToString());
        }