Example #1
0
        public static string Sua(DongCuonLoXo dongCuon)
        {
            var dongCuonLogic = new DongCuonLoXoLogic();
            var itemBDO       = new DongCuonLoXoBDO();

            ChuyenDoiDTOThanhBDO(dongCuon, itemBDO);
            return(dongCuonLogic.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 ChuyenDoiDTOThanhBDO(DongCuonLoXo dongCuonDTO, DongCuonLoXoBDO dongCuonBDO)
 {
     dongCuonBDO.ID                = dongCuonDTO.ID;
     dongCuonBDO.Ten               = dongCuonDTO.Ten;
     dongCuonBDO.BHR               = dongCuonDTO.BHR;
     dongCuonBDO.TocDoCuonGio      = dongCuonDTO.TocDoCuonGio;
     dongCuonBDO.ThoiGianChuanBi   = dongCuonDTO.ThoiGianChuanBi;
     dongCuonBDO.BiaToDon          = dongCuonDTO.BiaToDon;
     dongCuonBDO.RuotToDon         = dongCuonDTO.RuotToDon;
     dongCuonBDO.DayLoiNhuan       = dongCuonDTO.DayLoiNhuan;
     dongCuonBDO.DaySoLuong        = dongCuonDTO.DaySoLuong;
     dongCuonBDO.Ma_01             = dongCuonDTO.Ma_01;
     dongCuonBDO.DonViTinh         = dongCuonDTO.DonViTinh;
     dongCuonBDO.DaySoLuongNiemYet = dongCuonDTO.DaySoLuongNiemYet;
     dongCuonBDO.ThuTu             = dongCuonDTO.ThuTu;
 }
Example #4
0
        public static DongCuonLoXo DocTheoId(int iD)
        {
            var          canPhuLogic = new DongCuonLoXoLogic();;
            DongCuonLoXo dongCuon    = new DongCuonLoXo();

            try
            {
                var dongCuonBDO = canPhuLogic.DocTheoId(iD);
                //Chuyen
                ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon);
            }
            catch
            {
            }
            return(dongCuon);
        }