Beispiel #1
0
        public static IEnumerable <VIEW_FW_GEO_NODE_CUST> ToListViewModel(IEnumerable <FW_GEO_NODE_CUST> list)
        {
            var listModel = new List <VIEW_FW_GEO_NODE_CUST>();

            foreach (FW_GEO_NODE_CUST item in list)
            {
                listModel.Add(VIEW_FW_GEO_NODE_CUST.ToViewModel(item));
            }
            return(listModel);
        }
Beispiel #2
0
        public static VIEW_FW_GEO_NODE_CUST ToViewModel(FW_GEO_NODE_CUST model)
        {
            VIEW_FW_GEO_NODE_CUST item = new VIEW_FW_GEO_NODE_CUST();

            item.TREE_ID      = model.TREE_ID;
            item.NODE_ID      = model.NODE_ID;
            item.CUST_CD      = model.CUST_CD;
            item.EFF_START_DT = model.EFF_START_DT;
            item.EFF_END_DT   = model.EFF_END_DT;
            item.LEVEL_NO     = model.LEVEL_NO;
            item.PNODE_ID     = model.PNODE_ID;
            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);
        }