示例#1
0
        public static IEnumerable <VIEW_MST_PRD_CATE> ToListViewModel(IEnumerable <MST_PRD_CATE> list)
        {
            var listModel = new List <VIEW_MST_PRD_CATE>();

            foreach (MST_PRD_CATE item in list)
            {
                listModel.Add(VIEW_MST_PRD_CATE.ToViewModel(item));
            }
            return(listModel);
        }
示例#2
0
        public static VIEW_MST_PRD_CATE ToViewModel(MST_PRD_CATE model)
        {
            VIEW_MST_PRD_CATE item = new VIEW_MST_PRD_CATE();

            item.CATE_ID       = model.CATE_ID;
            item.CATEGEOR_NAME = model.CATEGEOR_NAME;
            item.PARENT_ID     = model.PARENT_ID;
            item.ISSHOW        = model.ISSHOW;
            item.CATE_MAPS     = model.CATE_MAPS;
            item.CATE_URL      = model.CATE_URL;
            item.ACTIVE        = model.ACTIVE;
            item.ISLEAVES      = model.ISLEAVES;
            item.VERSION       = model.VERSION;
            item.SYNCOPERATION = model.SYNCOPERATION;
            item.SYNCVERSION   = model.SYNCVERSION;
            item.SYNCFLAG      = model.SYNCFLAG;
            item.CREATE_DT     = model.CREATE_DT;
            item.CREATE_BY     = model.CREATE_BY;
            item.MODIFY_DT     = model.MODIFY_DT;
            item.MODIFY_BY     = model.MODIFY_BY;
            return(item);
        }