public static string Sua(BoiBiaCung boiBiaCung) { var boiBiaCunglLogic = new BoiBiaCungLogic(); var itemBDO = new BoiBiaCungBDO(); ChuyenDoiDTOThanhBDO(boiBiaCung, itemBDO); return(boiBiaCunglLogic.Sua(itemBDO)); }
public GiaBoiBiaCung(int soLuongTam, BoiBiaCung boiBiaCung, float tamRong, float tamCao, ToBoiBiaCung toBoi, int soToBoiTrenMoiBia, int tyLeMarkUpSales) { this.SoLuong = soLuongTam; this.TamRong = tamRong; this.TamCao = tamCao; this.MayBoiBiaCung = boiBiaCung; this.ToBoi = toBoi; this.SoToBoiMoiBia = soToBoiTrenMoiBia; this.TyLeMarkUp = tyLeMarkUpSales; }
public static BoiBiaCung DocTheoId(int iD) { var boiBiaCungLogic = new BoiBiaCungLogic();; BoiBiaCung dongCuon = new BoiBiaCung(); try { var dongCuonBDO = boiBiaCungLogic.DocTheoId(iD); //Chuyen ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon); } catch { } return(dongCuon); }
private static void ChuyenDoiDTOThanhBDO(BoiBiaCung itemDTO, BoiBiaCungBDO itemBDO) { itemBDO.ID = itemDTO.ID; itemBDO.Ten = itemDTO.Ten; itemBDO.BHR = itemDTO.BHR; itemBDO.TocDoTamGio = itemDTO.TocDoTamGio; itemBDO.PhiKeoMetVuong = itemDTO.PhiKeoMetVuong; 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; }