..
This commit is contained in:
@@ -83,36 +83,36 @@ namespace Project
|
||||
|
||||
void IncCount(int seq, int port, int value = 1)
|
||||
{
|
||||
if (PUB.counter.DateStr != DateTime.Now.ToShortDateString())
|
||||
if (SETTING.Counter.DateStr != DateTime.Now.ToShortDateString())
|
||||
{
|
||||
if (port == 0) PUB.counter.CountDP1 = value;
|
||||
if (port == 1) PUB.counter.CountDP2 = value;
|
||||
if (port == 2) PUB.counter.CountDP3 = value;
|
||||
if (port == 3) PUB.counter.CountDP4 = value;
|
||||
PUB.counter.DateStr = DateTime.Now.ToShortDateString();
|
||||
if (port == 0) SETTING.Counter.CountDP1 = value;
|
||||
if (port == 1) SETTING.Counter.CountDP2 = value;
|
||||
if (port == 2) SETTING.Counter.CountDP3 = value;
|
||||
if (port == 3) SETTING.Counter.CountDP4 = value;
|
||||
SETTING.Counter.DateStr = DateTime.Now.ToShortDateString();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (port == 0) PUB.counter.CountDP1 += value;
|
||||
if (port == 1) PUB.counter.CountDP2 += value;
|
||||
if (port == 2) PUB.counter.CountDP3 += value;
|
||||
if (port == 3) PUB.counter.CountDP4 += value;
|
||||
if (port == 0) SETTING.Counter.CountDP1 += value;
|
||||
if (port == 1) SETTING.Counter.CountDP2 += value;
|
||||
if (port == 2) SETTING.Counter.CountDP3 += value;
|
||||
if (port == 3) SETTING.Counter.CountDP4 += value;
|
||||
}
|
||||
|
||||
|
||||
//각 포트별 수량은 차수별 작업이므로 차수가 변경되면 리셋됨
|
||||
//리셋되는 코드 필요함
|
||||
if (port == 0) PUB.counter.CountP0 += value;
|
||||
if (port == 1) PUB.counter.CountP1 += value;
|
||||
if (port == 2) PUB.counter.CountP2 += value;
|
||||
if (port == 3) PUB.counter.CountPrintR += value;
|
||||
if (port == 0) SETTING.Counter.CountP0 += value;
|
||||
if (port == 1) SETTING.Counter.CountP1 += value;
|
||||
if (port == 2) SETTING.Counter.CountP2 += value;
|
||||
if (port == 3) SETTING.Counter.CountPrintR += value;
|
||||
else
|
||||
{
|
||||
PUB.log.AddAT(string.Format("[{0}] 미지정 포트이므로 수량 증가 불가", seq));
|
||||
}
|
||||
|
||||
//Pub.log.AddI("수량정보가 저장 되었습니다");
|
||||
PUB.counter.Save();
|
||||
SETTING.Counter.Save();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user