서버 엑셀 수정
This commit is contained in:
parent
82478fcf8b
commit
bc46c90fb2
|
|
@ -24,29 +24,26 @@ namespace Server.Git
|
||||||
switch (sheets[m].dataEnum[0])
|
switch (sheets[m].dataEnum[0])
|
||||||
{
|
{
|
||||||
case "server":
|
case "server":
|
||||||
serverSheetList.Add(new Sheet(sheets[m]));
|
serverSheetList.Add(sheets[m]);
|
||||||
break;
|
break;
|
||||||
case "client":
|
case "client":
|
||||||
clientSheetList.Add(sheets[m].name, sheets[m].dicViewer);
|
clientSheetList.Add(sheets[m].name, sheets[m].dicViewer);
|
||||||
break;
|
break;
|
||||||
case "all":
|
case "all":
|
||||||
//수정할것 이렇게 작업되면 데이터가 2개로 나눠지는것이 아닌 한개의 데이터가 중복으로 제거됨.
|
string name = sheets[m].name;
|
||||||
Sheet sheet = new Sheet(sheets[m]);
|
Dictionary<long, Dictionary<string, object>> clientSheet = new Dictionary<long, Dictionary<string, object>>(sheet.dicViewer);
|
||||||
string name = sheet.name;
|
for (int i = 1; i < sheets[m].dataEnum.Count; i++)
|
||||||
//서버는 다른곳에서 처리를 하기때문에 여기서는 add만 시켜줌.
|
|
||||||
serverSheetList.Add(new Sheet(sheets[m]));
|
|
||||||
Dictionary<long, Dictionary<string, object>> clientSheet = sheet.dicViewer;
|
|
||||||
for (int i = 1; i < sheet.dataEnum.Count; i++)
|
|
||||||
{
|
{
|
||||||
if (sheet.dataEnum[i] == "server")
|
if (sheets[m].dataEnum[i] == "server")
|
||||||
{
|
{
|
||||||
foreach (var item in clientSheet)
|
foreach (var item in clientSheet)
|
||||||
{
|
{
|
||||||
item.Value.Remove(sheet.variable[i]);
|
item.Value.Remove(sheets[m].variable[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clientSheetList.Add(name, clientSheet);
|
clientSheetList.Add(name, clientSheet);
|
||||||
|
serverSheetList.Add(sheets[m]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue