Esempio n. 1
0
        public DataSet DownloadOutBoundCallHistory(String connection, UDC.CallHistoryDetails callHistoryDetails)
        {
            DataSet ds = new DataSet();

            try
            {
                Press3.DataAccessLayer.Calls callsObject = new Press3.DataAccessLayer.Calls(connection);
                ds = callsObject.GetOutBoundCallHistory(callHistoryDetails);
            }
            catch (Exception ex)
            {
                helper.CreateProperty("RetMessage", ex.ToString());
                Logger.Error("Exception In AgentLogout " + ex.ToString());
            }
            return(ds);
        }
Esempio n. 2
0
 public JObject GetCallHistory(String connection, UDC.CallHistoryDetails callHistoryDetails)
 {
     try
     {
         Press3.DataAccessLayer.Calls callsObject = new Press3.DataAccessLayer.Calls(connection);
         DataSet ds = callsObject.GetCallHistory(callHistoryDetails);
         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());
 }