Beispiel #1
0
        private ReworkMaintainInfo convertToMaintainInfoFromObj(Rework temp)
        {
            ReworkMaintainInfo rework = new ReworkMaintainInfo();

            rework.ReworkCode = temp.ReworkCode;
            rework.Status = temp.Status;
            rework.Editor = temp.Editor;
            rework.Cdt = temp.Cdt;
            rework.Udt = temp.Udt;

            return rework;
        }
Beispiel #2
0
        public IList<ReworkMaintainInfo> getReworkList()
        {
            IList<ReworkMaintainInfo> reworkList = new List<ReworkMaintainInfo>();
            try
            {
                IList<Rework> tmpReworkList = miscRepository.GetReworkList();

                foreach (Rework temp in tmpReworkList)
                {
                    ReworkMaintainInfo rework = new ReworkMaintainInfo();

                    rework = convertToMaintainInfoFromObj(temp);

                    reworkList.Add(rework);
                }

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

            return reworkList;
        }