Method for implementing encoding mechanism based on time stamp rule

A coding and time format technology, applied in the computer field, which can solve problems such as error-prone, time-consuming and low-efficiency

Inactive Publication Date: 2014-12-31
镇江雅迅软件有限责任公司
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This coding mechanism is inefficient, time-consuming, error-prone, and requires repeated operations to succeed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0010] Use MyEclipse as a development tool, and use the special database management tool MySQL on the market to build the database required by the system.

[0011] 1. Create a MySQL form to store the encoding prefix, date and time length, and self-incrementing serial number length of various forms. The encoding prefix is ​​composed of uppercase letters; the last two parts are composed of numbers.

[0012] 2. When creating a new form, automatically retrieve the records in the database, query all forms of this type, and store the retrieved records in the List data object in descending order.

[0013] 3. Check whether the List is null.

[0014] If the List is null, it means that there is no form of this type, that is, the newly created form is the first form of this type. At this point, the code prefix corresponding to this type should be retrieved from the form created in the first step, and the current date should be obtained in the form of SimpleDateFormat, supplemented by 01...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for implementing an encoding mechanism based on a time stamp rule. The method overcomes the defects of low efficiency, long consumption time, easiness in error occurrence, and the like of the traditional encoding mechanism. The method comprises the following steps of storing various types of form prefixes, lengths of date and time, and length of self-adding sequence into a MySQL form, automatically searching for the database form when a new form is added, inquiring the record with a maximum inquiry sequence number in a descending way, judging if the total number of records is null, and using the judgment as the basis for determining if the newly added form is the first record of the type; automatically obtaining the current date of the system, searching for the prefix form to obtain the code prefix, converting the self-adding sequence into the calculable number type, adding 1 by self, and combining into the code of the new form. The method has the advantages that a user specializes in the actual service logics of the form, and the encoding trouble is avoided.

Description

technical field [0001] The invention relates to a method for realizing a coding mechanism, in particular to a method for realizing a coding mechanism based on time stamp rules. The invention belongs to the field of computer technology. Background technique [0002] Coding mechanisms are common and essential elements in any system. People generally use a certain image symbol to represent a certain type of specific things, which is not only convenient for communication, but also beneficial for storage in the computer, so as to distinguish themselves from the same type of things. In a certain software system, users are used to encoding forms in their own unique way, which may be in the form of "encoding prefix + 6-digit (or 8-digit) time code + 2-digit (or 4-digit) self-incrementing number". The code prefix is ​​used to indicate the specific function of the form, such as storage order, sales order, delivery order, purchase order, etc., and is generally represented by the firs...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/22
Inventor 不公告发明人
Owner 镇江雅迅软件有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products