CN105718255A - Cross-multi-mechanism statistic of dynamic instant use amount based on jQuery - Google Patents
Cross-multi-mechanism statistic of dynamic instant use amount based on jQuery Download PDFInfo
- Publication number
- CN105718255A CN105718255A CN201510127483.6A CN201510127483A CN105718255A CN 105718255 A CN105718255 A CN 105718255A CN 201510127483 A CN201510127483 A CN 201510127483A CN 105718255 A CN105718255 A CN 105718255A
- Authority
- CN
- China
- Prior art keywords
- jquery
- function
- sale
- true
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention relates to a mechanism for cross-multi-mechanism statistic of a dynamic instant use amount based on jQuery, and relates to the field of cross-browser JavaScript library programming development technologies. A A01 product produced by a A mechanism is sold to B1 and B2 mechanisms by a B mechanism seller; when B, B1 and B2 setting menus show that the sale confirmation order form data permission of the product produced by the A is allowed to be given to the A mechanism, the A mechanism synchronously obtains statistical data only when a B1 client places an order to the B mechanism; and the A mechanism automatically generates one analysis table showing how many the current stock number is and how many the confirmation order form number of different sale mechanisms in various areas is. According to the mechanism for cross-multi-mechanism statistic of the dynamic instant use amount based on jQuery provided in the embodiment of the invention, production and sale data can be obtained in time only when the mechanism opens the permission; the mechanism is few in transmission content and rapid in speed in a data interactive process; furthermore, a server processes in time; and real-time updating of the background production and sale data can be realized through permission interconnection of a production mechanism, a sale mechanism and an order form mechanism.
Description
Technical field
The present invention relates to the JavaScript storehouse programming development technical field of browser-cross, particularly relate to across many mechanisms statistics dynamically instant consumption.
Background technology
JQuery is the JavaScript storehouse of a set of browser-cross, simplifies the operation between HTML and JavaScript.It is the js storehouse of lightweight, compatible CSS3, is also compatible with various browser.JQuery enables users to process HTMLdocuments, events more easily, realize animation effect, and provides AJAX mutual convenient for website.JQuery also has a relatively larger advantage to be that its document description is very complete, and various application is also said very detailed, and the plug-in unit simultaneously also having many maturations is available.JQuery can make the html page of user keep code to separate with html content, say, that need not insert a pile js again inside html and carry out call instruction, only need to define id.
In the JavaScript storehouse programming development technical field of browser-cross, there is following characteristic: lightweight, the code file only 14KB of transmission, the code file only 26KB that uncompressed transmits after GZip compresses.Chain type grammer uses simple.Use CSS1-3 selector, it is possible to easily arrange, delete, read css attribute. browser-cross, support InternetExplorer6+, Opera9+, Firefox1.5+, Safari2+.Dom selects, it is possible to easily obtain the jquery object after any dom element or the encapsulation of dom element.Having Ajax to support, event registration to any one or more object registration events, can allow picture separate with event.
System is implemented by jQuery across many mechanisms statistics benefit that dynamically instant consumption brings: the confirmation quantity on order understanding product library storage, each marketing organization from different places that on the one hand can be flexible, make full use of again the mechanism of jQuery on the other hand, add sequence information and confirm authority, have that safety is good, easy to operate, realize the advantages such as easy.
Summary of the invention
In order to overcome the existing deficiency across many mechanisms statistics dynamically instant consumption, the present invention provide a kind of based on by jQuery across many mechanisms statistics dynamically instant consumption mechanism, the A that A mechanism produces01Product is sold by B mechanism and is sold B1, B2Mechanism.
Work as B, B1, B2As long as arrange the sale of product having agreed to inside menu that A is produced confirm an order data permission to A mechanism time B1Client places an order to B mechanism, A mechanism synchronization gain statistical data over there.A mechanism automatically generates an analytical table, and current stockpile number is how many;The confirmation quantity on order of each marketing organization from different places is how many.
A mechanism can adjust stock in advance and adjust the production schedule, the more rapid supply of material.A mechanism can being made so on the one hand to understand stock's relation in advance, reduce complexity and the difficulty of JQ mechanism stock's relations of production, can make full use of again jQuery carries out message transmission on the other hand, engages in the dialogue and obtains product information in advance.
The technical solution adopted for the present invention to solve the technical problems is: adopt clone (true) function.In order to alleviate workload, in actual development, employing clone (true) function of jQuery, this function can create the copy of a jQury object, and when parameter is true, it is possible to replicate all event handling functions of this element.We can realize the computing of product quantity in the first row.When then increasing detailed button, call clone (true) function of jQuery, the duplicate objects setting up the first row is inserted into below form, owing to using clone (true) that the event handling function of object can be replicated, also it is successfully replicated so the onblur event of each row Chinese version frame and freight charges calculate function, does not need to process again.Significantly reduce workload.
The invention has the beneficial effects as follows, use jQuery technology, it is not necessary to submit to data representation to server in real time, it is only necessary to the open authority of mechanism just can obtain production and sales data in time, in processing data exchange process, transferring content is few, speed fast, and server process is timely.Can pass through to produce the production and sales data real-time update of the authority interconnection realization behind of mechanism, marketing organization, order mechanism.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the present invention is further described.
Fig. 1 is present example data flowchart.
Fig. 2 is present example authority distribution diagram.
Fig. 3 is that present example statistics sells product quantity amount of money code map.
Fig. 4 is present example TableFacadeImpl interface code figure.
Fig. 5 is present example page interrogation data code figure.
Detailed description of the invention
In the diagram, present example TableFacadeImpl interface code figure is illustrated.In order to increase motility and the durability that inquiry attempts, JQuery framework provides a TableFacadeImpl interface class, can according to the html page code of the data genaration video data form inquired about by this interface, this interface can record the status information that inquiry is relevant automatically simultaneously.TableFacadeImpl interface provides many interfaces and formulates the base attribute that inquiry is required, such as top-of-form set, record number setting, sequence etc..
In the diagram, present example page interrogation data code figure is illustrated.Integrating JQuery under Struts2Web framework, being shown on the page by data Struts2 framework to adjust the render method in QueryTableFacadeImpl to be shown on the page by the HTML code of query display, mainly has following 3 core processes:
(1) function package.
Struts2 page framework provides a set of mechanism, it is possible to common function is packaged into label, it is simple to use on the page.Consider inquiry views module frequently using in engineering, be encapsulated into inquiry tag so that inquiry is easier to use on the page.
(2) page interrogation customization.
In order to realize the display of inquiry data on the page, it is possible to by Struts2 framework, inquiry tag is incorporated into respective page.Because the process of inquiry is made for label, so it is simply many generally speaking to formulate page interrogation.
(3) JQueryAJAX query calls.
This is a key point of JQuery inquiry, and the inquiry of page trigger server is through the AJAX interface of its offer and goes to realize, and goes request server to carry out data query by it and obtains the HTML code of inquiry data and map that to the page and display.
Claims (3)
1. based on by jQuery across many mechanisms statistics dynamically instant consumption, it is characterized in that: when menu be set agree to the sale of the product that A is produced confirm an order data permission to A mechanism time, A mechanism synchronization gain statistical data over there;Employing clone (true) function of jQuery, this function can create the copy of a jQury object, and when parameter is true, it is possible to replicate all event handling functions of this element.
2. confirmation authority according to claim 1 is to A mechanism, it is characterized in that: the A that A mechanism produces01Product is sold by B mechanism and is sold B1, B2Mechanism.Work as B, B1, B2As long as arrange the sale of product having agreed to inside menu that A is produced confirm an order data permission to A mechanism time B1Client places an order to B mechanism, and synchronization gain statistical data A mechanism over there of A mechanism automatically generates an analytical table, and current stockpile number is how many;The confirmation quantity on order of each marketing organization from different places is how many.A mechanism can adjust stock in advance and adjust the production schedule, the more rapid supply of material.
3. clone (true) function using jQuery according to claim 1, is characterized in that: this function can create the copy of a jQury object, and when parameter is true, it is possible to replicate all event handling functions of this element.The first row realizes the computing of product quantity, when then increasing detailed button, call clone (true) function of jQuery, the duplicate objects setting up the first row is inserted into below form, owing to using clone (true) that the event handling function of object can be replicated, also it is successfully replicated so the onblur event of each row Chinese version frame and freight charges calculate function, does not need to process again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510127483.6A CN105718255A (en) | 2015-03-23 | 2015-03-23 | Cross-multi-mechanism statistic of dynamic instant use amount based on jQuery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510127483.6A CN105718255A (en) | 2015-03-23 | 2015-03-23 | Cross-multi-mechanism statistic of dynamic instant use amount based on jQuery |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105718255A true CN105718255A (en) | 2016-06-29 |
Family
ID=56144741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510127483.6A Pending CN105718255A (en) | 2015-03-23 | 2015-03-23 | Cross-multi-mechanism statistic of dynamic instant use amount based on jQuery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105718255A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1609839A (en) * | 2003-10-21 | 2005-04-27 | 英业达股份有限公司 | Method for collecting and managing customer's data utilizing PDA custom systematism |
US20070294099A1 (en) * | 2006-03-31 | 2007-12-20 | Digital River, Inc. | Physical On Demand Product Creation System and Method |
CN101447061A (en) * | 2008-12-12 | 2009-06-03 | 北京神州数码有限公司 | Network on-line transaction platform (E-Bridge) |
CN102932386A (en) * | 2011-08-10 | 2013-02-13 | 深圳市金蝶友商电子商务服务有限公司 | Message transmission control method and system |
-
2015
- 2015-03-23 CN CN201510127483.6A patent/CN105718255A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1609839A (en) * | 2003-10-21 | 2005-04-27 | 英业达股份有限公司 | Method for collecting and managing customer's data utilizing PDA custom systematism |
US20070294099A1 (en) * | 2006-03-31 | 2007-12-20 | Digital River, Inc. | Physical On Demand Product Creation System and Method |
CN101447061A (en) * | 2008-12-12 | 2009-06-03 | 北京神州数码有限公司 | Network on-line transaction platform (E-Bridge) |
CN102932386A (en) * | 2011-08-10 | 2013-02-13 | 深圳市金蝶友商电子商务服务有限公司 | Message transmission control method and system |
Non-Patent Citations (1)
Title |
---|
杨春元: "《ASP.NET4.5动态网站开发实用教程》", 31 August 2014, 清华大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102541541B (en) | Interface creating method and device | |
CN105808056B (en) | A kind of Media method and system based on two dimensional code | |
CN104410720B (en) | A kind of real-time monitoring platform system and method based on web graph shape | |
US20160283096A1 (en) | Method of generating a link by utilizing a picture and system thereof | |
US8966436B2 (en) | Systems and methods for providing and customizing a virtual event platform | |
CN107391134B (en) | Method and device for automatically generating and dynamically transforming universal mobile application interactive interface | |
CN101819610B (en) | WEB-based phone housing CAD (computer aided design) method | |
CN105354025A (en) | Service model configuration system and method based on mobile application | |
CN102207872A (en) | Method and system for customizing Web UI (User Interface) control according to user requirements | |
CN109582307A (en) | Movable creation method, device, equipment and storage medium based on unified entrance | |
CN103824150A (en) | Food safety monitoring system | |
CN105162676A (en) | Method and system for acquiring WeChat data | |
CN109598171A (en) | A kind of data processing method based on two dimensional code, apparatus and system | |
US20220414251A1 (en) | Media recording and playback system employing two-dimensional bar codes | |
CN104239067A (en) | Making method and device of miniature client end | |
CN105468345B (en) | Method for realizing remote change of mobile phone terminal visit operation in quick-elimination system | |
CN105389604A (en) | Communication equipment, communication system and information processing method | |
CN108021421A (en) | Method, apparatus, system and the electronic equipment that scene for food and beverage sevice customizes | |
US10210001B2 (en) | Automatic execution of objects in a user interface | |
CN112131300A (en) | Cross-platform data making method and device based on Flutter | |
CN105718255A (en) | Cross-multi-mechanism statistic of dynamic instant use amount based on jQuery | |
KR101357730B1 (en) | Real-time information sharing system for growing farm products based farming diary | |
CN206058282U (en) | A kind of managing device of visually tracing to the source | |
CN105721902A (en) | Intelligent push method and system | |
CN112416995B (en) | Data statistics method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160629 |
|
RJ01 | Rejection of invention patent application after publication |