- 시뮬레이션 수정중 : 표준편차 이용

This commit is contained in:
2017-02-20 04:15:45 +09:00
parent 0aec121fd5
commit dd7a1322e4
4 changed files with 191 additions and 60 deletions

View File

@@ -197,6 +197,11 @@ namespace AutoSellerNS
AddItem(Item);
// 미체결
UpdateNC();
}
void UpdateNC()
{
var NCItems = m_CybosHelper.UpdateNC();
lvNCItem.Items.Clear();
if(lvNCItem.InvokeRequired)
@@ -208,8 +213,8 @@ namespace AutoSellerNS
NCItem.m_strCode,
NCItem.m_strCodeName,
NCItem.m_strDesc,
string.Format("{0:0n}", NCItem.m_iOrderPrice),
string.Format("{0:0n}", NCItem.m_iRemainCnt),
string.Format("{0:n0}", NCItem.m_iOrderPrice),
string.Format("{0:n0}", NCItem.m_iRemainCnt),
}));
}
}));
@@ -222,8 +227,8 @@ namespace AutoSellerNS
NCItem.m_strCode,
NCItem.m_strCodeName,
NCItem.m_strDesc,
string.Format("{0:0n}", NCItem.m_iOrderPrice),
string.Format("{0:0n}", NCItem.m_iRemainCnt),
string.Format("{0:n0}", NCItem.m_iOrderPrice),
string.Format("{0:n0}", NCItem.m_iRemainCnt),
}));
}
}
@@ -252,6 +257,11 @@ namespace AutoSellerNS
//}
}
public void OnReceipt()
{
UpdateNC();
}
private void btSell_Click(object sender, EventArgs e)
{
btSell.Primary = !btSell.Primary;
@@ -408,13 +418,13 @@ namespace AutoSellerNS
#region Simulation
private void btLoad_Click(object sender, EventArgs e)
{
SimulationHelper helper = new SimulationHelper(m_CybosHelper, tbSimulationLog);
SimulationHelper helper = new SimulationHelper(this, m_CybosHelper, tbSimulationLog);
helper.LoadExcel2();
}
private void btSimulate_Click(object sender, EventArgs e)
{
SimulationHelper helper = new SimulationHelper(m_CybosHelper, tbSimulationLog);
SimulationHelper helper = new SimulationHelper(this, m_CybosHelper, tbSimulationLog);
helper.StartSimuation2();
return;