Esempio n. 1
0
        public IList<ModelProcessMaintainInfo> getModelProcessListByModel(string model)
        {
            IList<ModelProcessMaintainInfo> modelProcessList = new List<ModelProcessMaintainInfo>();
            try
            {
                IList<ModelProcess> tmpModelProcessList = processRepository.GetModelProcessListByModel(model);

                foreach (ModelProcess temp in tmpModelProcessList)
                {
                    ModelProcessMaintainInfo modelProcess = new ModelProcessMaintainInfo();

                    modelProcess = convertToMaintainInfoFromObj(temp);

                    modelProcessList.Add(modelProcess);
                }

            }
            catch (FisException e)
            {
                logger.Error(e.mErrmsg);
                throw e;
            }
            catch (Exception e)
            {
                logger.Error(e.Message);
                throw;
            }

            return modelProcessList;
        }
Esempio n. 2
0
        private ModelProcessMaintainInfo convertToMaintainInfoFromObj(ModelProcess temp)
        {
            ModelProcessMaintainInfo modelProcess = new ModelProcessMaintainInfo();

            modelProcess.Model = temp.Model;
            modelProcess.Process = temp.Process;
            modelProcess.Id = temp.ID;
            //modelProcess.RuleType = temp.RuleType;
            modelProcess.Editor = temp.Editor;
            modelProcess.Cdt = temp.Cdt;
            modelProcess.Udt = temp.Udt;

            return modelProcess;
        }