예제 #1
0
        public CallModel ReturnCancellationResult(FilterUser filterUser)
        {
            CallData callData = new CallData();

            var where = "";
            if (filterUser.check_user == true)
            {
                where = " (" + dateFromTo() + " and executor_id=" + filterUser.user_id + ") or ( status=4 ) ";
            }
            else
            {
                where = "" + dateFromTo() + " and executor_id=" + filterUser.user_id;
            }
            return(callData.ReturnedCancellation(where));
        }
예제 #2
0
        public CallModel ReturnDamageResult(FilterUser filterUser)
        {
            CallData callData = new CallData();

            var where = "";
            if (filterUser.check_user == true)
            {
                where = " (" + dateFromTo() + " and executor_id=" + filterUser.user_id + ") or (change_date='2222-12-12 00:00:00.000') ";
            }
            else
            {
                where = "" + dateFromTo() + " and executor_id=" + filterUser.user_id;
            }
            return(callData.ReturnedDamage(where));
        }