Ejemplo n.º 1
0
        public static string Sua(MayKhoanBoGoc khoanBoGoc)
        {
            var khoanBoGocLogic = new MayKhoanBoGocLogic();
            var itemBDO         = new MayKhoanBoGocBDO();

            ChuyenDoiDTOThanhBDO(khoanBoGoc, itemBDO);
            return(khoanBoGocLogic.Sua(itemBDO));
        }
Ejemplo n.º 2
0
        public static string Them(MayKhoanBoGoc boiBiaCung)
        {
            var khoanBoGoclLogic = new MayKhoanBoGocLogic();
            var itemBDO          = new MayKhoanBoGocBDO();

            ChuyenDoiDTOThanhBDO(boiBiaCung, itemBDO);
            return(khoanBoGoclLogic.Them(itemBDO));
        }
Ejemplo n.º 3
0
        public static MayKhoanBoGoc DocTheoId(int iD)
        {
            var           khoanBoGocLogic = new MayKhoanBoGocLogic();;
            MayKhoanBoGoc dongCuon        = new MayKhoanBoGoc();

            try
            {
                var dongCuonBDO = khoanBoGocLogic.DocTheoId(iD);
                //Chuyen
                ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon);
            }
            catch
            {
            }
            return(dongCuon);
        }
Ejemplo n.º 4
0
        //Statics
        public static List <MayKhoanBoGoc> DocTatCa()
        {
            var khoanBoGocLogic = new MayKhoanBoGocLogic();
            var nguon           = khoanBoGocLogic.DocTatCa().Select(x => new MayKhoanBoGoc
            {
                ID                = x.ID,
                Ten               = x.Ten,
                DienGiai          = x.DienGiai,
                TieuDe            = x.TieuDe,
                BHR               = x.BHR,
                TocDoBlockGio     = x.TocDoBlockGio,
                PhiDungCuMoiBlock = x.PhiDungCuMoiBlock,
                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);
        }