Пример #1
0
        public static VIEW_MST_COMPANY ToViewModel(MST_COMPANY model)
        {
            VIEW_MST_COMPANY item = new VIEW_MST_COMPANY();

            item.COMPANY_CD      = model.COMPANY_CD;
            item.COMPANY_NAME    = model.COMPANY_NAME;
            item.COMPANY_EMAIL   = model.COMPANY_EMAIL;
            item.PHONE           = model.PHONE;
            item.TELEPHONE       = model.TELEPHONE;
            item.COMPANY_SUBNAME = model.COMPANY_SUBNAME;
            item.LOGO            = model.LOGO;
            item.WEBSITE         = model.WEBSITE;
            item.ADDRESS         = model.ADDRESS;
            item.INDUSTRY        = model.INDUSTRY;
            item.COMPANY_SIZE    = model.COMPANY_SIZE;
            item.DEVELOPMENT     = model.DEVELOPMENT;
            item.INVESTMENT      = model.INVESTMENT;
            item.REMARK          = model.REMARK;
            item.DESCRIPTION     = model.DESCRIPTION;
            item.ISCHECK         = model.ISCHECK;
            item.BANNER_IMG      = model.BANNER_IMG;
            item.COMPANY_URL     = model.COMPANY_URL;
            item.FOOTER          = model.FOOTER;
            item.COMPANY_DESC    = model.COMPANY_DESC;
            item.VERSION         = model.VERSION;
            item.SYNCOPERATION   = model.SYNCOPERATION;
            item.SYNCVERSION     = model.SYNCVERSION;
            item.SYNCFLAG        = model.SYNCFLAG;
            return(item);
        }
Пример #2
0
        public static IEnumerable <VIEW_MST_COMPANY> ToListViewModel(IEnumerable <MST_COMPANY> list)
        {
            var listModel = new List <VIEW_MST_COMPANY>();

            foreach (MST_COMPANY item in list)
            {
                listModel.Add(VIEW_MST_COMPANY.ToViewModel(item));
            }
            return(listModel);
        }