コード例 #1
0
        public void bind_SanPham()
        {
            List <Entity.KhuyenMai> km = new List <Entity.KhuyenMai>();

            km = KhuyenMaiService.KhuyenMai_GetByTop("", "", "");
            List <Entity.SanPham> lst        = new List <Entity.SanPham>();
            List <Entity.SanPham> quandai    = new List <Entity.SanPham>();
            List <Entity.SanPham> quanshorts = new List <Entity.SanPham>();
            List <Entity.SanPham> tonkho     = new List <Entity.SanPham>();

            lst = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=2", " ID ASC");
            dtlaokhoac.DataSource = lst;
            dtlaokhoac.DataBind();
            lst = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=1", " ID ASC");
            dtlvaydamvasetbo.DataSource = lst;
            dtlvaydamvasetbo.DataBind();

            lst = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=3", " ID ASC");
            dtldamkhuyenmai.DataSource = lst;
            dtldamkhuyenmai.DataBind();

            quandai = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=4", " ID ASC");
            dtlquandai.DataSource = quandai;
            dtlquandai.DataBind();

            quanshorts = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=5 ", " ID ASC");
            dtlquanshorts.DataSource = quanshorts;
            dtlquanshorts.DataBind();

            tonkho = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=6", " ID ASC");
            dtltonkho.DataSource = tonkho;
            dtltonkho.DataBind();
        }
コード例 #2
0
        public void bind_SanPham()
        {
            List <Entity.KhuyenMai> km = new List <Entity.KhuyenMai>();

            km = KhuyenMaiService.KhuyenMai_GetByTop("", "", "");
            List <Entity.SanPham> lst = new List <Entity.SanPham>();

            lst = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=2 AND TinhTrang=N'Còn'", " ID ASC");
            dtlaokhoac.DataSource = lst;
            dtlaokhoac.DataBind();
            lst = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=1 AND TinhTrang=N'Còn' ", " ID ASC");
            dtlvaydamvasetbo.DataSource = lst;
            dtlvaydamvasetbo.DataBind();
            lst = SanPhamService.SanPham_GetByTop("", " Active='True' AND id_Menu=3 AND TinhTrang=N'Còn' ", " ID ASC");
            dtldamkhuyenmai.DataSource = lst;
            dtldamkhuyenmai.DataBind();
        }