예제 #1
0
        public static IEnumerable <VIEW_FW_GEO_NODE> ToListViewModel(IEnumerable <FW_GEO_NODE> list)
        {
            var listModel = new List <VIEW_FW_GEO_NODE>();

            foreach (FW_GEO_NODE item in list)
            {
                listModel.Add(VIEW_FW_GEO_NODE.ToViewModel(item));
            }
            return(listModel);
        }
예제 #2
0
        public static VIEW_FW_GEO_NODE ToViewModel(FW_GEO_NODE model)
        {
            VIEW_FW_GEO_NODE item = new VIEW_FW_GEO_NODE();

            item.TREE_ID   = model.TREE_ID;
            item.NODE_ID   = model.NODE_ID;
            item.NODE_NAME = model.NODE_NAME;
            item.LEVEL_NO  = model.LEVEL_NO;
            item.PNODE_ID  = model.PNODE_ID;
            item.NODE_DESC = model.NODE_DESC;
            item.CREATE_DT = model.CREATE_DT;
            item.CREATE_BY = model.CREATE_BY;
            item.MODIFY_DT = model.MODIFY_DT;
            item.MODIFY_BY = model.MODIFY_BY;
            item.IND_CUST  = model.IND_CUST;
            item.IND_ROUTE = model.IND_ROUTE;
            item.START_DT  = model.START_DT;
            item.END_DT    = model.END_DT;
            return(item);
        }