示例#1
0
        public static SelectListItem ToEntity(VIEW_SYS_REF sysref)
        {
            SelectListItem item = new SelectListItem();

            item.Value = sysref.REF_PARAM;
            item.Text  = sysref.REF_VALUE;
            return(item);
        }
示例#2
0
        public static IEnumerable <VIEW_SYS_REF> ToListViewModel(IEnumerable <SYS_REF> list)
        {
            var listModel = new List <VIEW_SYS_REF>();

            foreach (SYS_REF item in list)
            {
                listModel.Add(VIEW_SYS_REF.ToViewModel(item));
            }
            return(listModel);
        }
示例#3
0
        public static VIEW_SYS_REF ToViewModel(SYS_REF model)
        {
            VIEW_SYS_REF item = new VIEW_SYS_REF();

            item.REF_TYPE  = model.REF_TYPE;
            item.REF_PARAM = model.REF_PARAM;
            item.REF_VALUE = model.REF_VALUE;
            item.REF_SEQ   = model.REF_SEQ;
            return(item);
        }
示例#4
0
        public static SYS_REF ToEntity(VIEW_SYS_REF model)
        {
            SYS_REF item = new SYS_REF();

            item.REF_TYPE  = model.REF_TYPE;
            item.REF_PARAM = model.REF_PARAM;
            item.REF_VALUE = model.REF_VALUE;
            item.REF_SEQ   = model.REF_SEQ;
            return(item);
        }