示例#1
0
        protected void dgBook_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e)
        {
            e.Cancel = true;
            LibraryBook b = new LibraryBookService().GetLibraryBook(int.Parse(e.EditingKeyValue.ToString()), new SessionManager().GetUserId(this.Session));

            txtId.Text         = b.ID.ToString();
            txtISBN.Text       = b.BookISBN;
            txtSubtitle.Text   = b.SubTitle;
            txtTitle.Text      = b.BookTitle;
            cmbAuthor.Value    = b.AuthorID;
            cmbPublisher.Value = b.PubID;
            divClasses.Visible = true;
            dgBook.CancelEdit();
            uPanel.Update();
        }
示例#2
0
        protected void dgAuthor_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e)
        {
            e.Cancel = true;
            LibraryBook b = new LibraryBookService().GetLibraryBook(int.Parse(e.EditingKeyValue.ToString()), new SessionManager().GetUserId(this.Session));

            txtId.Text           = b.ID.ToString();
            txtISBN.Text         = b.BookISBN;
            txtSubtitle.Text     = b.SubTitle;
            txtTitle.Text        = b.BookTitle;
            cmbAuthor.Value      = b.AuthorID;
            cmbBlock.Value       = b.xIDclassOne;
            cmbCopy.Value        = b.BookType;
            cmbPublisher.Value   = b.PubID;
            cmbShelve.Value      = b.xIDclassTwo;
            cmbStack.Value       = b.xIDclassThree;
            momDescription.Value = b.BookDesc;
            spinNoPages.Value    = b.BookPages;
            spinQty.Value        = b.BookQty;

            divClasses.Visible = true;
            dgAuthor.CancelEdit();
            uPanel.Update();
        }
示例#3
0
 public LibraryController(StudentService studentService,
                          CollegeBranchService collegeBranchService,
                          BookService bookService,
                          BookRequestService bookRequestService,
                          UserProfileService userProfileService,
                          DirectoryService directoryService,
                          HistoryService historyService,
                          WebHelper webHelper,
                          LibraryBookService libraryBookService,
                          CategoryService categoryService,
                          BookCategoryService bookCategoryService)
 {
     this._studentService       = studentService;
     this._collegeBranchService = collegeBranchService;
     this._bookService          = bookService;
     this._bookRequestService   = bookRequestService;
     this._userProfileService   = userProfileService;
     this._directoryService     = directoryService;
     this._historyService       = historyService;
     this._webHelper            = webHelper;
     this._libraryBookService   = libraryBookService;
     this._categoryService      = categoryService;
     this._bookCategoryService  = bookCategoryService;
 }