public virtual void Modify(ref ValidationErrors errors, Apps.Models.SCV.FILTER.FILTER_ORDER_BY_MODEL model, params string[] updateProperties)
        {
            Apps.Models.FILTER_ORDER_BY entity = m_Rep.GetById(model.SEQUENCE);
            if (entity == null)
            {
                errors.Add(Resource.Disable);
                return;
            }
            if (updateProperties.Count() <= 0)
            {
                entity.SEQUENCE        = model.SEQUENCE;
                entity.RECORD_TYPE     = model.RECORD_TYPE;
                entity.FILTER_NAME     = model.FILTER_NAME;
                entity.ATTRIBUTE       = model.ATTRIBUTE;
                entity.ASC_DESC        = model.ASC_DESC;
                entity.USER_STAMP      = model.USER_STAMP;
                entity.DATE_TIME_STAMP = model.DATE_TIME_STAMP;
                entity.CREATE_BREAK    = model.CREATE_BREAK;
            }
            else
            {
                Type type  = typeof(Apps.Models.SCV.FILTER.FILTER_ORDER_BY_MODEL);
                Type typeE = typeof(Apps.Models.FILTER_ORDER_BY);
                foreach (var item in updateProperties)
                {
                    System.Reflection.PropertyInfo pi  = type.GetProperty(item);
                    System.Reflection.PropertyInfo piE = typeE.GetProperty(item);
                    piE.SetValue(entity, pi.GetValue(model), null);
                }
            }


            m_Rep.Modify(entity, updateProperties);
        }
        public virtual void Create(ref ValidationErrors errors, Apps.Models.SCV.FILTER.FILTER_ORDER_BY_MODEL model)
        {
            Apps.Models.FILTER_ORDER_BY entity = m_Rep.GetById(model.SEQUENCE);
            if (entity != null)
            {
                errors.Add(Resource.PrimaryRepeat);
                return;
            }
            entity                 = new Apps.Models.FILTER_ORDER_BY();
            entity.SEQUENCE        = model.SEQUENCE;
            entity.RECORD_TYPE     = model.RECORD_TYPE;
            entity.FILTER_NAME     = model.FILTER_NAME;
            entity.ATTRIBUTE       = model.ATTRIBUTE;
            entity.ASC_DESC        = model.ASC_DESC;
            entity.USER_STAMP      = model.USER_STAMP;
            entity.DATE_TIME_STAMP = model.DATE_TIME_STAMP;
            entity.CREATE_BREAK    = model.CREATE_BREAK;

            m_Rep.Create(entity);
        }
        public virtual Apps.Models.SCV.FILTER.FILTER_ORDER_BY_MODEL GetById(string id)
        {
            Apps.Models.FILTER_ORDER_BY entity = m_Rep.GetById(id);
            if (entity != null)
            {
                //FILTER_ORDER_BY entity = m_Rep.GetById(id);
                Apps.Models.SCV.FILTER.FILTER_ORDER_BY_MODEL model = new Apps.Models.SCV.FILTER.FILTER_ORDER_BY_MODEL();
                model.SEQUENCE        = entity.SEQUENCE;
                model.RECORD_TYPE     = entity.RECORD_TYPE;
                model.FILTER_NAME     = entity.FILTER_NAME;
                model.ATTRIBUTE       = entity.ATTRIBUTE;
                model.ASC_DESC        = entity.ASC_DESC;
                model.USER_STAMP      = entity.USER_STAMP;
                model.DATE_TIME_STAMP = entity.DATE_TIME_STAMP;
                model.CREATE_BREAK    = entity.CREATE_BREAK;

                return(model);
            }
            else
            {
                return(null);
            }
        }