A coding control method for generating sequence numbers based on context
By structured describing the dependencies of coding rules and sequence fields, the problems of re-code, jumping and wrong coding in the encoding management of complex business objects are solved, automatic coding generation and refined management are realized, and the reliability and flexibility of the coding system are improved.
Patent Information
- Application Number
- CN202210314808.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-15
- Filing Date
- 2022-03-29
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-03-29
AI Technical Summary
The existing technology is difficult to effectively manage the encoding of complex business objects, resulting in frequent occurrence of re-code, jump-off and wrong code phenomena, affecting the reliability of the encoding system.
By dividing the encoding rules into multiple structured fields, describing the encoding format and dependencies of the sequence fields, the structured description of the sequence number encoding rules based on the context is realized, and a variety of sequence character types and formats are supported to optimize the management capabilities of sequence fields.
Automatic encoding generation and maintenance is realized, the refined management capabilities of enterprise business object encoding is improved, the possibility of coding errors and chaos is reduced, and the flexibility of coding management is significantly improved.
Smart Images

Figure CN115204109B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of design data information and resource management in the field of complex equipment manufacturing industry, and is a coding control method for generating serial numbers based on context. Background Art
[0002] Information management has become an important method for improving R&D and manufacturing efficiency, controlling operating costs, and improving work quality in the current equipment manufacturing field. The large number of business objects involved in each link of R&D and manufacturing, including product components and the product decomposition structure composed of them, technical and management documents generated during product R&D and production, and even intangible logical business objects such as product functions, requirements, fault items, maintenance tasks, etc., all need to be included in the management scope and identified through coding.
[0003] Coding business objects helps to give the objects obvious identification symbols, and can reflect certain business rules, relationships or contents of the objects through coding, so that designers can quickly identify some brief information of the business objects; and the coding has the characteristic of uniqueness. A well-implemented coding system can effectively prevent confusion between business objects, and can quickly specify and locate business objects through object coding.
[0004] However, due to the complexity of the above-mentioned business objects, the complexity of the coding rules has been caused. Traditionally, the enterprise standard management department has described the coding generation rules through specification documents. The coding specification of business objects is often executed through manual control, or a simple pipeline coding generator is used to process some objects with simpler rules. Therefore, in order to further adapt to the flexible and changeable business object management requirements, it is necessary to deeply abstract the possible coding business rules and form a systematic, operational and wide-coverage coding control method. The existing coding description and management methods lack structured definitions, making it difficult to manage the coding generation process and the generated coding records through information systems. In the implementation of coding business rules, there is a lack of control over the coding process, resulting in frequent duplication, skipping and wrong coding, which affects the reliability of the enterprise coding system and may cause business defects due to coding errors. In particular, when the enterprise business object coding has a context-based serial number, that is, under a specific context premise, such as the serial number of the next-level object / classification under a certain category, it will be very difficult to maintain a correct and consistent coding system in the enterprise. Summary of the invention
[0005] The present invention proposes a coding control method for generating serial numbers based on context to overcome the above-mentioned defects. By dividing the coding rules into multiple structured fields, describing the coding format of the sequence fields, and explaining the dependencies between the sequence fields, the structured description of the context-based serial number coding rules is realized, the coding space dimensions that the coding rules can support are expanded, and the business objects that need context-based serial number management can realize automatic coding generation and maintenance, thereby improving the refined management capabilities of the enterprise business object coding.
[0006] The technical solution of the present invention:
[0007] A coding control method for generating a sequence number based on context comprises the following steps:
[0008] Step a) Field division
[0009] The method describes the code generation process through coding rules. First, the code is divided into fields with different business meanings and rules according to business requirements, and its identification, input / generation method, content restrictions, and additional content are described, including the field name, field length, and input method.
[0010] In this way, the definition of a coding rule can be combined through the fields with different definitions, and the coding rule can be basically structurally controlled. If the field input method is to select from given options, the source of the options must be stated; if the field content refers to all or part of the code of other objects managed according to the same or different coding rules in the same coding system, the field should state its reference source.
[0011] Step b) Field sequence dependency description
[0012] Context-based serial numbers mean that the encoding rules contain fields that need to be generated by sequence calculation, and these fields have context dependencies with other fields: if the Nth field F n is a sequence field, then for the 1st to N-1th fields F on which it depends 1 ~F n-1 Several specific fields F w d 1 ~F w d w Each specific combination of values of {F n dV 1 ,…,E n dV m}, where 1≤m≤n, and its sequence values need to be calculated separately; that is, for every dependency field in a sequence field, the value domain space represented by the sequence field adds an information dimension.
[0013] Therefore, when defining and describing a sequence field, it is necessary to specify the target field that the generation of the sequence field depends on;
[0014] Step c) Field sequence generation mode
[0015] Complete Sequence Field F n and its m-term dependencies F n d 1 ~F n d m After the definition of , the value FV of the sequence field can be generated according to the following calculation process n :
[0016] Step 1) Fill in the context field values F of all dependent fields required to generate this sequence field n dV 1 , …, F n dV m .
[0017] Step 2) Retrieve all p generated coded records R based on this rule 1 ~R p .
[0018] Step 3) Identify the value of each dependent field in the encoded record, such as the i-th dependent field F n d i In the jth coded record R j The value in is F n dV′ i (R j ), where 1<i<n, 1<j<p.
[0019] Step 4) According to F n dV 1 ,…,P n dV m Get R 1 ~R p All the matches for all F n d x Make E n dV′ x (R y )=E n dV x Records of Rn y A set of x∈[1,m] and y∈|1,p], assuming there are k items, where k<p, denoted as {Rnc 1 , ..., Rnc k If k = 0, that is, this set is empty, it means that no sequence value has been generated for each given dependent field value, then FV is taken. n=1 and end the calculation; otherwise, if k>0, the fields F in these records are n The value of FV n (Rnc h ), where 1<h<k.
[0020] Step 5) When a sequence field is not the last field of the current encoding rule, it can be selected from the set {PV n (Rnc 1 ), ..., FV n (Rnc k )} to become the current field value F n V is used as the context for the subsequent field content, or a new sequence value is generated for the field according to the following step 6); and when the sequence field is the last field of the current encoding rule, a new sequence value must be obtained according to step 6), otherwise repeated encoding will occur.
[0021] Step 6) Retrieve each FV n (Rnc h ) in the maximum value Max(FV n (Rnc 1 ), ..., PV n (Rnc k )), usually, FV n =Max(FV n (Rnc 1 ), ..., FV n (Rnc k ))+1.
[0022] Step d) There may be multiple sequence fields in a complete encoding rule, and a sequence field may depend on another sequence field before it, forming a multiple sequence encoding mechanism.
[0023] Furthermore, in addition to the aforementioned basic attributes, the attributes of the fields in step a) can be further extended as required to support more functions, including but not limited to:
[0024] 1) Prefix and suffix of the field: You can define the prefix or suffix of the field, or define both the prefix and suffix. In this case, users do not need to manually enter these fixed contents when entering the value of this field, thereby reducing the probability of input errors; it also simplifies the field definition process, and there is no need to define fixed value fields for the prefix and suffix separately.
[0025] 2) Whether the field is required: This value can determine whether the field is required. For non-required fields, users can leave the value blank when generating codes to express their expected specific business meaning.
[0026] 3) Remarks: Used to provide additional explanations for the fields, explain the definition purpose and business meaning of the field definer, and help users of the coding rules understand how to use the coding.
[0027] Furthermore, in step a), the character type of the field may be defined, which may include letters, numbers, mixed letters and numbers, any non-prohibited characters, etc. For sequence fields, only letters, numbers, or mixed letters and numbers may be used. Different character types may affect the way the sequence field calculates the next value of the sequence in step c)-5).
[0028] Furthermore, in step a), the field format may be specified for the sequence field whose character type is set to a mixed alphanumeric type, and different data types may be used for each bit of the definition field.
[0029] Furthermore, in step a), it may be specified that some characters in the available character types are prohibited from use according to requirements.
[0030] Furthermore, in step a), for the sequence field, after defining its specific character type, the minimum value of the field can be defined, that is, the starting point of its sequence value. When calculating the sequence value in step c) 5), for E n V n (R y ) does not exist, the sequence value should be calculated from the defined minimum value. When the value range is not defined, the default minimum value of the numeric and mixed numeric and alphanumeric type fields is 1, and the default minimum value of the alphabetic type field is A.
[0031] Furthermore, in step a), for the sequence field, its maximum value and overflow processing method can be defined: for the sequence field, after defining the specific character type, the maximum value and overflow processing method of the field can be defined.
[0032] Furthermore, in step c, if there is service allocation for each sequence number segment of the field, the maximum and minimum values of the available sequence range in the current code generation process can be temporarily specified for a certain sequence field.
[0033] Furthermore, in step a), for the sequence field, the step length of the sequence can be specified so that the sequence is not limited to the arrangement of numbers / letters one by one. n V n Max(P n V n (R 1 ), ..., F n V n (R p ))+step.
[0034] Furthermore, in step c-2), if the current field F nA field Fd exists in the dependent field s is a sequence field, and the value of this field is filled in step 1) n dV s When a new sequence value is generated according to the above steps, since there is no such sequence value before, the code generated by relying on this sequence value should also not exist. n V n You can skip step 2) and subsequent steps and directly obtain the sequence starting point / minimum value.
[0035] Furthermore, in step c-3), if the method is used to generate the code, the value of each field of the code is directly recorded in each code record, then the code record that meets the conditions can be quickly retrieved in this step to obtain P n dV′ i (R j ) value; otherwise, it is necessary to sort and identify the generated coding records, extract the values of the corresponding fields in each code for analysis, and the calculation overhead is large.
[0036] Furthermore, in step c, the sequence field value F is selected n V n When the business object associated with the previously generated sequence code is deleted, the code used by it may be retained according to the business rules, but it may also be reused. Therefore, in addition to being generated according to the above rules, the sequence field can also query all the data less than Max(F n V n (R 1 ), ..., F n V n (R p )) and the value of the business object is not associated and selected as P n V n , thereby repeatedly recycling coding resources.
[0037] Beneficial effects of the present invention:
[0038] By using this coding management method, when managing a large number of related business objects, the user can define a set of structured coding rules for their business associations, and classify and grade these business objects through the context dependency of the sequence field. On the one hand, there is no need to manage separate coding rules for each business object, which simplifies the rule management system. On the other hand, it expands the coding information dimension, supports the automatic management of derivative versions of business objects and the coding of derivative objects, reduces the possibility of coding errors, confusion and ambiguity in management, and improves management efficiency. This method also optimizes the management capabilities of sequence fields, proposes support for multiple sequence character types and formats, supports discontinuous sequences and skipping specified character sets, and can define the range of sequence values and support the recovery of sequence numbers occupied by deleted objects for reuse, which significantly improves the flexibility of coding management work and has a significant effect on the refined management capabilities of enterprise business object coding.
[0039] Comparison with existing solutions / other patents
[0040] A paper proposed a definition and management method for document encoding, but failed to provide a general context-dependent sequence encoding method;
[0041] A document mentions serial number encoding methods, but does not mention context dependencies;
[0042] A document proposes a coding method, but does not explain how to define and describe the coding rules and how to generate the serial number;
[0043] A certain document proposes a method of describing product models in a hierarchical manner by appending sequences, but does not involve structured management of coding methods and sequence calculation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 Encoding rule graphs with context-dependent sequences;
[0045] Figure 2 Sequence number value range space for rules with multiple context-dependent sequence numbers. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] The steps include:
[0048] a) Field division
[0049] The method describes the code generation process through coding rules. First, the code is divided into fields with different business meanings and rules according to business requirements, and its identification, input / generation method, content restrictions, additional content and other characteristics are described, including the field: name, field length, input method (including but not limited to preset fixed values, manually filled values, selection from given options, reference to all or part of other object codes, and sequence generation, etc.), etc.
[0050] In this way, the definition of a coding rule can be combined through the fields with different definitions, and the coding rule can be basically structurally controlled. If the field input method is to select from given options, the source of the options must be stated; if the field content refers to all or part of the code of other objects managed according to the same or different coding rules in the same coding system, the field should state its reference source.
[0051] b) Field sequence dependency description
[0052] Context-based serial numbers mean that the encoding rules contain fields that need to be generated by sequence calculation, and these fields have context dependencies with other fields: if the Nth field F n is a sequence field, then for the 1st to N-1th fields F on which it depends 1 ~F n-1 Several specific fields F n d 1 ~F n d m Each specific combination of values of {F n dV 1 , …, F n dV m}, where 1≤m≤n, and its sequence values need to be calculated separately; that is, for every dependency field in a sequence field, the value domain space represented by the sequence field adds an information dimension.
[0053] Therefore, when defining and describing a sequence field, it is necessary to specify the target field that the generation of the sequence field depends on.
[0054] c) Field sequence generation mode
[0055] Complete Sequence Field F n and its m-term dependencies F n d 1 ~F n d m After the definition of , the value FV of the sequence field can be generated according to the following calculation process n :
[0056] 1) Fill in the context field value F of all dependent fields required to generate this sequence field n dV 1 , ..., F n dV m .
[0057] 2) Retrieve all p generated coded records R based on this rule 1 ~R p .
[0058] 3) Identify the values of each dependent field in the encoded record, such as the i-th dependent field End i In the jth coded record R j The value in is P n dV′ i (R j ), where 1<i<n, 1<j<p.
[0059] 4) According to F n dV 1 , ..., F n dV m Get R 1 ~R p All the matches for all F n d x Make E n dV′ x (R y )-P n dV x Records of Rn y A set of x∈[1,m] and y∈[1,p], assuming there are k items, where k<p, denoted as {Rnc 1 , ..., Rnc k If k = 0, that is, this set is empty, it means that no sequence value has been generated for the given dependent field values, so PV is taken. n =1 and end the calculation; otherwise, if k>0, the fields F in these records are n The value of FV n (Rnc h ), where 1<h<k.
[0060] 5) When a sequence field is not the last field of the current encoding rule, it can be selected from the set {FV n (Rnc 1 ), ..., FV n (Rnc k )} to become the current field value F nV is used as the context for the subsequent field content, or a new sequence value is generated for the field according to the following step 6); and when the sequence field is the last field of the current encoding rule, a new sequence value must be obtained according to step 6), otherwise repeated encoding will occur.
[0061] 6) Retrieve each FV n (Rnc h ) in the maximum value Max(FV n (Rnc 1 ), ..., FV n (Rnc k )), usually, FV n =Max(FV n (Rnc 1 ), ..., PV n (Rnc k ))+1.
[0062] d) There may be multiple sequence fields in a complete encoding rule, and a sequence field may depend on another sequence field before it, forming a multiple sequence encoding mechanism.
[0063] Furthermore, in addition to the aforementioned basic attributes, the attributes of the fields in step a) can be further extended as required to support more functions, including but not limited to:
[0064] 1) Prefix and suffix of the field: You can define the prefix or suffix of the field, or define both the prefix and suffix. In this case, users do not need to manually enter these fixed contents when entering the value of this field, thereby reducing the probability of input errors; it also simplifies the field definition process, and there is no need to define fixed value fields for the prefix and suffix separately.
[0065] 2) Whether the field is required: This value can determine whether the field is required. For non-required fields, users can leave the value blank when generating codes to express their expected specific business meaning.
[0066] 3) Remarks: Used to provide additional explanations for the fields, explain the definition purpose and business meaning of the field definer, and help users of the coding rules understand how to use the coding.
[0067] Furthermore, in step a), the character type of the field can be defined, which may include letters, numbers, mixed letters and numbers, any non-prohibited characters, etc. For sequence fields, only letters, numbers, or mixed letters and numbers can be used. Different character types may affect the way the sequence field calculates the next value of the sequence in step c) 5). For example, when the field data type is not a number but a letter, the sequence is arranged as A, B, C...Z; or a mixture of numbers and letters, such as the sequence 01, 02,...09, 0A,...0Z, 10...ZZ;
[0068] Furthermore, in step a), the field format can also be specified for the sequence field whose character type is set to a mixed alphanumeric type, and different data types are used for each bit of the definition field. For example, a 3-bit sequence field is defined with the first bit as an A to Z letter bit, the second bit as a 0 to 9 numeric bit, and the third bit as a 1 to 9 non-zero numeric bit. The sequence values are A00, A01, ... A99, B01 ... Z99.
[0069] Furthermore, in step a), the user may prohibit the use of some characters in the available character types for business considerations, such as prohibiting the use of special symbols such as asterisks in the code, or prohibiting the use of letters O and I to avoid confusion with numbers 0 and 1. If the field is a sequence field, these prohibited characters should be skipped when calculating the next value of the sequence in step c) 5).
[0070] Furthermore, in step a), for the sequence field, after defining its specific character type, the minimum value of the field can be defined, that is, the starting point of its sequence value. When calculating the sequence value in step c) 5), for F n V n (R y ) does not exist, the sequence value should be calculated from the defined minimum value. When the value range is not defined, the default minimum value of the numeric and mixed numeric and alphanumeric type fields is 1, and the default minimum value of the alphabetic type field is A.
[0071] Furthermore, in step a), for the sequence field, its maximum value and overflow handling method can be defined: for the sequence field, after defining the specific character type, the maximum value and overflow handling method of the field can be defined. When calculating the sequence value in step c) of 5), if the next value of the sequence calculated under the given conditions of the dependent field values is greater than the defined maximum value, it should be handled according to the given overflow handling method. Possible handling methods include terminating the encoding generation process and prompting that the sequence value has exceeded the maximum value, automatically modifying the rules to extend the current field length, or restarting from the minimum value. When the maximum value and overflow handling method are not defined, the maximum value defaults to the field length where each digit is the maximum character allowed, which is 9 for numeric type fields and Z for letter or mixed letter and number type fields; the overflow handling method defaults to terminating the generation and giving a prompt.
[0072] Furthermore, in step c, if the user has special business allocations for each sequence number segment of the field, the maximum and minimum values of the available sequence range in the current code generation process can be temporarily specified for a certain sequence field.
[0073] Furthermore, in step a), for the sequence field, the step length of the sequence can be specified so that the sequence is not limited to the arrangement of numbers / letters one by one. n Vn Max(F n V n (R 1 ), ..., E n V n (R p ))+step For example, when the step length is defined as 3, the sequence values of the one-letter sequence field whose minimum value is A are A, D, G, etc.
[0074] Furthermore, in step b, if each sequence value field in the defined rule does not depend on the previous field value, it means that the rule only maintains a unique universal sequence. At this time, the method degenerates to the situation where a traditional rule only has a one-dimensional encoding space.
[0075] Furthermore, in step c-2), if the current field F n A field Fd exists in the dependent field s is a sequence field, and the value of this field is filled in step 1) n dV n When a new sequence value is generated according to the above steps, since there is no such sequence value before, the code generated by relying on this sequence value should also not exist. n V n Step 2) and subsequent steps can be skipped to directly obtain the starting point / minimum value of the sequence, thereby reducing the computational overhead.
[0076] Furthermore, in step c-3), if the method is used to generate the code, the value of each field of the code is directly recorded in each code record, then the code record that meets the conditions can be quickly retrieved in this step to obtain F n dV′ i (R j ) value; otherwise, it is necessary to sort and identify the generated coding records, extract the values of the corresponding fields in each code for analysis, and the calculation overhead is large.
[0077] Furthermore, in step c, the sequence field value F is selected n V n When the business object associated with the previously generated sequence code is deleted, the code used by it may be retained according to the business rules, but it may also be reused. Therefore, in addition to being generated according to the above rules, the sequence field can also query all the data less than Max(F n V n (R 1 ), ..., F n V n (R p )) and the value of the business object is not associated and selected as F n V n, thereby repeatedly recycling the coding resources, avoiding waste and making the coding sequence space fully available.
[0078] Take the process of assigning code X510TR0126-004A to a business object as an example:
[0079] 1. The coding business management personnel define the business object coding rules, including the following field information:
[0080]
[0081] 2. Determine the dependencies between the various sequence fields so that the operator who generates the code (hereinafter referred to as the code extractor) has sufficient information to correctly generate the sequence number based on the context:
[0082] a) Field 4 "Object Serial Number" Dependent fields include F 4 d 1 = "Field 1 'Model Code'" and F 4 d 2 = "Field 2 'System Code'"; not dependent on Field 3 "Object Type" indicates that all types of objects under the system are uniformly serialized.
[0083] b) Field 6 "Configuration Model" dependent fields include F 6 d 1 = "Field 1 'Model Code'" and F 6 d 2 = "Field 2 'System Code'" and F 6 d 3 = "Field 4 'Object Serial Number'";
[0084] c) Field 7 "Version Number" depends on the fields including F 7 d 1 = "Field 1 'Model Code'", F 7 d 2 = "Field 2 'System Code'", F 7 d 3 = "Field 4 'Object Serial Number'" and F 7 d 4 = "Field 6 'Configuration Model'".
[0085] 3. The code reader determines that the values of fields 1, 2, 3, and 5 are X, 510, "TR", and "-" respectively; that is, F 4 dV 1 =F 6 dV 1 =F T dV 1 =FV 1 = "x", F 4 dV2 =P 6 dV 2 =F T dV 2 =FV 2 =510, FV d ="TR",PV b =″-″.
[0086] 4. Check the coded records whose field 1 and 2 have the same value as the given field, that is, get R 1 ~R p F 4 dV′ 1 (R j )=Γ 4 dV 1 = "X" and F 4 dV′ 2 (R j )=F 4 dV 2 =510. Assume that the set includes k records, where 1<k<p, and there is at least one record R4c 1 The value of its field 4 "Object Serial Number" is FV 4 (R4c 1 )=0126. At this time, the coder decides to use this value as the object serial number value of the new code, that is, to take FV 4 =″1026″.
[0087] 5. For field 6 "configuration model", search for all previously generated encoding records where the value of field 1 is X, the value of field 2 is 510, and the value of field 4 is 0126, that is, it satisfies P 6 dV′ 1 (R j )=F 6 dV 1 = "X", F 6 dV′ 2 (R j )=F 6 dV 2 =510 and F 6 dV′ 3 (R j )=P 6 dV 3 =0126, assuming there are 3 {FV 6 (R6c 1 )=001,FV 6 (R6c 2 )=002,FV 6 (R6c 3)=003}, its maximum value Max(FV 6 (R6c 1 ), ..., FV 6 (R6c 3 ))=003. If the coder decides to take a new serial number, the next serial value is taken as PV according to the field step definition 1 6 -003|1-004.
[0088] 6. Field 7 "Version Number" is a sequence field, and its dependent field contains field 6 "Building Model". In this code generation process, field 6 uses a new sequence value, so the value of field 7 is FV 7 Directly take the minimum value "A" of the letter sequence.
[0089] At this point, all 7 fields of the code X510TR0126-004A have been filled, and the generation process is completed.
[0090] The above is only a specific embodiment of the present invention, and the present invention is described in detail. The unexplained part is a conventional technology. However, the protection scope of the present invention is not limited to this. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A coding control method for generating a sequence number based on context, characterized in that: The steps include: Step a) Field division The method describes the code generation process through coding rules. First, the code is divided into fields with different business meanings and rules according to business requirements, and its identification, input / generation method, content restrictions, and additional content are described, including the field name, field length, and input method; Step b) Field sequence dependency description Context-based serial numbers mean that the encoding rules contain fields that need to be generated by sequence calculation, and these fields have context dependencies with other fields: Fields is a sequence field, then for the 1st to 2nd fields that it depends on Fields Specific fields in Each specific combination of values ,in Its sequence values need to be calculated separately; that is, for every dependency field in a sequence field, the value domain space represented by the sequence field adds an information dimension; When defining and describing a sequence field, it is necessary to specify the target field that the generation of the sequence field depends on; Step c) Field sequence generation mode Complete the Sequence field and Item Dependencies After the definition of , the value of the sequence field can be generated according to the following calculation process : Step 1) Fill in the context field values of all dependent fields required to generate this sequence field ; Step 2) Retrieve all generated based on this rule Generated coded records ; Step 3) Identify the values of the dependent fields in the encoded record, such as Dependent fields In the Barcode Record The value in is , among which ; Step 4) According to Get All matches in all make in , assuming that there are Article, of which , denoted as If any , that is, if this set is empty, it means that no sequence value has been generated for the given dependent field values, then take And end the calculation; otherwise, if , then these fields in the record The value of , ; Step 5) When a sequence field is not the last field of the current encoding rule, you can Select a value to become the current field value As the context of the subsequent field content, or generate a new sequence value for the field according to the following step 6); and when the sequence field is the last field of the current encoding rule, a new sequence value must be obtained according to step 6), otherwise repeated encoding will occur; Step 6) Retrieve each The maximum value in , usually, it is advisable ; Step d) A complete encoding rule may contain multiple sequence fields, and a sequence field may depend on another sequence field before it, forming a multiple sequence encoding mechanism.
2. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step a), the definition of a coding rule can be described by combining the fields with different definitions, and basic structural control can be performed on the coding rule; if the field input method is to select from given options, the source of the options needs to be explained; if the field content is to reference all or part of the code of other objects managed according to the same or different coding rules in the same coding system, the field should explain its reference source; in addition to the basic attributes in the field division in step a), the attributes of the field can be further expanded according to requirements to support more functions, including but not limited to: 1) Prefix and suffix of the field: You can define the prefix or suffix of the field, or define both the prefix and suffix at the same time. In this case, users do not need to manually enter these fixed contents when entering the value of this field, thereby reducing the probability of input errors. At the same time, it also simplifies the field definition process, and there is no need to define fixed value fields for the prefix and suffix separately; 2) Whether the field is required: This value can determine whether the field is required. For non-required fields, users can leave the value blank when generating codes to express their expected specific business meaning; 3) Remarks: Used to provide additional explanations for the fields, explain the definition purpose and business meaning of the field definer, and help users of the coding rules understand how to use the coding.
3. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step a), the character type of the field can be defined, which may include letters, numbers, a mixture of letters and numbers, and any non-prohibited characters; for sequence fields, only letters, numbers, or a mixture of letters and numbers can be used. Different character types affect the way the sequence field calculates the next value of the sequence in step c) 5).
4. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step a), the field format can also be specified for the sequence field whose character type is set to a mixed alphanumeric type, and different data types are used for each bit of the definition field.
5. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step a), it may be specified that some characters in the available character types are prohibited from use according to requirements.
6. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step a), for the sequence field, after defining its specific character type, the minimum value of the field can be defined, that is, the starting point of its sequence value; when calculating the sequence value in step c) 4), In this case, the sequence value should be calculated from the defined minimum value; when the value range is not defined, the default minimum value of the numeric and alphanumeric type fields is 1, and the default minimum value of the letter type field is A; in step a), define the maximum value and overflow processing method for the sequence field: for the sequence field, after defining the specific character type, you can define the maximum value and overflow processing method of the field.
7. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step a), for the sequence field, you can specify the step length of the sequence , so that the sequence is not limited to the arrangement of numbers / letters one by one; in this case, in step c) 5), Should be taken .
8. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step c-2), if the current field A field exists in the dependent field of It is a sequence field, and the value of this field is filled in step 1) When a new sequence value is generated according to step c above, since there is no such sequence value before, the code generated by relying on this sequence value should also not exist; at this time, the current sequence value You can skip step 2) and subsequent steps and directly obtain the sequence starting point / minimum value.
9. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step c-3), if the method is used to generate the code, the value of each field of the code is directly recorded in each code record, then the code record that meets the conditions can be quickly retrieved in this step to obtain otherwise, it is necessary to sort and identify the generated coding records, extract the values of the corresponding fields in each code for analysis, and the calculation overhead is large.
10. The coding control method for generating a sequence number based on context according to claim 1, characterized in that: In step c, select the sequence field value When the business object associated with the previously generated sequence code is deleted, the code used by it will be retained according to the business rules, but it can also be reused; therefore, in addition to being generated according to the above rules, the sequence field can also query all and no business object value is associated, and selected as , thereby recycling the coding resources.
Citation Information
Patent Citations
Parallel entropy coding and decoding methods and devices
CN102783035A
Intelligent text automatic generation system based on deep learning and implementation method thereof
CN112417092A