public static string Sua(DongCuonMoPhang dongCuon) { var dongCuonLogic = new DongCuonMoPhangLogic(); var itemBDO = new DongCuonMoPhangBDO(); ChuyenDoiDTOThanhBDO(dongCuon, itemBDO); return(dongCuonLogic.Sua(itemBDO)); }
public GiaDongCuonMoPhang(int soLuong, int soToDoi, DongCuonMoPhang mayDongMoPhang, ToLotMoPhang toLot, int tyLeMarkUpSales) { this.SoLuong = soLuong; this.SoToDoi = soToDoi; this.DongCuonMP = mayDongMoPhang; this.ToLotMP = toLot; this.TyLeMarkUp = tyLeMarkUpSales; }
public static DongCuonMoPhang DocTheoId(int iD) { var dongCuonLogic = new DongCuonMoPhangLogic();; DongCuonMoPhang dongCuon = new DongCuonMoPhang(); try { var dongCuonBDO = dongCuonLogic.DocTheoId(iD); //Chuyen ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon); } catch { } return(dongCuon); }
private static void ChuyenDoiDTOThanhBDO(DongCuonMoPhang dongCuonDTO, DongCuonMoPhangBDO dongCuonBDO) { dongCuonBDO.ID = dongCuonDTO.ID; dongCuonBDO.Ten = dongCuonDTO.Ten; dongCuonBDO.BHR = dongCuonDTO.BHR; dongCuonBDO.TocDoToDoiGio = dongCuonDTO.TocDoToDoiGio; dongCuonBDO.PhiKeoToDoi = dongCuonDTO.PhiKeoToDoi; 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; }