ASP. Aries 4.0 Open Source Publishing: Completed basic functional optimization overrides

Source: Internet
Author: User

Major updates:

1: Add the AR.Global.GetUser () method to return the user information for the current login.

2: Rewrite Ar.combobox support dropdown tree.

3: Adjust and expand the configuration parameters of the input drop-down.

4: Optimize and add ar.combobox related methods.

5: Rewrite the level header configuration and algorithm.

6: Extend the parameters of the drop-down data.

7: Rewrite the Excel import module.

8: Override Excel export related.

9: Partial parameter simplification and name adjustment.

Considerations for upgrading from older versions:

1:config_excel table field Change: Add two fields (Wheretype, Accepttype), and remove the (isuniqueor) field.

Upgrade Method: Delete Table (re-use script execution)

2:config The associated HTML name has changed

Upgrade Method: Modify the path that the menu points to.

3:config_keyvalue (Configuration maintenance table) new Configuration items (XOR (corresponding Wheretype), import method (corresponding to Accepttype)).

Upgrade method: Not much data, manually add, or find script execution.

Configuration header modification of the 4:config_grid system:

Upgrade method: Re-data script, or ignore the system configuration (according to your own situation in the configuration table header manually adjust configuration).

Open Source Address:

Github:https://github.com/cyq1162/aries

Demo Demo: http://aries.cyqdata.com/login.html

Details of the upgrade feature: 1: Get current login user information

Background access to user information, can be passed: Userauth this static class or fetch;

Front-end access to user information, in addition to the cookie user to get the username, there is no other way, so added a method to obtain: AR.Global.GetUser (callback);

Let's talk about using:

The first call (Index.html has been called) requires a callback function to be passed:

<script>        AR. Global.getuser (function (data) {            $ ("#lbUserName"). html ('" ' ' " ' );        });     </script>

Subsequent calls do not require a callback (direct recursion to index.html to fetch the data):

var user=ar. Global.getuser ();

Here's how to add a thought process:

have been thinking before, the front-end how to give a simple way to call, but also the maximum strength of the performance and real-time characteristics.

Want to put in a cookie, or back-end cache, or the front-end of the request, and finally all the mental cleanliness to no, until the above solution was thought out, just satisfied with the hands-on implementation.

2:ar.combobox and input configuration: 1:input configuration: (Unified ComboBox and Combotree configuration)

The tree drop-down requires only one more tree attribute, such as:

2:ar.combobox.setparas Method:

For pull-down data, you want to add the filter condition:

Can be passed in HTML:

AR.Combobox.setParas ({c_sys_deparment: "parameter Value"});

Parameters are taken to the background and replaced with conditions.

3: Modified Defaultwhere parameter:

If you add a default parameter by using the Dg.addwhere method, it is not affected, if it is by:

Dg.options.defaultwhere=[{paramname: "abc", Parampattern: "=", paramvalue:1}] is specified, the simplified parameter is:

Dg.options.defaultwhere=[{name: "abc", Pattern: "=", value:1}]

4: Simplified Hierarchy header configuration:

, for the following complex headers, it is now only possible to specify a table header that spans several columns:

Related header configuration [level header field starts with Mg_] (older configurations are more complex, not described):

How to configure: Add a field (beginning with mg_) and set the number of ordinal and cross-columns.

5: Export: With multi-level table header:

6: Import: Template and Import error verification function

1: Downloaded template with validation data:

Sheet2 Archive drop-down data:

3:excel error message when importing:

Returns the error message on the downloaded Excel list: (Error fields and error messages will be marked red)

Summarize:

Recently, almost all the time was spent on the optimization rewrite of the Aries framework;

After countless nights, all the front-end backend functions of the Aries framework were finally implemented;

Framework in the performance, security, usability, scalability and other comprehensive implementation, and finally do unprecedented, after waiting for the share of the;

Finally, in this deep night, it's time to sleep ~ ~ ~

Incidentally, the buzzword:

ASP. Aries 4.0 Open Source Publishing: Completed basic functional optimization overrides

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.