CN112926293A - Method, device and equipment for switching form items and storage medium - Google Patents

Method, device and equipment for switching form items and storage medium Download PDF

Info

Publication number
CN112926293A
CN112926293A CN202110215277.6A CN202110215277A CN112926293A CN 112926293 A CN112926293 A CN 112926293A CN 202110215277 A CN202110215277 A CN 202110215277A CN 112926293 A CN112926293 A CN 112926293A
Authority
CN
China
Prior art keywords
angle
interval
preset
acquiring
terminal equipment
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.)
Granted
Application number
CN202110215277.6A
Other languages
Chinese (zh)
Other versions
CN112926293B (en
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110215277.6A priority Critical patent/CN112926293B/en
Publication of CN112926293A publication Critical patent/CN112926293A/en
Application granted granted Critical
Publication of CN112926293B publication Critical patent/CN112926293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Telephone Function (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

The invention relates to data processing and provides a method, a device, equipment and a storage medium for switching form items. The method includes the steps of obtaining an inclination angle of a terminal device, obtaining duration time of the inclination angle on the terminal device, determining a starting user of a preset form, obtaining an operation time interval of the starting user for operating the terminal device, obtaining a first preset inclination value and a second preset inclination value of the starting user if the duration time is within the operation time interval, determining a first interval according to the first preset inclination value, determining a second interval according to the second preset inclination value, obtaining a current filling item of the preset form if the first angle is within the first interval and the second angle is not within the second interval, and longitudinally switching the current filling item. The invention can improve the switching efficiency of the form items. In addition, the invention also relates to a block chain technology, and the first interval and the second interval can be stored in a block chain.

Description

Method, device and equipment for switching form items and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for switching form items.
Background
With the rapid development of the intelligent terminal, various types of forms can be filled in through various terminal devices, however, in the filling process of the forms, the form items need to be manually selected for switching, so that the switching efficiency of the form items is low.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, a device and a storage medium for switching form items, which can improve the efficiency of switching form items.
On one hand, the invention provides a form item switching method, which is applied to terminal equipment and comprises the following steps:
when the preset form on the terminal equipment is detected to be opened, acquiring an inclination angle of the terminal equipment, wherein the inclination angle comprises a first angle of the terminal equipment relative to a horizontal plane and a second angle of the terminal equipment relative to a longitudinal plane;
acquiring the duration of the inclination angle on the terminal equipment;
determining a starting user of the preset form, and acquiring an operation time interval for the starting user to operate the terminal equipment;
if the duration is within the operation time interval, acquiring a first preset inclination value of the starting user, wherein the first preset inclination value is an angle relative to a horizontal plane, and acquiring a second preset inclination value of the starting user, and the second preset inclination value is an angle relative to a longitudinal plane;
determining a first interval according to the first preset inclination value, and determining a second interval according to the second preset inclination value;
detecting whether the first angle is within the first interval and detecting whether the second angle is within the second interval;
and if the first angle is within the first interval and the second angle is not within the second interval, acquiring a current filling item of the preset form, and longitudinally switching the current filling item.
According to a preferred embodiment of the present invention, the obtaining of the duration of the tilt angle on the terminal device includes:
acquiring a tolerance angle of the terminal equipment;
determining a threshold angle interval of the terminal equipment according to the inclination angle and the tolerance angle;
when detecting that the current angle of the terminal equipment is not the threshold angle interval, determining the first time when the terminal equipment is at the current angle;
acquiring a second time when the terminal equipment is at the inclination angle;
and calculating the time difference between the first time and the second time to obtain the duration.
According to a preferred embodiment of the present invention, the determining the starting user of the preset form includes:
acquiring the form number of the preset form;
acquiring a starting log of the preset form from the terminal equipment according to the form number;
acquiring information for indicating a user from the start log as a user identification code;
and determining the user corresponding to the user identification code as the starting user.
According to a preferred embodiment of the present invention, the acquiring the operation time interval for starting the user to operate the terminal device includes:
acquiring a preset identifier, wherein the preset identifier is used for indicating a database for storing the control duration corresponding to each user, and the control duration refers to the duration for switching the form items of each user control device;
acquiring a database corresponding to the preset identifier as a target database;
writing the user identification code into a preset template to obtain an inquiry statement;
and querying the target database by using the query statement to obtain the operation time interval corresponding to the starting user.
According to a preferred embodiment of the present invention, said determining a first interval according to said first preset inclination value comprises:
calculating the average value of the first preset inclination value to obtain an inclination average value;
calculating the standard deviation of the first preset inclination value according to the first preset inclination value and the average value to obtain an inclination error;
calculating the difference value of the inclination mean value and the inclination error to obtain first data;
calculating the sum of the inclined mean value and the inclined error to obtain second data;
and determining the first interval according to the first data and the second data.
According to the preferred embodiment of the present invention, the form item switching method further includes:
if the first angle is within the first interval and the second angle is within the second interval, comparing the first angle with the second angle;
if the first angle is larger than the second angle, longitudinally switching the current filling item; or
And if the first angle is smaller than or equal to the second angle, transversely switching the current filling item.
According to the preferred embodiment of the present invention, the form item switching method further includes:
if the first angle is not in the first interval and the second angle is not in the second interval, generating prompt information, wherein the prompt information is used for indicating invalid operation;
and sending the prompt information to the terminal equipment.
On the other hand, the present invention further provides a form item switching apparatus, operating on a terminal device, where the form item switching apparatus includes:
the acquiring unit is used for acquiring an inclination angle of the terminal equipment when the preset form on the terminal equipment is detected to be opened, wherein the inclination angle comprises a first angle of the terminal equipment relative to a horizontal plane and a second angle of the terminal equipment relative to a longitudinal plane;
the obtaining unit is further configured to obtain a duration of the tilt angle on the terminal device;
the obtaining unit is further configured to determine a starting user of the preset form, and obtain an operation time interval during which the starting user operates the terminal device;
the obtaining unit is further configured to obtain a first preset inclination value of the starting user if the duration is within the operation time interval, where the first preset inclination value is an angle relative to a horizontal plane, and obtain a second preset inclination value of the starting user, and the second preset inclination value is an angle relative to a longitudinal plane;
the determining unit is used for determining a first interval according to the first preset inclination value and determining a second interval according to the second preset inclination value;
the detection unit is used for detecting whether the first angle is in the first interval or not and detecting whether the second angle is in the second interval or not;
and the switching unit is used for acquiring the current filling item of the preset form and longitudinally switching the current filling item if the first angle is within the first interval and the second angle is not within the second interval.
In another aspect, the present invention further provides a terminal device, where the terminal device includes:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the form switching method.
In another aspect, the present invention further provides a computer-readable storage medium, where computer-readable instructions are stored, and the computer-readable instructions are executed by a processor in a terminal device to implement the form switching method.
According to the technical scheme, whether the current filling item is switched or not can be quickly determined by detecting the inclination angle and the duration time of the current inclination angle when the preset form is started, and the specific switching direction of the current filling item can be accurately determined by comparing the first angle with the first interval and comparing the second angle with the second interval because the first interval and the second interval are determined according to the operation habits of the starting user, and meanwhile, the form item does not need to be manually selected for switching, so that the switching efficiency of the form item can be improved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a form switching method of the present invention.
FIG. 2 is a functional block diagram of a preferred embodiment of the form switch apparatus of the present invention.
Fig. 3 is a schematic structural diagram of a terminal device according to a preferred embodiment of the method for implementing list item switching.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a preferred embodiment of the form switching method of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The form item switching method is applied to one or more terminal devices, which are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set or stored in advance, and the hardware of the terminal devices includes but is not limited to a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The terminal device may be any portable electronic product capable of performing human-computer interaction with a user, for example, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an intelligent wearable device, and the like.
The terminal device may comprise a network device and/or a user equipment. The network device includes, but is not limited to, a single network terminal device, a terminal device group consisting of a plurality of network terminal devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network terminal devices.
The network where the terminal device is located includes, but is not limited to: the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
S10, when the preset form on the terminal device is detected to be opened, obtaining the inclination angle of the terminal device, wherein the inclination angle comprises a first angle of the terminal device relative to a horizontal plane and a second angle of the terminal device relative to a longitudinal plane.
In at least one embodiment of the present invention, the preset form may refer to any form that needs to be filled with information.
In at least one embodiment of the present invention, the terminal device monitors the preset form on the terminal device in real time, and when it is monitored that the preset form is triggered, the terminal device determines that the preset form on the terminal device is opened.
In at least one embodiment of the present invention, the terminal device may obtain the tilt angle through a gravity sensor provided in the terminal device.
And S11, acquiring the duration of the inclination angle on the terminal equipment.
In at least one embodiment of the present invention, the duration refers to a duration in which the angle of the terminal device is in a threshold angle interval. The threshold angle interval is determined according to the inclination angle and the tolerance angle. Wherein the tolerance angle refers to an error acceptable to a user.
In at least one embodiment of the present invention, the terminal device obtaining the duration of the tilt angle on the terminal device includes:
acquiring a tolerance angle of the terminal equipment;
determining a threshold angle interval of the terminal equipment according to the inclination angle and the tolerance angle;
when detecting that the current angle of the terminal equipment is not the threshold angle interval, determining the first time when the terminal equipment is at the current angle;
acquiring a second time when the terminal equipment is at the inclination angle;
and calculating the time difference between the first time and the second time to obtain the duration.
The threshold angle interval can be determined by determining the tolerance angle of the terminal equipment, and the accuracy of the first time can be improved due to the fact that the angle of the terminal equipment changes in the process of operating the terminal equipment by a user through comparison between the current time and the threshold angle interval, so that the duration time can be accurately determined.
Specifically, the determining, by the terminal device, the threshold angle interval of the terminal device according to the inclination angle and the tolerance angle includes:
calculating a difference value between the inclination angle and the tolerance angle to obtain a first threshold value;
calculating the sum of the inclination angle and the tolerance angle to obtain a second threshold value;
and determining the threshold angle interval by taking the first threshold as a left interval and taking the second threshold as a right interval.
And S12, determining a starting user of the preset form, and acquiring an operation time interval of the starting user for operating the terminal equipment.
In at least one embodiment of the present invention, the starting user refers to a user who opens the preset form on the terminal device.
The operation time interval refers to a time interval for the starting user to operate the terminal device to switch the form items.
In at least one embodiment of the present invention, the determining, by the terminal device, the user who starts the preset form includes:
acquiring the form number of the preset form;
acquiring a starting log of the preset form from the terminal equipment according to the form number;
acquiring information for indicating a user from the start log as a user identification code;
and determining the user corresponding to the user identification code as the starting user.
Wherein the form number can uniquely indicate the preset form.
The start log records an operation of starting the preset form.
The user identification code can uniquely identify the user, for example, the user identification code can be an identification card.
The starting log can be accurately acquired from the terminal equipment through the form number, and the user identification code in the starting log can be used for uniquely identifying the user, so that the starting user can be accurately determined.
Specifically, the obtaining, by the terminal device, the start log of the preset form from the terminal device according to the form number includes:
acquiring a log list of the terminal equipment;
acquiring a log corresponding to the form number from the log list as a log to be screened;
and acquiring a log used for indicating starting operation from the log to be screened as the starting log.
And all operation logs on the terminal equipment are stored in the log list.
In at least one embodiment of the present invention, the acquiring, by the terminal device, an operation time interval for the terminal device to be operated by the start user includes:
acquiring a preset identifier, wherein the preset identifier is used for indicating a database for storing the control duration corresponding to each user, and the control duration refers to the duration for switching the form items of each user control device;
acquiring a database corresponding to the preset identifier as a target database;
writing the user identification code into a preset template to obtain an inquiry statement;
and querying the target database by using the query statement to obtain the operation time interval corresponding to the starting user.
And the information stored in the preset template is a structured query statement which does not contain parameter variables.
And the target database can be determined through the preset identification, so that the query range is reduced, and the query efficiency of the operation time interval is improved.
S13, if the duration is within the operation time interval, obtaining a first preset inclination value of the starting user, where the first preset inclination value is an angle relative to a horizontal plane, and obtaining a second preset inclination value of the starting user, where the second preset inclination value is an angle relative to a longitudinal plane.
In at least one embodiment of the present invention, the first preset tilt value refers to an angle at which the starting user operates a form item on the terminal device to perform vertical switching. The first preset inclination value is multiple.
The second preset inclination value is an angle at which the starting user operates the form item on the terminal device to perform transverse switching. The second preset inclination value is multiple.
In at least one embodiment of the present invention, the terminal device may obtain the first preset inclination value and the second preset inclination value through a gravity sensor provided in the terminal device.
And S14, determining a first interval according to the first preset inclination value, and determining a second interval according to the second preset inclination value.
It is emphasized that, in order to further ensure the privacy and security of the first interval and the second interval, the first interval and the second interval may also be stored in a node of a block chain.
In at least one embodiment of the present invention, the first interval refers to an angle interval in which the starting user operates a form item on the terminal device to perform vertical switching.
The second interval is an angle interval for the starting user to operate the form item on the terminal device to perform transverse switching.
In at least one embodiment of the present invention, the determining, by the terminal device, a first interval according to the first preset inclination value includes:
calculating the average value of the first preset inclination value to obtain an inclination average value;
calculating the standard deviation of the first preset inclination value according to the first preset inclination value and the average value to obtain an inclination error;
calculating the difference value of the inclination mean value and the inclination error to obtain first data;
calculating the sum of the inclined mean value and the inclined error to obtain second data;
and determining the first interval according to the first data and the second data.
The first preset inclination value is determined according to the operation habit of the starting user, so that the first interval suitable for the starting user can be accurately determined through the first preset inclination value.
In at least one embodiment of the present invention, a manner in which the terminal device determines the second interval according to the second preset inclination value is the same as a manner in which the terminal device determines the first interval according to the first preset inclination value, which is not described herein again.
S15, detecting whether the first angle is within the first interval, and detecting whether the second angle is within the second interval.
In at least one embodiment of the present invention, the detecting, by the terminal device, whether the first angle is within the first interval includes:
comparing the first angle to the first data and comparing the first angle to the second data;
and if the first angle is larger than the first data and smaller than the second data, determining that the first angle is in the first interval.
And S16, if the first angle is in the first interval and the second angle is not in the second interval, acquiring the current filling item of the preset form and longitudinally switching the current filling item.
In at least one embodiment of the present invention, the current fill-in item refers to a form item that the initiating user currently completes filling in.
In at least one embodiment of the present invention, the acquiring, by the terminal device, the current filling item of the preset form includes:
acquiring a log used for indicating filling operation from the log to be screened as a log to be determined;
acquiring the log time of the log to be determined, and acquiring the current time;
calculating the time difference between the log time and the current time to obtain the target time of the log to be determined;
determining the log to be determined with the maximum target time as a target log;
extracting information indicating form items from the target log as the current fill item.
In at least one embodiment of the present invention, the form item switching method further includes:
if the first angle is within the first interval and the second angle is within the second interval, comparing the first angle with the second angle;
if the first angle is larger than the second angle, longitudinally switching the current filling item; or
And if the first angle is smaller than or equal to the second angle, transversely switching the current filling item.
By the above embodiment, when the first angle is within the first interval and the second time is within the second interval, it is still possible to determine that the current filling item is switched.
In at least one embodiment of the present invention, the form item switching method further includes:
if the first angle is not in the first interval and the second angle is not in the second interval, generating prompt information, wherein the prompt information is used for indicating invalid operation;
and sending the prompt information to the terminal equipment.
Through the embodiment, when the first angle is not in the first interval and the second time is not in the second interval, the prompt message can be generated quickly, and then the prompt message can be sent to the terminal device quickly, and the terminal device can be reminded in time.
According to the technical scheme, whether the current filling item is switched or not can be quickly determined by detecting the inclination angle and the duration time of the current inclination angle when the preset form is started, and the specific switching direction of the current filling item can be accurately determined by comparing the first angle with the first interval and comparing the second angle with the second interval because the first interval and the second interval are determined according to the operation habits of the starting user, and meanwhile, the form item does not need to be manually selected for switching, so that the switching efficiency of the form item can be improved.
FIG. 2 is a functional block diagram of a preferred embodiment of the form switching apparatus of the present invention. The form item switching apparatus 11 includes an acquisition unit 110, a determination unit 111, a detection unit 112, a switching unit 113, a comparison unit 114, a generation unit 115, and a transmission unit 116. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
When detecting that a preset form on the terminal device is opened, the obtaining unit 110 obtains an inclination angle of the terminal device, where the inclination angle includes a first angle of the terminal device relative to a horizontal plane and a second angle of the terminal device relative to a longitudinal plane.
In at least one embodiment of the present invention, the preset form may refer to any form that needs to be filled with information.
In at least one embodiment of the present invention, the obtaining unit 110 monitors the preset form on the terminal device in real time, and when it is monitored that the preset form is triggered, the obtaining unit 110 determines that the preset form on the terminal device is opened.
In at least one embodiment of the present invention, the terminal device may obtain the tilt angle through a gravity sensor provided in the terminal device.
The acquisition unit 110 acquires the duration of the tilt angle on the terminal device.
In at least one embodiment of the present invention, the duration refers to a duration in which the angle of the terminal device is in a threshold angle interval. The threshold angle interval is determined according to the inclination angle and the tolerance angle. Wherein the tolerance angle refers to an error acceptable to a user.
In at least one embodiment of the present invention, the acquiring unit 110 acquires the duration of the tilt angle on the terminal device includes:
acquiring a tolerance angle of the terminal equipment;
determining a threshold angle interval of the terminal equipment according to the inclination angle and the tolerance angle;
when detecting that the current angle of the terminal equipment is not the threshold angle interval, determining the first time when the terminal equipment is at the current angle;
acquiring a second time when the terminal equipment is at the inclination angle;
and calculating the time difference between the first time and the second time to obtain the duration.
The threshold angle interval can be determined by determining the tolerance angle of the terminal equipment, and the accuracy of the first time can be improved due to the fact that the angle of the terminal equipment changes in the process of operating the terminal equipment by a user through comparison between the current time and the threshold angle interval, so that the duration time can be accurately determined.
Specifically, the determining, by the obtaining unit 110, a threshold angle interval of the terminal device according to the inclination angle and the tolerance angle includes:
calculating a difference value between the inclination angle and the tolerance angle to obtain a first threshold value;
calculating the sum of the inclination angle and the tolerance angle to obtain a second threshold value;
and determining the threshold angle interval by taking the first threshold as a left interval and taking the second threshold as a right interval.
The obtaining unit 110 determines a start user of the preset form, and obtains an operation time interval when the start user operates the terminal device.
In at least one embodiment of the present invention, the starting user refers to a user who opens the preset form on the terminal device.
The operation time interval refers to a time interval for the starting user to operate the terminal device to switch the form items.
In at least one embodiment of the present invention, the obtaining unit 110 determines that the user starting the preset form includes:
acquiring the form number of the preset form;
acquiring a starting log of the preset form from the terminal equipment according to the form number;
acquiring information for indicating a user from the start log as a user identification code;
and determining the user corresponding to the user identification code as the starting user.
Wherein the form number can uniquely indicate the preset form.
The start log records an operation of starting the preset form.
The user identification code can uniquely identify the user, for example, the user identification code can be an identification card.
The starting log can be accurately acquired from the terminal equipment through the form number, and the user identification code in the starting log can be used for uniquely identifying the user, so that the starting user can be accurately determined.
Specifically, the obtaining, by the obtaining unit 110, the start log of the preset form from the terminal device according to the form number includes:
acquiring a log list of the terminal equipment;
acquiring a log corresponding to the form number from the log list as a log to be screened;
and acquiring a log used for indicating starting operation from the log to be screened as the starting log.
And all operation logs on the terminal equipment are stored in the log list.
In at least one embodiment of the present invention, the acquiring unit 110 acquires the operation time interval when the start user operates the terminal device, including:
acquiring a preset identifier, wherein the preset identifier is used for indicating a database for storing the control duration corresponding to each user, and the control duration refers to the duration for switching the form items of each user control device;
acquiring a database corresponding to the preset identifier as a target database;
writing the user identification code into a preset template to obtain an inquiry statement;
and querying the target database by using the query statement to obtain the operation time interval corresponding to the starting user.
And the information stored in the preset template is a structured query statement which does not contain parameter variables.
And the target database can be determined through the preset identification, so that the query range is reduced, and the query efficiency of the operation time interval is improved.
If the duration is within the operation time interval, the obtaining unit 110 obtains a first preset inclination value of the starting user, where the first preset inclination value is an angle relative to a horizontal plane, and obtains a second preset inclination value of the starting user, where the second preset inclination value is an angle relative to a longitudinal plane.
In at least one embodiment of the present invention, the first preset tilt value refers to an angle at which the starting user operates a form item on the terminal device to perform vertical switching. The first preset inclination value is multiple.
The second preset inclination value is an angle at which the starting user operates the form item on the terminal device to perform transverse switching. The second preset inclination value is multiple.
In at least one embodiment of the present invention, the terminal device may obtain the first preset inclination value and the second preset inclination value through a gravity sensor provided in the terminal device.
The determining unit 111 determines a first interval according to the first preset inclination value, and determines a second interval according to the second preset inclination value.
It is emphasized that, in order to further ensure the privacy and security of the first interval and the second interval, the first interval and the second interval may also be stored in a node of a block chain.
In at least one embodiment of the present invention, the first interval refers to an angle interval in which the starting user operates a form item on the terminal device to perform vertical switching.
The second interval is an angle interval for the starting user to operate the form item on the terminal device to perform transverse switching.
In at least one embodiment of the present invention, the determining unit 111 determines the first section according to the first preset inclination value includes:
calculating the average value of the first preset inclination value to obtain an inclination average value;
calculating the standard deviation of the first preset inclination value according to the first preset inclination value and the average value to obtain an inclination error;
calculating the difference value of the inclination mean value and the inclination error to obtain first data;
calculating the sum of the inclined mean value and the inclined error to obtain second data;
and determining the first interval according to the first data and the second data.
The first preset inclination value is determined according to the operation habit of the starting user, so that the first interval suitable for the starting user can be accurately determined through the first preset inclination value.
In at least one embodiment of the present invention, a manner in which the determining unit 111 determines the second interval according to the second preset inclination value is the same as a manner in which the determining unit 111 determines the first interval according to the first preset inclination value, which is not described again herein.
The detecting unit 112 detects whether the first angle is within the first interval and detects whether the second angle is within the second interval.
In at least one embodiment of the present invention, the detecting unit 112 detects whether the first angle is within the first interval includes:
comparing the first angle to the first data and comparing the first angle to the second data;
and if the first angle is larger than the first data and smaller than the second data, determining that the first angle is in the first interval.
If the first angle is within the first interval and the second angle is not within the second interval, the switching unit 113 obtains the current filling item of the preset form and performs vertical switching on the current filling item.
In at least one embodiment of the present invention, the current fill-in item refers to a form item that the initiating user currently completes filling in.
In at least one embodiment of the present invention, the obtaining, by the switching unit 113, the current filling item of the preset form includes:
acquiring a log used for indicating filling operation from the log to be screened as a log to be determined;
acquiring the log time of the log to be determined, and acquiring the current time;
calculating the time difference between the log time and the current time to obtain the target time of the log to be determined;
determining the log to be determined with the maximum target time as a target log;
extracting information indicating form items from the target log as the current fill item.
In at least one embodiment of the present invention, if the first angle is within the first interval and the second angle is within the second interval, the comparing unit 114 compares the magnitudes of the first angle and the second angle;
if the first angle is larger than the second angle, the switching unit 113 performs vertical switching on the current filling item; or
If the first angle is smaller than or equal to the second angle, the switching unit 113 performs horizontal switching on the current filling item.
By the above embodiment, when the first angle is within the first interval and the second time is within the second interval, it is still possible to determine that the current filling item is switched.
In at least one embodiment of the present invention, if the first angle is not in the first interval and the second angle is not in the second interval, the generating unit 115 generates a prompt message, where the prompt message is used to indicate an invalid operation;
the sending unit 116 sends the prompt information to the terminal device.
Through the embodiment, when the first angle is not in the first interval and the second time is not in the second interval, the prompt message can be generated quickly, and then the prompt message can be sent to the terminal device quickly, and the terminal device can be reminded in time.
According to the technical scheme, whether the current filling item is switched or not can be quickly determined by detecting the inclination angle and the duration time of the current inclination angle when the preset form is started, and the specific switching direction of the current filling item can be accurately determined by comparing the first angle with the first interval and comparing the second angle with the second interval because the first interval and the second interval are determined according to the operation habits of the starting user, and meanwhile, the form item does not need to be manually selected for switching, so that the switching efficiency of the form item can be improved.
Fig. 3 is a schematic structural diagram of a terminal device according to a preferred embodiment of the method for implementing list item switching according to the present invention.
In one embodiment of the present invention, the terminal device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions stored in the memory 12 and executable on the processor 13, such as a form switching program.
It will be understood by those skilled in the art that the schematic diagram is only an example of the terminal device 1, and does not constitute a limitation to the terminal device 1, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device 1 may further include an input-output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the terminal device 1, and connects various parts of the whole terminal device 1 by using various interfaces and lines, and executes an operating system of the terminal device 1 and various installed application programs, program codes, and the like.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules/units may be a series of computer-readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer-readable instructions in the terminal device 1. For example, the computer readable instructions may be divided into an acquisition unit 110, a determination unit 111, a detection unit 112, a switching unit 113, a comparison unit 114, a generation unit 115, and a transmission unit 116.
The memory 12 can be used for storing the computer readable instructions and/or modules, and the processor 13 implements various functions of the terminal device 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and calling data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the terminal device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the terminal device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
With reference to fig. 1, the memory 12 in the terminal device 1 stores computer-readable instructions to implement a form switching method, and the processor 13 can execute the computer-readable instructions to implement:
when the preset form on the terminal equipment is detected to be opened, acquiring an inclination angle of the terminal equipment, wherein the inclination angle comprises a first angle of the terminal equipment relative to a horizontal plane and a second angle of the terminal equipment relative to a longitudinal plane;
acquiring the duration of the inclination angle on the terminal equipment;
determining a starting user of the preset form, and acquiring an operation time interval for the starting user to operate the terminal equipment;
if the duration is within the operation time interval, acquiring a first preset inclination value of the starting user, wherein the first preset inclination value is an angle relative to a horizontal plane, and acquiring a second preset inclination value of the starting user, and the second preset inclination value is an angle relative to a longitudinal plane;
determining a first interval according to the first preset inclination value, and determining a second interval according to the second preset inclination value;
detecting whether the first angle is within the first interval and detecting whether the second angle is within the second interval;
and if the first angle is within the first interval and the second angle is not within the second interval, acquiring a current filling item of the preset form, and longitudinally switching the current filling item.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
when the preset form on the terminal equipment is detected to be opened, acquiring an inclination angle of the terminal equipment, wherein the inclination angle comprises a first angle of the terminal equipment relative to a horizontal plane and a second angle of the terminal equipment relative to a longitudinal plane;
acquiring the duration of the inclination angle on the terminal equipment;
determining a starting user of the preset form, and acquiring an operation time interval for the starting user to operate the terminal equipment;
if the duration is within the operation time interval, acquiring a first preset inclination value of the starting user, wherein the first preset inclination value is an angle relative to a horizontal plane, and acquiring a second preset inclination value of the starting user, and the second preset inclination value is an angle relative to a longitudinal plane;
determining a first interval according to the first preset inclination value, and determining a second interval according to the second preset inclination value;
detecting whether the first angle is within the first interval and detecting whether the second angle is within the second interval;
and if the first angle is within the first interval and the second angle is not within the second interval, acquiring a current filling item of the preset form, and longitudinally switching the current filling item.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The plurality of units or devices may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A form item switching method is applied to terminal equipment and is characterized by comprising the following steps:
when the preset form on the terminal equipment is detected to be opened, acquiring an inclination angle of the terminal equipment, wherein the inclination angle comprises a first angle of the terminal equipment relative to a horizontal plane and a second angle of the terminal equipment relative to a longitudinal plane;
acquiring the duration of the inclination angle on the terminal equipment;
determining a starting user of the preset form, and acquiring an operation time interval for the starting user to operate the terminal equipment;
if the duration is within the operation time interval, acquiring a first preset inclination value of the starting user, wherein the first preset inclination value is an angle relative to a horizontal plane, and acquiring a second preset inclination value of the starting user, and the second preset inclination value is an angle relative to a longitudinal plane;
determining a first interval according to the first preset inclination value, and determining a second interval according to the second preset inclination value;
detecting whether the first angle is within the first interval and detecting whether the second angle is within the second interval;
and if the first angle is within the first interval and the second angle is not within the second interval, acquiring a current filling item of the preset form, and longitudinally switching the current filling item.
2. The form item switching method of claim 1, wherein the obtaining the duration of the tilt angle on the terminal device comprises:
acquiring a tolerance angle of the terminal equipment;
determining a threshold angle interval of the terminal equipment according to the inclination angle and the tolerance angle;
when detecting that the current angle of the terminal equipment is not the threshold angle interval, determining the first time when the terminal equipment is at the current angle;
acquiring a second time when the terminal equipment is at the inclination angle;
and calculating the time difference between the first time and the second time to obtain the duration.
3. The form item switching method of claim 1, wherein said determining a starting user of the preset form comprises:
acquiring the form number of the preset form;
acquiring a starting log of the preset form from the terminal equipment according to the form number;
acquiring information for indicating a user from the start log as a user identification code;
and determining the user corresponding to the user identification code as the starting user.
4. The form item switching method according to claim 1, wherein the obtaining of the operation time interval for the initiating user to operate the terminal device comprises:
acquiring a preset identifier, wherein the preset identifier is used for indicating a database for storing the control duration corresponding to each user, and the control duration refers to the duration for switching the form items of each user control device;
acquiring a database corresponding to the preset identifier as a target database;
writing the user identification code into a preset template to obtain an inquiry statement;
and querying the target database by using the query statement to obtain the operation time interval corresponding to the starting user.
5. The method of claim 1, wherein said determining a first interval according to the first predetermined slope value comprises:
calculating the average value of the first preset inclination value to obtain an inclination average value;
calculating the standard deviation of the first preset inclination value according to the first preset inclination value and the average value to obtain an inclination error;
calculating the difference value of the inclination mean value and the inclination error to obtain first data;
calculating the sum of the inclined mean value and the inclined error to obtain second data;
and determining the first interval according to the first data and the second data.
6. The form item switching method of claim 1, further comprising:
if the first angle is within the first interval and the second angle is within the second interval, comparing the first angle with the second angle;
if the first angle is larger than the second angle, longitudinally switching the current filling item; or
And if the first angle is smaller than or equal to the second angle, transversely switching the current filling item.
7. The form item switching method of claim 1, further comprising:
if the first angle is not in the first interval and the second angle is not in the second interval, generating prompt information, wherein the prompt information is used for indicating invalid operation;
and sending the prompt information to the terminal equipment.
8. A form switching apparatus, operating on a terminal device, the form switching apparatus comprising:
the acquiring unit is used for acquiring an inclination angle of the terminal equipment when the preset form on the terminal equipment is detected to be opened, wherein the inclination angle comprises a first angle of the terminal equipment relative to a horizontal plane and a second angle of the terminal equipment relative to a longitudinal plane;
the obtaining unit is further configured to obtain a duration of the tilt angle on the terminal device;
the obtaining unit is further configured to determine a starting user of the preset form, and obtain an operation time interval during which the starting user operates the terminal device;
the obtaining unit is further configured to obtain a first preset inclination value of the starting user if the duration is within the operation time interval, where the first preset inclination value is an angle relative to a horizontal plane, and obtain a second preset inclination value of the starting user, and the second preset inclination value is an angle relative to a longitudinal plane;
the determining unit is used for determining a first interval according to the first preset inclination value and determining a second interval according to the second preset inclination value;
the detection unit is used for detecting whether the first angle is in the first interval or not and detecting whether the second angle is in the second interval or not;
and the switching unit is used for acquiring the current filling item of the preset form and longitudinally switching the current filling item if the first angle is within the first interval and the second angle is not within the second interval.
9. A terminal device, characterized in that the terminal device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the form switching method of any of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium stores computer-readable instructions, which are executed by a processor in a terminal device to implement the form switching method according to any one of claims 1 to 7.
CN202110215277.6A 2021-02-25 2021-02-25 Method, device and equipment for switching form items and storage medium Active CN112926293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110215277.6A CN112926293B (en) 2021-02-25 2021-02-25 Method, device and equipment for switching form items and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110215277.6A CN112926293B (en) 2021-02-25 2021-02-25 Method, device and equipment for switching form items and storage medium

Publications (2)

Publication Number Publication Date
CN112926293A true CN112926293A (en) 2021-06-08
CN112926293B CN112926293B (en) 2022-09-13

Family

ID=76172088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110215277.6A Active CN112926293B (en) 2021-02-25 2021-02-25 Method, device and equipment for switching form items and storage medium

Country Status (1)

Country Link
CN (1) CN112926293B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236411A (en) * 2008-02-19 2008-08-06 倚天资讯股份有限公司 Electronic device capable of automatically switching electrical source and method
CN105373317A (en) * 2015-11-27 2016-03-02 努比亚技术有限公司 Mobile terminal and information processing method
CN111475513A (en) * 2020-06-28 2020-07-31 平安国际智慧城市科技股份有限公司 Form generation method and device, electronic equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236411A (en) * 2008-02-19 2008-08-06 倚天资讯股份有限公司 Electronic device capable of automatically switching electrical source and method
CN105373317A (en) * 2015-11-27 2016-03-02 努比亚技术有限公司 Mobile terminal and information processing method
CN111475513A (en) * 2020-06-28 2020-07-31 平安国际智慧城市科技股份有限公司 Form generation method and device, electronic equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Y.MATSUMOTO ET AL.: "Low-voltage signal conditioning circuit for fluid-based inclination switch", 《SENSORS, 2008 IEEE》 *
李玮 等: "舰船浮态快速调整控制技术现状与展望", 《船海工程》 *

Also Published As

Publication number Publication date
CN112926293B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN112669138B (en) Data processing method and related equipment
CN113050900B (en) Screen sharing method, device, equipment and storage medium
CN112860737B (en) Data query method and device, electronic equipment and readable storage medium
CN112948418A (en) Dynamic query method, device, equipment and storage medium
CN112632098A (en) Dynamic generation method of structured query statement and related equipment
CN112631731A (en) Data query method and device, electronic equipment and storage medium
CN112434238A (en) Webpage quality detection method and device, electronic equipment and storage medium
CN114372060A (en) Data storage method, device, equipment and storage medium
CN112819305A (en) Service index analysis method, device, equipment and storage medium
CN112947911A (en) Interface script generation method, device, equipment and storage medium
CN112711696A (en) Request access method, device, electronic equipment and storage medium
CN113065947A (en) Data processing method, device, equipment and storage medium
CN112434062A (en) Quasi-real-time data processing method, device, server and storage medium
CN112926293B (en) Method, device and equipment for switching form items and storage medium
CN111680483A (en) Document template updating method and device, electronic equipment and medium
CN112199483A (en) Information input assisting method and device, electronic equipment and storage medium
CN112134968A (en) Domain name access method and device, electronic equipment and storage medium
CN111986771A (en) Medical prescription query method and device, electronic equipment and storage medium
CN113283677B (en) Index data processing method, device, equipment and storage medium
CN112527830A (en) Data query method, device, equipment and storage medium
CN112804300B (en) Flow access control method and device, electronic equipment and storage medium
CN114490262A (en) Database monitoring method, device, equipment and storage medium
CN112817742B (en) Data migration method, device, equipment and storage medium
CN112434237A (en) Page loading method and device, electronic equipment and storage medium
CN114238296A (en) Product index data display method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant