JP6193625B2 - Identification information issuing device, identification information issuing method, and identification information issuing program - Google Patents

Identification information issuing device, identification information issuing method, and identification information issuing program Download PDF

Info

Publication number
JP6193625B2
JP6193625B2 JP2013114569A JP2013114569A JP6193625B2 JP 6193625 B2 JP6193625 B2 JP 6193625B2 JP 2013114569 A JP2013114569 A JP 2013114569A JP 2013114569 A JP2013114569 A JP 2013114569A JP 6193625 B2 JP6193625 B2 JP 6193625B2
Authority
JP
Japan
Prior art keywords
identification information
generated identification
generated
storage means
unused
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.)
Active
Application number
JP2013114569A
Other languages
Japanese (ja)
Other versions
JP2014235445A (en
Inventor
雄一 貞苅
雄一 貞苅
邦明 芹澤
邦明 芹澤
Original Assignee
株式会社オービック
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 株式会社オービック filed Critical 株式会社オービック
Priority to JP2013114569A priority Critical patent/JP6193625B2/en
Publication of JP2014235445A publication Critical patent/JP2014235445A/en
Application granted granted Critical
Publication of JP6193625B2 publication Critical patent/JP6193625B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、識別情報発行装置、識別情報発行方法、及び識別情報発行プログラムに関する。   The present invention relates to an identification information issuing device, an identification information issuing method, and an identification information issuing program.

特許文献1の段落0047及び図7には、端末に付与可能なID番号(例えば連番のID番号)が格納されている利用可能ID番号ファイルと、再利用可能と判定されたID番号が格納されている再利用ID番号ファイルが開示されている。特許文献2の段落0027から0029及び図2には、採番済のIDを管理するID採番DB13(採番したIDや、「使用中」/「空き(再利用されていない状態)」/「タグ故障」のいずれかのステータス、などを保持するDB)が開示されている。   In paragraph 0047 and FIG. 7 of Patent Document 1, an available ID number file storing ID numbers that can be assigned to terminals (for example, serial ID numbers) and ID numbers determined to be reusable are stored. A reuse ID number file is disclosed. In paragraphs 0027 to 0029 of FIG. 2 and FIG. 2, an ID numbering DB 13 for managing numbered IDs (numbered IDs, “in use” / “empty (not reused)” / DB that holds any status of “tag failure”, etc. is disclosed.

特開2005―159516号公報JP 2005-159516 A 特開2010−277188号公報JP 2010-277188 A

しかしながら、特許文献1及び特許文献2のいずれも、番号の再利用は可能であるが、番号の再利用を新規採番より優先していないので、番号発行の効率(具体的には、有限の番号資源を無駄なく使う点)について改善の余地が残されている、という問題点がある。   However, in both Patent Document 1 and Patent Document 2, number reuse is possible, but since number reuse is not prioritized over new numbering, the efficiency of number issuance (specifically, finite There is a problem that there is still room for improvement in terms of using number resources without waste.

本発明は、上記に鑑みてなされたものであって、識別情報(例えば番号など)発行の効率を改善することができる識別情報発行装置、識別情報発行方法、及び識別情報発行プログラムを提供することを目的とする。   The present invention has been made in view of the above, and provides an identification information issuing device, an identification information issuing method, and an identification information issuing program capable of improving the efficiency of issuing identification information (for example, a number). With the goal.

上述した課題を解決し、目的を達成するために、本発明にかかる識別情報発行装置は、制御部と記憶部とを備えた識別情報発行装置であって、前記記憶部は、過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、を備え、前記制御部は、前記第二記憶手段から前記不使用生成済識別情報を取得する取得手段と、前記取得手段で前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記生成済識別情報とは異なる前記識別情報を生成する生成手段と、を備えたこと、を特徴とする。   In order to solve the above-described problems and achieve the object, an identification information issuing device according to the present invention is an identification information issuing device including a control unit and a storage unit, and the storage unit is generated in the past. First storage means for storing generated identification information specifying information for specifying generated identification information that is identification information, and second storage for storing unused generated identification information that is the generated identification information that is not used Means for acquiring the unused generated identification information from the second storage means, and when the acquisition means cannot acquire the unused generated identification information, Generating means for generating the identification information different from the generated identification information with reference to the generated identification information specifying information stored in the first storage means.

ここで、識別情報は、例えば、数字、文字、記号、図形、又はこれらの組み合わせで構成されるものでもよい。   Here, the identification information may be composed of, for example, numbers, characters, symbols, figures, or combinations thereof.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記第二記憶手段は、前記不使用生成済識別情報と関連付けて、当該不使用生成済識別情報を使わなくなった不使用理由及び当該不使用生成済識別情報を使ってよいか否かに関する使用可否情報をさらに記憶すること、を特徴とする。   The identification information issuing device according to the present invention is the identification information issuing device, wherein the second storage means associates the unused generated identification information with the unused generated identification information in association with the unused generated identification information. It is further characterized by further storing usability information regarding the reason for use and whether or not the non-use generated identification information can be used.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記第一記憶手段及び前記第二記憶手段は、前記識別情報が使用される用途ごとに、情報を記憶すること、を特徴とする。   The identification information issuing device according to the present invention is the identification information issuing device, wherein the first storage unit and the second storage unit store information for each use in which the identification information is used, It is characterized by.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記取得手段は、前記第二記憶手段から前記不使用生成済識別情報を、所定個数を上限として取得し、前記生成手段は、前記取得手段で前記不使用生成済識別情報を1つも取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記所定個数の前記識別情報を生成し、前記取得手段で前記所定個数未満の個数の前記不使用生成済識別情報を取得できた場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記取得手段で取得できた前記不使用生成済識別情報の前記個数を前記所定個数から引いた個数の前記識別情報を生成すること、を特徴とする。   In the identification information issuing device according to the present invention, in the identification information issuing device, the acquisition unit acquires the unused generated identification information from the second storage unit up to a predetermined number, and generates the generation information. When the acquisition unit cannot acquire any of the unused generated identification information, the unit refers to the generated identification information specifying information stored in the first storage unit, and the predetermined number of the identification information And the acquisition means can acquire the unused generation identification information less than the predetermined number with reference to the generated identification information specifying information stored in the first storage means. The number of pieces of the identification information that has been acquired by the means is generated by subtracting the number of the pieces of unused generated identification information from the predetermined number.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記識別情報は順序尺度に該当するものであり、前記取得手段は、前記第二記憶手段から、連続した前記所定個数の前記不使用生成済識別情報を取得し、前記生成手段は、前記取得手段で、連続した前記所定個数の前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、連続した前記所定個数の前記識別情報を生成すること、を特徴とする。   In the identification information issuing device according to the present invention, in the identification information issuing device, the identification information corresponds to an order scale, and the obtaining unit continuously receives the predetermined number from the second storage unit. The unused generated identification information is acquired, and the generating unit stores in the first storage unit when the acquiring unit cannot acquire the predetermined number of unused generated identification information consecutively. The continuous predetermined number of pieces of the identification information are generated with reference to the generated identification information specifying information.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記取得手段は、連続した前記所定個数の前記不使用生成済識別情報であって、これらの中に含まれる最先の前記不使用生成済識別情報より1つ前の前記不使用生成済識別情報が前記第二記憶手段に存在せず、且つ、これらの中に含まれる最後の前記不使用生成済識別情報より1つ後の前記不使用生成済識別情報が前記第二記憶手段に存在しないものを、前記第二記憶手段から取得すること、を特徴とする。   Further, the identification information issuing device according to the present invention is the identification information issuing device, wherein the acquisition means is the predetermined number of the consecutively generated unused identification information, and the earliest included in these The non-used generated identification information immediately before the non-used generated identification information is not present in the second storage means, and the last non-used generated identification information included therein is 1 What is obtained after the second non-use generated identification information does not exist in the second storage means is obtained from the second storage means.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記生成済識別情報特定情報は、前記生成済識別情報であって、当該生成済識別情報の後に当該生成済識別情報とは異なる前記生成済識別情報が存在しないものであること、を特徴とする。   In the identification information issuing device according to the present invention, the generated identification information specifying information may be the generated identification information, and the generated identification information after the generated identification information. The generated identification information different from that does not exist.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記生成手段は、前記第一記憶手段に記憶した前記生成済識別情報を、前記所定個数だけ後のもの又は前記所定個数から前記取得手段で取得できた前記不使用生成済識別情報の個数を引いた個数だけ後のものに更新し、更新後の前記生成済識別情報、前記所定個数、及び前記取得手段で取得できた前記不使用生成済識別情報の前記個数に基づいて、連続した前記所定個数又は前記引いた個数の識別情報を生成すること、を特徴とする。   In the identification information issuing device according to the present invention, in the identification information issuing device, the generation unit may store the generated identification information stored in the first storage unit after the predetermined number or the predetermined number. The number is updated by subtracting the number of unused generated identification information acquired by the acquisition means from the number, and the updated generated identification information, the predetermined number, and the acquisition means can be acquired. Further, the predetermined number of consecutive or the number of subtracted pieces of identification information is generated based on the number of the unused generated identification information.

また、本発明にかかる識別情報発行装置は、前記の識別情報発行装置において、前記制御部は、前記生成済識別情報を前記第二記憶手段に記憶させる返却手段をさらに備えたこと、を特徴とする。   Further, the identification information issuing device according to the present invention is characterized in that, in the identification information issuing device, the control unit further comprises a return means for storing the generated identification information in the second storage means. To do.

また、本発明にかかる識別情報発行方法は、制御部と記憶部とを備えた識別情報発行装置において実行される識別情報発行方法であって、前記記憶部は、過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、を備え、前記制御部において実行される、前記第二記憶手段から前記不使用生成済識別情報を取得する取得ステップと、前記取得ステップで前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記生成済識別情報とは異なる前記識別情報を生成する生成ステップと、を含むこと、を特徴とする。   The identification information issuing method according to the present invention is an identification information issuing method executed in an identification information issuing apparatus including a control unit and a storage unit, and the storage unit is identification information generated in the past. First storage means for storing generated identification information specifying information for specifying generated identification information, and second storage means for storing unused generated identification information that is the generated identification information that is not used. The acquisition step of acquiring the unused generated identification information from the second storage means, which is executed in the control unit, and when the unused generated identification information cannot be acquired in the acquiring step, A generation step of generating the identification information different from the generated identification information with reference to the generated identification information specifying information stored in one storage means.

また、本発明にかかる識別情報発行プログラムは、制御部と記憶部とを備えた識別情報発行装置において実行させるための識別情報発行プログラムであって、前記記憶部は、過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、を備え、前記制御部において実行させるための、前記第二記憶手段から前記不使用生成済識別情報を取得する取得ステップと、前記取得ステップで前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記生成済識別情報とは異なる前記識別情報を生成する生成ステップと、を含むこと、を特徴とする。   An identification information issuing program according to the present invention is an identification information issuing program for execution in an identification information issuing apparatus including a control unit and a storage unit, and the storage unit is identification information generated in the past. First storage means for storing generated identification information specifying information for specifying certain generated identification information; second storage means for storing non-used generated identification information that is the generated identification information that is not used; An acquisition step of acquiring the unused generated identification information from the second storage means for execution in the control unit, and when the unused generated identification information could not be acquired in the acquisition step, Generating the identification information different from the generated identification information with reference to the generated identification information specifying information stored in the first storage means, And features.

また、本発明にかかる識別情報発行システムは、記憶部を備えた識別情報記憶装置と、制御部を備えた識別情報発行装置とが通信可能に接続された識別情報発行システムであって、前記記憶部は、過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、を備え、前記制御部は、前記第二記憶手段から前記不使用生成済識別情報を取得する取得手段と、前記取得手段で前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記生成済識別情報とは異なる前記識別情報を生成する生成手段と、を備えたこと、を特徴とする。   An identification information issuing system according to the present invention is an identification information issuing system in which an identification information storage device including a storage unit and an identification information issuing device including a control unit are communicably connected to each other. The first storage means for storing generated identification information specifying information for specifying generated identification information that is identification information generated in the past, and unused unused generated identification information that is not used Second storage means for storing information, and the control unit obtains the unused generated identification information from the second storage means, and acquires the unused generated identification information by the acquiring means. A generation unit configured to generate the identification information different from the generated identification information with reference to the generated identification information specifying information stored in the first storage unit when the information cannot be acquired; Characterize

また、本発明にかかる識別情報発行装置は、記憶部を備えた識別情報記憶装置と通信可能に接続された、制御部を備えた識別情報発行装置であって、前記記憶部は、過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、を備え、前記制御部は、前記第二記憶手段から前記不使用生成済識別情報を取得する取得手段と、前記取得手段で前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記生成済識別情報とは異なる前記識別情報を生成する生成手段と、を備えたこと、を特徴とする。   The identification information issuing device according to the present invention is an identification information issuing device having a control unit, which is communicably connected to an identification information storage device having a storage unit, wherein the storage unit is generated in the past. A first storage means for storing generated identification information specifying information for specifying the generated identification information that is generated identification information, and a second storage for storing unused generated identification information that is the generated generated identification information that is not used. Storage means, and the control unit acquires the unused generated identification information from the second storage means, and if the acquisition generated identification information could not be acquired by the acquiring means, Generating means for generating the identification information different from the generated identification information with reference to the generated identification information specifying information stored in the first storage means.

本発明によれば、記憶部は、生成済識別情報特定情報を記憶する第一記憶手段と不使用生成済識別情報を記憶する第二記憶手段とを備えており、制御部は、第二記憶手段から不使用生成済識別情報を取得し、不使用生成済識別情報を取得できなかった場合、第一記憶手段に記憶した生成済識別情報特定情報を参照して、生成済識別情報とは異なる識別情報を生成するので、識別情報(例えば番号など)発行の効率を改善することができるという効果を奏する。   According to the present invention, the storage unit includes a first storage unit that stores the generated identification information specifying information and a second storage unit that stores the non-used generated identification information, and the control unit stores the second storage unit. When the unused generated identification information is acquired from the means and the unused generated identification information cannot be acquired, the generated identification information specifying information stored in the first storage means is referred to and is different from the generated identification information. Since the identification information is generated, it is possible to improve the efficiency of issuing the identification information (for example, a number).

本発明によれば、第二記憶手段は、不使用生成済識別情報と関連付けて不使用理由及び使用可否情報をさらに記憶するので、使われなくなった理由が明確に説明可能となり、故にIT統制を実現することができるという効果を奏する。   According to the present invention, since the second storage means further stores the reason for non-use and the availability information in association with the non-use generated identification information, it becomes possible to clearly explain the reason why it is no longer used. There is an effect that it can be realized.

本発明によれば、第一記憶手段及び第二記憶手段は用途ごとに情報を記憶するので、識別情報の発行を用途ごとに行うことができるという効果を奏する。   According to the present invention, since the first storage unit and the second storage unit store information for each application, the identification information can be issued for each application.

本発明によれば、制御部は、第二記憶手段から不使用生成済識別情報を、所定個数を上限として取得し、不使用生成済識別情報を1つも取得できなかった場合、第一記憶手段に記憶した生成済識別情報特定情報を参照して、所定個数の識別情報を生成し、所定個数未満の個数の不使用生成済識別情報を取得できた場合、第一記憶手段に記憶した生成済識別情報特定情報を参照して、取得できた不使用生成済識別情報の個数を所定個数から引いた個数の識別情報を生成するので、一回の発行要求に対して複数の識別情報の発行を行うことができるという効果を奏する。   According to the present invention, the control unit obtains the unused generated identification information from the second storage unit with a predetermined number as the upper limit, and if no unused generated identification information can be acquired, the first storage unit The generated identification information stored in the first storage means is generated when a predetermined number of identification information is generated with reference to the generated identification information specifying information stored in Since the number of pieces of unused generated identification information that can be acquired is subtracted from the predetermined number by referring to the identification information specifying information, a plurality of pieces of identification information are issued in response to a single issue request. There is an effect that it can be performed.

本発明によれば、識別情報は順序尺度に該当するものであり、制御部は、第二記憶手段から、連続した所定個数の不使用生成済識別情報を取得し、連続した所定個数の不使用生成済識別情報を取得できなかった場合、第一記憶手段に記憶した生成済識別情報特定情報を参照して、連続した所定個数の識別情報を生成するので、一回の発行要求に対して、連続した複数の識別情報の発行を行うことができるという効果を奏する。   According to the present invention, the identification information corresponds to the order scale, and the control unit obtains a continuous predetermined number of non-used generated identification information from the second storage means, and the continuous predetermined number of non-uses When the generated identification information could not be obtained, the generated identification information specifying information stored in the first storage means is referred to generate a predetermined number of pieces of identification information. There is an effect that a plurality of pieces of continuous identification information can be issued.

本発明によれば、制御部は、連続した所定個数の不使用生成済識別情報であって、これらの中に含まれる最先の不使用生成済識別情報より1つ前の不使用生成済識別情報が第二記憶手段に存在せず、且つ、これらの中に含まれる最後の不使用生成済識別情報より1つ後の不使用生成済識別情報が第二記憶手段に存在しないものを、第二記憶手段から取得するので、第二記憶手段内における不連続な単独の識別情報の増加を抑制することができ、その結果、連続した複数の識別情報の再使用を効率よく行うことができるという効果を奏する。   According to the present invention, the control unit is a continuous predetermined number of unused generated identification information, and the unused generated generated identification immediately before the earliest unused generated identification information included therein. Information that does not exist in the second storage means, and in which there is no unused generated identification information after the last unused generated identification information included in the second storage means, Since it is obtained from the second storage means, it is possible to suppress an increase in discontinuous single identification information in the second storage means, and as a result, it is possible to efficiently reuse a plurality of continuous identification information. There is an effect.

本発明によれば、生成済識別情報特定情報は、生成済識別情報であって、当該生成済識別情報の後に当該生成済識別情報とは異なる生成済識別情報が存在しないものであるので、未だ生成されていない識別情報を効率よく特定することができるという効果を奏する。   According to the present invention, the generated identification information specifying information is generated identification information, and there is no generated identification information different from the generated identification information after the generated identification information. There is an effect that identification information that has not been generated can be identified efficiently.

本発明によれば、制御部は、第一記憶手段に記憶した生成済識別情報を、所定個数だけ後のもの又は所定個数から取得できた不使用生成済識別情報の個数を引いた個数だけ後のものに更新し、更新後の生成済識別情報、所定個数、及び取得できた不使用生成済識別情報の個数に基づいて、連続した所定個数又は前記引いた個数の識別情報を生成するので、複数の発行要求をほぼ同じタイミングで受けた状況においても、個々の発行要求に対し、連続した複数の識別情報の発行を行うことができるという効果を奏する。   According to the present invention, the control unit adds the generated identification information stored in the first storage means after the predetermined number or the number obtained by subtracting the number of unused generated identification information obtained from the predetermined number. Since the generated identification information after the update, the predetermined number, and the number of unused generated identification information that can be acquired, the identification information of the predetermined number or the subtracted number is generated. Even in a situation where a plurality of issuance requests are received at almost the same timing, there is an effect that it is possible to issue a plurality of continuous identification information for each issuance request.

本発明によれば、生成済識別情報を第二記憶手段に記憶させるので、使用されていない生成済識別情報の再使用を促進させることができるという効果を奏する。   According to the present invention, since the generated identification information is stored in the second storage means, it is possible to promote the reuse of the generated identification information that is not used.

図1は、業務管理システムの構成の一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of the configuration of a business management system. 図2は、カウンタテーブル206aの一例を示す図である。FIG. 2 is a diagram illustrating an example of the counter table 206a. 図3は、再利用カウンタテーブル206bの一例を示す図である。FIG. 3 is a diagram illustrating an example of the reuse counter table 206b. 図4は、業務管理システムの構成の別の一例を示すブロック図である。FIG. 4 is a block diagram illustrating another example of the configuration of the business management system. 図5は、メイン処理の一例を示すフローチャートである。FIG. 5 is a flowchart illustrating an example of the main process. 図6は、再利用カウンタ番号取得処理の一例を示すフローチャートである。FIG. 6 is a flowchart illustrating an example of the reuse counter number acquisition process. 図7は、再利用カウンタテーブル206bに格納される情報の具体例を示す図である。FIG. 7 is a diagram illustrating a specific example of information stored in the reuse counter table 206b. 図8は、カウンタ番号取得処理の一例を示すフローチャートである。FIG. 8 is a flowchart illustrating an example of the counter number acquisition process. 図9は、番号返却処理の一例を示すフローチャートである。FIG. 9 is a flowchart illustrating an example of the number return process.

本発明にかかる識別情報発行装置、識別情報発行方法、及び識別情報発行プログラムの実施形態を図面に基づいて詳細に説明する。なお、本発明は本実施形態により限定されるものではない。具体的には、本実施形態では、数字で定義された番号を識別情報とし、隣り合う任意の2つの番号の差(番号間の間隔)が1となる場合(例えば、番号「1」の1つ後(次)の番号を「2」とし、更に1つ後の番号を「3」とする場合、など)を一例として挙げるが、本発明はこの場合に限定されるものではない。   Embodiments of an identification information issuing device, an identification information issuing method, and an identification information issuing program according to the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited by this embodiment. Specifically, in this embodiment, a number defined by a number is used as identification information, and a difference between two adjacent numbers (interval between numbers) is 1 (for example, 1 of the number “1”). As an example, the next (next) number is “2” and the next number is “3”. However, the present invention is not limited to this case.

[1.構成]
本発明を包含する業務管理システムの構成の一例について図1を参照して説明する。図1は業務管理システムの構成の一例を示すブロック図である。
[1. Constitution]
An example of the configuration of a business management system including the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing an example of the configuration of a business management system.

業務管理システムは、一台又は複数台のクライアント端末100(図1では一台のみ例示)と、本発明の識別情報発行装置を含むサーバ装置200と、ネットワーク300と、で構成されている。   The business management system includes one or a plurality of client terminals 100 (only one is illustrated in FIG. 1), a server device 200 including the identification information issuing device of the present invention, and a network 300.

ネットワーク300は、例えばインターネット、イントラネット、LAN(Local Area Network)などである。   The network 300 is, for example, the Internet, an intranet, or a LAN (Local Area Network).

クライアント端末100は、業務管理(例えば販売管理、在庫管理など)を支援する業務アプリケーション(例えばWebアプリケーションなど)がインストールされている据置型又は携帯型の情報処理装置(例えば、デスクトップ型のパーソナルコンピュータ、ノート型のパーソナルコンピュータ、PDA(Personal Digital Assistants)、スマートフォン、及びタブレット型のパーソナルコンピュータなど)である。   The client terminal 100 is a stationary or portable information processing apparatus (for example, a desktop personal computer, etc.) in which a business application (for example, Web application) that supports business management (for example, sales management, inventory management, etc.) is installed. Notebook personal computers, PDA (Personal Digital Assistants), smart phones, tablet personal computers, and the like).

クライアント端末100は、制御部102と通信インターフェース部104と記憶部106と入出力インターフェース部108と、を備えている。クライアント端末100が備えている各部は、任意の通信路を介して通信可能に接続されている。   The client terminal 100 includes a control unit 102, a communication interface unit 104, a storage unit 106, and an input / output interface unit 108. Each unit included in the client terminal 100 is communicably connected via an arbitrary communication path.

制御部102は、クライアント端末100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。   The control unit 102 is a CPU or the like that comprehensively controls the client terminal 100. The control unit 102 has an internal memory for storing a control program such as an OS, a program that defines various processing procedures, and necessary data, and performs various information processing based on these stored programs. Run.

通信インターフェース部104は、ルータ等の通信装置及び専用線等の有線又は無線の通信回線を介して、クライアント端末100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。   The communication interface unit 104 communicatively connects the client terminal 100 to the network 300 via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 104 has a function of communicating data with other devices via a communication line.

記憶部106には、各種のデータベース、テーブル、及びファイルなどが格納される。記憶部106には、OS(Operating System)と協働してCPU(Central Processing Unit)に命令を与えて各種処理を行うためのコンピュータプログラムが記録される。記憶部106として、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、及び光ディスク等を用いることができる。   The storage unit 106 stores various databases, tables, files, and the like. The storage unit 106 stores a computer program for giving various instructions to a CPU (Central Processing Unit) in cooperation with an OS (Operating System). As the storage unit 106, for example, a memory device such as a RAM (Random Access Memory) and a ROM (Read Only Memory), a fixed disk device such as a hard disk, a flexible disk, and an optical disk can be used.

入出力インターフェース部108には、入力装置112及び出力装置114が接続されている。出力装置114には、モニタ(家庭用テレビを含む)の他、スピーカやプリンタを用いることができる。入力装置112には、キーボード、マウス、及びマイクの他、マウスと協働してポインティングデバイス機能を実現するモニタを用いることができる。なお、以下では、出力装置114をモニタ114とし、入力装置112をキーボード112またはマウス112として記載する場合がある。   An input device 112 and an output device 114 are connected to the input / output interface unit 108. As the output device 114, a speaker (including a home television), a speaker, and a printer can be used. As the input device 112, in addition to a keyboard, a mouse, and a microphone, a monitor that realizes a pointing device function in cooperation with the mouse can be used. In the following description, the output device 114 may be described as the monitor 114, and the input device 112 may be described as the keyboard 112 or the mouse 112.

サーバ装置200は、業務アプリケーションの管理下にある業務データ(例えば、受注データ、発注データ、仕入データ、及び売上データなど)を格納したものである。   The server apparatus 200 stores business data (for example, order data, order data, purchase data, sales data, etc.) under the management of a business application.

サーバ装置200は、制御部202と通信インターフェース部204と記憶部206と、を備えている。サーバ装置200が備えている各部は、任意の通信路を介して通信可能に接続されている。   The server device 200 includes a control unit 202, a communication interface unit 204, and a storage unit 206. Each part with which the server apparatus 200 is provided is connected so that communication is possible via arbitrary communication paths.

通信インターフェース部204は、ルータ等の通信装置及び専用線等の有線又は無線の通信回線を介して、サーバ装置200をネットワーク300に通信可能に接続する。通信インターフェース部204は、他の装置と通信回線を介してデータを通信する機能を有する。   The communication interface unit 204 connects the server device 200 to the network 300 via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 204 has a function of communicating data with other devices via a communication line.

記憶部206には、各種のデータベース、テーブル、及びファイルなどが格納される。記憶部206には、OSと協働してCPUに命令を与えて各種処理を行うためのコンピュータプログラムが記録される。記憶部206として、例えば、RAM・ROM等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、及び光ディスク等を用いることができる。   The storage unit 206 stores various databases, tables, files, and the like. The storage unit 206 stores a computer program for performing various processes by giving instructions to the CPU in cooperation with the OS. As the storage unit 206, for example, a memory device such as a RAM / ROM, a fixed disk device such as a hard disk, a flexible disk, and an optical disk can be used.

記憶部206は、本発明の第一記憶手段に相当するカウンタテーブル206aと本発明の第二記憶手段に相当する再利用カウンタテーブル206bとを含む。   The storage unit 206 includes a counter table 206a corresponding to the first storage unit of the present invention and a reuse counter table 206b corresponding to the second storage unit of the present invention.

カウンタテーブル206aは、番号種別(本発明の「識別情報が使用される用途」に相当)ごとに、採番済最終番号(本発明の「生成済識別情報であって、当該生成済識別情報の後に当該生成済識別情報とは異なる生成済識別情報が存在しないもの」に相当)を記憶したテーブルであり、例えば、番号種別(主キー)と採番済最終番号とを相互に関連付けて格納した図2に示すテーブルである。   For each number type (corresponding to “use in which identification information is used” of the present invention), the counter table 206a is assigned a final number (“generated identification information of the present invention, This is a table in which the number identification (primary key) and the numbered final number are associated with each other and stored, for example. It is a table shown in FIG.

ここで、業務管理における番号種別の具体例としては、受注、発注、仕入、及び売上などが挙げられる。例えば、番号種別が「受注」である場合、当該番号種別と関連付けて格納した採番済最終番号は、受注番号に該当するものである。   Here, specific examples of number types in business management include orders, orders, purchases, sales, and the like. For example, when the number type is “order received”, the numbered final number stored in association with the number type corresponds to the order number.

図1に戻り、再利用カウンタテーブル206bは、番号種別ごとに、使われていない採番済番号(本発明の不使用生成済識別情報に相当)と再利用可能フラグ(本発明の使用可否情報に相当)と返却理由(本発明の不使用理由に相当)とを記憶したテーブルであり、例えば番号種別(主キー)と採番済番号(主キー)と再利用可能フラグと返却理由とを相互に関連付けて格納した図3に示すテーブルである。   Returning to FIG. 1, the reuse counter table 206b includes a number that has not been used (corresponding to the non-used generation identification information of the present invention) and a reusable flag (usability information of the present invention) for each number type. And a reason for return (corresponding to a reason for non-use of the present invention), for example, a number type (primary key), a numbered number (primary key), a reusable flag, and a reason for return. 4 is a table shown in FIG. 3 stored in association with each other.

ここで、再利用可能フラグには、再利用可であることを意味する「True」又は再利用不可であることを意味する「False」が設定される。   Here, in the reusable flag, “True” indicating that reuse is possible or “False” indicating that reuse is not possible is set.

また、返却理由には、例えば、採番済番号が使われなくなった理由(例えば、入力キャンセルの為や、アプリケーションエラーの為、登録ミスの為、など)などが設定される。   In addition, for example, the reason why the numbered number is no longer used (for example, input cancellation, application error, registration error, etc.) is set as the return reason.

図1に戻り、制御部202は、サーバ装置200を統括的に制御するCPU等である。制御部202は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。   Returning to FIG. 1, the control unit 202 is a CPU or the like that comprehensively controls the server device 200. The control unit 202 has an internal memory for storing a control program such as an OS, a program that defines various processing procedures, required data, and the like, and performs various information processing based on these stored programs. Run.

制御部202は、機能概念的に、要求受付部202aと取得部202b(本発明の取得手段に相当)と生成部202c(本発明の生成手段に相当)と返却部202d(本発明の返却手段に相当)とを含む。   In terms of functional concept, the control unit 202 includes a request reception unit 202a, an acquisition unit 202b (corresponding to the acquisition unit of the present invention), a generation unit 202c (corresponding to the generation unit of the present invention), and a return unit 202d (return unit of the present invention). Equivalent).

要求受付部202aは、クライアント端末100にインストールされている業務アプリケーションから出された番号発行要求(採番要求)及び番号返却要求(返却要求)を受け付ける。   The request reception unit 202a receives a number issue request (numbering request) and a number return request (return request) issued from a business application installed in the client terminal 100.

ここで、採番要求には、例えば、番号種別(例えば、番号種別を特定するための種別ID「X」、など)、再利用カウンタテーブル206bを使用するか否かに関する再利用設定(使用する:Yes、使用しない:No)、採番する番号の個数である採番個数(N:Nは1以上の整数)、及び、連続した番号を採番するか否かに関する連続採番設定(連続採番する:Yes、連続採番しない:No)などが含まれる。   Here, in the numbering request, for example, the number type (for example, the type ID “X” for specifying the number type, etc.), the reuse setting regarding whether to use the reuse counter table 206b (used) : No, not used: No), number of numbers to be numbered (N: N is an integer of 1 or more), and continuous numbering setting regarding whether or not consecutive numbers are numbered (continuous) Numbering: Yes, No continuous numbering: No), etc. are included.

また、返却要求には、例えば、番号種別、使われていない採番済番号、返却理由、及び再利用可能フラグ(再利用可:True、再利用不可:False)などが含まれる。   In addition, the return request includes, for example, a number type, an unused number, a return reason, a reusable flag (reusable: True, reusable: False), and the like.

取得部202bは、再利用設定が「Yes」である場合であって連続採番設定が「No」であるときは、再利用カウンタテーブル206bから、種別IDが「X」であり且つ再利用可能フラグが「True」である採番済番号を、N個を上限として昇順に取得する。   When the reuse setting is “Yes” and the consecutive numbering setting is “No”, the acquisition unit 202b has the type ID “X” and can be reused from the reuse counter table 206b. Numbered numbers whose flag is “True” are acquired in ascending order with N as the upper limit.

また、取得部202bは、再利用設定が「Yes」である場合であって連続採番設定が「Yes」であるときは、再利用カウンタテーブル206bから、種別IDが「X」であり且つ再利用可能フラグが「True」であり且つN個連続している採番済番号を取得する。   In addition, when the reuse setting is “Yes” and the consecutive numbering setting is “Yes”, the acquisition unit 202b determines that the type ID is “X” from the reuse counter table 206b and the reuse setting is “Yes”. The available flag is “True” and N consecutive numbered numbers are acquired.

なお、取得部202bは、連続したN個の採番済番号であって、当該N個の採番済番号の中に含まれる最先(1番目/先頭/最初)の採番済番号より1つ前の採番済番号(具体的には、1番目の採番済番号から1だけ減算した番号)が再利用カウンタテーブル206bに存在せず、且つ、当該N個の採番済番号の中に含まれる最後(N番目)の採番済番号より1つ後の採番済番号(具体的には、N番目の採番済番号に1だけ加算した番号)が再利用カウンタテーブル206bに存在しないものを、再利用カウンタテーブル206bから取得してもよい。
例えば、「1」、「2」、「4」、「6」、「7」、及び「8」の計6個の番号が再利用カウンタテーブル206bに格納されている場合において、採番個数Nが2のとき、連続した2個の番号は以下の3パターンである。
{「1」,「2」}(番号集合1)
{「6」,「7」}(番号集合2)
{「7」,「8」}(番号集合3)
ここで、各番号集合の中に含まれる最先(1番目)の番号と最後(2番目)の番号のペアは、「1」と「2」、「6」と「7」、及び「7」と「8」であるので、各番号集合において、最先の番号より1つ前の番号と最後の番号より1つ後の番号のペアは、以下の通りである。
「0」と「3」(番号集合1に対応)
「5」と「8」(番号集合2に対応)
「6」と「9」(番号集合3に対応)
そして、「0」と「3」のペアについては、いずれの番号も再利用カウンタテーブル206bに存在しないが、「5」と「8」のペアについては、「8」が再利用カウンタテーブル206bに存在し、また、「6」と「9」のペアについては、「6」が再利用カウンタテーブル206bに存在する。
従って、「0」と「3」のペアに対応する番号集合1{「1」,「2」}が、再利用カウンタテーブル206bから取得されることになる。
Note that the acquisition unit 202b has consecutive N numbered numbers, which is 1 from the earliest (first / first / first) numbered number included in the N numbered numbers. The previous numbered number (specifically, the number obtained by subtracting 1 from the first numbered number) does not exist in the reuse counter table 206b, and among the N numbered numbers Number in the reuse counter table 206b is one number after the last (Nth) numbered number (specifically, a number obtained by adding 1 to the Nth numbered number). Those not to be acquired may be acquired from the reuse counter table 206b.
For example, when a total of six numbers “1”, “2”, “4”, “6”, “7”, and “8” are stored in the reuse counter table 206b, When is 2, the two consecutive numbers are the following three patterns.
{“1”, “2”} (number set 1)
{“6”, “7”} (number set 2)
{“7”, “8”} (number set 3)
Here, the pair of the first (first) number and the last (second) number included in each number set is “1” and “2”, “6” and “7”, and “7”. ”And“ 8 ”, in each number set, a pair of a number one number before the first number and a number one number after the last number is as follows.
“0” and “3” (corresponding to number set 1)
“5” and “8” (corresponding to number set 2)
“6” and “9” (corresponding to number set 3)
No number exists in the reuse counter table 206b for the pair “0” and “3”, but “8” for the pair “5” and “8” in the reuse counter table 206b. For the pair of “6” and “9”, “6” exists in the reuse counter table 206b.
Accordingly, the number set 1 {“1”, “2”} corresponding to the pair “0” and “3” is acquired from the reuse counter table 206b.

生成部202cは、再利用設定が「No」である場合、又は、再利用設定が「Yes」である場合であって取得部202bで採番済番号を1つも取得できなかったとき、カウンタテーブル206aに記憶した種別IDが「X」である採番済最終番号を参照して、当該採番済最終番号より1つ後(次)の番号を含むN個の連続した新規番号を生成する。
例えば、採番済最終番号が「1」である場合、生成部202cは、番号「2」から番号「N+1」までのN個の番号を生成する。
When the reuse setting is “No”, or when the reuse setting is “Yes” and the acquisition unit 202b cannot acquire any numbered numbers, the generation unit 202c With reference to the numbered last number whose type ID is “X” stored in 206a, N consecutive new numbers including the number immediately after the numbered last number (next) are generated.
For example, when the assigned final number is “1”, the generation unit 202c generates N numbers from “2” to “N + 1”.

また、生成部202cは、再利用設定が「Yes」である場合であって取得部202bで採番済番号をn個(nは1以上N未満の整数)だけ取得できたとき、カウンタテーブル206aに記憶した種別IDが「X」である採番済最終番号を参照して、当該採番済最終番号より1つ後の番号を含むN−n個の連続した新規番号を生成する。
例えば、採番済番号「2」を取得でき且つ採番済最終番号が「3」である場合、生成部202cは、番号「4」から番号「4+(N−2)」までのN−1個の番号を生成する。
In addition, when the reuse setting is “Yes” and the acquisition unit 202b can acquire only n numbered numbers (n is an integer greater than or equal to 1 and less than N), the generation unit 202c has a counter table 206a. Referring to the numbered last number whose type ID is “X”, N−n consecutive new numbers including the number immediately after the numbered last number are generated.
For example, when the numbered number “2” can be acquired and the numbered final number is “3”, the generation unit 202c sets N−1 from the number “4” to the number “4+ (N−2)”. Number of pieces is generated.

なお、生成部202cは、カウンタテーブル206aに記憶した種別IDが「X」である採番済最終番号を、取得部202bでの番号取得個数がゼロであればNだけ後のものに更新し、また番号取得個数がnであればN−nだけ後のものに更新し、更新後の採番済最終番号を最後の番号としたN個又はN−n個の連続した新規番号を生成してもよい。
例えば、採番済最終番号が「4」である場合、採番済最終番号を、番号取得個数がゼロであれば「4+N」に更新し、番号取得個数がnであれば「4+(N−n)」に更新し、更新後の採番済最終番号「4+N」又は「4+(N−n)」を最後の番号とした、「5」から「4+N」までのN個の番号又は「5」から「4+(N−n)」までのN−n個の番号を生成してもよい。
このように、カウンタテーブル206aの採番済最終番号を、番号を生成する前に更新することで、複数のクライアント端末100からほぼ同時に採番要求を受け付けた状況であっても、個々のクライアント端末100に対し、要求を満たす番号を発行することができる。
Note that the generation unit 202c updates the numbered final number with the type ID "X" stored in the counter table 206a to the number after N if the number acquisition number in the acquisition unit 202b is zero, Also, if the number obtained is n, it is updated to the one after N-n, and N or N-n consecutive new numbers are generated with the last number after the number updated as the last number. Also good.
For example, if the numbered final number is “4”, the numbered final number is updated to “4 + N” if the number acquisition number is zero, and “4+ (N−) if the number acquisition number is n. n) ", N numbers from" 5 "to" 4 + N "or" 5 ", with the final number after the update being" 4 + N "or" 4+ (N-n) " N−n numbers from “4+ (N−n)” may be generated.
In this way, by updating the numbered final number in the counter table 206a before generating the number, even if the numbering requests are received almost simultaneously from the plurality of client terminals 100, the individual client terminals A number satisfying the request can be issued to 100.

返却部202dは、クライアント端末100にインストールされている業務アプリケーションから出された返却要求を要求受付部202aが受け付けると、当該返却要求に含まれる番号種別、採番済番号、返却理由、及び再利用可能フラグを再利用カウンタテーブル206bに記憶させる。具体的には、返却部202dは、番号種別、採番済番号、返却理由、及び再利用可能フラグを含むレコードを、再利用カウンタテーブル206bに追加する。   When the request receiving unit 202a receives a return request issued from a business application installed in the client terminal 100, the return unit 202d receives the number type, number assigned, reason for return, and reuse included in the return request. The possible flag is stored in the reuse counter table 206b. Specifically, the return unit 202d adds a record including a number type, a numbered number, a return reason, and a reusable flag to the reusable counter table 206b.

ここで、業務管理システムの構成については、図1に示されているものに限らず、例えば図4に示されているものなどでもよい。具体的には、上述した要求受付部、取得部、生成部、及び返却部が、サーバ装置200ではなくクライアント端末100に備えられている構成の業務管理システムでもよい。   Here, the configuration of the business management system is not limited to that shown in FIG. 1, but may be the one shown in FIG. 4, for example. Specifically, the above-described request reception unit, acquisition unit, generation unit, and return unit may be a business management system configured to be provided in the client terminal 100 instead of the server device 200.

[2.処理]
業務管理システムで実行される処理の一例について、図5から図9を参照して詳細に説明する。
[2. processing]
An example of processing executed in the business management system will be described in detail with reference to FIGS.

[2−1.メイン処理]
ここでは、業務管理システムで実行されるメイン処理(番号発行処理)の一例について、図5を参照して説明する。図5は、メイン処理の一例を示すフローチャートである。
[2-1. Main processing]
Here, an example of main processing (number issuing processing) executed in the business management system will be described with reference to FIG. FIG. 5 is a flowchart illustrating an example of the main process.

なお、本説明では、要求受付部202aが、クライアント端末100において業務アプリケーションが起動している状況において当該業務アプリケーションから所定のタイミングに出された、番号種別(種別ID「X」)、採番個数「N」、再利用設定(「Yes」又は「No」)、及び連続採番設定(「Yes」又は「No」)を含む採番要求を受け付けたことを前提とする。   In the present description, the request receiving unit 202a has a number type (type ID “X”) and a number of numbers that are output from the business application at a predetermined timing in a situation where the business application is running on the client terminal 100. It is assumed that a numbering request including “N”, a reuse setting (“Yes” or “No”), and a continuous numbering setting (“Yes” or “No”) is received.

再利用設定が「Yes」である場合(ステップSA1:Yes)、取得部202bは、後述する再利用カウンタ番号取得処理を実行し、そして、取得結果(「取得成功」又は「取得失敗」)と、取得できた場合には取得番号(コピーした採番済番号)とを出力する(ステップSA2)。なお、再利用設定が「No」である場合(ステップSA1:No)、ステップSA5へ進む。   When the reuse setting is “Yes” (step SA1: Yes), the acquisition unit 202b executes a reuse counter number acquisition process to be described later, and the acquisition result (“acquisition success” or “acquisition failure”) If it can be acquired, the acquisition number (the number that has been copied) is output (step SA2). If the reuse setting is “No” (step SA1: No), the process proceeds to step SA5.

ここで、連続採番設定が「Yes」である場合、取得成功とは、種別IDが「X」であり且つ再利用可能フラグが「True」である採番済番号をN個連続でコピーできたときであり、取得失敗とは、そうでなかったとき(要するに採番済番号を1つもコピーできなかったとき)である。   Here, when the consecutive numbering setting is “Yes”, acquisition success means that N numbered numbers whose type ID is “X” and the reusable flag is “True” can be copied continuously. The acquisition failure is when it is not (in short, when no number has been copied).

また、連続採番設定が「No」である場合、取得成功とは、種別IDが「X」であり且つ再利用可能フラグが「True」である採番済番号をN個コピーできたときであり、取得失敗とは、種別IDが「X」であり且つ再利用可能フラグが「True」である採番済番号を1つもコピーできなかったとき、又は、種別IDが「X」であり且つ再利用可能フラグが「True」である採番済番号をn個コピーできたときである。   Further, when the consecutive numbering setting is “No”, “acquisition success” means that N numbered numbers having the type ID “X” and the reusable flag “True” have been copied. Yes, acquisition failure means that when no numbered number whose type ID is “X” and the reusable flag is “True” cannot be copied, or the type ID is “X” and This is when n numbered numbers whose reusable flag is “True” have been copied.

ステップSA2で出力された取得結果が「取得成功」である場合(ステップSA3:Yes)、取得部202bは、ステップSA2で出力された取得番号に対応する採番済番号を含むレコードを、再利用カウンタテーブル206bから削除(消去)する(ステップSA4)。   When the acquisition result output in step SA2 is “acquisition success” (step SA3: Yes), the acquisition unit 202b reuses the record including the numbered number corresponding to the acquisition number output in step SA2. Delete (erase) from the counter table 206b (step SA4).

ステップSA2で出力された取得結果が「取得失敗」である場合(ステップSA3:No)、生成部202cは、後述するカウンタ番号取得処理を実行し、そして、取得番号(新規番号)を出力する(ステップSA5)。   When the acquisition result output in step SA2 is “acquisition failure” (step SA3: No), the generation unit 202c executes a counter number acquisition process described later, and outputs an acquisition number (new number) ( Step SA5).

要求受付部202aは、ステップSA2で出力した取得番号とステップSA5で出力した取得番号を、業務アプリケーション(クライアント端末100)へ返す(ステップSA6)。   The request reception unit 202a returns the acquisition number output in step SA2 and the acquisition number output in step SA5 to the business application (client terminal 100) (step SA6).

[2−2.再利用カウンタ番号取得処理]
ここでは、取得部202bで実行される再利用カウンタ番号取得処理の一例について、図6及び図7を参照して説明する。図6は、再利用カウンタ番号取得処理の一例を示すフローチャートである。
[2-2. Reuse counter number acquisition process]
Here, an example of the reuse counter number acquisition process executed by the acquisition unit 202b will be described with reference to FIGS. FIG. 6 is a flowchart illustrating an example of the reuse counter number acquisition process.

連続採番設定が「Yes」である場合(ステップSB1:Yes)、取得部202bは、再利用カウンタテーブル206bから、種別IDが「X」であり且つ再利用可能フラグが「True」であるN個以上の連続した採番済番号から成る採番済番号集合(当該集合に含まれる採番済番号の個数はM個(MはN以上の整数))を抽出し、抽出した採番済番号集合に含まれる最後の採番済番号(M番目の採番済番号)を特定し、特定した最後の採番済番号であって、採番済番号の個数が最も少なく且つ最先(1番目)の採番済番号が最も小さい採番済番号集合に含まれるものを再利用カウンタテーブル206bから取得(コピー)する(ステップSB2)。例えば、採番個数が2の場合において再利用カウンタテーブル206bから2つの番号集合{「2」,「3」}と{「5」,「6」}が抽出されたとき、当該2つの番号集合の要素数はいずれも2であるが、1番目の番号が最も小さい番号集合は{「2」,「3」}であるので、当該番号集合{「2」,「3」}に含まれる最後の番号「3」が再利用カウンタテーブル206bから取得(コピー)されることになる。   When the consecutive numbering setting is “Yes” (step SB1: Yes), the acquisition unit 202b determines from the reuse counter table 206b that the type ID is “X” and the reusable flag is “True”. A numbered number set composed of at least consecutive numbered numbers (the number of numbered numbers included in the set is M (M is an integer equal to or greater than N)), and the numbered numbers extracted The last assigned number (Mth assigned number) included in the set is identified, and is the last assigned number, the number of assigned numbers being the smallest and the first (first ) Are acquired (copied) from the reuse counter table 206b (step SB2). For example, when the number of numbers is 2, when two number sets {“2”, “3”} and {“5”, “6”} are extracted from the reuse counter table 206b, the two number sets are extracted. The number of elements is 2 but the number set with the smallest first number is {"2", "3"}, so the last number included in the number set {"2", "3"} No. “3” is acquired (copied) from the reuse counter table 206b.

ここで、取得部202bは、ステップSB2の処理において、例えば、(1)N個以上の連続した採番済番号から成る採番済番号集合を抽出した時点で、当該採番済番号集合に含まれる採番済番号に対応するレコード全ての再利用可能フラグを「False」に切り替えてもよく、また、(2)最後の採番済番号をコピーした時点で、コピーした採番済番号に対応するレコードから、当該コピーした採番済番号からN−1だけ前の番号に対応するレコードまでのレコードを対象として、再利用可能フラグを「False」に切り替えてもよい。
これにより、複数のクライアント端末100からほぼ同時に採番要求を受け付けた状況であっても、個々のクライアント端末100に対し、要求を満たす番号を発行することができる。
Here, the acquisition unit 202b includes, for example, (1) at the time of extracting a numbered number set composed of N or more consecutive numbered numbers in the process of step SB2, and included in the numbered number set. The reusable flag of all records corresponding to the assigned number may be switched to “False”, and (2) when the last assigned number is copied, the copied number is supported. The reusable flag may be switched to “False” for the records from the record to be recorded to the record corresponding to the number N−1 before the copied number.
Thereby, even if the numbering request is received from the plurality of client terminals 100 almost simultaneously, a number satisfying the request can be issued to each client terminal 100.

なお、取得部202bは、ステップSB2の処理において、N個以上の連続した採番済番号から成る採番済番号集合を抽出することができなかった場合、「取得失敗」という取得結果を出力して、本処理を終了する。   The acquisition unit 202b outputs an acquisition result “acquisition failure” when the numbered number set including N or more consecutive numbered numbers cannot be extracted in the process of step SB2. Then, this process ends.

つぎに、取得部202bは、ステップSB2でコピーした採番済番号に基づいて、当該採番済番号より1つ前の番号を含むN−1個の連続した番号を、当該採番済番号から降順に(当該採番済番号を1ずつ減算しながら)生成し、「取得成功」という取得結果と取得番号(コピーした採番済番号と生成した番号)とを出力する(ステップSB3)。なお、ステップSB3で生成した番号は、採番済番号に該当するものである。   Next, based on the numbered number copied in step SB2, the acquiring unit 202b obtains N-1 consecutive numbers including the number immediately before the numbered number from the numbered number. It generates in descending order (while subtracting the numbered number one by one), and outputs the acquisition result “acquisition success” and the acquisition number (the copied numbered number and the generated number) (step SB3). Note that the number generated in step SB3 corresponds to the number already assigned.

なお、ステップSB2及びステップSB3の処理により、再利用カウンタテーブル206bへのアクセス時間及びアクセス回数を必要最小限に抑えることができる。   Note that the access time and the number of accesses to the reuse counter table 206b can be minimized by the processing in step SB2 and step SB3.

ここで、ステップSB2及びステップSB3の処理をより具体的に説明する。ここでは、再利用カウンタテーブル206bが図7に示すものであり、採番要求に含まれる種別ID、採番個数、再利用設定、及び連続採番設定がそれぞれ、以下に示すものであることを前提とする。
・種別ID:X001
・採番個数:2
・再利用設定:Yes
・連続採番設定:Yes
Here, the processing of step SB2 and step SB3 will be described more specifically. Here, the reuse counter table 206b is as shown in FIG. 7, and the type ID, number of numbers, reuse setting, and continuous number setting included in the numbering request are as shown below. Assumption.
-Type ID: X001
・ Number of numbers: 2
・ Reuse setting: Yes
・ Consecutive numbering setting: Yes

再利用カウンタテーブル206bに記憶した全てのレコードが、種別IDが「X001」であり且つ再利用可能フラグが「True」であるので、ステップSB2では、まず、この全てのレコードの中で、2個以上連続した採番済番号を含む採番済番号集合を抽出する。ここでは、{「1」,「2」,「3」}と{「9」,「10」}の2つの採番済番号集合が抽出されることになる。   Since all the records stored in the reuse counter table 206b have the type ID “X001” and the reusable flag is “True”, in step SB2, first of all, two records among all the records A numbered number set including the consecutive numbered numbers is extracted. In this case, two numbered number sets {“1”, “2”, “3”} and {“9”, “10”} are extracted.

つぎに、ステップSB2では、抽出された採番済番号集合{「1」,「2」,「3」}と{「9」,「10」}における、最後の採番済番号(最も大きい番号)を特定する。ここでは、番号「3」と番号「10」が特定される。   Next, in step SB2, the last numbered number (the largest number in the extracted numbered number sets {“1”, “2”, “3”} and {“9”, “10”}) is extracted. ). Here, the number “3” and the number “10” are specified.

つぎに、ステップSB2では、特定された番号「3」と番号「10」のうち、抽出された採番済番号集合の中で要素数が最も少ないものに含まれるものを、再利用カウンタテーブル206bからコピーする。ここでは、抽出された採番済番号集合の中で要素数が最も少ないものは{「9」,「10」}であり、特定された番号「3」と番号「10」のうちこの集合に含まれるものは番号「10」であるので、番号「10」が再利用カウンタテーブル206bからコピーされる。   Next, in step SB2, the reuse counter table 206b includes the identified number “3” and number “10” that are included in the extracted numbered number set with the smallest number of elements. Copy from. Here, among the extracted numbered number sets, the one with the smallest number of elements is {“9”, “10”}, and among the identified numbers “3” and “10”, this set is assigned to this set. Since the number included is “10”, the number “10” is copied from the reuse counter table 206b.

つぎに、ステップSB3では、コピーした番号「10」から1回(採番個数から1引いた回数)だけ1を減算することで、番号「9」を生成する。なお、例えば3回の場合は、当該減算を繰り返すことで、番号「9」と、1つ前の番号「8」と、更に1つ前の番号「7」を生成する。   Next, in step SB3, the number “9” is generated by subtracting 1 from the copied number “10” once (the number obtained by subtracting 1 from the number of numbers). For example, in the case of 3 times, by repeating the subtraction, the number “9”, the previous number “8”, and the previous number “7” are generated.

図6の説明に戻り、連続採番設定が「No」である場合(ステップSB1:No)、取得部202bは、再利用カウンタテーブル206bから、種別IDが「X」であり且つ再利用可能フラグが「True」である採番済番号を昇順にN個取得(コピー)し、N個取得できたときは「取得成功」という取得結果と取得番号とを出力し、n個取得できたときは「取得失敗」という取得結果と取得番号とを出力し、1つも取得できなかったときは「取得失敗」という取得結果を出力する(ステップSB4)。
具体的には、取得部202bは、再利用カウンタテーブル206bから、種別IDが「X」であり且つ再利用可能フラグが「True」である任意の採番済番号(例えば先頭の採番済番号)を1つ特定し、特定した採番済番号から昇順に、当該採番済番号を含むN個の採番済番号を再利用カウンタテーブル206bから取得(コピー)してもよい。
Returning to the description of FIG. 6, when the consecutive numbering setting is “No” (step SB1: No), the acquisition unit 202b determines from the reuse counter table 206b that the type ID is “X” and the reusable flag. Acquire (copy) N numbered numbers with "True" in ascending order, and when N number is acquired, output the acquisition result and acquisition number "acquired successfully", and when n number is acquired An acquisition result “acquisition failure” and an acquisition number are output, and if no acquisition is possible, an acquisition result “acquisition failure” is output (step SB4).
Specifically, the acquisition unit 202b determines from the reuse counter table 206b an arbitrary number that has a type ID of “X” and a reusable flag of “True” (for example, the first number that has been assigned). ) May be identified, and N numbered numbers including the numbered numbers may be acquired (copied) from the reuse counter table 206b in ascending order from the identified numbered numbers.

[2−3.カウンタ番号取得処理]
ここでは、生成部202cで実行されるカウンタ番号取得処理の一例について、図8を参照して説明する。図8は、カウンタ番号取得処理の一例を示すフローチャートである。
[2-3. Counter number acquisition process]
Here, an example of the counter number acquisition process executed by the generation unit 202c will be described with reference to FIG. FIG. 8 is a flowchart illustrating an example of the counter number acquisition process.

生成部202cは、再利用設定が「No」である場合又は取得部202bから取得番号が出力されなかった場合、新たに採番する番号の個数をNに設定し、取得部202bから取得番号がn個出力された場合は、Nからn引いた値を算出し、新たに採番する番号の個数をN−nに設定する(ステップSC1)。   When the reuse setting is “No” or the acquisition number is not output from the acquisition unit 202b, the generation unit 202c sets the number of numbers to be newly assigned to N, and the acquisition number from the acquisition unit 202b is When n are output, a value obtained by subtracting n from N is calculated, and the number of numbers to be newly assigned is set to N−n (step SC1).

生成部202cは、カウンタテーブル206aに記憶した種別IDが「X」である採番済最終番号を、ステップSC1で設定した個数(N又はN−n)だけ後のものに更新する(ステップSC2)。具体的には、採番済最終番号に、N又はN−nを加算する。   The generation unit 202c updates the numbered final number with the type ID “X” stored in the counter table 206a to the number after the number (N or N−n) set in step SC1 (step SC2). . Specifically, N or N−n is added to the final number that has been assigned.

なお、ステップSC2の処理により、複数のクライアント端末100からほぼ同時に採番要求を受け付けた状況であっても、当該要求を満たす番号を発行することができる。   Note that, even if the numbering request is received from the plurality of client terminals 100 almost simultaneously by the process of step SC2, a number satisfying the request can be issued.

生成部202cは、ステップSC2で更新した後の採番済最終番号をコピーする(ステップSC3)。なお、ステップSC3でコピーした番号は、新規番号に該当するものである。   The generation unit 202c copies the numbered final number after the update in Step SC2 (Step SC3). Note that the number copied in step SC3 corresponds to the new number.

生成部202cは、ステップSC3でコピーした新規番号に基づいて、当該新規番号より1つ前の番号を含む、ステップSC1で設定した個数から1だけ引いた個数(N−1個又はN−n−1個)の連続した番号を、当該新規番号から降順に(当該新規番号を1ずつ減算しながら)生成する(ステップSC4)。   Based on the new number copied in step SC3, the generation unit 202c includes a number that is subtracted by 1 from the number set in step SC1 including the number immediately before the new number (N−1 or N−n−). (1) consecutive numbers are generated in descending order from the new numbers (while subtracting the new numbers one by one) (step SC4).

[2−4.返却処理]
ここでは、返却部202dで実行される番号返却処理の一例について、図9を参照して説明する。図9は、番号返却処理の一例を示すフローチャートである。
[2-4. Return processing]
Here, an example of the number return process executed by the return unit 202d will be described with reference to FIG. FIG. 9 is a flowchart illustrating an example of the number return process.

なお、本説明では、要求受付部202aが、クライアント端末100において業務アプリケーションが起動している状況において当該業務アプリケーションから所定のタイミングに出された、番号種別(種別ID)、使われなくなった採番済番号、返却理由(欠番理由)、及び再利用可能フラグ(「True」又は「False」)を含む返却要求を受け付けたことを前提とする。   In the present description, the request receiving unit 202a has issued a number type (type ID), which is no longer used, issued from the business application at a predetermined timing in a situation where the business application is running on the client terminal 100. It is assumed that a return request including a completed number, a return reason (missing reason), and a reusable flag (“True” or “False”) has been received.

返却部202dは、返却要求に含まれる番号種別、採番済番号、返却理由、及び再利用可能フラグを含むレコードを、再利用カウンタテーブル206bに記憶させる(ステップSD1)。   The return unit 202d stores, in the reuse counter table 206b, a record including the number type, number assigned, return reason, and reusable flag included in the return request (step SD1).

[3.実施形態のまとめ、および他の実施形態]
以上、本実施形態によれば、要求受付部202aがクライアント端末100(業務アプリケーション)から出された採番要求を受け付けると、要求された番号種別と一致し且つ再利用可である番号を対象として、(1)取得部202bが、再利用カウンタテーブル206bから採番済番号を取得し、(2)取得部202bで採番済番号を取得できなかった場合、生成部202cが、カウンタテーブル206aに記憶した採番済最終番号(採番済番号であって、当該採番済番号の後に当該採番済番号とは異なる前記採番済番号が存在しないもの)を参照して、採番済最終番号の後の新規番号を生成し、(3)要求受付部202aが、取得した採番済番号と生成した新規番号をクライアント端末100(業務アプリケーション)に返す。これにより、番号発行の効率を改善することができる。また、未だ生成されていない番号を効率よく特定することができる。
[3. Summary of Embodiments and Other Embodiments]
As described above, according to the present embodiment, when the request receiving unit 202a receives a numbering request issued from the client terminal 100 (business application), a number that matches the requested number type and is reusable is targeted. (1) The acquisition unit 202b acquires a numbered number from the reuse counter table 206b, and (2) when the acquisition unit 202b cannot acquire a numbered number, the generation unit 202c stores the numbered number in the counter table 206a. Referring to the stored numbered last number (numbered number that is different from the numbered number after the numbered number), the numbered last A new number after the number is generated, and (3) the request receiving unit 202a returns the acquired numbered number and the generated new number to the client terminal 100 (business application). Thereby, the efficiency of number issuing can be improved. In addition, it is possible to efficiently identify a number that has not yet been generated.

また、本実施形態によれば、再利用カウンタテーブル206bは、採番済番号と関連付けて、返却理由及び再利用可能フラグをさらに記憶する。これにより、使われなくなった理由が明確に説明可能となり、故にIT統制を実現することができる。   Further, according to the present embodiment, the reuse counter table 206b further stores a return reason and a reusable flag in association with the numbered number. This makes it possible to clearly explain the reason why it is no longer used, thus realizing IT control.

また、本実施形態によれば、カウンタテーブル206aは、番号種別ごとに採番済最終番号を記憶し、再利用カウンタテーブル206bは、番号種別ごとに、採番済番号、返却理由、及び再利用可能フラグを記憶する。これにより、番号発行を番号種別ごとに行うことができる。   Further, according to the present embodiment, the counter table 206a stores the numbered final number for each number type, and the reuse counter table 206b stores the numbered number, reason for return, and reuse for each number type. Store possible flag. Thereby, number issue can be performed for every number classification.

また、本実施形態によれば、取得部202bは、再利用カウンタテーブル206bから採番済番号を、採番要求に含まれる採番個数を上限として取得し、生成部202cは、取得部202bで採番済番号を1つも取得できなかった場合、カウンタテーブル206aに記憶した採番済最終番号を参照して、採番個数の新規番号を生成し、取得部202bで採番個数未満の個数の採番済番号を取得できた場合、カウンタテーブル206aに記憶した採番済最終番号を参照して、取得部202bで取得できた採番済番号の個数を採番個数から引いた個数の新規番号を生成する。これにより、一回の採番要求に対して複数の番号の発行を行うことができる。   Further, according to the present embodiment, the acquisition unit 202b acquires a number that has been assigned from the reuse counter table 206b with the number of numbers included in the numbering request as an upper limit, and the generation unit 202c is the acquisition unit 202b. If no number has already been acquired, a new number is generated with reference to the final number stored in the counter table 206a, and the acquisition unit 202b generates a number less than the number. When the numbered number can be acquired, the number of the numbered number acquired by the acquiring unit 202b is subtracted from the numbered number by referring to the numbered final number stored in the counter table 206a. Is generated. Thereby, a plurality of numbers can be issued for one numbering request.

また、本実施形態によれば、取得部202bは、再利用カウンタテーブル206bから、連続した採番個数の採番済番号を取得し、生成部202cは、取得部202bで、連続した採番個数の採番済番号を取得できなかった場合、カウンタテーブル206aに記憶した採番済最終番号を参照して、連続した採番個数の新規番号を生成する。これにより、一回の採番要求に対して、連続した複数の番号の発行を行うことができる。   Further, according to the present embodiment, the acquisition unit 202b acquires the number of consecutive numbers assigned from the reuse counter table 206b, and the generation unit 202c acquires the number of consecutive numbers assigned by the acquisition unit 202b. In the case where the numbered number has not been acquired, a new number of consecutive numbered numbers is generated with reference to the numbered last number stored in the counter table 206a. Thereby, a plurality of consecutive numbers can be issued in response to a single numbering request.

また、本実施形態によれば、取得部202bは、連続した採番個数の採番済番号であって、これらの中に含まれる最先の採番済番号より1つ前の採番済番号が再利用カウンタテーブル206bに存在せず、且つ、これらの中に含まれる最後の採番済番号より1つ後の採番済番号が再利用カウンタテーブル206bに存在しないものを、再利用カウンタテーブル206bから取得する。これにより、再利用カウンタテーブル206b内における不連続な単独の番号の増加を抑制することができ、その結果、連続した複数の番号の再使用を効率よく行うことができる。   Further, according to the present embodiment, the acquisition unit 202b is a number that has been consecutively numbered, and is a number that has been numbered immediately before the earliest number that has been included. Are not present in the reuse counter table 206b, and the reuse counter table 206b indicates that the number assigned after the last assigned number included in these is not present in the reuse counter table 206b. Obtained from 206b. Thereby, it is possible to suppress an increase in discrete single numbers in the reuse counter table 206b, and as a result, it is possible to efficiently reuse a plurality of consecutive numbers.

また、本実施形態によれば、生成部202cは、カウンタテーブル206aに記憶した採番済最終番号を、採番個数だけ後のもの又は採番個数から取得できた採番済番号の個数を引いた個数だけ後のものに更新し、更新後の採番済最終番号、採番個数、及び取得できた採番済番号の個数に基づいて、連続した採番個数又は前記引いた個数の番号を生成するので、複数の採番要求をほぼ同じタイミングで受けた状況においても、個々の採番要求に対し、連続した複数の番号の発行を行うことができる。   Further, according to the present embodiment, the generation unit 202c subtracts the number of the numbered final number stored in the counter table 206a, or the number of the numbered number that can be acquired from the numbered number. The number of consecutive numbering or the number of the subtracted number is updated based on the numbered final number after the update, the number of numbered numbers, and the number of numbered numbers obtained. Therefore, even when a plurality of numbering requests are received at substantially the same timing, a plurality of consecutive numbers can be issued for each numbering request.

また、本実施形態によれば、要求受付部202aが業務アプリケーションから出された返却要求を受け付けると、返却部202dは、番号種別、採番済番号、返却理由、及び再利用可能フラグを再利用カウンタテーブル206bに記憶させる。これにより、使用されていない採番済番号の再使用を促進させることができる。   Further, according to the present embodiment, when the request receiving unit 202a receives a return request issued from the business application, the return unit 202d reuses the number type, numbered number, return reason, and reusable flag. It is stored in the counter table 206b. Thereby, it is possible to promote the reuse of the number that has not been used.

ここで、通常はカウンタから番号を採番する。また、カウンタは番号の一意性を保つために、一度採番すると二度と同じ番号を採番しない仕組みになっている。また、カウンタは、予め決まった個数の番号しか生成できない。そのため、従来の採番では、無駄な採番をしないために、必要な際しか採番を行うことができなかった。また、従来では、カウンタが有限な番号を生成し尽すと、それまで採番した番号の中から欠番を探し、再利用していた。しかし、過去に採番された膨大な個数の番号の中から再利用可能な番号を探すには多くの時間が掛かる。
しかし、本実施形態によれば、再利用カウンタに番号が存在している場合、優先的に再利用カウンタに存在する番号を使用する。また、本実施形態によれば、採番した番号が、業務データの削除等によって使用されなくなった場合、再利用カウンタへ返却する。よって、本実施形態によれば、番号の再利用が出来るため欠番がなくなり、カウンタの有限な資源を効率よく使用することができる。また、本実施形態の採番の仕組みは、カウンタと再利用カウンタの2つで実現できることから、モジュール化が行いやすい。また、本実施形態によれば、再利用可能な番号を探す先が再利用カウンタテーブル1つであるので、モジュール化が容易に実現可能であるだけでなく、再利用するために不要な番号を検索する時間を、従来のやり方より短縮することができる。
Here, a number is usually assigned from a counter. In order to maintain the uniqueness of the number, the counter is configured so that once the number is assigned, the same number is not assigned again. The counter can only generate a predetermined number of numbers. Therefore, in the conventional numbering, in order to avoid unnecessary numbering, numbering can only be performed when necessary. Conventionally, when the counter generates a finite number, it searches for a missing number from the numbers that have been assigned so far and reuses it. However, it takes a lot of time to search for a reusable number from a huge number of numbers that have been assigned in the past.
However, according to this embodiment, when a number exists in the reuse counter, the number existing in the reuse counter is preferentially used. Further, according to the present embodiment, when the number that has been assigned is no longer used due to deletion of business data or the like, it is returned to the reuse counter. Therefore, according to the present embodiment, since the number can be reused, there is no missing number, and the limited resources of the counter can be used efficiently. Further, the numbering mechanism of this embodiment can be realized by two counters and a reuse counter, so that modularization is easy. In addition, according to the present embodiment, since the destination for searching for a reusable number is one reuse counter table, not only modularization can be easily realized, but also an unnecessary number for reuse. The search time can be shortened compared to the conventional method.

また、従来の採番では、1回の採番要求に対して1つの番号を採番することしかできなかった。しかし、本実施形態によれば、取得したい番号の個数を指定して採番要求し、複数の番号を一度に採番することができたり、連続した複数の番号を一度に採番することができたりする。
ここで、業務アプリケーションでは、大量に採番を行わなければならない場面がある。例えば、販売業務を行っている企業では、一度に複数の仕入先に対して請求書を発行する義務が存在する。
しかし、従来の採番では、請求書毎(取引毎)に採番する必要があり、大量の請求書を発行する場合にはそれだけ多くの番号が必要になる。また、一度の採番要求に対して一回のデータベースアクセスが発生することを考えると、アプリケーションが動作するコンピュータと、データベースが動作するコンピュータ間のラウンドトリップが、レスポンスに影響を与えることになる。また、他の端末で同時に採番要求を行った場合、採番処理がそれぞれの要求ごとに行われることになることから、連続した番号が取得できないという問題も起こってしまう。
ところが、本実施形態によれば、一度の採番要求に対して、複数個の番号を連番で採番することができる。
Moreover, in the conventional numbering, only one number can be assigned to one numbering request. However, according to the present embodiment, the numbering request can be made by specifying the number of numbers to be acquired, and a plurality of numbers can be assigned at once, or a plurality of consecutive numbers can be assigned at once. I can do it.
Here, in a business application, there are scenes where numbering must be performed in large quantities. For example, a company that conducts sales business has an obligation to issue invoices to a plurality of suppliers at once.
However, in the conventional numbering, it is necessary to number each bill (each transaction), and when a large number of bills are issued, so many numbers are necessary. Also, considering that one database access occurs for a single numbering request, a round trip between the computer on which the application operates and the computer on which the database operates affects the response. In addition, when the numbering request is made at the same time in other terminals, the numbering process is performed for each request, which causes a problem that consecutive numbers cannot be acquired.
However, according to the present embodiment, a plurality of numbers can be numbered consecutively in response to a single numbering request.

また、業務アプリケーションで業務データが削除されると、業務データに対し割り当てられた業務番号は使用されなくなるが、本実施形態によれば、使用されなくなった業務番号は再利用カウンタテーブルに返却され、再利用カウンタテーブルに保存した業務番号は、同じ業務種別の業務番号を採番する時にカウンタテーブルより優先して取得され、取得された業務番号は再利用カウンタテーブルから削除される。   In addition, when business data is deleted in a business application, the business number assigned to the business data is not used, but according to this embodiment, the business number that is no longer used is returned to the reuse counter table, The business numbers stored in the reuse counter table are acquired with priority over the counter table when assigning business numbers of the same business type, and the acquired business numbers are deleted from the reuse counter table.

また、IT統制上、空き番号を許さないことが求められることがある。業務データの連続性を証明するために、業務管理システム上、連続した番号が求められている場合である。しかし、業務データの削除を行うと欠番が発生する。そこで、本実施形態によれば、欠番の理由を再利用カウンタテーブルへ保存しておくことで、欠番の理由を説明することができる。そして、欠番の理由は、不正な業務データの操作を行っていないことを証明するための情報として活用することができる。   In addition, IT control may require that a free number not be allowed. This is a case where consecutive numbers are required on the business management system in order to prove the continuity of business data. However, when business data is deleted, missing numbers occur. Therefore, according to the present embodiment, the reason for missing numbers can be explained by storing the reason for missing numbers in the reuse counter table. The reason for the missing number can be used as information for proving that the unauthorized operation data is not operated.

また、本実施形態によれば、再利用可能フラグを設定することで、意図的な欠番を実現することもできる。ここで、意図的な欠番を行う理由として、仕訳データ等の企業会計上重要なデータに割り当てられた伝票番号の欠番が監査対象になる場合があるからである。そこで、本実施形態によれば、欠番の理由を明確にしておくことで、IT統制を実現する。具体的には、使用しなくなった番号を、欠番理由を付加して再利用カウンタに保存することで、IT統制を行うことができる。また、返却理由としては、再利用可能フラグが「無効(False)」の場合に、なぜ「無効」なのかを説明する理由を設定することで、IT統制を実現する。   Further, according to the present embodiment, intentional missing numbers can be realized by setting a reusable flag. Here, the reason for intentionally missing numbers is that missing numbers of slip numbers assigned to data important for corporate accounting such as journal data may be subject to audit. Therefore, according to the present embodiment, IT control is realized by clarifying the reason for missing numbers. Specifically, IT control can be performed by adding a reason for missing numbers to a reuse counter and storing the numbers that are no longer used. Also, as a reason for return, IT control is realized by setting a reason for explaining why it is “invalid” when the reusable flag is “invalid (False)”.

また、登録した業務データを削除する機能が業務アプリケーションに実装されている場合、本実施形態では、削除のタイミングで採番済番号の返却を行う。なお、仕訳データのような企業会計上重要なデータの削除時は、再利用可能フラグは「無効」の状態で設定し、返却理由には、削除する際の理由も合わせて設定して返却を行ってもよい。また、通常の取引に関する単純な登録ミスの場合には、再利用可能フラグを「有効」として運用してもよい。   In addition, when a function for deleting registered business data is implemented in a business application, in this embodiment, a numbered number is returned at the timing of deletion. When deleting data important for corporate accounting, such as journal data, set the reusable flag to "Invalid" and set the reason for the deletion together with the reason for deletion. You may go. Further, in the case of a simple registration mistake regarding a normal transaction, the reusable flag may be operated as “valid”.

また、これまで、業務アプリケーション等では、なるべく欠番を少なくするため、データ登録時に採番を行っていたが、本実施形態では、採番を任意のタイミングで行うことができる。また、本実施形態では、業務データの登録前に採番を行い易くなったことで、業務管理システムの利用者が業務データの関連を登録前に確認することができる。   In the past, in business applications and the like, numbering was performed at the time of data registration in order to reduce missing numbers as much as possible. However, in this embodiment, numbering can be performed at an arbitrary timing. Further, in this embodiment, since it becomes easy to perform numbering before business data registration, the user of the business management system can confirm the relation of business data before registration.

また、採番のタイミングが任意の場合、採番後に入力を中断することが想定されるが、本実施形態では、入力を中断するタイミングで返却処理を行い、採番済番号を再利用する。また、本実施形態では、夜間のデータ保守時に、使用されていない番号を探して返却処理を行う。すなわち、本実施形態では、オペレータのリアルタイム入力時に返却処理を行わずに、夜間のデータメンテナンス時などに番号をまとめて返却することもできる。   In addition, when the numbering timing is arbitrary, it is assumed that the input is interrupted after the numbering. In this embodiment, the return process is performed at the timing when the input is interrupted, and the numbered number is reused. Further, in the present embodiment, during nighttime data maintenance, a return process is performed by searching for an unused number. In other words, in this embodiment, numbers can be returned in a lump at the time of nighttime data maintenance without performing return processing at the time of real-time input by the operator.

また、カウンタは有限な番号であるため、可能な限り無駄な番号を採番しないことが求められる。これまでは、無駄な番号を採番しないために、業務データの登録時に採番を行っていた。しかし、本実施形態によれば、例えば、仮で番号を採番させ、採番された番号を使用しなければ、その番号を再利用することが可能となる。   Further, since the counter is a finite number, it is required not to use as many unnecessary numbers as possible. Until now, in order not to assign useless numbers, numbering was performed when registering business data. However, according to this embodiment, for example, if a number is temporarily assigned and the number is not used, the number can be reused.

また、従来では、一度採番した番号の破棄や再利用は難しいため、極力無駄な番号を採番しないように業務管理システムを設計していた。具体的には、オペレータが業務データの入力を途中で放棄したり、業務アプリケーションのエラーに因り、入力した業務データを最終的に登録できなかったりする場合を想定して、採番のタイミングは、業務データの登録直前又は業務データを格納するデータベースの更新時に、業務アプリケーションが行うのが一般的であった。
しかし、本実施形態によれば、番号の破棄や再利用が容易になったので、採番処理のタイミングを従来よりも柔軟に設計することができる。例えば、業務アプリケーションの起動直後や業務データの入力中など任意のタイミングでの採番が設計可能になる。
また、本実施形態によれば、任意のタイミングで採番できることにより、業務データの登録が先となる制約を除外することができる。例えば、業務データを格納するデータベースへ登録する業務データと、コンピュータで管理されている業務ファイルとを関連付けるために、このファイル名を、採番した番号で管理する場合の設計のし易さが挙げられる。
また、従来の採番では業務データの登録が先に行われる必要があるが、作成した業務ファイルから業務データを抽出して登録する場合には、ファイル作成をデータ登録より先に行う必要がある。例えば、機械製品を製造している企業では、製図ソフトウェアを使って図面を作成し、業務アプリケーションと連携するための番号を採番する必要があった。さらに、その番号を使って製図ソフトウェアが作るファイルのファイル名と一致させたいという要件があった。従来の採番では、一時的なファイル名を使って作成したファイルで対応し、データ登録時に採番された番号でファイル名を変更して再度保存することを行わなければならなかった。しかし、本実施形態によれば、採番処理だけ先行して行うことが可能なので、ファイルを先行して作成し、作成されたファイルから情報を抽出してデータベースへのデータ登録を行うことが可能になる。
Conventionally, since it is difficult to discard or reuse a number once assigned, a business management system has been designed so as to avoid assigning as many unnecessary numbers as possible. Specifically, assuming the case where the operator abandons the input of business data halfway or the input business data cannot be finally registered due to a business application error, the numbering timing is The business application is generally performed immediately before registration of business data or when a database storing business data is updated.
However, according to the present embodiment, the number can be discarded or reused easily, so that the timing of the numbering process can be designed more flexibly than in the past. For example, it is possible to design numbering at any timing, such as immediately after starting a business application or while inputting business data.
Further, according to the present embodiment, since the numbering can be performed at an arbitrary timing, it is possible to exclude the restriction on the registration of the business data first. For example, in order to associate the business data registered in the database storing business data with the business file managed by the computer, it is easy to design when managing this file name with the number assigned. It is done.
In addition, in the conventional numbering, business data must be registered first, but when business data is extracted from a created business file and registered, the file must be created before data registration. . For example, a company that manufactures mechanical products needs to create a drawing using drafting software and assign a number for linking with a business application. In addition, there was a requirement to use the number to match the file name of the file created by the drafting software. In conventional numbering, a file created using a temporary file name must be handled, and the file name must be changed and saved again with the number assigned at the time of data registration. However, according to the present embodiment, since only the numbering process can be performed in advance, it is possible to create a file in advance, extract information from the created file, and register data in the database become.

また、本実施形態にかかるシステムは、業務アプリケーション以外にも、有限な番号を生成する必要がある分野において利用可能である。
例えば、本実施形態にかかるシステムは、電話番号(例えば、日本の固定電話の場合は市外局番と市内局番を除いた加入者番号、日本の携帯電話の場合は携帯番号とキャリア識別番号を除いた顧客番号、など)の採番に利用可能である。電話番号は簡単に桁数を増やすことが出来ない有限な番号である。そこで、本実施形態にかかるシステムを利用すれば、例えば、携帯電話の新規購入時に採番を行い、利用停止時に番号をシステムへ返却することで番号を有効に使用することができる。
また、例えば、本実施形態にかかるシステムは、国民総背番号制における番号管理に利用可能である。現在の日本の人口は減少傾向にあるが、累計人口は増加し続ける。しかし、国民総背番号制で必要な番号の桁数は、システム移行に伴って変更することが非常に困難であると推測される。そこで、本実施形態にかかるシステムを利用すれば、例えば、採番は出生時に行い、そして、死亡時から、法的手続きを取る必要がなくなる程度の年数が経ったら返却を行うことで、番号を増やし続けなければならない問題を解決することができる。
Further, the system according to the present embodiment can be used in fields where it is necessary to generate a finite number other than business applications.
For example, the system according to this embodiment includes a telephone number (for example, a subscriber number excluding an area code and a city code for a Japanese landline phone, a mobile number and a carrier identification number for a Japanese mobile phone). It can be used for numbering (excluding customer numbers, etc.). A telephone number is a finite number that cannot easily increase the number of digits. Therefore, if the system according to this embodiment is used, for example, numbering can be performed when a mobile phone is newly purchased, and the number can be effectively used by returning the number to the system when use is stopped.
Further, for example, the system according to the present embodiment can be used for number management in the national gross number system. The current Japanese population is on a downward trend, but the cumulative population continues to increase. However, it is estimated that it is very difficult to change the number of digits required for the national gross number system with the system transition. Therefore, if the system according to the present embodiment is used, for example, numbering is performed at the time of birth, and when the number of years has passed since the death, it is not necessary to take a legal procedure, and the number is returned. It can solve problems that must continue to increase.

また、本実施形態にかかるシステムは、番号を発行し管理するビジネスにおいて利用可能である。
例えば、携帯電話番号を管理するサービスを想定した場合、顧客(例えばサービス利用会社)は番号の発行を、サービス提供会社(本実施形態にかかるシステムのサーバ装置を管理する会社)に依頼し、サービス提供会社は顧客に対し番号を発行する。
発行した番号は顧客の資産となるので、番号管理費用として顧客はサービス提供会社にサービス利用料を支払う。
顧客は、サービス提供会社から発行された番号を使用しなくなったら、番号をサービス提供会社に返却し、サービス提供会社は返却の確認を行う。
なお、サービス利用料を、管理対象の番号の量に応じて課金されるように決めておけば、顧客は不要になった番号を返却した方が安くサービスを受けられことから、積極的な番号の返却が発生する。すなわち、サービス提供会社は顧客に番号の返却を促さなくても、サービス提供会社には顧客から自然と番号が返却されるようになる。
Further, the system according to the present embodiment can be used in a business for issuing and managing numbers.
For example, assuming a service for managing mobile phone numbers, a customer (for example, a service using company) requests a service provider company (a company that manages the server device of the system according to the present embodiment) to issue a number, and the service The provider issues a number to the customer.
Since the issued number becomes an asset of the customer, the customer pays a service usage fee to the service provider as the number management fee.
When the customer stops using the number issued by the service provider, the customer returns the number to the service provider, and the service provider confirms the return.
In addition, if you decide to charge the service usage fee according to the number of numbers to be managed, customers will be able to receive the service cheaper if you return the number that is no longer needed, so the active number Return occurs. In other words, even if the service providing company does not prompt the customer to return the number, the service providing company can automatically return the number from the customer.

また、これまで本発明の実施形態について説明したが、本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。   Further, although the embodiments of the present invention have been described so far, the present invention can be implemented in various different embodiments within the scope of the technical idea described in the claims other than the above-described embodiments. It ’s good.

例えば、上述した実施形態において説明した各処理のうち、自動的に行われるものとして説明した処理の全部または一部を手動的に行うこともでき、あるいは、手動的に行われるものとして説明した処理の全部または一部を公知の方法で自動的に行うこともできる。   For example, among the processes described in the above-described embodiments, all or a part of the processes described as being automatically performed can be manually performed, or the processes described as being manually performed All or a part of the above can be automatically performed by a known method.

このほか、上記文献中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件等のパラメータを含む情報、画面例、データベース構成については、特記する場合を除いて任意に変更することができる。   In addition, unless otherwise specified, the processing procedures, control procedures, specific names, information including registration data for each processing, parameters such as search conditions, screen examples, and database configurations shown in the above documents and drawings Can be changed arbitrarily.

また、業務管理システムに関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。   Further, regarding the business management system, each illustrated component is functionally conceptual and does not necessarily need to be physically configured as illustrated.

例えば、クライアント端末100及びサーバ装置200が備える処理機能、特に制御部100及び制御部202にて行われる各処理機能については、その全部または任意の一部を、CPUおよび当該CPUにて解釈実行されるプログラムにて実現してもよく、また、ワイヤードロジックによるハードウェアとして実現してもよい。尚、プログラムは、情報処理装置に本発明にかかる識別情報発行方法を実行させるためのプログラム化された命令を含む一時的でないコンピュータ読み取り可能な記録媒体に記録されており、必要に応じてサーバ装置200に機械的に読み取られる。すなわち、ROMまたはHDD(Hard Disk Drive)などの記憶部206などには、OSと協働してCPUに命令を与え、各種処理を行うためのコンピュータプログラムが記録されている。このコンピュータプログラムは、RAMにロードされることによって実行され、CPUと協働して制御部を構成する。   For example, regarding the processing functions provided in the client terminal 100 and the server device 200, in particular, the processing functions performed by the control unit 100 and the control unit 202, all or any part thereof is interpreted and executed by the CPU and the CPU. It may be realized by a program or hardware based on wired logic. The program is recorded on a non-transitory computer-readable recording medium including a programmed instruction for causing the information processing apparatus to execute the identification information issuing method according to the present invention. 200 mechanically read. That is, a computer program for giving instructions to the CPU in cooperation with the OS and performing various processes is recorded in the storage unit 206 such as a ROM or a HDD (Hard Disk Drive). This computer program is executed by being loaded into the RAM, and constitutes a control unit in cooperation with the CPU.

また、このコンピュータプログラムは、クライアント端末100又はサーバ装置200に対して任意のネットワークを介して接続されたアプリケーションプログラムサーバに記憶されていてもよく、必要に応じてその全部または一部をダウンロードすることも可能である。   The computer program may be stored in an application program server connected to the client terminal 100 or the server device 200 via an arbitrary network, and may be downloaded in whole or in part as necessary. Is also possible.

また、本発明にかかる識別情報発行プログラムを、一時的でないコンピュータ読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、フレキシブルディスク、光磁気ディスク、ROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable and Programmable Read Only Memory)、CD−ROM(Compact Disk Read Only Memory)、MO(Magneto−Optical disk)、DVD(Digital Versatile Disk)、および、Blu−ray(登録商標) Disc等の任意の「可搬用の物理媒体」を含むものとする。   Further, the identification information issuing program according to the present invention may be stored in a computer-readable recording medium that is not temporary, or may be configured as a program product. Here, the “recording medium” refers to a memory card, USB (Universal Serial Bus) memory, SD (Secure Digital) card, flexible disk, magneto-optical disk, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (registration). Trademark) (Electrically Erasable and Programmable Read Only Memory), CD-ROM (Compact Disk Read Only Memory), MO (Magneto-Optical disk), DVD (Digital Digital, Trademark) Any “portable physical media It is intended to include.

また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものをも含む。なお、実施形態に示した各装置において記録媒体を読み取るための具体的な構成および読み取り手順ならびに読み取り後のインストール手順等については、周知の構成や手順を用いることができる。   The “program” is a data processing method described in an arbitrary language or description method, and may be in any form such as source code or binary code. Note that the “program” is not necessarily limited to a single configuration, and functions are achieved in cooperation with a separate configuration such as a plurality of modules and libraries or a separate program represented by the OS. Including things. In addition, a well-known structure and procedure can be used about the specific structure and reading procedure for reading a recording medium in each apparatus shown to embodiment, the installation procedure after reading, etc.

記憶部106及び記憶部206に格納される各種のデータベース等は、RAM、ROM等のメモリ装置、ハードディスク等の固定ディスク装置、フレキシブルディスク、及び、光ディスク等のストレージ手段であり、各種処理やウェブサイト提供に用いる各種のプログラム、テーブル、データベース、及び、ウェブページ用ファイル等を格納する。   The storage unit 106 and various databases stored in the storage unit 206 are storage means such as a memory device such as a RAM and a ROM, a fixed disk device such as a hard disk, a flexible disk, and an optical disk. Stores various programs, tables, databases, web page files, and the like used for provision.

また、クライアント端末100及びサーバ装置200は、既知のパーソナルコンピュータまたはワークステーション等の情報処理装置として構成してもよく、また、任意の周辺装置が接続された当該情報処理装置として構成してもよい。また、クライアント端末100及びサーバ装置200は、当該情報処理装置に本発明の識別情報発行方法を実現させるソフトウェア(プログラムまたはデータ等を含む)を実装することにより実現してもよい。   In addition, the client terminal 100 and the server device 200 may be configured as an information processing device such as a known personal computer or workstation, or may be configured as the information processing device to which an arbitrary peripheral device is connected. . Further, the client terminal 100 and the server device 200 may be realized by installing software (including a program or data) for realizing the identification information issuing method of the present invention in the information processing device.

更に、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。   Furthermore, the specific form of distribution / integration of the devices is not limited to that shown in the figure, and all or a part of them may be functionally or physically in arbitrary units according to various additions or according to functional loads. It can be configured to be distributed and integrated. That is, the above-described embodiments may be arbitrarily combined and may be selectively implemented.

本発明にかかる識別情報発行装置、識別情報発行方法、及び識別情報発行プログラムは、特に、業務アプリケーションにおける番号管理などに有用である。   The identification information issuing device, the identification information issuing method, and the identification information issuing program according to the present invention are particularly useful for number management in a business application.

100 クライアント端末
102 制御部
104 通信インターフェース部
106 記憶部
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ装置
202 制御部
202a 要求受付部
202b 取得部
202c 生成部
202d 返却部
204 通信インターフェース部
206 記憶部
206a カウンタテーブル
206b 再利用カウンタテーブル
300 ネットワーク
DESCRIPTION OF SYMBOLS 100 Client terminal 102 Control part 104 Communication interface part 106 Storage part 108 Input / output interface part 112 Input device 114 Output device 200 Server apparatus 202 Control part
202a Request reception part
202b acquisition unit
202c generator
202d Return unit 204 Communication interface unit 206 Storage unit
206a counter table
206b Reuse counter table 300 network

Claims (10)

制御部と記憶部とを備えた識別情報発行装置であって、
前記記憶部は、
過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、
使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、
を備え、
前記制御部は、
前記第二記憶手段から前記不使用生成済識別情報を、所定個数を上限として取得する取得手段と、
前記取得手段で前記不使用生成済識別情報を1つも取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記所定個数の、前記生成済識別情報とは異なる前記識別情報を生成し、
前記取得手段で前記所定個数未満の個数の前記不使用生成済識別情報を取得できた場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記取得手段で取得できた前記不使用生成済識別情報の前記個数を前記所定個数から引いた個数の、前記生成済識別情報とは異なる前記識別情報を生成する生成手段と、
を備えたこと、
を特徴とする識別情報発行装置。
An identification information issuing device comprising a control unit and a storage unit,
The storage unit
First storage means for storing generated identification information specifying information for specifying generated identification information that is identification information generated in the past;
Second storage means for storing unused generated identification information that is the generated identification information that is not used;
With
The controller is
Obtaining means for obtaining the unused generated identification information from the second storage means with a predetermined number as an upper limit ;
When none of the unused generated identification information can be acquired by the acquisition means, the predetermined number of the generated identification information is referred to by referring to the generated identification information specifying information stored in the first storage means. Generating the identification information different from
When the acquisition means can acquire the unused generated identification information less than the predetermined number, it can be acquired by the acquisition means with reference to the generated identification information specifying information stored in the first storage means. Generating means for generating the identification information different from the generated identification information, the number obtained by subtracting the number of the unused generated identification information from the predetermined number ;
Having
An identification information issuing device characterized by the above.
前記第二記憶手段は、前記不使用生成済識別情報と関連付けて、当該不使用生成済識別情報を使わなくなった不使用理由及び当該不使用生成済識別情報を使ってよいか否かに関する使用可否情報をさらに記憶すること、
を特徴とする請求項1に記載の識別情報発行装置。
The second storage means associates with the non-used generated identification information and indicates whether or not the non-used generated identification information is no longer used and whether or not the non-generated generated identification information can be used. Storing more information,
The identification information issuing device according to claim 1.
前記第一記憶手段及び前記第二記憶手段は、前記識別情報が使用される用途ごとに、情報を記憶すること、
を特徴とする請求項1又は2に記載の識別情報発行装置。
The first storage means and the second storage means store information for each application in which the identification information is used;
The identification information issuing device according to claim 1 or 2.
前記識別情報は順序尺度に該当するものであり、
前記取得手段は、前記第二記憶手段から、連続した前記所定個数の前記不使用生成済識別情報を取得し、
前記生成手段は、前記取得手段で、連続した前記所定個数の前記不使用生成済識別情報を取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、連続した前記所定個数の前記識別情報を生成すること、
を特徴とする請求項1から3のいずれか1つに記載の識別情報発行装置。
The identification information corresponds to an order scale;
The acquisition unit acquires the predetermined number of the unused generated identification information consecutively from the second storage unit,
When the generation unit is not able to acquire the predetermined number of unused generated identification information consecutively by the acquisition unit, refer to the generated identification information specifying information stored in the first storage unit, Generating the predetermined number of the identification information consecutively;
The identification information issuing device according to any one of claims 1 to 3 .
前記取得手段は、連続した前記所定個数の前記不使用生成済識別情報であって、これらの中に含まれる最先の前記不使用生成済識別情報より1つ前の前記不使用生成済識別情報が前記第二記憶手段に存在せず、且つ、これらの中に含まれる最後の前記不使用生成済識別情報より1つ後の前記不使用生成済識別情報が前記第二記憶手段に存在しないものを、前記第二記憶手段から取得すること、
を特徴とする請求項に記載の識別情報発行装置。
The acquisition means includes the predetermined number of the unused generated identification information consecutively, and the unused generated identification information immediately before the earliest unused generated identification information included therein. Does not exist in the second storage means, and the unused generated identification information immediately after the last unused generated identification information included in the second storage means does not exist in the second storage means Obtaining from the second storage means,
The identification information issuing device according to claim 4 .
前記生成済識別情報特定情報は、前記生成済識別情報であって、当該生成済識別情報の後に当該生成済識別情報とは異なる前記生成済識別情報が存在しないものであること、
を特徴とする請求項4又は5に記載の識別情報発行装置。
The generated identification information specifying information is the generated identification information, and the generated identification information different from the generated identification information does not exist after the generated identification information.
The identification information issuing device according to claim 4 or 5 .
前記生成手段は、前記第一記憶手段に記憶した前記生成済識別情報を、前記所定個数だけ後のもの又は前記所定個数から前記取得手段で取得できた前記不使用生成済識別情報の個数を引いた個数だけ後のものに更新し、更新後の前記生成済識別情報、前記所定個数、及び前記取得手段で取得できた前記不使用生成済識別情報の前記個数に基づいて、連続した前記所定個数又は前記引いた個数の識別情報を生成すること、
を特徴とする請求項に記載の識別情報発行装置。
The generating means subtracts the number of the unused generated identification information acquired by the acquiring means from the predetermined number after the predetermined number of the generated identification information stored in the first storage means. The predetermined number that is continuously updated based on the generated identification information after the update, the predetermined number, and the number of the unused generated identification information acquired by the acquisition unit. Or generating the subtracted number of identification information,
The identification information issuing device according to claim 6 .
前記制御部は、前記生成済識別情報を前記第二記憶手段に記憶させる返却手段をさらに備えたこと、
を特徴とする請求項1からのいずれか1つに記載の識別情報発行装置。
The control unit further includes return means for storing the generated identification information in the second storage means,
Identification information issuing apparatus according to any one of claims 1 to 7, characterized in.
制御部と記憶部とを備えた識別情報発行装置において実行される識別情報発行方法であって、
前記記憶部は、
過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、
使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、
を備え、
前記制御部において実行される、
前記第二記憶手段から前記不使用生成済識別情報を、所定個数を上限として取得する取得ステップと、
前記取得ステップで前記不使用生成済識別情報を1つも取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記所定個数の、前記生成済識別情報とは異なる前記識別情報を生成し、
前記取得ステップで前記所定個数未満の個数の前記不使用生成済識別情報を取得できた場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記取得ステップで取得できた前記不使用生成済識別情報の前記個数を前記所定個数から引いた個数の、前記生成済識別情報とは異なる前記識別情報を生成する生成ステップと、
を含むこと、
を特徴とする識別情報発行方法。
An identification information issuing method executed in an identification information issuing device including a control unit and a storage unit,
The storage unit
First storage means for storing generated identification information specifying information for specifying generated identification information that is identification information generated in the past;
Second storage means for storing unused generated identification information that is the generated identification information that is not used;
With
Executed in the control unit,
An acquisition step of acquiring the unused generated identification information from the second storage means with a predetermined number as an upper limit ;
When none of the unused generated identification information can be acquired in the acquiring step, the predetermined number of the generated identification information is referred to by referring to the generated identification information specifying information stored in the first storage means. Generating the identification information different from
When it is possible to acquire the unused generated identification information less than the predetermined number in the acquiring step, it can be acquired in the acquiring step with reference to the generated identification information specifying information stored in the first storage means. Generating the identification information different from the generated identification information by subtracting the number of the unused generated identification information from the predetermined number ;
Including,
An identification information issuing method characterized by the above.
制御部と記憶部とを備えた識別情報発行装置において実行させるための識別情報発行プログラムであって、
前記記憶部は、
過去に生成した識別情報である生成済識別情報を特定するための生成済識別情報特定情報を記憶する第一記憶手段と、
使っていない前記生成済識別情報である不使用生成済識別情報を記憶する第二記憶手段と、
を備え、
前記制御部において実行させるための、
前記第二記憶手段から前記不使用生成済識別情報を、所定個数を上限として取得する取得ステップと、
前記取得ステップで前記不使用生成済識別情報を1つも取得できなかった場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記所定個数の、前記生成済識別情報とは異なる前記識別情報を生成し、
前記取得ステップで前記所定個数未満の個数の前記不使用生成済識別情報を取得できた場合、前記第一記憶手段に記憶した前記生成済識別情報特定情報を参照して、前記取得ステップで取得できた前記不使用生成済識別情報の前記個数を前記所定個数から引いた個数の、前記生成済識別情報とは異なる前記識別情報を生成する生成ステップと、
を含むこと、
を特徴とする識別情報発行プログラム。
An identification information issuing program for execution in an identification information issuing device comprising a control unit and a storage unit,
The storage unit
First storage means for storing generated identification information specifying information for specifying generated identification information that is identification information generated in the past;
Second storage means for storing unused generated identification information that is the generated identification information that is not used;
With
For executing in the control unit,
An acquisition step of acquiring the unused generated identification information from the second storage means with a predetermined number as an upper limit ;
When none of the unused generated identification information can be acquired in the acquiring step, the predetermined number of the generated identification information is referred to by referring to the generated identification information specifying information stored in the first storage means. Generating the identification information different from
When it is possible to acquire the unused generated identification information less than the predetermined number in the acquiring step, it can be acquired in the acquiring step with reference to the generated identification information specifying information stored in the first storage means. Generating the identification information different from the generated identification information by subtracting the number of the unused generated identification information from the predetermined number ;
Including,
An identification information issuing program characterized by:
JP2013114569A 2013-05-30 2013-05-30 Identification information issuing device, identification information issuing method, and identification information issuing program Active JP6193625B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013114569A JP6193625B2 (en) 2013-05-30 2013-05-30 Identification information issuing device, identification information issuing method, and identification information issuing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013114569A JP6193625B2 (en) 2013-05-30 2013-05-30 Identification information issuing device, identification information issuing method, and identification information issuing program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017154495A Division JP2017199436A (en) 2017-08-09 2017-08-09 Identification information issuing device, identification information issuing method, and identification information issuing program

Publications (2)

Publication Number Publication Date
JP2014235445A JP2014235445A (en) 2014-12-15
JP6193625B2 true JP6193625B2 (en) 2017-09-06

Family

ID=52138148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013114569A Active JP6193625B2 (en) 2013-05-30 2013-05-30 Identification information issuing device, identification information issuing method, and identification information issuing program

Country Status (1)

Country Link
JP (1) JP6193625B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1049470A (en) * 1996-08-05 1998-02-20 Fujitsu Ltd Member issuing processor and host device connected to the same
JP2002092260A (en) * 2000-09-12 2002-03-29 Kurarinetto:Kk Method for managing identification code
JP2005159516A (en) * 2003-11-21 2005-06-16 Brother Ind Ltd Id number providing method and id number providing apparatus
JP5245633B2 (en) * 2008-08-08 2013-07-24 株式会社リコー Image forming apparatus, job log data utilization system, and job execution method
JP5180908B2 (en) * 2009-05-26 2013-04-10 株式会社日立製作所 IC tag issue management system and method
JP4897899B2 (en) * 2010-02-18 2012-03-14 株式会社オプティム Ticket number issuing system, method and program

Also Published As

Publication number Publication date
JP2014235445A (en) 2014-12-15

Similar Documents

Publication Publication Date Title
JP5546486B2 (en) Information processing apparatus and program
JP2018163583A (en) Accounting data creating device, accounting data creating method, and accounting data creating program
JP2017199436A (en) Identification information issuing device, identification information issuing method, and identification information issuing program
JP6193625B2 (en) Identification information issuing device, identification information issuing method, and identification information issuing program
JP6772626B2 (en) Information processing equipment, information processing programs, information processing methods and information processing systems
JP2022041120A (en) Minimum guarantee amount management device, minimum guarantee amount management method, and minimum guarantee amount management program
US20170213044A1 (en) Privilege Log Generation Method and Apparatus
US11023900B2 (en) Routing customer feedback and service request
JP7035644B2 (en) Death report processing programs, equipment, and methods
JP6588988B2 (en) Business program generation support system and business program generation support method
JP2016126721A (en) Program generation device, and program generation method
JP7141501B2 (en) Slip processing device, slip processing method, and slip processing program
JP2019212144A (en) File management device, method for managing file, and program
JP6947596B2 (en) Deposit processing device, deposit processing method, and deposit processing program
JP7237677B2 (en) Business support device, business support program and business support method
JP2019016234A (en) Sales management device, sales management method, and sales management program
JP5957785B2 (en) Matter maintenance management device, matter maintenance management method, and matter maintenance management program
JP2023028672A (en) Design item management system
JP2022073189A (en) Contract management work support device, contract management work support program, and contract management work support method
JP2023165960A (en) Business support device, business support method, and business support program
JP6081026B2 (en) Management server and management method
JP5541527B2 (en) Electronic medical record management apparatus, electronic medical record management method, and program
JP2019061391A (en) Asset management data preparation device and asset management data creation method and asset management data creation program
CN113157712A (en) Data processing method, system and related equipment
JP2020052693A (en) Departmental profit/loss management apparatus, departmental profit/loss management method and departmental profit/loss management program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160527

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170324

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170509

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170629

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170711

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170810

R150 Certificate of patent or registration of utility model

Ref document number: 6193625

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250