コード例 #1
0
        public void Run()
        {
            CSPCallInfoFromExcel csp      = new CSPCallInfoFromExcel();
            CallInfoList         listInfo = csp.GetCallList(CSPLoginSet.ExcelFile);
            CSPRandom            r        = new CSPRandom(listInfo.Count());

            for (int i = 0; i < listInfo.Count(); i++)
            {
                int j = r.Next();
                Console.WriteLine(listInfo.ContactPerson.ElementAt(j));
            }
        }
コード例 #2
0
        public void OnStart()
        {
            try
            {
                CSPLoginSet.CheckLoginSet();

                CSPCallLogin login  = new CSPCallLogin(CSPLoginSet.LoginId, CSPLoginSet.Password);
                string       cookie = login.Login();

                CSPCallInfoFromExcel excel       = new CSPCallInfoFromExcel();
                CallInfoList         addcalllist = excel.GetCallList(CSPLoginSet.ExcelFile);

                CSPCallPost post = new CSPCallPost()
                {
                    StartDate       = CSPLoginSet.StartDate,
                    EndDate         = CSPLoginSet.EndDate,
                    DayCalls        = CSPLoginSet.DayCalls,
                    AddCallInfoList = addcalllist
                };

                DelLogFile();

                post.AddCalls(cookie);
                CSPLogger.Output("\r\n= = = = = = = = = = = = =\r\n");


                CSPCallClose callclose = new CSPCallClose()
                {
                    CloseCallList    = post.CloseCallInfoList,
                    CallInfoTimeList = addcalllist.TimeInfo
                };

                callclose.CloseCall(cookie);
            }
            catch (Exception)
            {
                throw;
            }
        }