Пример #1
0
        public static string Sua(MayKhoanBoGoc khoanBoGoc)
        {
            var khoanBoGocLogic = new MayKhoanBoGocLogic();
            var itemBDO         = new MayKhoanBoGocBDO();

            ChuyenDoiDTOThanhBDO(khoanBoGoc, itemBDO);
            return(khoanBoGocLogic.Sua(itemBDO));
        }
Пример #2
0
        public static string Them(MayKhoanBoGoc boiBiaCung)
        {
            var khoanBoGoclLogic = new MayKhoanBoGocLogic();
            var itemBDO          = new MayKhoanBoGocBDO();

            ChuyenDoiDTOThanhBDO(boiBiaCung, itemBDO);
            return(khoanBoGoclLogic.Them(itemBDO));
        }
Пример #3
0
        public GiaKhoanBoGoc(int soLuongBlock, MayKhoanBoGoc mayMoc,
                             int soLanKhoanBoTrenBlock, int tyLeMarkUpSales)
        {
            this.SoLuong = soLuongBlock;

            this.MayMoc = mayMoc;

            this.SoLanKhoanBoTrenBlock = soLanKhoanBoTrenBlock;

            this.TyLeMarkUp = tyLeMarkUpSales;
        }
Пример #4
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);
        }
Пример #5
0
 private static void ChuyenDoiDTOThanhBDO(MayKhoanBoGoc itemDTO, MayKhoanBoGocBDO itemBDO)
 {
     itemBDO.ID                = itemDTO.ID;
     itemBDO.Ten               = itemDTO.Ten;
     itemBDO.BHR               = itemDTO.BHR;
     itemBDO.TieuDe            = itemDTO.TieuDe;
     itemBDO.TocDoBlockGio     = itemDTO.TocDoBlockGio;
     itemBDO.PhiDungCuMoiBlock = itemDTO.PhiDungCuMoiBlock;
     itemBDO.ThoiGianChuanBi   = itemDTO.ThoiGianChuanBi;
     itemBDO.DayLoiNhuan       = itemDTO.DayLoiNhuan;
     itemBDO.DaySoLuong        = itemDTO.DaySoLuong;
     itemBDO.Ma_01             = itemDTO.Ma_01;
     itemBDO.DonViTinh         = itemDTO.DonViTinh;
     itemBDO.DaySoLuongNiemYet = itemDTO.DaySoLuongNiemYet;
     itemBDO.DienGiai          = itemDTO.DienGiai;
     itemBDO.ThuTu             = itemDTO.ThuTu;
 }