Пример #1
0
        private void PostLogOutput(CloseCallInfo c, int i)
        {
            string put = $"Close:\t{c.RequestNO}\t{HttpUtility.UrlDecode(c.RequestDate)}\t{HttpUtility.UrlDecode(c.ServiceDescription)}" +
                         $"\t{HttpUtility.UrlDecode(CallInfoTimeList[i].ServeTime1)}\t{HttpUtility.UrlDecode(CallInfoTimeList[i].ServeTime2)}";

            CSPLogger.Output(put);
        }
Пример #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;
            }
        }
Пример #3
0
        private void PostLogOutput(JobRequest job)
        {
            string put = $"Close:\t{HttpUtility.UrlDecode(job.RequestDate)}\t{job.RequestNO}";

            CSPLogger.Output(put);
        }