コード例 #1
0
        public int Update(int subjectID, bool isUpdate, ref Int64 result)
        {
            int hitCount = 0;

            hitCount = ProcessChecker.GetResultValue(진행결과Dic, subjectID, isUpdate, ref result);
            return(hitCount);
        }
コード例 #2
0
        public int Update(int type, int subjectID, bool isUpdate, ref Int64 result)
        {
            int hitCount = 0;

            switch (type)
            {
            case 2:
            {
                hitCount = ProcessChecker.GetResultValue(업종별판매량Dic, subjectID, isUpdate, ref result);
            }
            break;

            case 3:
            {
                hitCount = ProcessChecker.GetResultValue(업종별매출액Dic, subjectID, isUpdate, ref result);
            }
            break;

            case 4:
            {
                hitCount = ProcessChecker.GetResultValue(음식별판매량Dic, subjectID, isUpdate, ref result);
            }
            break;

            case 5:
            {
                hitCount = ProcessChecker.GetResultValue(음식별매출액Dic, subjectID, isUpdate, ref result);
            }
            break;

            case 7:
            {
                hitCount = ProcessChecker.GetResultValue(업종별매장수Dic, subjectID, isUpdate, ref result);
            }
            break;

            case 11:
            {
                hitCount = ProcessChecker.GetResultValue(업종별음식보유수Dic, subjectID, isUpdate, ref result);
            }
            break;

            default:
            {
                hitCount = ProcessChecker.GetResultValue(진행결과Dic, subjectID, isUpdate, ref result);
            }
            break;
            }

            // 순이익 결과는 0 보다 작으면 안된다.
            if (subjectID == 5002 && result < 0)
            {
                result = 0;
            }

            return(hitCount);
        }