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

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

            item.Id             = model.Id;
            item.orderNum       = model.orderNum;
            item.ThingNum       = model.ThingNum;
            item.transaction_id = model.transaction_id;
            item.trade_type     = model.trade_type;
            item.total_fee      = model.total_fee;
            item.yunPrice       = model.yunPrice;
            item.fenxiaoId      = model.fenxiaoId;
            item.UserId         = model.UserId;
            item.userOpenId     = model.userOpenId;
            item.userName       = model.userName;
            item.userSex        = model.userSex;
            item.UserTel        = model.UserTel;
            item.UserAddress    = model.UserAddress;
            item.UserPostNum    = model.UserPostNum;
            item.ispay          = model.ispay;
            item.orderTime      = model.orderTime;
            item.payTime        = model.payTime;
            item.sendTime       = model.sendTime;
            item.GetTime        = model.GetTime;
            item.tuiHuoTime     = model.tuiHuoTime;
            item.kdName         = model.kdName;
            item.kdNum          = model.kdNum;
            item.kdMailNum      = model.kdMailNum;
            item.years          = model.years;
            item.months         = model.months;
            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.ssh_status     = model.ssh_status;
            item.VERSION        = model.VERSION;
            item.SYNCOPERATION  = model.SYNCOPERATION;
            item.SYNCVERSION    = model.SYNCVERSION;
            item.SYNCFLAG       = model.SYNCFLAG;
            return(item);
        }