예제 #1
0
 private void ShowInfo(int bookId)
 {
     BLL.BookInfo   bll           = new YueDuLibrary.BLL.BookInfo();
     Model.BookInfo model         = bll.GetModel(bookId);
     BLL.BookType   bllbooktype   = new BLL.BookType();
     Model.BookType modelbooktype = bllbooktype.GetModel(short.Parse(model.typeId));
     BLL.BookCase   bllbookcase   = new BLL.BookCase();
     Model.BookCase modelbookcase = bllbookcase.GetModel(model.bookCaseId);
     this.lblbookId.Text     = model.bookId.ToString();
     this.lblbookCode.Text   = model.bookCode;
     this.lblbookName.Text   = model.bookName;
     this.lbltypeId.Text     = modelbooktype.typeName;
     this.lblauthor.Text     = model.author;
     this.lblprice.Text      = model.price;
     this.lblbookCaseId.Text = modelbookcase.caseName;
     this.lblbookPage.Text   = model.bookPage.ToString();
     this.lblpublish.Text    = model.publish;
     //this.lbloperId.Text = model.operId.ToString();
     this.lblstorage.Text      = model.storage.ToString();
     this.lblInCreateTime.Text = model.InCreateTime.ToString();
     //this.lblbookImg.Text = model.bookImg;
 }
        private void OnBookTypeBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
        {
            _currentBookType = uxBookTypeBindingSource.Current as BLL.BookType;

            if (_currentBookType != null)
            {
                _currentBookType.Validate();
            }
            //_BookType.Validate();
            OnCurrentEntityChanged();
        }