- 현금잔고, 평가손익 표시 추가
This commit is contained in:
42
MainForm.Designer.cs
generated
42
MainForm.Designer.cs
generated
@@ -47,7 +47,6 @@
|
|||||||
this.btCancel = new System.Windows.Forms.Button();
|
this.btCancel = new System.Windows.Forms.Button();
|
||||||
this.tbBidMax = new System.Windows.Forms.TextBox();
|
this.tbBidMax = new System.Windows.Forms.TextBox();
|
||||||
this.label8 = new System.Windows.Forms.Label();
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
this.btBalance = new System.Windows.Forms.Button();
|
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||||
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
|
||||||
@@ -62,6 +61,8 @@
|
|||||||
this.statusBar1 = new System.Windows.Forms.StatusBar();
|
this.statusBar1 = new System.Windows.Forms.StatusBar();
|
||||||
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
|
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
|
||||||
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
|
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
|
||||||
|
this.lbCacheBalance = new System.Windows.Forms.Label();
|
||||||
|
this.lbEvalProfit = new System.Windows.Forms.Label();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
@@ -255,15 +256,6 @@
|
|||||||
this.label8.TabIndex = 11;
|
this.label8.TabIndex = 11;
|
||||||
this.label8.Text = "~";
|
this.label8.Text = "~";
|
||||||
//
|
//
|
||||||
// btBalance
|
|
||||||
//
|
|
||||||
this.btBalance.Location = new System.Drawing.Point(122, 214);
|
|
||||||
this.btBalance.Name = "btBalance";
|
|
||||||
this.btBalance.Size = new System.Drawing.Size(75, 23);
|
|
||||||
this.btBalance.TabIndex = 17;
|
|
||||||
this.btBalance.Text = "잔고";
|
|
||||||
this.btBalance.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// splitContainer1
|
// splitContainer1
|
||||||
//
|
//
|
||||||
this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
@@ -304,13 +296,14 @@
|
|||||||
this.splitContainer2.Panel2.Controls.Add(this.btCybos5);
|
this.splitContainer2.Panel2.Controls.Add(this.btCybos5);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.lbSBCnt);
|
this.splitContainer2.Panel2.Controls.Add(this.lbSBCnt);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.lbRQCnt);
|
this.splitContainer2.Panel2.Controls.Add(this.lbRQCnt);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.btBalance);
|
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.label1);
|
this.splitContainer2.Panel2.Controls.Add(this.label1);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.label5);
|
this.splitContainer2.Panel2.Controls.Add(this.label5);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.tbTimeout);
|
this.splitContainer2.Panel2.Controls.Add(this.tbTimeout);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.tbSearchMax);
|
this.splitContainer2.Panel2.Controls.Add(this.tbSearchMax);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.label7);
|
this.splitContainer2.Panel2.Controls.Add(this.label7);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.btCancel);
|
this.splitContainer2.Panel2.Controls.Add(this.btCancel);
|
||||||
|
this.splitContainer2.Panel2.Controls.Add(this.lbEvalProfit);
|
||||||
|
this.splitContainer2.Panel2.Controls.Add(this.lbCacheBalance);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.label6);
|
this.splitContainer2.Panel2.Controls.Add(this.label6);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.label2);
|
this.splitContainer2.Panel2.Controls.Add(this.label2);
|
||||||
this.splitContainer2.Panel2.Controls.Add(this.label4);
|
this.splitContainer2.Panel2.Controls.Add(this.label4);
|
||||||
@@ -403,7 +396,7 @@
|
|||||||
// lbSBCnt
|
// lbSBCnt
|
||||||
//
|
//
|
||||||
this.lbSBCnt.AutoSize = true;
|
this.lbSBCnt.AutoSize = true;
|
||||||
this.lbSBCnt.Location = new System.Drawing.Point(29, 278);
|
this.lbSBCnt.Location = new System.Drawing.Point(20, 297);
|
||||||
this.lbSBCnt.Name = "lbSBCnt";
|
this.lbSBCnt.Name = "lbSBCnt";
|
||||||
this.lbSBCnt.Size = new System.Drawing.Size(70, 12);
|
this.lbSBCnt.Size = new System.Drawing.Size(70, 12);
|
||||||
this.lbSBCnt.TabIndex = 19;
|
this.lbSBCnt.TabIndex = 19;
|
||||||
@@ -412,7 +405,7 @@
|
|||||||
// lbRQCnt
|
// lbRQCnt
|
||||||
//
|
//
|
||||||
this.lbRQCnt.AutoSize = true;
|
this.lbRQCnt.AutoSize = true;
|
||||||
this.lbRQCnt.Location = new System.Drawing.Point(29, 254);
|
this.lbRQCnt.Location = new System.Drawing.Point(20, 273);
|
||||||
this.lbRQCnt.Name = "lbRQCnt";
|
this.lbRQCnt.Name = "lbRQCnt";
|
||||||
this.lbRQCnt.Size = new System.Drawing.Size(71, 12);
|
this.lbRQCnt.Size = new System.Drawing.Size(71, 12);
|
||||||
this.lbRQCnt.TabIndex = 18;
|
this.lbRQCnt.TabIndex = 18;
|
||||||
@@ -442,6 +435,24 @@
|
|||||||
this.statusBarPanel2.Name = "statusBarPanel2";
|
this.statusBarPanel2.Name = "statusBarPanel2";
|
||||||
this.statusBarPanel2.Width = 120;
|
this.statusBarPanel2.Width = 120;
|
||||||
//
|
//
|
||||||
|
// lbCacheBalance
|
||||||
|
//
|
||||||
|
this.lbCacheBalance.AutoSize = true;
|
||||||
|
this.lbCacheBalance.Location = new System.Drawing.Point(38, 222);
|
||||||
|
this.lbCacheBalance.Name = "lbCacheBalance";
|
||||||
|
this.lbCacheBalance.Size = new System.Drawing.Size(29, 12);
|
||||||
|
this.lbCacheBalance.TabIndex = 13;
|
||||||
|
this.lbCacheBalance.Text = "잔고";
|
||||||
|
//
|
||||||
|
// lbEvalProfit
|
||||||
|
//
|
||||||
|
this.lbEvalProfit.AutoSize = true;
|
||||||
|
this.lbEvalProfit.Location = new System.Drawing.Point(38, 244);
|
||||||
|
this.lbEvalProfit.Name = "lbEvalProfit";
|
||||||
|
this.lbEvalProfit.Size = new System.Drawing.Size(53, 12);
|
||||||
|
this.lbEvalProfit.TabIndex = 13;
|
||||||
|
this.lbEvalProfit.Text = "평가손익";
|
||||||
|
//
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||||
@@ -489,7 +500,6 @@
|
|||||||
private System.Windows.Forms.Button btCancel;
|
private System.Windows.Forms.Button btCancel;
|
||||||
private System.Windows.Forms.TextBox tbBidMax;
|
private System.Windows.Forms.TextBox tbBidMax;
|
||||||
private System.Windows.Forms.Label label8;
|
private System.Windows.Forms.Label label8;
|
||||||
private System.Windows.Forms.Button btBalance;
|
|
||||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||||
private System.Windows.Forms.SplitContainer splitContainer2;
|
private System.Windows.Forms.SplitContainer splitContainer2;
|
||||||
private System.Windows.Forms.SplitContainer splitContainer3;
|
private System.Windows.Forms.SplitContainer splitContainer3;
|
||||||
@@ -504,6 +514,8 @@
|
|||||||
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
|
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
|
||||||
private System.Windows.Forms.Button button1;
|
private System.Windows.Forms.Button button1;
|
||||||
private System.Windows.Forms.Button btMATest;
|
private System.Windows.Forms.Button btMATest;
|
||||||
}
|
private System.Windows.Forms.Label lbCacheBalance;
|
||||||
|
private System.Windows.Forms.Label lbEvalProfit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ namespace upper_limit_crawler
|
|||||||
|
|
||||||
lbRQCnt.Text = "RQ Count : " + ULUtil.GetLimitRemainCountRQ().ToString();
|
lbRQCnt.Text = "RQ Count : " + ULUtil.GetLimitRemainCountRQ().ToString();
|
||||||
lbSBCnt.Text = "SB Count : " + ULUtil.GetLimitRemainCountSB().ToString();
|
lbSBCnt.Text = "SB Count : " + ULUtil.GetLimitRemainCountSB().ToString();
|
||||||
|
lbCacheBalance.Text = "잔고 : " + m_DataMgr.GetCacheBalance().ToString("###,###,###,###,##0원");
|
||||||
|
lbEvalProfit.Text = "평가손익 : " + m_DataMgr.GetEvalProfit().ToString("###,###,###,###,##0원");
|
||||||
|
|
||||||
statusBar1.Panels[1].Text = ULUtil.GetCurTimeString() + " ";
|
statusBar1.Panels[1].Text = ULUtil.GetCurTimeString() + " ";
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,27 @@ namespace upper_limit_crawler
|
|||||||
m_Td6033.SetInputValue(2, 50);
|
m_Td6033.SetInputValue(2, 50);
|
||||||
m_Td6033.BlockRequest2(1);
|
m_Td6033.BlockRequest2(1);
|
||||||
|
|
||||||
|
|
||||||
|
//object[] datalist = new object[]
|
||||||
|
//{
|
||||||
|
// m_Td6033.GetHeaderValue(0),
|
||||||
|
// m_Td6033.GetHeaderValue(1),
|
||||||
|
// m_Td6033.GetHeaderValue(2),
|
||||||
|
// m_Td6033.GetHeaderValue(3),
|
||||||
|
// m_Td6033.GetHeaderValue(4),
|
||||||
|
// m_Td6033.GetHeaderValue(5),
|
||||||
|
// m_Td6033.GetHeaderValue(6),
|
||||||
|
// m_Td6033.GetHeaderValue(7),
|
||||||
|
// m_Td6033.GetHeaderValue(8),
|
||||||
|
// m_Td6033.GetHeaderValue(9),
|
||||||
|
// m_Td6033.GetHeaderValue(10),
|
||||||
|
// m_Td6033.GetHeaderValue(11),
|
||||||
|
// m_Td6033.GetHeaderValue(12)
|
||||||
|
//};
|
||||||
|
|
||||||
|
m_DataMgr.SetCacheBalance(m_Td6033.GetHeaderValue(9));
|
||||||
|
m_DataMgr.SetEvalProfit(m_Td6033.GetHeaderValue(4));
|
||||||
|
|
||||||
lvBalance.Items.Clear();
|
lvBalance.Items.Clear();
|
||||||
//m_OwnList.Clear();
|
//m_OwnList.Clear();
|
||||||
|
|
||||||
|
|||||||
23
ULDataMgr.cs
23
ULDataMgr.cs
@@ -42,6 +42,9 @@ namespace upper_limit_crawler
|
|||||||
Dictionary<string, int> m_LossCutList = new Dictionary<string, int>();
|
Dictionary<string, int> m_LossCutList = new Dictionary<string, int>();
|
||||||
List<string> m_BlackList = new List<string>();
|
List<string> m_BlackList = new List<string>();
|
||||||
|
|
||||||
|
long m_iCacheBalance = 0;
|
||||||
|
long m_iEvalProfit = 0;
|
||||||
|
|
||||||
public ULDataMgr()
|
public ULDataMgr()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -144,5 +147,25 @@ namespace upper_limit_crawler
|
|||||||
{
|
{
|
||||||
return m_WatchList;
|
return m_WatchList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetCacheBalance(long iBalance)
|
||||||
|
{
|
||||||
|
m_iCacheBalance = iBalance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long GetCacheBalance()
|
||||||
|
{
|
||||||
|
return m_iCacheBalance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetEvalProfit(long iProfit)
|
||||||
|
{
|
||||||
|
m_iEvalProfit = iProfit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long GetEvalProfit()
|
||||||
|
{
|
||||||
|
return m_iEvalProfit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user