Beispiel #1
0
        public static string Sua(MayBoiNhieuLop boiBiaCung)
        {
            var boiNhieuLopLogic = new MayBoiNhieuLopLogic();
            var itemBDO          = new MayBoiNhieuLopBDO();

            ChuyenDoiDTOThanhBDO(boiBiaCung, itemBDO);
            return(boiNhieuLopLogic.Sua(itemBDO));
        }
Beispiel #2
0
        public static MayBoiNhieuLop DocTheoId(int iD)
        {
            var            boiNhieuLopLogic = new MayBoiNhieuLopLogic();;
            MayBoiNhieuLop dongCuon         = new MayBoiNhieuLop();

            try
            {
                var dongCuonBDO = boiNhieuLopLogic.DocTheoId(iD);
                //Chuyen
                ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon);
            }
            catch
            {
            }
            return(dongCuon);
        }
Beispiel #3
0
        //Statics
        public static List <MayBoiNhieuLop> DocTatCa()
        {
            var boiNhieuLopLogic = new MayBoiNhieuLopLogic();
            var nguon            = boiNhieuLopLogic.DocTatCa().Select(x => new MayBoiNhieuLop
            {
                ID                = x.ID,
                Ten               = x.Ten,
                DienGiai          = x.DienGiai,
                BHR               = x.BHR,
                TocDoTamGio       = x.TocDoTamGio,
                PhiKeoMetVuong    = x.PhiKeoMetVuong,
                ThoiGianChuanBi   = x.ThoiGianChuanBi,
                DayLoiNhuan       = x.DayLoiNhuan,
                DaySoLuong        = x.DaySoLuong,
                Ma_01             = x.Ma_01,
                DaySoLuongNiemYet = x.DaySoLuongNiemYet,
                DonViTinh         = x.DonViTinh,
                ThuTu             = x.ThuTu
            }).OrderBy(x => x.ThuTu).ToList();

            return(nguon);
        }