Esempio n. 1
0
        public static VIEW_MST_CAR ToViewModel(MST_CAR model)
        {
            VIEW_MST_CAR item = new VIEW_MST_CAR();

            item.CAR_CD        = model.CAR_CD;
            item.UserId        = model.UserId;
            item.CAR_NUM       = model.CAR_NUM;
            item.CAR_BRAND     = model.CAR_BRAND;
            item.CAR_CATEGORY  = model.CAR_CATEGORY;
            item.CAR_COLOR     = model.CAR_COLOR;
            item.CAR_REMARK    = model.CAR_REMARK;
            item.AddTime       = model.AddTime;
            item.remark1       = model.remark1;
            item.remark2       = model.remark2;
            item.remark3       = model.remark3;
            item.flat1         = model.flat1;
            item.flat2         = model.flat2;
            item.remark4       = model.remark4;
            item.remark5       = model.remark5;
            item.remark6       = model.remark6;
            item.flat7         = model.flat7;
            item.flat8         = model.flat8;
            item.RegTim1       = model.RegTim1;
            item.RegTim2       = model.RegTim2;
            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;
            item.CAR_DATE      = model.CAR_DATE;
            return(item);
        }
Esempio n. 2
0
        public static IEnumerable <VIEW_MST_CAR> ToListViewModel(IEnumerable <MST_CAR> list)
        {
            var listModel = new List <VIEW_MST_CAR>();

            foreach (MST_CAR item in list)
            {
                listModel.Add(VIEW_MST_CAR.ToViewModel(item));
            }
            return(listModel);
        }