public CUStructure Get(TWMCUSTRUCTURE entity)
        {
            if (entity != null)
            {
                CUStructure obj = MapEntityToObject(entity);

                return(obj);
            }

            return(null);
        }
        public CUStructure MapEntityToObject(TWMCUSTRUCTURE entity)
        {
            CUStructure obj = new CUStructure();

            obj.CD_CU           = entity.CD_CU;
            obj.NO_MATL_ITEM    = entity.NO_MATL_ITEM;
            obj.PC_ALLOWANCE    = (decimal)entity.PC_ALLOWANCE;
            obj.QT_ITEM         = (decimal)entity.QT_ITEM;
            obj.CD_DRAWING_SEQ  = entity.CD_DRAWING_SEQ;
            obj.TS_LAST_CHANGED = entity.TS_LAST_CHANGED;

            obj.MaterialItem = null;
            if (entity.TWMMATLITEM != null)
            {
                obj.MaterialItem = new MaterialItemBl().Get(entity.TWMMATLITEM);
            }

            return(obj);
        }