public static List <BangGiaDanhThiep> DocTheoIdHangKH(int idHangKH) { var giayLogic = new BangGiaDanhThiepLogic(); List <BangGiaDanhThiep> nguon = null; try { nguon = giayLogic.LayTatCa().Where(x => (x.IdHangKhachHang == idHangKH) && (x.KhongCon == false)).Select(x => new BangGiaDanhThiep { ID = x.ID, Ten = x.Ten, MoTa = x.MoTa, DaySoLuong = x.DaySoLuong, DayGia = x.DayGia, InHaiMat = x.InHaiMat, KhongCon = x.KhongCon, IdHangKhachHang = x.IdHangKhachHang, SoHopToiDa = x.SoHopToiDa, NoiDungBangGia = x.NoiDungBangGia, GiayBaoGom = x.GiayBaoGom, KhoToChay = x.KhoToChay, SoDanhThiepTrenHop = x.SoDanhThiepTrenHop, ThuTu = x.ThuTu }).OrderBy(x => x.ThuTu).ToList(); } catch { } return(nguon); }
public static string Sua(BangGiaDanhThiep bGiaDThiep) { var bangGiaDanhThiepLogic = new BangGiaDanhThiepLogic(); var itemBDO = new BangGiaDanhThiepBDO(); ChuyenDoDTOThanhBDO(bGiaDThiep, itemBDO); return(bangGiaDanhThiepLogic.Sua(itemBDO)); }
public static BangGiaDanhThiep DocTheoId(int idBangGia) { var bGiaInNhanhLogic = new BangGiaDanhThiepLogic(); BangGiaDanhThiep bGiaInNhanh = new BangGiaDanhThiep(); try { var giayBDO = bGiaInNhanhLogic.DocTheoId(idBangGia); //Chuyen ChuyenDoiBDOThanhDTO(giayBDO, bGiaInNhanh); } catch { } return(bGiaInNhanh); }