예제 #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
 public CatalogBiz()
 {
     dbContext = new LudwigContext();
 }
예제 #3
0
 public InstrumentalBiz()
 {
     dbContext = new LudwigContext();
 }
 public CatalogTitleTypeBiz()
 {
     dbContext = new LudwigContext();
 }
예제 #5
0
 public SeriesBiz()
 {
     dbContext = new LudwigContext();
 }
예제 #6
0
 public VideoBiz()
 {
     dbContext = new LudwigContext();
 }
예제 #7
0
 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
 public PeriodBiz()
 {
     dbContext = new LudwigContext();
 }
예제 #18
0
 public AudioBiz()
 {
     dbContext = new LudwigContext();
 }
예제 #19
0
 public LicenseBiz()
 {
     context = new LudwigContext();
 }