radar chart와 map 화면 동시에 띄워놓고 더블클릭했을 때 반영되도록 수정
This commit is contained in:
@@ -58,6 +58,7 @@ namespace friction
|
||||
|
||||
string m_strCurSpring = "";
|
||||
string m_strCurTable = "";
|
||||
string m_strPrevTable = "";
|
||||
|
||||
List<string> m_ColumnsNames = new List<string>();
|
||||
List<string> m_ActiveColumns = new List<string>();
|
||||
@@ -144,6 +145,7 @@ namespace friction
|
||||
|
||||
m_TableList = (from r in m_Data.AsEnumerable()
|
||||
select r[Config.COLUMN_NAME.TABLE]).Distinct().Cast<string>().ToList();
|
||||
m_strPrevTable = m_TableList[0];
|
||||
|
||||
m_ColumnsNames = (from c in m_Data.Columns.Cast<DataColumn>()
|
||||
select c.ColumnName).ToList<string>();
|
||||
@@ -172,6 +174,7 @@ namespace friction
|
||||
public void SetSelectedMaterial(string strSpring, string strTable)
|
||||
{
|
||||
m_strCurSpring = strSpring;
|
||||
m_strPrevTable = m_strCurTable;
|
||||
m_strCurTable = strTable;
|
||||
}
|
||||
|
||||
@@ -282,7 +285,7 @@ namespace friction
|
||||
string strQuery = string.Format("[{0}]='{1}' and [{2}]='{3}'", Config.COLUMN_NAME.SPRING, strSpring, Config.COLUMN_NAME.TABLE, strTable);
|
||||
DataRow[] rows = m_Data.Select(strQuery);
|
||||
|
||||
if(rows.Length > 0)
|
||||
if (rows.Length > 0)
|
||||
{
|
||||
result.m_iCnt = rows.Length;
|
||||
result.m_fAvgRPN = rows.Average(r => (float)r[Config.COLUMN_NAME.RPN]);
|
||||
@@ -299,8 +302,6 @@ namespace friction
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
@@ -327,6 +328,11 @@ namespace friction
|
||||
return m_SpringList;
|
||||
}
|
||||
|
||||
public string GetPrevTable()
|
||||
{
|
||||
return m_strPrevTable;
|
||||
}
|
||||
|
||||
public List<string> GetTableList()
|
||||
{
|
||||
return m_TableList;
|
||||
|
||||
Reference in New Issue
Block a user