Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of Dynamic Display method of book when sequence withAnd terminal device, it is intended to which book does not support the customized display of color, display to check result not apparent problem when solving sequence.
Technical scheme is as follows:
A kind of Dynamic Display method of book when sequence comprising step:
A, it presets and meets the data of different condition and the corresponding relationship of corresponding color;
B, it requires to screen data according to screening, the data after being screened;
C, the condition met to the data after screening is analyzed, and is inquired in the corresponding relationship based on the analysis resultsCorresponding color;
D, it by the color application inquired to corresponding data, and shows.
Preferably, the step A is specifically included:
Data Styles set interface is added in book in sequence;
Meet the data of different condition and the corresponding relationship of corresponding color in Data Styles set interface setting.
Preferably, the condition includes condition field, condition comparison operators and fiducial value.
Preferably, the step B is specifically included:
B1, screening requirement is preset;
B2, the request of data required comprising the screening is submitted;
B3, the data after screening are obtained.
Preferably, the step C is specifically included:
Whether C1, to judge data effective, if data are effective, thens follow the steps C2,
C2, pre-set corresponding relationship is judged whether there is, if it is present executing step C3;
C3, judge whether data are completed to traverse, if completed, then follow the steps C4;
C4, judge whether corresponding relationship is completed to traverse, if completed, then follow the steps C5;
C5, the condition met according to data match corresponding color in the corresponding relationship, then execute stepD。
Preferably, the color includes foreground and background colour.
The present invention also provides its a kind of terminal devices comprising:
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
It presets and meets the data of different condition and the corresponding relationship of corresponding color;
It requires to screen data according to screening, the data after being screened;
The condition met to the data after screening is analyzed, and inquires phase in the corresponding relationship based on the analysis resultsThe color answered;
By in the color application inquired to corresponding data, and show.
Preferably, described preset meets the data of different condition and specifically includes with the corresponding relationship of corresponding color:
Data Styles set interface is added in book in sequence;
Meet the data of different condition and the corresponding relationship of corresponding color in Data Styles set interface setting.
Preferably, the color includes foreground and background colour.
Preferably, the data qualification includes condition field, condition comparison operators and fiducial value.
The utility model has the advantages that the method and terminal device that provide through the invention, user can according to need, self-defining dataColor the corresponding information of data can be directly acquired by the color of data when checking result, it is very clear, the present inventionThe method for providing customized display color scheme is simple, flexible, and ease for use is high.
Specific embodiment
The Dynamic Display method and terminal device of book when the present invention provides a kind of sequence, to make the purpose of the present invention, technologyScheme and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that described herein specificEmbodiment is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, when Fig. 1 is a kind of sequence of the invention book Dynamic Display method preferred embodiment flow chart comprisingStep:
S1, it presets and meets the data of different condition and the corresponding relationship of corresponding color;
S2, it requires to screen data according to screening, the data after being screened;
S3, the condition met to the data after screening are analyzed, and are looked into the corresponding relationship based on the analysis resultsAsk corresponding color;
S4, by the color application inquired to corresponding data, and show.
The method provided through the invention, user can preset the color itself liked, for data application after screeningCorresponding color can directly acquire the corresponding information of data by the color of data when checking result, very clear.The method provided by the present invention is very simple, and also can be different items even there is the field of multiple Rule of judgment effectivelyThe corresponding color of the data application of part.Practicability is substantially increased, operation is also very simple, and ease for use also greatly improves.
Preferably, the step S1 is specifically included:
S11, Data Styles set interface is added in book in sequence;
S12, it is closed in the data that Data Styles set interface setting meets different condition with the corresponding of corresponding colorSystem.
In the step S11 and S12, first for existing sequence when book add a Data Styles set interface, addition is completedAfterwards, user can meet the data of different condition and corresponding color in the setting of Data Styles set interface according to itself hobbyCorresponding relationship, for example, corresponding color is red in corresponding relationship when data meet and are greater than 0 and condition less than 100Color;When data, which meet, is equal to 100 condition, corresponding color is yellow in corresponding relationship;When data meet greater than 100When condition, corresponding color is blue in corresponding relationship.In this way, a plurality of allocation plan is contained in corresponding relationship, firstAllocation plan are as follows: when data meet the condition greater than 0 and less than 100, data configuration is red;It is equal to 100 when data meetCondition when, data configuration is yellow;When data, which meet, is greater than 100 condition, data configuration is blue.
So, user can be according to itself hobby, and setting is full in the Data Styles set interface in sequence in bookThe corresponding relationship of the data of sufficient different condition and corresponding color, it is very simply, conveniently, very practical, easy-to-use.
Preferably, the condition includes condition field, condition comparison operators and fiducial value, as shown in table 1.
Table 1
| Field | Compare | Value | Foreground | Background colour | 
| Document status | It is equal to | Creation | #ffffff | #ff0000 | 
| Document status | It is equal to | In audit | #ffffff | #6A5ACD | 
| Document status | It is equal to | It has audited | #ffffff | #ffff00 | 
The condition field is selected in existing field in the corresponding document of book when preamble it can be seen from upper table 1It takes, for example, income field in selection document or be expenditure field etc..The condition comparison operators can be common numberLearn symbol, be e.g. equal to, be greater than or equal to, being less than or equal to, being less than, being greater than and not equal to etc. mathematic signs.Fiducial valueCreation be for convenience be compared with data in book when sequence.For example, fiducial value is set as 100, comparison operators is equal to working as numberWhen according to being 100, corresponding allocation plan is set for this data;When data are not 100, it is not provided with allocation plan, Huo ZhesheSet new allocation plan.
Preferably, the color includes foreground and background colour.
Color includes foreground and background colour, and user can according to need, and different foreground and background colour is arrangedColor value, such as #ffffff is set by the color value of foreground, the color value of background colour is set as #ff0000;Setting prospectThe color value of color is #ffffff, and the color value of background colour is #6A5ACD;The color value that foreground is arranged is #ffffff, backgroundThe color value of color is #ffff00 etc..
Preferably, the step B is specifically included:
S21, screening requirement is preset;
S22, the request of data required comprising the screening is submitted;
S23, the data after screening are obtained.
In the step S21, user is as needed, presets screening and requires, for example, to the displays of data, hide orPerson's sequence etc..For example, display wages are greater than 8000 data, hidden by the data in salary scales according to being ranked up from high to lowHide the data that wages are greater than 20000.In the step S22, the request of data required comprising the screening is submitted, for example, submittingThe request of data for being greater than 20000 comprising hiding wages, or submit the request of data comprising wages sorting data from low to high.
In the step S23, according to the request of data that step S22 is submitted, data are handled, such as step S22 is mentionedWhat is handed over is the request of data for being greater than 20000 comprising hiding wages, then be hidden to 20000 data are greater than in salary scales, it is hiddenAfter the completion of hiding, remainder data is shown or what step S22 was submitted is that the data comprising wages sorting data from low to high are askedIt asks, then carrying out sequence from low to high to data, after the completion of sequence, data is shown.
Particularly, user can according to need, and multiple screening requirements are arranged, for example, display is greater than wages 8000 and is less than15000 data, and sort in the way of from low to high, the corresponding request of data that step S32 can also be submitted.
So, user only needs to preset screening and requires, and can easily operate, be obtained to dataThe data that body needs.
Preferably, the step S3 is specifically included:
Whether S31, to judge data effective, if data are effective, thens follow the steps S32,
S32, pre-set corresponding relationship is judged whether there is, if it is present executing step S33;
S33, judge whether data are completed to traverse, if completed, then follow the steps S34;
S34, judge whether corresponding relationship is completed to traverse, if completed, then follow the steps S35;
S35, the condition met according to data match corresponding color in the corresponding relationship, then execute stepS4。
In the step S31, whether effective data are judged, if data are effective, then follow the steps S32;If data withoutEffect, is not processed the data, at this time process terminate or return step S2 in, reset screening conditions, submit correspondingRequest of data, and data are screened again.For example, data are 3, and effective data acquisition system is { 1,3,7,9 }, at this timeData are effective, execute step S32;If data are 5, data invalid, is not processed data 5 at this time, or data 5 are returnedIn step S32, screening conditions are reset, submit corresponding request of data, and data are screened again.
In the step S32, pre-set corresponding relationship is judged whether there is, if it is present executing step S33;If it does not, being not processed to data, process terminates at this time.For example, pre-set corresponding relationship are as follows: when data are greater thanWhen 100, corresponding color is red in corresponding relationship, then executing step S33, such as there are pre-set corresponding relationshipThe pre-set corresponding relationship of fruit is sky, it is clear that pre-set corresponding relationship is not present, then data are not processed, at this time processTerminate.
In the step S33, judge whether data are completed to traverse, if completed, thens follow the steps S34, if do not completed,Whether the data that then return step S31 judgement does not traverse are effective.For example, having one group of data for { 1,2,3,5 }, in this group of data1,2,3 is completed traversal, judges that data do not complete traversal at this time, then executing in step S34, carries out accordingly to data 5Processing.If completing traversal, process terminates.
In the step S34, judge whether corresponding relationship is completed to traverse, if completed, S35 is thened follow the steps, if notIt completes, in return step S34, continues to traverse.Above-mentioned steps are substantially to carry out to each allocation plan in corresponding relationshipTraversal needs to continue to execute the allocation plan if wherein there is the allocation plan for not completing traversal.For example, presettingCorresponding relationship include: when data are greater than 0 and when less than 100, corresponding color is red in corresponding relationship;When data are equal toWhen 100, corresponding color is yellow in corresponding relationship;When data are greater than 100, corresponding color is indigo plant in corresponding relationshipColor.At this point, judging that all corresponding relationships are all completed to traverse, S35 is thened follow the steps, if one of corresponding relationship, exampleIf blue is there is no traversal is completed, then return step S34, traverses corresponding relationship again.
In the step S35, the condition met to data is analyzed, for example, the collection of data be combined into 100,500,99,255,0 }, first allocation plan are as follows: when data meet the condition greater than 0 and less than 100, data configuration is red;WhenWhen data meet the condition equal to 100, data configuration is yellow;When data, which meet, is greater than 100 condition, data configuration is indigo plantColor configures red for data 99 according to allocation plan, configures yellow for data 100, configures data 500 and 255 toBlue is not processed data 0.It can obtain whether each data meet condition in this way, and which condition met, and to fullThe data of sufficient condition match corresponding color in the corresponding relationship, after the completion of matching, execute step S4.For discontentedThe data of sufficient condition are not handled the data then, for meeting the data of a certain condition, if without the side of configuration accordinglyCase is not handled the data then.
In the step S4, first by the color application inquired to corresponding data, using after the completion, data are shownIn sequence in book.Very clear using the data after color, user directly can judge that the data are full by color in dataThe condition of foot.
So, user passes through simple pre-set corresponding relationship, then screens to data, and screening is completedAfterwards, book can be the corresponding color of data application for meeting different condition when sequence, and show, user can directly pass through dataIn color judge data meet condition.This method is simple, is easily used, and high-efficient.
The present invention also provides a kind of terminal devices 10, as shown in Fig. 2, comprising:
Processor 110 is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
It presets and meets the data of different condition and the corresponding relationship of corresponding color;
It requires to screen data according to screening, the data after being screened;
The condition met to the data after screening is analyzed, and inquires phase in the corresponding relationship based on the analysis resultsThe color answered;
By in the color application inquired to corresponding data, and show.
Preferably, described preset meets the data of different condition and specifically includes with the corresponding relationship of corresponding color:
Data Styles set interface is added in book in sequence;
Meet the data of different condition and the corresponding relationship of corresponding color in Data Styles set interface setting.
Preferably, the color includes foreground and background colour.
Preferably, the data qualification includes condition field, condition comparison operators and fiducial value
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC),Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are dividedAny combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be anyConventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei ChuManage combination, multi-microprocessor, one or more microprocessors combination DSP core or any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile softwareProgram, non-volatile computer executable program and module, as the domain name dynamic switching method in the embodiment of the present invention is correspondingProgram instruction.Processor is stored in non-volatile software program, instruction and unit in storage equipment by operation, thusThe various function application and data processing of dynamic domain name switching are executed, i.e. domain name dynamic in realization above method embodiment is cutChange method.
Particular technique details about above-mentioned terminal device has been described in detail in above-mentioned steps, is not repeated herein.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills canWith improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present inventionProtect range.