Esempio n. 1
0
        public ClsChannelManager()
        {
            for (int i = 0; i < 2; i++)
            {
                _DiallerChannel.Add(new ClsChannel());
                _DiallerChannel[_DiallerChannel.Count - 1].ChannelID = _DiallerChannel.Count.ToString();
            }
            clsDataService = new DataAccess.ClsUserDataService();
            CheckLocalDB();
            timer4Sync          = new System.Timers.Timer(10000);
            timer4Sync.Elapsed += new System.Timers.ElapsedEventHandler(timer4Sync_Elapsed);

            userid        = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
            CurrentUserID = userid;
            GetNextLeadList(true);
        }
Esempio n. 2
0
        public static ClsLead GetByGroupID(int ID)
        {
            try
            {
                ClsLead obj = new ClsLead();
                DataSet ds  = new DataAccess.ClsUserDataService().User_GetByID(ID);

                if (!obj.MapData(ds.Tables[0]))
                {
                    obj = null;
                }
                return(obj);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GetByGroupID()", "ClsLead.cs");
                return(null);
            }
        }
Esempio n. 3
0
        public ClsChannelManager()
        {
            try
            {
                clsDataService = new DataAccess.ClsUserDataService();
                // Initialize Local DB........
                CheckLocalDB();
                timer4Sync          = new System.Timers.Timer(100000);
                timer4Sync.Elapsed += new System.Timers.ElapsedEventHandler(timer4Sync_Elapsed);

                // End DB


                // VMuktiAPI.VMuktiInfo.CurrentPeer.ID = 2;
                userid = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
                //VMuktiAPI.VMuktiInfo.MainConnectionString = "Data Source=210.211.254.132\\SqlExpress;Initial Catalog=VMukti;User ID=sa;PassWord=mahavir;";

                ///
                CurrentUserID = userid;
                channel1      = new ClsChannel();
                //objLeadCollection = ClsLeadCollection.GetAll(userid, out CampaingID,clsDataService);
                //if (objLeadCollection != null && objLeadCollection.Count > 0)
                //{
                //    InsertLeadsIntoTable();
                //    clsDataService.SynchronizeWithServer();
                //}
                GetNextLeadList(true);

                //if (CampaingID == 0 )
                //{
                //    System.Windows.Forms.MessageBox.Show("No Campaing available");
                //}
                //else if (objLeadCollection == null)
                //{
                //    System.Windows.Forms.MessageBox.Show("No Fresh Leads available");
                //}
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "ClsChannelManager()", "ClsChannelManager.cs");
            }
        }
Esempio n. 4
0
        public static ClsLead GetByGroupID(int ID)
        {
            try
            {
                ClsLead obj = new ClsLead();
                DataSet ds = new DataAccess.ClsUserDataService().User_GetByID(ID);

                if (!obj.MapData(ds.Tables[0])) obj = null;
                return obj;
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GetByGroupID()", "ClsLead.cs");
                return null;

            }
        }
        public ClsChannelManager()
        {
            for (int i = 0; i < 2; i++)
            {
                _DiallerChannel.Add(new ClsChannel());
                _DiallerChannel[_DiallerChannel.Count - 1].ChannelID = _DiallerChannel.Count.ToString();
            }
            clsDataService = new DataAccess.ClsUserDataService();
            CheckLocalDB();
            timer4Sync = new System.Timers.Timer(10000);
            timer4Sync.Elapsed += new System.Timers.ElapsedEventHandler(timer4Sync_Elapsed);

            userid = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
            CurrentUserID = userid;
            GetNextLeadList(true);
        }