Example #1
0
        public DataSet DownloadCallAbandonedHistory(String connection, int accountId, string Date, int CallDirection, int CallType, int CallEndStatus, int agentId, int skillGroupId, string fromDate, string toDate, int PageSize, int PageNumber, int StudioId, int sessionAgentId, int roleId, int excelDownload)
        {
            DataSet ds = new DataSet();

            try
            {
                Press3.DataAccessLayer.Calls callsObject = new Press3.DataAccessLayer.Calls(connection);
                ds = callsObject.GetAbandonedcalldetails(accountId, Date, CallDirection, CallType, CallEndStatus, agentId, skillGroupId, fromDate, toDate, PageSize, PageNumber, StudioId, sessionAgentId, roleId, excelDownload);
            }
            catch (Exception ex)
            {
                helper.CreateProperty("RetMessage", ex.ToString());
                Logger.Error("Exception In AgentLogout " + ex.ToString());
            }
            return(ds);
        }
Example #2
0
 public JObject GetAbandonedcalldetails(String connection, int accountId, string Date, int CallDirection, int CallType, int CallEndStatus, int agentId, int skillGroupId, string fromDate, string toDate, int PageSize, int PageNumber, int StudioId, int sessionAgentId, int roleId)
 {
     try
     {
         Press3.DataAccessLayer.Calls callsObject = new Press3.DataAccessLayer.Calls(connection);
         DataSet ds = callsObject.GetAbandonedcalldetails(accountId, Date, CallDirection, CallType, CallEndStatus, agentId, skillGroupId, fromDate, toDate, PageSize, PageNumber, StudioId, sessionAgentId, roleId, 0);
         if (ds == null)
         {
             helper.CreateProperty(UDC.Label.MESSAGE, "No data returned from database");
             helper.CreateProperty(UDC.Label.SUCCESS, false);
         }
         else
         {
             helper.ParseDataSet(ds);
         }
     }
     catch (Exception ex)
     {
         helper.CreateProperty("RetMessage", ex.ToString());
         Logger.Error("Exception In AgentLogout " + ex.ToString());
     }
     return(helper.GetResponse());
 }