CN110020372A - A kind of method and system that data are shown based on organization - Google Patents

A kind of method and system that data are shown based on organization Download PDF

Info

Publication number
CN110020372A
CN110020372A CN201711450731.6A CN201711450731A CN110020372A CN 110020372 A CN110020372 A CN 110020372A CN 201711450731 A CN201711450731 A CN 201711450731A CN 110020372 A CN110020372 A CN 110020372A
Authority
CN
China
Prior art keywords
organization
pop
data
tree
user
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
Application number
CN201711450731.6A
Other languages
Chinese (zh)
Inventor
张聪
朱鸿明
张伟丰
孟康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201711450731.6A priority Critical patent/CN110020372A/en
Publication of CN110020372A publication Critical patent/CN110020372A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of methods shown based on organization to data: obtaining the logical construction of the organization tree of the array data and preparatory layout that are desired with display;Logical construction based on organization tree formats array data, to generate the data for meeting organization tree;Preamble traversal is carried out to the data for meeting organization tree, to generate the display data of organization's tree format, wherein organization tree is formed by the organization's data layout being pre-stored in top level page;The acquisition request of current facility is directed in response to receiving, organization's subtree according to locating for current facility determines parent body and/or the Lower Establishment of current facility;Parent body and/or the Lower Establishment of current facility are shown in the case where showing current facility according to the display type that user inputs.The present invention is by storing up organization's data for the use of all pages in top level page, so that the display speed of organization's data is improved.

Description

A kind of method and system that data are shown based on organization
Technical field
The present invention relates to technical field of information management, are shown based on organization to data in particular to one kind The method and system shown.
Background technique
With rapid economic development, discrete parallel Sales Tax and value-added tax increasingly show inherent unreasonable and defect. Firstly, this tax system is unfavorable for optimizing economic structure;Secondly, Sales Tax is fully to levy taxes to the turnover, and can not deduct, this is just Inevitably to former Sales Tax unit levy twice, and then it will cause the interruption of value-added tax chain.And to Value Added Tax list Position, due to buy service link cannot obtain VAT invoice, will lead to will also pay value-added tax to non-value-added part. Meanwhile this tax system also constrains the development of service trade, and China's major part tertiary industry is excluded the taxation range in value-added tax Except, adverse effect is caused to the development of service trade.
In order to make China's economic more be continued more healthy development, day is also gradually put in the transition of the industrial structure Journey, " battalion changes increasing " are exactly to comply with such situation to be implemented.Value-added tax management system has concentrated multiple function, including system to set It sets, encodes management, management of making out an invoice, red ticket management, sells menu manager, monitoring of making out an invoice, income management, managing bill, query statistic Deng being one of core function of the system wherein how to show and realize organization tree.
104331491 A of Chinese patent application CN provides the methods of exhibiting and device of a kind of organization, comprising: obtains Take the time point of family input;In the preset database, the tissue that establishing time point is less than the time point of the input is extracted Mechanism;Wherein, the organization saved in the presetting database has establishing time point, and each organization extracted is each From with one group of business datum;When the organization is multiple, the superior and the subordinate obtained between multiple organizations are closed System;The relationship between superior and subordinate is shown in the form of connecting line, and multiple described with hierarchy displaying according to the relationship between superior and subordinate Organization.
Although the technical solution has been realized in the methods of exhibiting and device of organization, use papery mode pipe with former The business information of reason organization, which is compared, great progress, but is very different again in value-added tax management system, Wu Fazhi Connect use or reference.
Summary of the invention
In consideration of it, the invention proposes a kind of method and system shown based on organization to data, it is intended to be The methods of exhibiting and device of value-added tax management system offer foreground organization.
On one side, the invention proposes a kind of methods shown based on organization to data, which is characterized in that The described method includes:
Obtain the logical construction of the organization tree of the array data and preparatory layout that are desired with display;
Logical construction based on the organization tree formats the array data, meets tissue to generate The data of mechanism tree;
Preamble traversal is carried out to the data for meeting organization tree, to generate the display number of organization's tree format According to, wherein the organization tree is formed by the organization's data layout being pre-stored in top level page;
The acquisition request of current facility is directed in response to receiving, according to organization's subtree locating for the current facility Determine parent body and/or the Lower Establishment of the current facility;And
The current facility is shown in the case where showing the current facility according to the display type that user inputs Parent body and/or Lower Establishment.
Preferably, comprising:
Whether organization tree corresponding to decision mechanism input frame has been depicted as mechanism pop-up:
When receiving the click commands to the mechanism input frame, organization corresponding to the mechanism input frame is judged Whether pre-stored default value is modified in the code of the mechanism pop-up of tree;
If the default value has been modified, the mechanism pop-up does not need to repaint.
Preferably, which is characterized in that
If the mechanism pop-up is not drawn, the mechanism pop-up is drawn and to modify its pre-stored silent Recognize value, then the mechanism pop-up is shown.
Preferably, which is characterized in that when the mechanism pop-up is shown, user clicks the page,
Obtain user's click on area;
When user's click on area is the mechanism input frame, the mechanism pop-up is shown.
Preferably, which is characterized in that when the mechanism pop-up is shown, user clicks the page,
Obtain user's click on area;
When user's click on area is the region in addition to the mechanism input frame and the mechanism pop-up, hide described Mechanism pop-up.
Preferably, which is characterized in that
When clicking the record inside the mechanism pop-up, by the organization names of the record and associated mechanisms information assignment in right It answers organization names input frame and organization information to hide in field, and hides the mechanism pop-up.
Preferably, which is characterized in that
The organization tree shows the same level and parent body, the same level and Lower Establishment, the same level and higher level and Lower Establishment One of.
Preferably, which is characterized in that
When receiving to Lower Establishment when packing up instruction, whole follow-up mechanisms of the Lower Establishment are hidden.
Preferably, which is characterized in that
When receiving the expansion instruction to the Lower Establishment of hiding whole follow-up mechanisms, the whole of the Lower Establishment is shown Follow-up mechanism.
Preferably, which is characterized in that when the mechanism pop-up is shown, user clicks the page,
Obtain user's click on area;
When user's click on area is the blank space in the mechanism pop-up, show for adjusting the mechanism pop-up Size conditioning box;
User adjusts the size of the mechanism pop-up by the conditioning box.
Preferably, which is characterized in that
The width of the mechanism pop-up and the width of the mechanism input frame match, also, the width of the mechanism pop-up Degree has minimum value.
Preferably, which is characterized in that
The same level and Lower Establishment data, the same level and parent body's data of the organization tree are pre-stored within institute respectively It states in two independent global variables of top level page.
Preferably, which is characterized in that
The initial assignment of the mechanism input frame is the title for the mechanism that user is currently located.
Preferably, which is characterized in that
The organization information assignment that user is currently located is in the hiding field of default id.
Preferably, which is characterized in that
The default id is the id of default query condition of the organization tree in each page.
Based on another aspect of the present invention, a kind of system shown based on organization to data, feature are provided It is, the system comprises:
Acquiring unit, for obtain be desired with display array data and preparatory layout organization tree logic knot Structure;
Converting unit formats the array data for the logical construction based on the organization tree, To generate the data for meeting organization tree;
Generation unit, for carrying out preamble traversal to the data for meeting organization tree, to generate organization tree The display data of format, wherein the organization tree by organization's data layout for being pre-stored in top level page and At;
Response unit, for being directed to the acquisition request of current facility in response to receiving, according to locating for the current facility Organization's subtree determine parent body and/or the Lower Establishment of the current facility;And
Display unit, the display type for being inputted according to user show institute in the case where showing the current facility State parent body and/or the Lower Establishment of current facility.
The present invention reduces each paged machine by storing up organization's data in top level page for the use of all pages Structure request of data number, to improve the display speed of organization's data;Meanwhile it is defeated to some mechanism when receiving user When entering the click commands of frame, need whether organization tree corresponding to decision mechanism input frame has been depicted as mechanism pop-up, If the mechanism pop-up is rendered, the mechanism pop-up positioned at the internal layer page that draws before display, without adding again again Data are carried, without mechanism pop-up is repainted, so that the display speed of organization's data is further improved, in turn It improves work efficiency.In addition, management that the present invention concentrates value-added tax management system foreground organization data and Unified calling is conducive to the exploitation and use of other each correlation modules, it is no longer necessary to cumbersome processing organization's data Correlation function, it is only necessary to pay close attention to corresponding business, the development rate of each module can be greatly speeded up, and ensure that different moulds Communicating between block and coordinate.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart of the method provided in an embodiment of the present invention shown based on organization to data;
Fig. 2 is the flow chart provided in an embodiment of the present invention for judging certain record and whether needing to repaint process;
Fig. 3 is the structural block diagram of the system provided in an embodiment of the present invention shown based on organization to data.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.It should be noted that in the absence of conflict, embodiment in the present invention and Feature in embodiment can be combined with each other.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Embodiment of the method:
Referring to Fig. 1, Fig. 1 is the flow chart of the method provided in this embodiment shown based on organization to data. As shown in Figure 1, this method comprises:
Step S110 obtains the logical construction of the organization tree of the array data and preparatory layout that are desired with display.
Step S120, the logical construction based on organization tree format array data, meet group to generate The data of loom paper mulberry.
Step S130 carries out preamble traversal to the data for meeting organization tree, to generate the aobvious of organization's tree format Registration evidence, wherein organization tree is formed by the organization's data layout being pre-stored in top level page.
In the application, the organization tree of preparatory layout is drawn, wherein organization tree is by being pre-stored within top Organization's data layout in the layer page forms.
Specifically, organization's data are stored in advance in the global variable of top level page, and using in jQuery ZTree technology, by setting corresponding parameter, the layout Cheng Shu of Lai Shixian organization data, the mechanism pop-up of default It is hidden in the second level page, the organization tree that then user can complete layout is drawn.In addition, array is converted to tree The algorithm of shape structure also there are many kinds of, common time complexity be O (n × log n) and O (n2).But even O (n × og N), when mechanism number reaches certain value, the construction of front platform computer paper mulberry, actual measurement 5000 or more will be seriously affected, page can be made Face waiting 10 seconds or more.But there is a kind of algorithm, only need the time complexity of O (n), i.e., only executes primary traversal to array, it is preceding Mentioning is, the sequence of the array is that the preamble of multiway tree traverses, i.e. the such sequence of the right child node of the left child node-of father node-, draws Effect be exactly first parent body, then be lower layer expansion first Lower Establishment tree (all juniors including the Lower Establishment Mechanism), second Lower Establishment tree, to the last a Lower Establishment tree, under this algorithm, 5000 or more mechanism numbers Group, executing speed can also maintain within 1 second, and efficiency greatly improves.Certainly, on condition that the array sequence that backstage returns, it is necessary to Guarantee accurate.Oracle database is easier to realize, is by orders such as START WITH and CONNECT BY PRIOR Can, but MySQL database needs to increase the id or characteristic value that a subsidiary field stores all parent bodys, utilizes fuzzy query And by after rule compositor, it is also able to achieve same effect.
Step S140 is directed to the acquisition request of current facility, the group loom according to locating for current facility in response to receiving Structure subtree determines parent body and/or the Lower Establishment of current facility.
In the application, the data of organization tree, from backstage i.e. in a manner of asynchronous load after user logs in this system It is inquired and is received, predominantly two json data, the same level and Lower Establishment, the same level and parent body are stored in top layer page In two independent global variables in face, in the page that the related datas such as organization management, user management, pin square tube reason are safeguarded if any more New mechanism data, it is also desirable to update the organization tree in global variable, user logs in again after can also exiting, to guarantee group It is newest for knitting organization data.
Step S150 shows current facility in the case where showing current facility according to the display type that user inputs Parent body and/or Lower Establishment.
In the application, although organization's data are stored in the global variable of top level page, but can not be directly changed into Tree structure of the layering with the superior and the subordinate that can be shown.The application introduces the zTree technology in current popular jQuery, By setting corresponding parameter, the layout Cheng Shu of organization's data is realized, the pop-up of default is hidden in the page, when user's point When hitting mechanism input frame, pop-up is shown, user can click the record of a certain item on organization tree, can also click Expansion or merging button before record are conveniently checked.It, can be by corresponding organization data assignment in the page after clicking certain record In specified hiding field, and hiding mechanism frame simultaneously, or when user clicks page other positions, it also can hiding mechanism Frame.When opening the mechanism tree pop-up for second point of user, the page only shows the pop-up drawn before, Wu Xuzai Data and drafting are reloaded, will be had greatly improved in speed.
The mechanism tree of the same level and junior shows in the application, and default expansion the same level and past next stage, then the level of internal layer need User is wanted to be unfolded manually;The same level and parent body, due to being all one-to-one the superior and the subordinate's tree structure, so needing all expansion Display;All parent bodys and the same level is unfolded toward the mechanism of next stage, then machine down in the same level and higher level and Lower Establishment, default Structure needs user to be unfolded manually.
Preferably, when receiving the click commands to some mechanism input frame, judge group corresponding to the mechanism input frame Whether loom paper mulberry has been depicted as mechanism pop-up.
Specifically, judging that the input frame institute, mechanism is right when receiving click commands of the user to some mechanism input frame Whether the organization tree answered has been depicted as mechanism pop-up.
Preferably, if mechanism pop-up is rendered, the mechanism pop-up positioned at the internal layer page drawn before is shown.
Specifically, to the pop-up of Mr. Yu mechanism, if user is second point when opening, i.e. certain mechanism pop-up is not needed again When drafting, then the internal layer page only shows the mechanism pop-up drawn before, without data are reloaded again, also without Mechanism pop-up need to be repainted.
In the present embodiment, by storing up organization's data in top level page for the use of all pages, reduce each Page mechanism request of data number, to improve the display speed of organization's data;Meanwhile when receiving user to some When the click commands of mechanism input frame, need whether organization tree corresponding to decision mechanism input frame has been depicted as mechanism Pop-up, if the mechanism pop-up is rendered, the mechanism pop-up positioned at the internal layer page that draws before display, without weighing again New load data, without repainting mechanism pop-up, so that the display speed of organization's data is further improved, And then it improves work efficiency.In addition, the pipe that the present invention concentrates value-added tax management system foreground organization data Reason and unified calling, are conducive to the exploitation and use of other each correlation modules, it is no longer necessary to cumbersome processing organization number According to correlation function, it is only necessary to pay close attention to corresponding business, the development rate of each module can be greatly speeded up, and ensure that not With communicating between module and coordinate.
Referring to fig. 2, Fig. 2 is the stream provided in this embodiment for judging process that whether the mechanism pop-up needs to repaint Cheng Tu.As shown, the process includes the following steps:
Step S210 judges corresponding to the mechanism input frame when receiving the click commands to some mechanism input frame Whether pre-stored default value is modified in the code of the mechanism pop-up of organization tree.
Specifically, it is previously stored with default value in the code of mechanism pop-up, if mechanism pop-up was not drawn, Default value does not change, thus when the user clicks mechanism input frame when, the mechanism pop-up of the mechanism input frame is drawn same When, the default value of the mechanism pop-up can be modified, then pop-up is shown to the mechanism again.Therefore, item is inquired when the user clicks When mechanism input frame in part or the mechanism input frame in ejection layer, group loom corresponding to the mechanism input frame is first determined whether Whether pre-stored default value is modified in the code of the mechanism pop-up of paper mulberry.
Step S220, if default value has been modified, which does not need to repaint.
Specifically, default value will be modified, then just need not if user is second of click mechanism input frame Data are reloaded, mechanism pop-up need not be also repainted, directly mechanism pop-up is given and is shown.
In the present embodiment, when receiving the click commands to some mechanism input frame, by judging such mechanism pop-up Whether pre-stored default value is modified in code, and then may determine that whether such mechanism pop-up needs to repaint, such as Fruit does not need to repaint, then the mechanism pop-up positioned at the internal layer page that draws before display, without reloading data again, Without mechanism pop-up is repainted, so that the display speed of organization's data is improved.
In the various embodiments described above, when mechanism pop-up is shown, user clicks the page, user's click on area is obtained, if with When family click on area is mechanism input frame, then indication mechanism pop-up user can click the record of a certain item on organization tree, Expansion or merging button before record can also be clicked conveniently are checked;If user's click on area is except mechanism input frame and mechanism When region outside pop-up, then hiding mechanism pop-up.When clicking certain record inside mechanism pop-up, by the mechanism name of this record Claim and associated mechanisms information assignment is hidden in field in corresponding organization names input frame and organization information, while hiding mechanism bullet Window.
The public js tool in the present embodiment foreground packaged as one, can introduce and call in various related pages, By being passed to different required parameters, realize the displaying and switching of different data, predominantly the same level and junior, the same level and higher level, The same level and higher level and junior, and provide in the anti-method for looking into organization names of mechanism id, background query is removed again without developer. And from the point of view of the feedback of used use process client, it is desirable to provide the stretching of organization's frame and zoom function, to facilitate user It checks and selects.
The entitled departmentTree.js of js that the present embodiment encapsulation is completed, it is main in addition to the function of above-described embodiment introduction Further include following items function:
1. storage and update of organization's tree data in top level page
The data of organization tree, after user logs in this system i.e. in a manner of asynchronous load from carry out from the background inquiry and It receives, predominantly two json data, the same level and Lower Establishment data, the same level and parent body's data are stored in advance in top respectively Layer the page two independent global variables in, organization management, user management, pin square tube reason etc. related datas maintenance the page such as There is update organization data, it is also desirable to update the organization tree in global variable, user logs in again after can also exiting, to protect It is newest for demonstrate,proving organization's data.
2. the load of the internal layer page is completed, that is, initialize organization tree, i.e. the same level and Lower Establishment tree, the same level and higher level Mechanism tree, the same level of the two merging duplicate removal and higher level and Lower Establishment tree, and item is inquired with the organization names assignment of the same level mechanism Organization names input frame in part, with the other information assignment of the same level mechanism in hiding field.
The present embodiment defines a mechanism tree node entity class and a mechanism tree entity class.
Mechanism tree node entity class is as follows:
Mechanism tree entity class is as follows:
3. organization tree is in the assignment of each page fault querying condition
In the initial query condition of many pages, Dou You mechanism input frame.When page load is completed, mechanism input Frame has just defaulted the title that typing user is currently located mechanism, and then may be implemented, when loading completion, by active user institute In organization information assignment in the hiding field of default id, so only needing developer that the id of page fault querying condition is arranged To default id, other mechanism input frames used, then use other id instead, when assignment, can be by the id assignment that user is passed to, this Sample would not malfunction assignment field entanglement situations such as.
4. organization tree can be for the switching of the same level and the superior and the subordinate's data
The present embodiment establishes the js object class of a Tree and the mechanism node object class of a TreeNode, to incite somebody to action Organization's data of top level page storage are converted to the data type of tree structure.For common three kinds of organization trees, Three Tree objects, respectively tree, upTree and upDownTree are defined, store these three mechanism trees respectively, with respectively Store the same level and Lower Establishment, the same level and parent body, the same level and higher level and Lower Establishment.In addition there are also a references ShowTree is worth for one of former three, sees which mechanism tree is actual needs show, is just directed toward which variable.Organization tree can To show the same level and parent body, the same level and Lower Establishment, the same level and one of higher level and Lower Establishment, according to developer Which organization tree incoming different parameters need to show to switch, and default shows the same level and Lower Establishment, because this Mechanism tree uses at most most wide.The same level and parent body are generally used for selection audit mechanism, the same level and higher level and Lower Establishment, and one As for inquiring the public related data that the same level user can view, such as merchandise news, supervisory commodity can for the same level and Junior uses, but Lower Establishment is without commodity belonging to weight update parent body, but can modify quotient belonging to the same level and junior Product.
Call display the same level and Lower Establishment tree method for showBmDiv (divId, treeId, mcEl, idEl, BmidEl, nsrsbhEl, ssnsrsbhEl), the method can not pass parameter, i.e. showBmDiv (), be equivalent to using default Id title, this usage be suitble to page fault querying condition mechanism input frame.Call display the same level and parent body tree Method is showBmUpDiv (divId, treeId, mcEl, idEl, bmidEl, nsrsbhEl, ssnsrsbhEl), and usage is the same One similar, can also partially pass ginseng.Calling the method for display the same level and higher level and Lower Establishment tree is showBmUpDownDiv (divId,treeId,mcEl,idEl,bmidEl,nsrsbhEl,ssnsrsbhEl).When the user clicks after some record, it can adjust Subsequent assignment and other operations are executed with onBmClick method.
5. the default size and stretch function of organization's tree pop-up
The default height of mechanism pop-up is the height of 10 mechanisms record, the machine of the same level mechanism of common customer toward next stage Structure quantity vertical scroll bar just need not occur within 10 in this way.The mechanism tree of the same level and junior show, default expansion the same level and User is needed to be unfolded manually toward next stage, then the level of internal layer;The same level and parent body, due to being all one-to-one the superior and the subordinate tree Shape structure, so needing all expansion displays;The same level and higher level and Lower Establishment, all parent bodys are unfolded in default and the same level is past The mechanism of next stage, then mechanism down need user to be unfolded manually, when receiving user under hiding whole follow-up mechanisms When the expansion instruction of grade mechanism, whole follow-up mechanisms of the Lower Establishment will be shown;It is subsequent to hiding whole when receiving user When the expansion instruction of the Lower Establishment of mechanism, whole follow-up mechanisms of the Lower Establishment will be shown.The default size of mechanism pop-up Size based on mechanism input frame is set, and the width default of mechanism pop-up is identical as mechanism input frame, but works as mechanism input frame mistake When narrow, the width of mechanism pop-up can be set as the minimum value of default, so that checking for mechanism tree is unlikely to too crowded and not beautiful It sees.
When the user clicks when the page, user's click on area is obtained, if user's click on area is the blank in mechanism pop-up When place, the meeting position that surrounding is kept to the side in mechanism pop-up shows 8 conditioning boxes for stretching, when user's mouse is moved to When on some conditioning box, mouse can become corresponding tension shape, to prompt the availability of user's function.It is stretched in user After fair-sized, when next time puts out the pop-up again, it can still safeguard stretched size, be drawn every time without user It stretches, to facilitate user preferably to use mechanism pop-up.
It for the stretch function of implementation mechanism pop-up, needs to introduce one section of CSS file, specifies the display of 8 points of stretching buttons 8 points of stretching buttons of pattern and control show hidden switching.Then the mechanism pop-up of corresponding id is increased into a class class, $ (" # "+ showTree.treeId).addClass("drsElement drsMoveHandle");Recall one it is entitled The stretchable effect of size of DragResize script implementation mechanism pop-up.
To sum up, the present embodiment is reduced by storing up organization's data in top level page for the use of all pages Each page mechanism request of data number, to improve the display speed of organization's data;Meanwhile when receiving user to certain When the click commands of a mechanism input frame, need whether organization tree corresponding to decision mechanism input frame has been depicted as machine Structure pop-up, if the mechanism pop-up is rendered, the mechanism pop-up positioned at the internal layer page drawn before display, Wu Xuzai Data are reloaded, without mechanism pop-up is repainted, so that the display speed of organization's data is further mentioned Height, and then improve work efficiency.In addition, the present invention has carried out concentration to value-added tax management system foreground organization data Management and unified calling, are conducive to the exploitation and use of other each correlation modules, it is no longer necessary to cumbersome processing organization The correlation function of data, it is only necessary to pay close attention to corresponding business, the development rate of each module can be greatly speeded up, and ensure that Communicating between disparate modules and coordinate.
Installation practice:
Referring to Fig. 3, Fig. 3 is the structural frames of the system provided in this embodiment shown based on organization to data Figure.A kind of system 300 shown based on organization to data includes: as shown in Figure 3
Acquiring unit 301, the organization tree for obtaining the array data and preparatory layout that are desired with display are patrolled Collect structure;
Converting unit 302 formats array data for the logical construction based on organization tree, to generate Meet the data of organization tree;
Generation unit 303, for carrying out preamble traversal to the data for meeting organization tree, to generate organization's tree lattice The display data of formula, wherein organization tree is formed by the organization's data layout being pre-stored in top level page;
Response unit 304, for being directed to the acquisition request of current facility in response to receiving, according to locating for current facility Organization's subtree determines parent body and/or the Lower Establishment of current facility;And
Display unit 305, the display type for being inputted according to user, in the case where showing current facility, display is worked as The parent body of preceding mechanism and/or Lower Establishment.
Preferably, system 300 further includes pop-up unit 306, is used for:
Whether organization tree corresponding to decision mechanism input frame has been depicted as mechanism pop-up:
When receiving the click commands to mechanism input frame, the mechanism of organization tree corresponding to decision mechanism input frame Whether pre-stored default value is modified in the code of pop-up;
If default value has been modified, mechanism pop-up does not need to repaint.
Preferably, pop-up unit 306 is also used to:
If mechanism pop-up is not drawn, its pre-stored default value is drawn and modified to mechanism pop-up, then Mechanism pop-up is shown.
Preferably, pop-up unit 306 is also used to, when mechanism pop-up is shown, user clicks the page,
Obtain user's click on area;
When region is mechanism input frame when the user clicks, indication mechanism pop-up.
Preferably, pop-up unit 306 is also used to, when mechanism pop-up is shown, user clicks the page,
Obtain user's click on area;
When region is the region in addition to mechanism input frame and mechanism pop-up when the user clicks, hiding mechanism pop-up.
Preferably, pop-up unit 306 is also used to,
When clicking the record inside mechanism pop-up, by the organization names of the record and associated mechanisms information assignment in corresponding machine Structure title input frame and organization information are hidden in field, and hiding mechanism pop-up.
Preferably, display unit 305 is also used to,
Organization tree shows in the same level and parent body, the same level and Lower Establishment, the same level and higher level and Lower Establishment It is a kind of.
Preferably, display unit 305 is also used to,
When receiving to Lower Establishment when packing up instruction, whole follow-up mechanisms of Hide Downstream mechanism.
Preferably, display unit 305 is also used to,
When receiving the expansion instruction to the Lower Establishment of hiding whole follow-up mechanisms, the whole of the Lower Establishment is shown Follow-up mechanism.
Preferably, display unit 305 is also used to, when mechanism pop-up is shown, user clicks the page,
Obtain user's click on area;
When region is the blank space in mechanism pop-up when the user clicks, adjusting of the display for the size of regulating mechanism pop-up Frame;
User passes through the size of conditioning box regulating mechanism pop-up.
Preferably, in system 300, the width of mechanism pop-up and the width of mechanism input frame match, also, mechanism pop-up Width have minimum value.
Preferably, in system 300, the same level and Lower Establishment data, the same level and parent body's data point of organization tree It is not pre-stored in two independent global variables of top level page.
Preferably, in system 300, the initial assignment of mechanism input frame is the title for the mechanism that user is currently located.
Preferably, in system 300, the organization information assignment that user is currently located is in the hiding field of default id.
Preferably, in system 300, default id is id of the organization tree in the default query condition of each page.
Wherein, the specific implementation process of the system is referring to the explanation in above method embodiment, and the present embodiment is herein It repeats no more.
It should be noted that the method provided in this embodiment shown based on organization to data and based on tissue The system principle that mechanism shows data is identical, and related place can be cross-referenced.
To sum up, the present embodiment is reduced by storing up organization's data in top level page for the use of all pages Each page mechanism request of data number, to improve the display speed of organization's data;Meanwhile when receiving user to certain When the click commands of a mechanism input frame, need whether organization tree corresponding to decision mechanism input frame has been depicted as machine Structure pop-up, if the mechanism pop-up is rendered, the mechanism pop-up positioned at the internal layer page drawn before display, Wu Xuzai Data are reloaded, without mechanism pop-up is repainted, so that the display speed of organization's data is further mentioned Height, and then improve work efficiency.In addition, the present invention has carried out concentration to value-added tax management system foreground organization data Management and unified calling, are conducive to the exploitation and use of other each correlation modules, it is no longer necessary to cumbersome processing organization The correlation function of data, it is only necessary to pay close attention to corresponding business, the development rate of each module can be greatly speeded up, and ensure that Communicating between disparate modules and coordinate.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (30)

1. a kind of method shown based on organization to data, which is characterized in that the described method includes:
Obtain the logical construction of the organization tree of the array data and preparatory layout that are desired with display;
Logical construction based on the organization tree formats the array data, meets organization to generate The data of tree;
Preamble traversal is carried out to the data for meeting organization tree, to generate the display data of organization's tree format, In, the organization tree is formed by the organization's data layout being pre-stored in top level page;
It is directed to the acquisition request of current facility in response to receiving, is determined according to organization's subtree locating for the current facility The parent body of the current facility and/or Lower Establishment;And
The higher level of the current facility is shown in the case where showing the current facility according to the display type that user inputs Mechanism and/or Lower Establishment.
2. according to the method described in claim 1, including:
Whether organization tree corresponding to decision mechanism input frame has been depicted as mechanism pop-up:
When receiving the click commands to the mechanism input frame, organization tree corresponding to the mechanism input frame is judged Whether pre-stored default value is modified in the code of mechanism pop-up;
If the default value has been modified, the mechanism pop-up does not need to repaint.
3. according to the method described in claim 2, it is characterized in that,
If the mechanism pop-up is not drawn, the mechanism pop-up is drawn and modifies its pre-stored default Value, then the mechanism pop-up is shown.
4. the method according to any one of claim 2 to 3, which is characterized in that when the mechanism pop-up is shown, Yong Hudian When hitting the page,
Obtain user's click on area;
When user's click on area is the mechanism input frame, the mechanism pop-up is shown.
5. the method according to any one of claim 2 to 3, which is characterized in that when the mechanism pop-up is shown, Yong Hudian When hitting the page,
Obtain user's click on area;
When user's click on area is the region in addition to the mechanism input frame and the mechanism pop-up, the mechanism is hidden Pop-up.
6. the method according to any one of claim 2 to 3, which is characterized in that
When clicking the record inside the mechanism pop-up, by the organization names of the record and associated mechanisms information assignment in corresponding machine Structure title input frame and organization information are hidden in field, and hide the mechanism pop-up.
7. the method according to any one of claim 2 to 3, which is characterized in that
The organization tree shows in the same level and parent body, the same level and Lower Establishment, the same level and higher level and Lower Establishment It is a kind of.
8. the method according to any one of claim 2 to 3, which is characterized in that
When receiving to Lower Establishment when packing up instruction, whole follow-up mechanisms of the Lower Establishment are hidden.
9. according to the method described in claim 8, it is characterized in that,
When receiving the expansion instruction to the Lower Establishment of hiding whole follow-up mechanisms, show that the whole of the Lower Establishment is subsequent Mechanism.
10. the method according to any one of claim 2 to 3, which is characterized in that when the mechanism pop-up is shown, user When clicking the page,
Obtain user's click on area;
When user's click on area is the blank space in the mechanism pop-up, show for adjusting the big of the mechanism pop-up Small conditioning box;
User adjusts the size of the mechanism pop-up by the conditioning box.
11. the method according to any one of claim 2 to 3, which is characterized in that
The width of the mechanism pop-up and the width of the mechanism input frame match, also, the width tool of the mechanism pop-up There is minimum value.
12. according to the method in any one of claims 1 to 3, which is characterized in that
The same level and Lower Establishment data, the same level and parent body's data of the organization tree are pre-stored within the top respectively In two independent global variables of the layer page.
13. the method according to any one of claim 2 to 3, which is characterized in that
The initial assignment of the mechanism input frame is the title for the mechanism that user is currently located.
14. the method according to any one of claim 2 to 3, which is characterized in that
The organization information assignment that user is currently located is in the hiding field of default id.
15. according to the method for claim 14, which is characterized in that
The default id is the id of default query condition of the organization tree in each page.
16. a kind of system shown based on organization to data, which is characterized in that the system comprises:
Acquiring unit, for obtain be desired with display array data and preparatory layout organization tree logical construction;
Converting unit formats the array data for the logical construction based on the organization tree, with life At the data for meeting organization tree;
Generation unit, for carrying out preamble traversal to the data for meeting organization tree, to generate organization's tree format Display data, wherein the organization tree is formed by the organization's data layout being pre-stored in top level page;
Response unit, for being directed to the acquisition request of current facility in response to receiving, according to group locating for the current facility Loom structure subtree determines parent body and/or the Lower Establishment of the current facility;And
Display unit, the display type for being inputted according to user are worked as described in display in the case where showing the current facility The parent body of preceding mechanism and/or Lower Establishment.
17. system according to claim 16 further includes pop-up unit, is used for:
Whether organization tree corresponding to decision mechanism input frame has been depicted as mechanism pop-up:
When receiving the click commands to the mechanism input frame, organization tree corresponding to the mechanism input frame is judged Whether pre-stored default value is modified in the code of mechanism pop-up;
If the default value has been modified, the mechanism pop-up does not need to repaint.
18. according to the method for claim 17, the pop-up unit is also used to:
If the mechanism pop-up is not drawn, the mechanism pop-up is drawn and modifies its pre-stored default Value, then the mechanism pop-up is shown.
19. system described in any one of 7 to 18 according to claim 1, the pop-up unit is also used to, when the mechanism pop-up It has been shown that, when user clicks the page,
Obtain user's click on area;
When user's click on area is the mechanism input frame, the mechanism pop-up is shown.
20. system described in any one of 7 to 18 according to claim 1, the pop-up unit is also used to, when the mechanism pop-up It has been shown that, when user clicks the page,
Obtain user's click on area;
When user's click on area is the region in addition to the mechanism input frame and the mechanism pop-up, the mechanism is hidden Pop-up.
21. system described in any one of 7 to 8 according to claim 1, the pop-up unit is also used to, and clicks the mechanism bullet When record inside window, by the organization names of the record and associated mechanisms information assignment in corresponding organization names input frame and mechanism In Information hiding field, and hide the mechanism pop-up.
22. system described in any one of 7 to 18 according to claim 1, the display unit is also used to, the organization tree Show the same level and parent body, the same level and Lower Establishment, the same level and one of higher level and Lower Establishment.
23. system described in any one of 7 to 18 according to claim 1, the display unit is also used to,
When receiving to Lower Establishment when packing up instruction, whole follow-up mechanisms of the Lower Establishment are hidden.
24. system according to claim 22, the display unit is also used to,
When receiving the expansion instruction to the Lower Establishment of hiding whole follow-up mechanisms, show that the whole of the Lower Establishment is subsequent Mechanism.
25. system described in any one of 7 to 18 according to claim 1, the display unit is also used to, when the mechanism pop-up It has been shown that, when user clicks the page,
Obtain user's click on area;
When user's click on area is the blank space in the mechanism pop-up, show for adjusting the big of the mechanism pop-up Small conditioning box;
User adjusts the size of the mechanism pop-up by the conditioning box.
26. system described in any one of 7 to 18 according to claim 1, which is characterized in that
The width of the mechanism pop-up and the width of the mechanism input frame match, also, the width tool of the mechanism pop-up There is minimum value.
27. system described in any one of 6 to 18 according to claim 1, which is characterized in that
The same level and Lower Establishment data, the same level and parent body's data of the organization tree are pre-stored within the top respectively In two independent global variables of the layer page.
28. system described in any one of 7 to 18 according to claim 1, which is characterized in that
The initial assignment of the mechanism input frame is the title for the mechanism that user is currently located.
29. system described in any one of 7 to 18 according to claim 1, which is characterized in that
The organization information assignment that user is currently located is in the hiding field of default id.
30. system according to claim 29, which is characterized in that
The default id is the id of default query condition of the organization tree in each page.
CN201711450731.6A 2017-12-27 2017-12-27 A kind of method and system that data are shown based on organization Pending CN110020372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711450731.6A CN110020372A (en) 2017-12-27 2017-12-27 A kind of method and system that data are shown based on organization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711450731.6A CN110020372A (en) 2017-12-27 2017-12-27 A kind of method and system that data are shown based on organization

Publications (1)

Publication Number Publication Date
CN110020372A true CN110020372A (en) 2019-07-16

Family

ID=67187058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711450731.6A Pending CN110020372A (en) 2017-12-27 2017-12-27 A kind of method and system that data are shown based on organization

Country Status (1)

Country Link
CN (1) CN110020372A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346610A (en) * 2020-10-15 2021-02-09 零氪科技(北京)有限公司 Implementation method of multi-level selectable option selection component, electronic device and storage medium
CN113821572A (en) * 2021-07-19 2021-12-21 中共四川省委组织部 Method and equipment for generating organization structure tree based on organization structure coding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566864A (en) * 2010-12-24 2012-07-11 新奥特(北京)视频技术有限公司 Flexible customized interface operation method and system
CN104331491A (en) * 2014-11-14 2015-02-04 北京久其软件股份有限公司 Method and device for displaying organization
CN105549973A (en) * 2015-12-11 2016-05-04 上海斐讯数据通信技术有限公司 Data updating method and system for view list in list control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566864A (en) * 2010-12-24 2012-07-11 新奥特(北京)视频技术有限公司 Flexible customized interface operation method and system
CN104331491A (en) * 2014-11-14 2015-02-04 北京久其软件股份有限公司 Method and device for displaying organization
CN105549973A (en) * 2015-12-11 2016-05-04 上海斐讯数据通信技术有限公司 Data updating method and system for view list in list control

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
小菜鸟的博客: "《https://blog.csdn.net/houpengfei111/article/details/8003717》", 21 September 2012 *
网易: "《http://yinzhihua2008.blog.163.com/blog/static/7943067200611308207229》", 30 December 2006 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346610A (en) * 2020-10-15 2021-02-09 零氪科技(北京)有限公司 Implementation method of multi-level selectable option selection component, electronic device and storage medium
CN113821572A (en) * 2021-07-19 2021-12-21 中共四川省委组织部 Method and equipment for generating organization structure tree based on organization structure coding

Similar Documents

Publication Publication Date Title
CN109814856A (en) Data entry method, device, terminal and computer readable storage medium
CN109543925A (en) Risk Forecast Method, device, computer equipment and storage medium based on machine learning
CN110263307A (en) Report form generation method, server and computer readable storage medium
CN104572775B (en) Advertisement classification method, device and server
CN111598730A (en) System and method for extracting engineering quantity and avoiding secondary quantity extraction
CN110458595A (en) Rules process method, electronic device and the computer equipment of configurableization
US20060020608A1 (en) Cube update tool
CN110020372A (en) A kind of method and system that data are shown based on organization
CN110633078B (en) Method and device for automatically generating feature calculation codes
CN109345088A (en) Habilimentation intelligence decomposition method, device, electronic equipment and medium
US20160092811A1 (en) Business rules framework
CN110322217A (en) Manufacture cloud service Requirement Decomposition system and method based on template
CN113287100A (en) System and method for generating in-memory table model database
CN113268496A (en) Client list screening method and device
TWI684147B (en) Cloud self-service analysis platform and analysis method thereof
CN112348403B (en) Wind control model construction method and device and electronic equipment
CN112637793B (en) Scene charging method, system, electronic equipment and storage medium based on 5G
CN110675054B (en) Data processing method, data processing system and related equipment in ERP system
US20210304228A1 (en) Method of information processing, electronic device, and computer program product
CN114169965A (en) Commodity similarity matching method and device, equipment, medium and product thereof
CN114372189A (en) Processing method and device of user-defined report, storage medium and electronic equipment
CN112052262A (en) Method and device for displaying payment order processing line and electronic equipment
CN111476010A (en) High-flexibility report method and system
CN117171237B (en) Real-time statistical data visualization method and system in discrete simulation software
CN116108819B (en) Automatic document generation method and system for ERP management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716

RJ01 Rejection of invention patent application after publication