Beispiel #1
0
        public void GetNextLeadList(bool isFirstTime)
        {
            try
            {
                //if (!isFirstTime)
                //{
                //    timer4Sync_Elapsed(null, null);
                //}

                objLeadCollection = ClsLeadCollection.GetAll(userid, out CampaingID, clsDataService);
                if (objLeadCollection != null && objLeadCollection.Count > 0)
                {
                    InsertLeadsIntoTable();
                    if (chManagerLocalCampId != CampaingID)
                    {
                        chManagerLocalCampId = CampaingID;
                        clsDataService.fncInsertDispositionTable(CampaingID);


                        //Delete and Fill up Disposition Table and
                    }
                }
                timer4Sync_Elapsed(null, null);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GetNextLeadList()", "ClsChannelManager.cs");
            }
        }
Beispiel #2
0
 public static ClsLeadCollection GetAll(long userid, out long campaingID, ClsUserDataService clsDataService)//,int totalRecordToFetch)
 {
     try
     {
         ClsLeadCollection obj = new ClsLeadCollection();
         //obj.MapObjects(new ClsUserDataService().GetLeadsList(userid, out campaingID));//,totalRecordToFetch));
         //System.Data.DataSet dt= clsDataService.GetLeadsList(userid,out campaingID);
         //obj.MapObjects(dt.Tables[0]);
         //obj.MapObjects(dt.Tables[1]);
         obj.MapObjects(clsDataService.GetLeadsList(userid, out campaingID));
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ClsLeadCollection()", "ClsLeadCollection.cs");
         //System.Windows.Forms.MessageBox.Show("Cant Connect to Database " + ex.Message);
         campaingID = 0;
         return(null);
     }
 }