Enteprise solution has its own interface design specifications, but also many years (more than 10 years) management software interface essence accumulation. No software is very good at the beginning of the interface design, many small improvements, such as the movement of control positions, control placement order changes, are customer-tested or thoughtful.
1 for items that must enter a value, a small cursor is represented in the control.
As shown, the contract number and customer number must be entered, so there is a small cursor on the right side of the control. When there is a value in the control, the cursor is no longer displayed.
Domestic management software such as Kingdee software, for must enter a value, it will identify an asterisk at the label, as shown, the port number of the label followed by an asterisk, indicating that the item must be entered.
2 Unified interface operation, adding and removing check and change are unified interface.
Refer to the interface of the sales contract, the top is the menu, by the framework according to the currently open function load, the menu below is the tool bar, what can be done at a glance.
The interface status bar displays the currently logged-in accounts, the user, and the period.
3 Finding and drilling
For fields that reference other master files or documents, you should increase the lookup to make it easier for the user to select values from the pop-up window. Also need to increase drilling, in order to facilitate the direct jump to the corresponding function.
Find Customer Form Examples:
Drillthrough is a bit like a link in a Web page, and a double-click opens the feature. For example, the customer Number field in the sales contract above, the de has an underscore, double-click to open the maintenance customer main file function directly.
4 combine similar controls to facilitate user identification.
Refer to the following Sales order section interface, with financial-related controls included with the payment combo box (GroupBox), and cost-related content is included with the cost-exhausted combo box.
The cost of the total combo box, there is a total meaning in turn, such as the cost of the relevant formula is:
NET Trade amount = Total Item amount + tax, trade Discount amount = Total Item amount * Trade Discount
The items to the right of the formula are listed in front, and the controls that are arranged to the last are generally totals.
5 Screen resolution
The WinForms Desktop program needs to be carefully tested when it encounters different sizes of displays, the position alignment of the controls. The current approach is to fix the size of the designer, and all controls must be placed in a fixed-size control that does not allow the size of the form's base class to be dragged. The dimensions of the Enterprise solution interface base class Entryform are shown in the following code.
This New System.Drawing.Size (912, 656);
For controls that do not fit in the designer interface, you can add tabpage to rearrange them to ensure that all forms meet the smallest size of the screen without dragging the anchor bar back and forth.
6 for long-running operations, provide progress bars, animations, etc. to reflect the ongoing time-consuming process.
First of all about data manipulation, Enterprise solution will encapsulate it in the BackgroundWorker control, which avoids the deadlock interface. The interface of the sales contract, each button event in the toolbar, invokes its associated background line program.
If it is a dedicated data handler, the progress bar is displayed separately to increase the interface friendliness.
7 automatically hide or disable features based on user's permissions or current status
Buttons that the user cannot point to or should not point to should be dimmed or hidden directly.
Fields that the user does not have permission to view need to be hidden.
Users cannot enter the company account set needs to be hidden.
The main point of this section is to make the interface simple and friendly by changing the ash and hiding. Imagine the user click on a button, the system again prompted no permissions to see, how bad the interface experience.
8 Length of interface elements
The length of the interface element is designed according to the corresponding field length in the database. Referring to the interface element in 4th, the length of the control also expresses the length of the corresponding field in the database.
Unless it is a special requirement or requires a good alignment, Enterprise solution more than 90% of the interface controls are designed according to the length of the database field.
9 before performing destructive work, you need to obtain the user's confirmation
This must be done, regarding the delete operation or posting operation, which must be confirmed by the user to continue. However, in order to take care of the user's feelings, but also can provide a method without confirmation for the programmer to call.
Saveentity (bool showconfirm)
//The default call passes True, or false to indicate that no acknowledgment is required Saveentity (TRUE);
10 input data or submit data, the corresponding data check
LLBL Gen Pro automatically generates a validation type for each entity class, where entity-related validation code is written.
[Serializable]
Public class Salescontractvalidator:validatorbase
{
ADD your own validation code between the region markers below. You can also with a partial class and add your overrides in that partial class.
__llblgenpro_user_code_region_start Validationcode
Public Override BOOL int Object value)
{
BOOL Base value);
if return false;
Switch ((Salescontractfieldindex) fieldindex)
{
Case Salescontractfieldindex.customerno:
return this. Validatecustomerno (stringvalue);
}
return true;
}
Private BOOL Validatecustomerno (stringvalue)
{
if (! string. IsNullOrEmpty (value))
{
Icustomermanager Customermanager = clientproxyfactory.createproxyinstance<icustomermanager> ();
value);
}
return true;
}
Data validation includes validation of field values, data tables must enter field validation, and logical validation. Developing a form that inherits the functionality of Entryform is about half the effort being done with data validation.
11 row and column spacing remains the same
The basic requirement for row and column spacing is to maintain 12pt, which is also recommended by Microsoft for spacing. When you drag a control in the designer, the designer displays a little dash to indicate that the distance is exactly 12pt, and you can release the control so that it falls in the current position.
Look at a few lines in the diagram, and the Smart Form designer helps align the positions between the controls.
12 The tone of the interface makes people feel unified
All the interfaces use only the basic control colors, except for the color that is required by the customer or special work, and the color of the controls in the above graphs is uniform. The following order tracking function, with color to identify special data, play the role of the finishing touch.
Alternating colors are often used in ASP., with different row colors, and each row is identified with the same color. The WinForms program also has customer preferences for this alternating color scheme.
13 Keyboard Key Programming
In the following areas to focus on testing, must strictly abide by:
1 Tab key order, usually from top to bottom, from left to right;
2 The use of hotkeys, one-by-one test, usually on the control to mark out, write code with & to indicate that the following character is a hotkey.
3 The ENTER key is often used to jump to the next line or to the next control (TabIndex order) method.
14 Places you can't do at the moment
1 for common functions, do not need to read the manual on the use
ERP software interface is complex, there are few functions can be directly see the interface can learn to operate.
2 Whether undo is available to undo unexpected actions
There are only a few features that provide undo operations, such as canceling shipping and canceling billing vouchers.
Complex logic reversal operations require writing a lot of code or operations, and the correlation between documents needs to be maintained, adding considerable complexity to the system.
3 All interface elements provide sufficient and necessary hints
WinForms provides a ToolTips control that displays a hint of text when the mouse hovers over the control, or a hint of bubbles popping up in the lower-right corner of the desktop.
For more use of interface elements, refer to the Help manual or request support for technical support.
Enterprise Solution Interface Design Code