Exemple #1
0
        public static string Sua(CatDecal catDecal)
        {
            var catDecalLogic = new CatDecalLogic();
            var itemBDO       = new CatDecalBDO();

            ChuyenDoiDTOThanhBDO(catDecal, itemBDO);
            return(catDecalLogic.Sua(itemBDO));
        }
Exemple #2
0
        public GiaCatDecal(int soLuong, CatDecal catDecal,
                           float conRong, float conCao, int mucLoiNhuan)
        {
            this.SoLuong     = soLuong;
            this.ConRong     = conRong;
            this.ConCao      = conCao;
            this.MayCatDecal = catDecal;

            this.TyLeMarkUp = mucLoiNhuan;
        }
Exemple #3
0
        public static CatDecal DocTheoId(int iD)
        {
            var      catDecalLogic = new CatDecalLogic();;
            CatDecal dongCuon      = new CatDecal();

            try
            {
                var dongCuonBDO = catDecalLogic.DocTheoId(iD);
                //Chuyen
                ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon);
            }
            catch
            {
            }
            return(dongCuon);
        }
Exemple #4
0
 private static void ChuyenDoiDTOThanhBDO(CatDecal catDecalDTO, CatDecalBDO catDecalBDO)
 {
     catDecalBDO.ID                = catDecalDTO.ID;
     catDecalBDO.Ten               = catDecalDTO.Ten;
     catDecalBDO.BHR               = catDecalDTO.BHR;
     catDecalBDO.TocDoMetGio       = catDecalDTO.TocDoMetGio;
     catDecalBDO.PhiDao1000Met     = catDecalDTO.PhiDao1000Met;
     catDecalBDO.ThoiGianChuanBi   = catDecalDTO.ThoiGianChuanBi;
     catDecalBDO.DayLoiNhuan       = catDecalDTO.DayLoiNhuan;
     catDecalBDO.DaySoLuong        = catDecalDTO.DaySoLuong;
     catDecalBDO.Ma_01             = catDecalDTO.Ma_01;
     catDecalBDO.DonViTinh         = catDecalDTO.DonViTinh;
     catDecalBDO.DaySoLuongNiemYet = catDecalDTO.DaySoLuongNiemYet;
     catDecalBDO.GhiChu            = catDecalDTO.GhiChu;
     catDecalBDO.ThuTu             = catDecalDTO.ThuTu;
 }