示例#1
0
        private void GetEmployees(out FileInfo fileInfo, out List <Employee> employees)
        {
            fileInfo = new FileInfo(@"Model\Employee.xlsx");
            IDeserializer <Employees> deserializer = DataFactory.Instance.GetDeserializer <Employees>(@"Model\employees.xml");

            employees = deserializer.GetEntity().Employee;
        }
示例#2
0
        public void Run(Hashtable hashtable)
        {
            _hashtable = hashtable;
            string filePath = ApplicationSettings.Instance.FileSettings.RunnerPath;
            IDeserializer <RunnerEntity> deserializer = DataFactory.Instance.GetDeserializer <RunnerEntity>(filePath);
            RunnerEntity runner = deserializer.GetEntity();

            if (IsSingleProcess)
            {
                RunSingleProcess();
            }
            else
            {
                RunMultiProcesses();
            }
        }
示例#3
0
        public bool IsValid(Hashtable hashtable)
        {
            bool isValid = true;

            _hashtable = hashtable;
            string filePath = ApplicationSettings.Instance.FileSettings.RunnerPath;
            IDeserializer <RunnerEntity> deserializer = DataFactory.Instance.GetDeserializer <RunnerEntity>(filePath);
            RunnerEntity runner = deserializer.GetEntity();

            if (IsSingleProcess)
            {
                isValid = RegisterSingleProcess(runner);
            }
            else
            {
                isValid = RegisterMultiProcesses(runner);
            }
            return(isValid);
        }