Write-in checking method and device
A checking method and technology to be written, applied in structured data retrieval, digital data information retrieval, instruments, etc., can solve problems such as errors and omissions
Active Publication Date: 2021-02-02
天津汇商共达科技有限责任公司
5 Cites 0 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0005] The present application provides a writing inspection method and device to s...
Method used
A kind of writing inspection device provided by the application can effectively avoid the situation of invalid input by performing the above-mentioned writing inspection method by checking the writing state of the input column in real time, and simultaneously by checking the actual written data, Correct writing errors in time to improve the accuracy of written data.
Known by above technical scheme, the application provides a kind of writing inspection method, at first determine the beginning writing position of the data to be written in the current input field, usually can be understood as the position of the cursor, then check the current input field and Whether the location to be written is in a normal writing state. Only when both are in a normal writing state can the writing operation continue. As long as one is in an abnormal writing state, subsequent writing operations will be restricted , so as not to produce a chain reaction and affect the accuracy of subsequent writing. Among them, since there are some differences in format and order between the order data directly obtained from the e-commerce platform and the standard data list provided by the ERP system, it is necessary to preprocess the data to be written before formal writing to obtain the ERP standard data list. Data to be written. After all the data to be written has been written, the actual written data is checked, and the actual written data that is inconsistent with the data to be written is cleared, and the correct data is re-entered. The writing checking method provided in this application effectively avoids invalid input by checking the writing status of the input column in real time, and at the ...
Abstract
The invention provides a write-in checking method and device, and the method comprises the steps of: determining a to-be-written-in position of a current input field; judging a write-in state of the current input field and a write-in state of the to-be-written-in position; if both the write-in state of the current input field and the write-in state of the to-be-written-in position are normal, writing preprocessed to-be-written-in data to obtain actual written-in data; if the write-in state of the current input field and/or the write-in state of the to-be-written-in position are/is abnormal, limiting write-in operation; comparing the actual written-in data with the preprocessed to-be-written-in data; and if the actual written-in data is not consistent with the preprocessed to-be-written-indata, emptying the current input field, and rewriting the preprocessed to-be-written-in data. According to the write-in checking method and device, the write-in state of the input field is checked inreal time, the input invalidation situation is effectively avoided, meanwhile, the write-in errors are corrected in time by checking the actual written-in data, and the accuracy of the written-in datais improved.
Application Domain
Database management systemsSpecial data processing applications
Technology Topic
Mechanical engineeringSoftware engineering +2
Image
Examples
- Experimental program(1)
Example Embodiment
[0067]The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
[0068]Seefigure 2 , A flow chart of a write check method provided in an embodiment of this application, the method includes:
[0069]S101. Determine the position to be written in the current input field;
[0070]S102: Determine the writing state of the current input field and the writing state of the position to be written;
[0071]S103: If the writing state of the current input field and the writing state of the position to be written are both normal, write the pre-processed data to be written to obtain the actual written data;
[0072]S104: If the writing state of the current input field and/or the writing state of the position to be written is abnormal, restrict the writing operation;
[0073]S105. Compare the actual written data with the pre-processed data to be written;
[0074]S106. If they are inconsistent, clear the current input field and rewrite the pre-processed data to be written.
[0075]When using, first determine the starting position of the data to be written in the current input field, which can usually be understood as the position of the cursor.
[0076]Specifically, seeimage 3 , A flowchart of a method for determining the position to be written in the current input field provided by this embodiment of the application. The method includes:
[0077]S201: Acquire character information in the current input field;
[0078]S202. Determine the end position of the character as the position to be written according to the character information.
[0079]First get the character information of the current input field. The current input field may be a brand new input field, or it may be an input field that has already entered some characters. The last character is taken as the position to be written, which can effectively avoid new writing The data is inserted into the original data.
[0080]Further, corresponding to the end of the character in the current input field, the initial character in the data to be written can be determined, and therefore, problems such as repeated writing or missing writing can be effectively avoided.
[0081]Then check whether the current input field and the position to be written are both in the normal writing state. Only when both of them are in the normal writing state can the writing operation continue. As long as one is in an abnormal writing state, then Restrict subsequent write operations to avoid chain reactions and affect the accuracy of subsequent writes.
[0082]Specifically, seeFigure 4 , A flow chart of a method for judging the write status provided in this embodiment of the application. The method includes:
[0083]S301. Acquire character information of the current input field, where the character information includes at least: the current character amount;
[0084]S302: If the current character amount is greater than or equal to the preset input column writing limit value, the writing state of the current input column is abnormal;
[0085]S303: If the current character amount is less than the preset input column writing limit value, obtain the gray value of the cursor and the gray conversion frequency;
[0086]S304: If the grayscale value of the cursor is 0, or the grayscale transformation frequency is less than a preset frequency threshold, the writing state of the current input field is abnormal;
[0087]S305: If the grayscale value of the cursor is greater than 0, and the grayscale transformation frequency is equal to a preset frequency threshold, the writing state of the current input field is normal.
[0088]The writing state of the input field is usually divided into writing possible and saturated unable to write. The current input field may be in a state where some characters already exist, and the character information of the current input field is obtained. The character information includes at least: the current character amount, that is The amount of characters that have been written into the current input field can also include: character format, character content, etc. According to actual needs or historical experience values, set the preset input field writing limit value. The preset input field writing limit value can prevent the written data from being too long and increase the subsequent inspection burden, and at the same time prevent the long string caused by accidental touch Invalid data input, and reduce the burden of data positioning and deletion.
[0089]If the current character amount is equal to the preset input field writing limit value, it means that the character amount in the current input field is saturated and can no longer be written. At this time, even if a writing action occurs, characters cannot actually be written, which may easily cause missed writing Therefore, the write status at this time is defined as abnormal.
[0090]If the current character amount is less than the preset input field writing limit value, it means that the current input field can still input characters. At this point, you need to continue to determine whether the cursor in the current input field is in a normal state. The cursor is usually used to indicate the current writing state. If the gray value of the cursor is 0, it means that the cursor is not visible at this time, and the writing position cannot be positioned, and characters cannot be written. Therefore, the writing state at this time is defined Is abnormal. At the same time, the flashing frequency of the cursor is also an important criterion for judging the writing status. If the gray scale conversion frequency of the cursor is less than the preset frequency threshold, that is, the cursor flashes too slowly, indicating that the system has a stuck problem and is prone to miss writing. Therefore, Define the write status at this time as abnormal. Only when the gray value of the cursor and the gray conversion frequency are in compliance with the standard, can the writing status of the current input field be regarded as normal and valid writing can be performed.
[0091]The method for judging the writing status provided by this embodiment can effectively avoid the problem of missing characters, thereby improving the writing accuracy and reducing the burden of subsequent writing checks.
[0092]Further, seeFigure 5 , Is a flowchart of another method for judging the write status provided in this embodiment of the application. The method includes:
[0093]S401. Calculate the difference between the key-in time of the actual written data and the actual write time;
[0094]S402: If the difference is greater than a preset time value, the writing state of the current input field is abnormal;
[0095]S403: If the difference value is less than or equal to the preset time value, the writing state of the current input field is normal.
[0096]The time for writing the script is defined as the typing time, and the time when the system actually receives the character writing instruction is the actual writing time. It should be noted that the actual writing time does not refer to the time when the characters are displayed in the input field. There is a time difference between the execution instruction and the actual write time, but if the difference exceeds the preset time value, it means that the execution time is too long, and it is easy to communicate with the next write instruction and execution of the next write. The instruction time and action overlap, causing writing errors or missing writing. At this time, the system may have a stuck problem, and the writing status of the input field is defined as abnormal. Only when the time difference is less than or equal to the preset time value, can it be determined that the writing state of the current input field is normal, which can ensure the orderly progress of the writing action, thereby ensuring the writing quality.
[0097]If the writing state of the current input field and the writing state of the position to be written are both normal, the writing operation can be performed normally. Among them, because the order data directly obtained from the e-commerce platform and the standard data list provided by the ERP system have some differences in format, order, etc., it is necessary to pre-process the data to be written before the formal writing, for example, from the e-commerce The data to be written obtained by the platform is "Zhen", and the standard data list is "Pure Zhen Milk", you need to fill in the data to be written, and then write operation after obtaining "Pure Zhen Milk", which is preprocessed Afterwards, the data to be written that meets the ERP standard can meet the specifications of the writing script and the standard data list, and the writing speed and quality are improved.
[0098]Further, after all the data to be written is written, the actual written data is checked, the actual written data that is inconsistent with the data to be written is cleared, and the correct data is re-entered.
[0099]Specifically, seeImage 6 , A flowchart of a method for clearing characters in the current input box provided by this embodiment of the application. The method includes:
[0100]S501. Select all characters in the current input column;
[0101]S502. Write one-bit value characters to cover all the characters;
[0102]S503. Delete the one-bit value character.
[0103]Once it is found that there is an error in the actual written data, it is necessary to back-delete the characters in the current input box. In order to realize the automation of writing and modification, the back-deleting action also depends on script execution. However, if there are no characters in the current input box, and the back-delete action is performed directly, the writing position will be changed to the previous input box. At this time, the written characters will appear in the wrong input box, causing writing errors; If the characters in the current input box are deleted one by one, a lot of time will be wasted.
[0104]The embodiment of this application first selects all the characters in the current input field, and writes a single value character to overwrite all the original characters to prevent the problem of changing the input box caused by the direct back-deleting. At this time, only this bit value needs to be deleted. Character to clear the current input box. Simple operation, high efficiency, and can effectively guarantee the emptying quality.
[0105]It can be seen from the above technical solutions that this application provides a writing check method. First, determine the start writing position of the data to be written in the current input column, which can usually be understood as the cursor position, and then check the current input column and the writing Whether the position is in the normal writing state, only when both are in the normal writing state, can the writing operation be continued. As long as one is in the abnormal writing state, the subsequent writing operation is restricted to avoid occurrence The chain reaction affects the accuracy of subsequent writing. Among them, because the order data directly obtained from the e-commerce platform and the standard data list provided by the ERP system have some differences in format, order, etc., it is necessary to preprocess the written data before it is formally written to obtain the ERP standard Data to be written. After all the data to be written is written, check the actual written data, clear the actual written data that is inconsistent with the data to be written, and re-enter the correct data. The writing check method provided in this application effectively avoids invalid input by checking the writing status of the input field in real time, and at the same time corrects writing errors in time by checking the actual written data, and improves the accuracy of the written data.
[0106]SeeFigure 7 , This application also provides a schematic structural diagram of a write checking device, including:
[0107]The position determining unit 1 is used to determine the position to be written in the current input field;
[0108]The state judgment unit 2 is used to judge the writing state of the current input field and the writing state of the position to be written;
[0109]The writing unit 3 is configured to, if the writing state of the current input field and the writing state of the position to be written are both normal, write the pre-processed data to be written to obtain the actual written data;
[0110]The restriction unit 4 is configured to restrict the writing operation if the writing state of the current input field and/or the writing state of the position to be written is abnormal;
[0111]The comparison unit 5 is used to compare the actual written data with the pre-processed data to be written;
[0112]The clearing unit 6 is used for clearing the current input field if they are inconsistent, and rewriting the pre-processed data to be written.
[0113]SeeFigure 8 , The embodiment of the present application provides a schematic structural diagram of a location determining unit, including:
[0114]The character obtaining unit 11 is used to obtain character information in the current input field;
[0115]The character end position determining unit 12 is configured to determine the character end position as the position to be written according to the character information.
[0116]SeePicture 9 , The embodiment of the present application provides a schematic structural diagram of a state judgment unit, including:
[0117]The character information obtaining unit 21 is configured to obtain character information of the current input field, where the character information includes at least: the current character amount;
[0118]The first determining unit 22 is configured to, if the current character amount is equal to the preset input column writing limit value, the writing state of the current input column is abnormal;
[0119]The cursor information obtaining unit 23 is configured to obtain the gray value and gray conversion frequency of the cursor if the current character amount is less than the preset input field writing limit value;
[0120]The second determining unit 24 is configured to, if the gray value of the cursor is 0, or the gray scale conversion frequency is less than a preset frequency threshold, the writing state of the current input field is abnormal;
[0121]The third determining unit 25 is configured to, if the grayscale value of the cursor is greater than 0, and the grayscale transformation frequency is equal to a preset frequency threshold, the writing state of the current input field is normal.
[0122]SeePicture 10 , A schematic structural diagram of an alternative state judgment unit provided in this embodiment of the application, including:
[0123]The calculation unit 26 is used to calculate the difference between the key-in time of the actual written data and the actual write time;
[0124]The fourth determining unit 27 is configured to, if the difference value is greater than a preset time value, the writing state of the current input field is abnormal;
[0125]The fifth determining unit 28 is configured to, if the difference value is less than or equal to a preset time value, the writing state of the current input field is normal.
[0126]SeePicture 11, A schematic structural diagram of an emptying unit provided in an embodiment of this application, including:
[0127]The selection unit 61 is used to select all characters in the current input field;
[0128]The key-in unit 62 is used to write one-bit value characters to cover all the characters;
[0129]The deleting unit 63 is used to delete the one-bit value character.
[0130]The write check device provided by this application can perform the above write check method, check the write status of the input field in real time, effectively avoid the invalid input, and at the same time correct the write in time by checking the actual written data. Input errors to improve the accuracy of written data.
[0131]It is worth noting that in specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and the program execution may include the user identity service provision method or user registration method provided by the present invention Part or all of the steps in each embodiment. The storage medium may be a magnetic disk, an optical disc, a read-only memory (English: read-only memory, abbreviated as: ROM), or a random access memory (English: random access memory, abbreviated as: RAM), etc.
[0132]Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products, which can be stored in a storage medium, such as ROM/RAM. , Magnetic disks, optical disks, etc., including a number of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment of the present invention.
[0133]After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present invention. This application is intended to cover any variations, uses, or adaptive changes of the present invention. These variations, uses, or adaptive changes follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed by the present invention. . The description and the embodiments are to be regarded as exemplary only, and the true scope and spirit of the present invention are pointed out by the following claims.
[0134]It should be understood that the application is not limited to the precise structure described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the application is only limited by the appended claims.
PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.