Example #1
0
        public static string Sua(LoXoDongCuon item)
        {
            var giayLogic = new LoXoDongCuonLogic();
            var itemBDO   = new LoXoDongCuonBDO();

            ChuyenDoiMauTinDTOThanhBDO(item, itemBDO);
            return(giayLogic.Sua(itemBDO));
        }
Example #2
0
        public GiaDongCuonLoXo(int soLuong, float gayRong,
                               DongCuonLoXo mayDongLoXo, LoXoDongCuon loXo, int tyLeMarkUpSales)
        {
            this.SoLuong = soLuong;
            this.GayRong = gayRong;

            this.DongCuonLX = mayDongLoXo;
            this.LoXo       = loXo;
            this.TyLeMarkUp = tyLeMarkUpSales;
        }
Example #3
0
        private static void ChuyenDoiMauTinDTOThanhBDO(LoXoDongCuon nhuEpKim, LoXoDongCuonBDO nhuEpKimBDO)
        {
            nhuEpKimBDO.ID            = nhuEpKim.ID;
            nhuEpKimBDO.TenVongXoan   = nhuEpKim.TenVongXoan;
            nhuEpKimBDO.KichCoBuoc    = nhuEpKim.KichCoBuoc;
            nhuEpKimBDO.MauSac        = nhuEpKim.MauSac;
            nhuEpKimBDO.ChoDoDay      = nhuEpKim.ChoDoDay;
            nhuEpKimBDO.GiaMuaTheoMet = nhuEpKim.GiaMuaTheoMet;

            nhuEpKimBDO.ThuTu = nhuEpKim.ThuTu;
        }
Example #4
0
        public static LoXoDongCuon DocTheoId(int idKhuonEpKim)
        {
            var khuonEpKimLogic = new LoXoDongCuonLogic();
            var khuonEpKim      = new LoXoDongCuon();

            try
            {
                var khuonEpKimBDO = khuonEpKimLogic.DocTheoId(idKhuonEpKim);
                //Chuyen
                ChuyenDoiMauTinBDOThanhDTO(khuonEpKimBDO, khuonEpKim);
            }
            catch {
            }
            return(khuonEpKim);
        }
Example #5
0
        //Chuyển đổi
        private static void ChuyenDoiMauTinBDOThanhDTO(LoXoDongCuonBDO loXoDongCuonBDO, LoXoDongCuon loXoDongCuon)
        {
            loXoDongCuon.ID            = loXoDongCuonBDO.ID;
            loXoDongCuon.TenVongXoan   = loXoDongCuonBDO.TenVongXoan;
            loXoDongCuon.KichCoBuoc    = loXoDongCuonBDO.KichCoBuoc;
            loXoDongCuon.MauSac        = loXoDongCuonBDO.MauSac;
            loXoDongCuon.ChoDoDay      = loXoDongCuonBDO.ChoDoDay;
            loXoDongCuon.GiaMuaTheoMet = loXoDongCuonBDO.GiaMuaTheoMet;

            loXoDongCuon.ThuTu = loXoDongCuonBDO.ThuTu;
        }