Ejemplo n.º 1
0
 public void UpdateRegion(RegionInfo region, string regionName)
 {
     Region fisObject = new Region();
     fisObject.region = region.Region;
     fisObject.Description = region.Description;
     fisObject.Editor = region.Editor;
     fisObject.Cdt = region.Cdt;
     fisObject.Udt = region.Udt;
     partRepository.UpdateRegion(fisObject, regionName);
 }
Ejemplo n.º 2
0
 public void AddRegion(RegionInfo region)
 {
     Region fisObject = new Region();
     fisObject.region = region.Region;
     fisObject.Description = region.Description;
     fisObject.Editor = region.Editor;
     fisObject.Cdt = region.Cdt;
     fisObject.Udt = region.Udt;
     partRepository.AddRegion(fisObject);
 }
Ejemplo n.º 3
0
        public IList<RegionInfo> GetRegionList()
        {
            IList<RegionInfo> regionList = new List<RegionInfo>();
            IList<Region> fisObjectList = partRepository.GetRegionList();
            if (fisObjectList != null)
            {
                foreach (Region temp in fisObjectList)
                {
                    RegionInfo region = new RegionInfo();
                    region.Region = temp.region;
                    region.Description = temp.Description;
                    region.Editor = temp.Editor;
                    region.Cdt = temp.Cdt;
                    region.Udt = temp.Udt;

                    regionList.Add(region);
                }
            }
            return regionList;
        }
Ejemplo n.º 4
0
        public IList<RegionInfo> GetRegionList(RegionInfo condition)
        {
            string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
            logger.DebugFormat("BEGIN: {0}()", methodName);
            try
            {
                IList<RegionInfo> ret = iMiscRepository.GetData<IMES.Infrastructure.Repository._Metas.Region, RegionInfo>(condition);
                return ret;
            }
            catch (Exception e)
            {
                logger.Error(e.Message, e);
                throw;
            }
            finally
            {
                logger.DebugFormat("END: {0}()", methodName);
            }


        }
Ejemplo n.º 5
0
 public void UpdateRegion(RegionInfo condition, RegionInfo item)
 {
     string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
     logger.DebugFormat("BEGIN: {0}()", methodName);
     try
     {
         iMiscRepository.UpdateData<IMES.Infrastructure.Repository._Metas.Region, RegionInfo>(condition, item);
     }
     catch (Exception e)
     {
         logger.Error(e.Message, e);
         throw;
     }
     finally
     {
         logger.DebugFormat("END: {0}()", methodName);
     }
 }