Exemplo n.º 1
0
        public void RunOnce(string id)
        {
            var data      = GetData(id);
            var paramList = new Dictionary <string, object>()
            {
                { "Entity", data },
                { "User", UserIdentityUtil.GetAdmin() }
            };

            JobHelpers.RunOnceNow(data.name, data.robotidName, paramList);
            var jobState = JobHelpers.GetJobStatus(data.name, data.robotidName).ToSelectOption();

            data.job_state     = jobState.Value.ToString();
            data.job_stateName = jobState.Name;
            UpdateData(data);
        }