Headline

Edit companies in a UI

Description

Users of the system:Company expect to be able to edit attributes for names, addresses, and salaries. For instance, the name of an employee may need to be change when the employee gets married. Also, the address of the employee may need to changed when the employee moves to a new house. No structural edits of the company are yet anticipated here, but see Feature:Restructuring. That is, employees cannot move, for example, from one department to another one. We also consider the status of an employee to be a manager or not as a structural property.

Details

Change propagation

There are two options for committing changes from text fields to the underlying data (model):

  • Option 1 is to commit changes immediately: this option may be sometimes more reasonable for a classic, GUI-based standalone application. (For instance, a change event on a text field may be translated, perhaps with the help of a controller in the sense of MVC, into an actual property change on the data model.)
  • Option 2 is to commit changes when a "Save" button on the view is pushed: this option may be sometimes more reasonable for a web-based application. (For instance, a web client may want to limit the communication with a server, and hence rely on an explicit "Save" action for the propagation of the data changes.)

Validation

Once editing is enabled, then some constraints must be validated as suggested by Feature:Hierarchical company. A notification for the constraint violation may be shown, for example, in the view one line below the offending field. The salary validation (such that salaries are positive decimal values) may be realized via field input restriction. In the following, we describe such validation for the case of a client/server architecture, as this appears to be a more involved scenario.

Company

  • client-side validation:
    • The name of a company is not empty.

Department

  • client-side validation:
    • The name of a department is not empty.
  • server-side validation:
    • The name of a department is unique for all departments of the company.

Employee


There are no revisions for this page.

User contributions

    This user never has never made submissions.

    User edits

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.