From 67e7e332fb9c6d0d3d9f5d743762ab54f1646a6d Mon Sep 17 00:00:00 2001 From: mjjo Date: Wed, 17 Jun 2015 01:18:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A0=EB=AC=BC=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EA=B0=80=EC=A0=B8=EC=98=A4=EA=B8=B0=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EC=84=A0=EB=AC=BC=20=EC=B0=A8=ED=8A=B8=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=09-=20field=EC=9D=98=20array=EB=A5=BC=20=EB=84=A3=EC=96=B4?= =?UTF-8?q?=EC=95=BC=20=ED=95=98=EB=8A=94=EB=8D=B0=20=ED=98=95=EC=8B=9D?= =?UTF-8?q?=EC=9D=B4=20=EB=A7=9E=EC=A7=80=20=EC=95=8A=EC=95=84=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EB=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ Form1.Designer.cs | 13 ++++++++++ Form1.cs | 43 +++++++++++++++++++++++++++++++- Properties/app.manifest | 54 +++++++++++++++++++++++++++++++++++++++++ future-crawler.csproj | 21 ++++++++++++++++ 5 files changed, 132 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Properties/app.manifest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd42ee3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin/ +obj/ diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 935f7a9..267da6c 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -30,6 +30,7 @@ { this.btSearchCode = new System.Windows.Forms.Button(); this.lbFutCode = new System.Windows.Forms.Label(); + this.btCrawling = new System.Windows.Forms.Button(); this.SuspendLayout(); // // btSearchCode @@ -51,11 +52,22 @@ this.lbFutCode.TabIndex = 1; this.lbFutCode.Text = "unknown"; // + // btCrawling + // + this.btCrawling.Location = new System.Drawing.Point(12, 54); + this.btCrawling.Name = "btCrawling"; + this.btCrawling.Size = new System.Drawing.Size(106, 23); + this.btCrawling.TabIndex = 2; + this.btCrawling.Text = "Do Crawling"; + this.btCrawling.UseVisualStyleBackColor = true; + this.btCrawling.Click += new System.EventHandler(this.btCrawling_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(386, 405); + this.Controls.Add(this.btCrawling); this.Controls.Add(this.lbFutCode); this.Controls.Add(this.btSearchCode); this.Name = "Form1"; @@ -69,6 +81,7 @@ private System.Windows.Forms.Button btSearchCode; private System.Windows.Forms.Label lbFutCode; + private System.Windows.Forms.Button btCrawling; } } diff --git a/Form1.cs b/Form1.cs index 517b426..7cad877 100644 --- a/Form1.cs +++ b/Form1.cs @@ -13,7 +13,9 @@ namespace future_crawler public partial class Form1 : Form { CPUTILLib.CpFutureCode m_FutCode = new CPUTILLib.CpFutureCode(); - string m_strTargetFutCode; + string m_strTargetFutCode = "101K9"; + + CPSYSDIBLib.FutOptChart m_FutChart = new CPSYSDIBLib.FutOptChart(); public Form1() { @@ -34,5 +36,44 @@ namespace future_crawler m_strTargetFutCode = (string)m_FutCode.GetData(0, 0); lbFutCode.Text = m_strTargetFutCode; } + + private void btCrawling_Click(object sender, EventArgs e) + { + long[] aFields = new long[1]; + aFields[0] = 0; + //aFields[1] = 1; + //aFields[2] = 2; + //aFields[3] = 3; + //aFields[4] = 4; + + + m_FutChart.SetInputValue(0, m_strTargetFutCode); + m_FutChart.SetInputValue(1, '1'); + m_FutChart.SetInputValue(2, 20150617); + m_FutChart.SetInputValue(3, 20150601); + m_FutChart.SetInputValue(4, 0); + m_FutChart.SetInputValue(5, aFields); + m_FutChart.SetInputValue(6, 'S'); + m_FutChart.SetInputValue(7, 1); + m_FutChart.SetInputValue(8, '0'); + m_FutChart.SetInputValue(9, '0'); + + int iResult = m_FutChart.BlockRequest2(1); + if (iResult != 0) + MessageBox.Show("결과가 이상함"); + + int iCnt = m_FutChart.GetHeaderValue(3); + int iFieldCnt = m_FutChart.GetHeaderValue(1); + for(int i=0; i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/future-crawler.csproj b/future-crawler.csproj index 4ceb59c..d8905d5 100644 --- a/future-crawler.csproj +++ b/future-crawler.csproj @@ -31,6 +31,15 @@ prompt 4 + + LocalIntranet + + + false + + + Properties\app.manifest + @@ -64,6 +73,9 @@ True Resources.resx + + Designer + SettingsSingleFileGenerator Settings.Designer.cs @@ -78,6 +90,15 @@ + + {9C31B76A-7189-49A3-9781-3C6DD6ED5AD3} + 1 + 0 + 0 + tlbimp + False + True + {2DA9C35C-FE59-4A32-A942-325EE8A6F659} 1