コード例 #1
0
        public List <CallRecord> GetAllRecordsWithPending(GetAllRecordData GARD)
        {
            List <CallRecord> objCallRecord = new List <CallRecord>();
            DateTime          call_date     = new DateTime();
            string            appname       = HttpContext.Current.Request["appname"];
            string            use_review    = GARD.use_review;

            if (GARD.use_review != "")
            {
                call_date = Convert.ToDateTime(GARD.call_date);
            }
            bool rev_date = false;

            if (use_review == null)
            {
                rev_date = false;
            }
            switch (use_review)
            {
            case "1":
            case "true":
            case "True":
            {
                rev_date = true;
                break;
            }
            }
            try
            {
                objCallRecord = objCallCriteriaAPI.GetAllRecordsWithPending(call_date, rev_date, appname, use_review);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(objCallRecord);
        }
コード例 #2
0
        public CallRecordResponseData GetAllRecords(GetAllRecordData GARD)
        {
            CallRecordResponseData crrd = new CallRecordResponseData();

            string call_date = GARD.call_date;
            string appname   = HttpContext.Current.Request["appname"];
            //string appname = "edufficient";
            string            use_review = GARD.use_review;
            List <CallRecord> cr         = new List <CallRecord>();
            bool rev_date = false;

            if (use_review == null)
            {
                rev_date = false;
            }
            switch (use_review)
            {
            case "1":
            case "true":
            case "True":
            {
                rev_date = true;
                break;
            }
            }
            try
            {
                crrd.CallRecords = new List <CallRecord>();
                crrd.CallRecords = objCCInternalLayer.GetCallRecord(call_date, rev_date, appname, use_review);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(crrd);
        }