- Alt Alt J Manager X R Roleview Clickok Croale Message Clickcancel Create X Tag Bool Updaterule Id Int Rale 1 (407.56 KiB) Viewed 35 times
Alt Alt j Manager X r: Roleview ClickOK() Croale Message() ClickCancel( <> -X tag: bool UpdateRule(id: int, rale
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Alt Alt j Manager X r: Roleview ClickOK() Croale Message() ClickCancel( <> -X tag: bool UpdateRule(id: int, rale
Alt Alt j Manager X r: Roleview ClickOK() Croale Message() ClickCancel( <<create>> -X tag: bool UpdateRule(id: int, rale: string) UserDAL XY: The values of "id" and "role" are specified by manager via interaction before passing as arguments. ChangeRole() XY: The two operations are simplified for illustration only. The values of "isbn" and "price" and for "bookInfo" are obtained via interaction from manager before passing as arguments. -X :AdminView r.message ChangePrice() Add Book() XY: AdminView remains unless "Retum" button is clicked. ClickReturn() <<creabe>> 1 x } IB_NUM is the total number of boo <s; // Book price is kept in bookInfol1.price for (i = 0; i < B_NUM; i++) { if (isbn bookInfuliJ.isbn) { bookinfo.price=price; b.message break; /XY note: for illustration only b: BookDAL PriceBook(isbn inl, price: double) : XY: A message is returned for display at the end of every nteraction. b.message NewBook(bookInfo BackInfo) ! ClickAdminView() MainWindow -X -X