Ejemplo n.º 1
0
        private ReworkReleaseTypeMaintainInfo convertToMaintainInfoFromObj(ReworkReleaseType temp)
        {
            ReworkReleaseTypeMaintainInfo reworkReleaseType = new ReworkReleaseTypeMaintainInfo();

            reworkReleaseType.ReleaseType = temp.ReleaseType;
            reworkReleaseType.Process = temp.Process;
            reworkReleaseType.Cdt = temp.Cdt;

            return reworkReleaseType;
        }
Ejemplo n.º 2
0
        public void addReworkReleaseType(IList<string> arrCheckedReworkReleaseType, ReworkReleaseTypeMaintainInfo reworkReleaseTypeProcessInfo)
        {
            try
            {

                IUnitOfWork work = new UnitOfWork();

                processRepository.DeleteReworkReleaseTypeByProcessDefered(work, reworkReleaseTypeProcessInfo.Process);

                for (int i = 0; i < arrCheckedReworkReleaseType.Count(); i++)
                {
                    ReworkReleaseType reworkReleaseTypeObj = new ReworkReleaseType();

                    reworkReleaseTypeObj.ReleaseType = arrCheckedReworkReleaseType[i];

                    reworkReleaseTypeObj.Process = reworkReleaseTypeProcessInfo.Process;

                    processRepository.AddReworkReleaseTypeDefered(work, reworkReleaseTypeObj);

                }

                work.Commit();

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