Count OK/NG
public class CountBean
{
public CountBean()
{
OK = 0;
NG = 0;
Null = 0;
Update = false;
}
public int OK { get; set; }
public int NG { get; set; }
public int Null { get; set; }
public bool Update { get; set; }
public void AddOK() { OK++; Update = true; }
public void AddNG() { NG++; Update = true; }
public void AddNull() { Null++; Update = true; }
public string Log()
{
return String.Format("OK:{0}、NG:{1}、Null:{2}", OK.ToString(), NG.ToString(), Null.ToString());
}
}
留言
張貼留言