コード例 #1
0
        public static List <BangGiaTheNhua> DocTheoIdHangKH(int idHangKH)
        {
            var giayLogic = new BangGiaTheNhuaLogic();
            List <BangGiaTheNhua> nguon = null;

            try
            {
                nguon = giayLogic.DocTatCa().Where(x => (x.IdHangKhachHang == idHangKH) && (x.KhongCon == false)).Select(x => new BangGiaTheNhua
                {
                    ID              = x.ID,
                    Ten             = x.Ten,
                    MoTa            = x.MoTa,
                    DaySoLuong      = x.DaySoLuong,
                    DayGia          = x.DayGia,
                    InHaiMat        = x.InHaiMat,
                    KhongCon        = x.KhongCon,
                    IdHangKhachHang = x.IdHangKhachHang,
                    SoTheToiDa      = x.SoTheToiDa,
                    NoiDungBangGia  = x.NoiDungBangGia,
                    VatLieuInBaoGom = x.VatLieuInBaoGom,
                    KhoToChay       = x.KhoToChay,
                    ThuTu           = x.ThuTu
                }).OrderBy(x => x.ThuTu).ToList();
            }
            catch { }
            return(nguon);
        }
コード例 #2
0
        public static string Sua(BangGiaTheNhua bGiaDThiep)
        {
            var bangGiaTheNhuaLogic = new BangGiaTheNhuaLogic();
            var itemBDO             = new BangGiaTheNhuaBDO();

            ChuyenDoDTOThanhBDO(bGiaDThiep, itemBDO);
            return(bangGiaTheNhuaLogic.Sua(itemBDO));
        }
コード例 #3
0
        public static BangGiaTheNhua DocTheoId(int idBangGia)
        {
            var            bGiaInNhanhLogic = new BangGiaTheNhuaLogic();
            BangGiaTheNhua bGiaInNhanh      = new BangGiaTheNhua();

            try
            {
                var giayBDO = bGiaInNhanhLogic.DocTheoId(idBangGia);
                //Chuyen
                ChuyenDoiBDOThanhDTO(giayBDO, bGiaInNhanh);
            }
            catch
            {
            }
            return(bGiaInNhanh);
        }