git파싱 구조 변경
This commit is contained in:
parent
9a71f1cad3
commit
adeab5d34f
|
|
@ -12,46 +12,46 @@ namespace Server.Git
|
||||||
|
|
||||||
Dictionary<string, Dictionary<long, Dictionary<string, object>>> clientSheetList = new Dictionary<string, Dictionary<long, Dictionary<string, object>>>();
|
Dictionary<string, Dictionary<long, Dictionary<string, object>>> clientSheetList = new Dictionary<string, Dictionary<long, Dictionary<string, object>>>();
|
||||||
List<Sheet> serverSheetList = new List<Sheet>();
|
List<Sheet> serverSheetList = new List<Sheet>();
|
||||||
|
sheets = new List<Sheet>();
|
||||||
for (int n = 0; n < fileList.Count; n++)
|
for (int n = 0; n < fileList.Count; n++)
|
||||||
{
|
{
|
||||||
ExcelManager em = new ExcelManager(fileList[n]);
|
ExcelManager em = new ExcelManager(fileList[n]);
|
||||||
if (em.Play())
|
if (em.Play())
|
||||||
{
|
{
|
||||||
//나의 sheet가 아니라 em에 들어있는 시트만으로 처리되도록 해야함.
|
List<Sheet> parseSheet = em.sheets;
|
||||||
sheets = em.sheets;
|
sheets.AddRange(parseSheet);
|
||||||
for (int m = 0; m < sheets.Count; m++)
|
for (int m = 0; m < parseSheet.Count; m++)
|
||||||
{
|
{
|
||||||
switch (sheets[m].dataEnum[0])
|
switch (parseSheet[m].dataEnum[0])
|
||||||
{
|
{
|
||||||
case "server":
|
case "server":
|
||||||
serverSheetList.Add(sheets[m]);
|
serverSheetList.Add(parseSheet[m]);
|
||||||
break;
|
break;
|
||||||
case "client":
|
case "client":
|
||||||
clientSheetList.Add(sheets[m].name, sheets[m].dicViewer);
|
clientSheetList.Add(parseSheet[m].name, parseSheet[m].dicViewer);
|
||||||
break;
|
break;
|
||||||
case "all":
|
case "all":
|
||||||
string name = sheets[m].name;
|
string name = parseSheet[m].name;
|
||||||
Dictionary<long, Dictionary<string, object>> clientSheet = new Dictionary<long, Dictionary<string, object>>();
|
Dictionary<long, Dictionary<string, object>> clientSheet = new Dictionary<long, Dictionary<string, object>>();
|
||||||
|
|
||||||
foreach (KeyValuePair<long, Dictionary<string, object>> item in sheets[m].dicViewer)
|
foreach (KeyValuePair<long, Dictionary<string, object>> item in parseSheet[m].dicViewer)
|
||||||
{
|
{
|
||||||
clientSheet.Add(item.Key, new Dictionary<string, object>(item.Value));
|
clientSheet.Add(item.Key, new Dictionary<string, object>(item.Value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (int i = 1; i < sheets[m].dataEnum.Count; i++)
|
for (int i = 1; i < parseSheet[m].dataEnum.Count; i++)
|
||||||
{
|
{
|
||||||
if (sheets[m].dataEnum[i] == "server")
|
if (parseSheet[m].dataEnum[i] == "server")
|
||||||
{
|
{
|
||||||
foreach (var item in clientSheet)
|
foreach (var item in clientSheet)
|
||||||
{
|
{
|
||||||
item.Value.Remove(sheets[m].variable[i]);
|
item.Value.Remove(parseSheet[m].variable[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clientSheetList.Add(name, clientSheet);
|
clientSheetList.Add(name, clientSheet);
|
||||||
serverSheetList.Add(sheets[m]);
|
serverSheetList.Add(parseSheet[m]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue