jeecg Training Lesson

Problem Description : Import Department to complete the additions and deletions to a vote of the import declaration to change search, the operator can only log on Joe Smith Joe Smith additions and deletions to the declaration, the operator can only log on additions and deletions to John Doe John Doe's declaration,

     King five department heads can view the audit log on John Doe and Joe Smith's declaration, but can not be modified.

Known conditions : declaration subject information (dec_main): date of import (ie_date), contract agreement number (contr_no), declaration number (entry_id), the reporting unit (agent_name), consignee (trade_name), Business Number (client_no) ;

     Body declaration commodity information (dec_list): Product Code (goods_code), Chinese trade name (goods_name), goods declaration elements (goods_comment), quantity (qty), foreign key (fid). Which is the main body and table-many relationship.

Requirements : Imported default date that day, the business generates an ordered number generated according to certain rules, to be submitted include service status, pending, have been reviewed, not audited by default to be submitted.

Solution : 1. In the development of online -----> Fill value online path rules, the new current time (nowDate) and the order number (orderCode) Fill value generation rule, wherein the rule is the path to the java implementation class code, in general org.jeecgframework.web.cgform.enhance package,

      Rule parameters are json forms, such as { "prefix": "EN"}.

     2. In the System Management ----> data dictionary, data dictionary to add a new service status decstate, were added in the type of view to be submitted in four sub-types (0), pending (1), audited (2), audit not passed (3).

       3. In the online development ------> online form created in forms, tables, called dec_main, table type primary table, increasing the database field (default 10 fields need to modify), while the flow state default value assigned 0 in the properties page, the date of importation

      Control type selected date format, and fill rule input nowDate, fill in the number of business rules entered orderCode, in checking the dictionary, the dictionary code input decstate process state, submit the form to identify and synchronize database.

       4. In the online development ------> online form created in forms, tables, called dec_list, table type schedule, increase database fields, foreign key, the main increase in the foreign key table name field (dec_main), the main field (id) attribute, determine and submit the form database synchronization.

       5. In the online development, the selected records dec_main table named, and then select the button to copy the code generator generate code project.

       6. In the new menu management system management ---- import business in the menu, submenu new business inquiries in the import business, the configuration menu address decMainController.do?list, while adding page controls entry permission (add), edit (update), delete (delete),

      View (detail), in which the new permissions menu, the path is decMainController.do?datagrid, while new data permissions can only see their own createBy equal to # {sys_user_code}, to see the department and the following sysOrgCode

      Fuzzy # {sys_org_code}. Meanwhile in the webpage code ---> com-jeecg-decmain of decMainList interface, in the entry, edit, delete, view controls has increased by operationCode property, the same value with the value previously defined.

       7. In the System Management -----> Role Management in two new roles, import operators and administrators to import, which imports the operator to dispense Entry import business --- business query, edit, delete function, import business ---- business inquiries rights can only see their own

      Function; import administrator assigned viewing import business --- business queries, import business ---- business inquiries permission to log people see lower levels of function.

       8. In the System Management ----> organization management, the new Department of imports, while the System Management ----> User management, the new user John Doe, Wang Wu, John Doe the role of the operator is imported, imported king five roles administrator, department belong to the Department of imports.

 

 

      

 

Guess you like

Origin www.cnblogs.com/xujiating/p/11995610.html