コード例 #1
0
        private void BindProduct()
        {
            LudwigContext      context        = new LudwigContext();
            var                result         = context.SqlQuery <Nop_Product>(this.Query);
            List <Nop_Product> lstProduct     = result.ToList();
            List <Nop_Product> productForBind = new List <Nop_Product>();

            if (lstProduct.Count() > 0)
            {
                int totalRecords = lstProduct.Count;
                this.pagerProducts.Visible = this.pagerProducts.PageSize < totalRecords;
                for (int i = this.PageIndex; i < totalRecords; i++)
                {
                    productForBind.Add(lstProduct[i]);
                }
                this.lvResult.DataSource = productForBind;
                this.lvResult.DataBind();
                this.pnResult.Visible     = true;
                this.pnSearchForm.Visible = false;
                this.ltrError.Visible     = false;
            }
            else
            {
                this.pnResult.Visible     = true;
                this.pnSearchForm.Visible = false;
                this.ltrError.Visible     = true;
            }
        }
コード例 #2
0
ファイル: CatalogBiz.cs プロジェクト: truongphuong/LWG_V1_4.5
 public CatalogBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #3
0
 public InstrumentalBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #4
0
 public CatalogTitleTypeBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #5
0
 public SeriesBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #6
0
ファイル: VideoBiz.cs プロジェクト: truongphuong/LWG_V1_4.5
 public VideoBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #7
0
ファイル: RoleBiz.cs プロジェクト: truongphuong/LWG_V1_4.5
 public RoleBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #8
0
 public BaseBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #9
0
 public HtmlContentBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #10
0
 public InstrTitleBiz()
 {
     context = new LudwigContext();
 }
コード例 #11
0
 public ReprintSourceBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #12
0
 public PersonBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #13
0
 public CategoryBiz()
 {
     context = new LudwigContext();
 }
コード例 #14
0
 public GenerBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #15
0
 public EmailDirectoryBiz()
 {
     dbContent = new LudwigContext();
 }
コード例 #16
0
 public PublisherBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #17
0
ファイル: PeriodBiz.cs プロジェクト: truongphuong/LWG_V1_4.5
 public PeriodBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #18
0
 public AudioBiz()
 {
     dbContext = new LudwigContext();
 }
コード例 #19
0
 public LicenseBiz()
 {
     context = new LudwigContext();
 }