private void ShowInfo(int bookId) { YueDuLibrary.BLL.BookInfo bll = new YueDuLibrary.BLL.BookInfo(); YueDuLibrary.Model.BookInfo model = bll.GetModel(bookId); this.lblbookId.Text = model.bookId.ToString(); this.txtbookCode.Text = model.bookCode; this.txtbookName.Text = model.bookName; //this.txttypeId.Text=model.typeId; this.txtauthor.Text = model.author; this.txtprice.Text = model.price; //this.txtbookCaseId.Text=model.bookCaseId.ToString(); this.txtbookPage.Text = model.bookPage.ToString(); this.txtpublish.Text = model.publish; //this.txtoperId.Text=model.operId.ToString(); this.txtstorage.Text = model.storage.ToString(); //this.txtInCreateTime.Text=model.InCreateTime.ToString(); //this.txtbookImg.Text=model.bookImg; }
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; }