선물 코드 가져오기 추가
선물 차트 추가 - field의 array를 넣어야 하는데 형식이 맞지 않아 에러남
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
bin/
|
||||
obj/
|
||||
13
Form1.Designer.cs
generated
13
Form1.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
43
Form1.cs
43
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<iCnt; i++)
|
||||
{
|
||||
ulong date = m_FutChart.GetDataValue(0, i);
|
||||
ulong time = m_FutChart.GetDataValue(1, i);
|
||||
ulong mp = m_FutChart.GetDataValue(2, i);
|
||||
ulong hp = m_FutChart.GetDataValue(3, i);
|
||||
ulong lp = m_FutChart.GetDataValue(4, i);
|
||||
|
||||
Console.WriteLine(string.Format("{0}/{1}/{2}/{3}/{4}", date, time, mp, hp, lp));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
54
Properties/app.manifest
Normal file
54
Properties/app.manifest
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC Manifest Options
|
||||
If you want to change the Windows User Account Control level replace the
|
||||
requestedExecutionLevel node with one of the following.
|
||||
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
Specifying requestedExecutionLevel node will disable file and registry virtualization.
|
||||
If you want to utilize File and Registry Virtualization for backward
|
||||
compatibility then delete the requestedExecutionLevel node.
|
||||
-->
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
<applicationRequestMinimum>
|
||||
<defaultAssemblyRequest permissionSetReference="Custom" />
|
||||
<PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" Unrestricted="true" />
|
||||
</applicationRequestMinimum>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- A list of all Windows versions that this application is designed to work with.
|
||||
Windows will automatically select the most compatible environment.-->
|
||||
<!-- If your application is designed to work with Windows Vista, uncomment the following supportedOS node-->
|
||||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS>-->
|
||||
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->
|
||||
<!-- If your application is designed to work with Windows 8, uncomment the following supportedOS node-->
|
||||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS>-->
|
||||
<!-- If your application is designed to work with Windows 8.1, uncomment the following supportedOS node-->
|
||||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>-->
|
||||
</application>
|
||||
</compatibility>
|
||||
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
|
||||
<!-- <dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>-->
|
||||
</asmv1:assembly>
|
||||
@@ -31,6 +31,15 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetZone>LocalIntranet</TargetZone>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<GenerateManifests>false</GenerateManifests>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
@@ -64,6 +73,9 @@
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\app.manifest">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
@@ -78,6 +90,15 @@
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="CPSYSDIBLib">
|
||||
<Guid>{9C31B76A-7189-49A3-9781-3C6DD6ED5AD3}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="CPUTILLib">
|
||||
<Guid>{2DA9C35C-FE59-4A32-A942-325EE8A6F659}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
|
||||
Reference in New Issue
Block a user