KR0159814B1 - Article management method in electronic cash register - Google Patents

Article management method in electronic cash register Download PDF

Info

Publication number
KR0159814B1
KR0159814B1 KR1019950040596A KR19950040596A KR0159814B1 KR 0159814 B1 KR0159814 B1 KR 0159814B1 KR 1019950040596 A KR1019950040596 A KR 1019950040596A KR 19950040596 A KR19950040596 A KR 19950040596A KR 0159814 B1 KR0159814 B1 KR 0159814B1
Authority
KR
South Korea
Prior art keywords
product
record
mid
low
data file
Prior art date
Application number
KR1019950040596A
Other languages
Korean (ko)
Other versions
KR970029227A (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 KR1019950040596A priority Critical patent/KR0159814B1/en
Publication of KR970029227A publication Critical patent/KR970029227A/en
Application granted granted Critical
Publication of KR0159814B1 publication Critical patent/KR0159814B1/en

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0018Constructional details, e.g. of drawer, printing means, input means
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/01Details for indicating

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

본 발명은 전자식 금전등록기(ECR) 또는 판매시점관리시스템에 관한 것이다.The present invention relates to an electronic cash register (ECR) or point of sale management system.

본 발명에 의한 전자식 금전등록기(ECR) 또는 판매시점관리시스템에 있어서의 상품관리방법은 2진 인덱스테이블(Binary index table)을 이용하여 상품을 추가하거나 삭제하는 작업의 효율성을 증대시키는 것이다.The merchandise management method in the electronic cash register (ECR) or point-of-sale management system according to the present invention is to increase the efficiency of the operation of adding or deleting goods by using a binary index table.

Description

전자식 금전등록기(ECR)에서의 상품관리방법Product management method in electronic cash register (ECR)

제1도는 본 발명을 수행하기 위한 전자식 금전등록기의 내부구성을 보이는 블록도.1 is a block diagram showing the internal configuration of an electronic cash register for carrying out the present invention.

제2도는 제1도에 도시된 램에 기록될 2진인덱스테이블이며,FIG. 2 is a binary index table to be written to the RAM shown in FIG.

제3도는 제1도에 도시된 램에 기록될 상품데이타파일.3 is a product data file to be recorded in the RAM shown in FIG.

제4도는 본 발명에 따른 상품추가 플로우챠트.4 is a flow chart for adding goods according to the present invention.

제5도는 본 발명에 따른 상품삭제 플로우챠트.5 is a flowchart of deleting goods according to the present invention.

제6도는 본 발명에 따른 상품검색 및 수정 플로우챠트이다.6 is a flowchart of product search and modification according to the present invention.

본 발명은 전자식 금전등록기(ECR)에 관한 것으로, 특히 2진인덱스테이블(Binary index table)을 이용하여 상품을 추가하거나 삭제하는 작업의 효율성을 증대시키는 전자식 금전등록기(ECR)에서의 상품관리방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic cash register (ECR), and more particularly, to a method for managing a product in an electronic cash register (ECR) that increases the efficiency of adding or deleting a product using a binary index table. It is about.

일반적으로, 천개이하의 상품을 관리하는 전자식 금전등록기(ECR)에서는 상품데이타파일의 구조가 개별 상품을 구별할 수 있는 상품코드 (통상,3자리)를 인덱스로 하는 단순한 배열(ARRAY)구조로 구성되며, 이는 상품수가 적고 상품코드가 연속적으로 되어 있기 때문에 가능하다.In general, in the electronic cash register (ECR) that manages less than a thousand products, the structure of the product data file is composed of a simple array structure in which the product code (usually three digits) that can distinguish individual products is indexed. This is possible because the number of products is small and the product code is continuous.

그러나, 관리하고자하는 상품수가 수천에서 수만개일 경우, 또는 상품코드가 랜덤(random)한 숫자배열인 바-코드(통상,13자리)로 구성되어 있는 경우에는 상품코드가 연속적이지 않아 단순한 배열구조를 가질 수 없으므로 이 경우에는 랜덤한 상품코드를 갖는 상품에 대해 효율적인 수정 및 검색을 위해서 2진검색알고리즘으로 구성된 상품데이타파일 구조가 널리 사용된다.However, when the number of products to be managed is thousands to tens of thousands, or when the product code is composed of a random number array of bar codes (usually 13 digits), the product codes are not contiguous. In this case, a product data file structure composed of a binary search algorithm is widely used for efficient modification and retrieval of a product having a random product code.

상기 2진검색알고리즘은 상품코드의 크기에 따라 순차적으로 상품 데이터 파일을 구성하여 검색 및 수정이 용이하도록 한다. 상품코드를 가지고 상품데이타파일에서 검색하는 방법을 설명하면, 먼저 전체 상품데이타파일의 중간위치에 있는 상품데이타의 상품코드와 비교하여, 크면 윗쪽반에서, 작으면 아래쪽반에서 찾는다. 큰경우에 있어서, 중간과 위쪽끝의 중간과 비교해 나가는 방식으로 반복해서 찾고자하는 상품코드와 같은 상품데이타파일을 찾는다.The binary search algorithm sequentially constructs a product data file according to the size of a product code to facilitate search and modification. The method of searching in the product data file with the product code is explained first. The product code is searched in the upper half of the product and the lower half of the product in comparison with the product code of the product data in the intermediate position of the entire product data file. In large cases, the product data file is searched for the product code that you want to find repeatedly by comparing it with the middle of the middle and the top edge.

이와 같은 종래의 2진검색방식은 검색 및 수정시는 효율적이나 추가 혹은 삭제시에는 효율성이 떨어지는 문제점이 있는데, 이를 하기에서 설명한다.Such a conventional binary search method is efficient when searching and modifying but inefficient when adding or deleting, which will be described below.

상기 2진검색의 특성상 하나의 상품데이타파일에서 추가시에는 현재구축된(2진크기순으로) 상품데이타파일에서 추가하고자하는 상품의 코드가 위치할 곳은 상품코드의 크기에 따라 정렬된 장소가 된다. 그러므로, 만약 신규로 추가하여야할 상품코드가 현재존재하는 상품코드중에서 제일작으면, 이 상품 레코더는 메모리(램)상에 제일 앞쪽에 위치해야하므로 상품 데이터파일 구조를 재배치하여야 하는 문제가 발생된다.Due to the nature of the binary search, when adding from one product data file, the place of the code of the product to be added in the currently constructed (in binary order) product data file is located according to the size of the product code. do. Therefore, if the product code to be added is the smallest among the existing product codes, this product recorder must be located first in the memory (RAM), which causes a problem of relocating the product data file structure.

예를 들어, 하나의 상품에 대한 데이터(하나의 레코드라 함)가 상품의 특성(상품코드, 이름, 단가등)을 나타내는 영역과, 정산 레포트파일(Z1,Z2,Z3)을 포함하여 80바이트정도가 된다면, 또한 현재까지 구축된 상품데이타의 수가 10,000개정도 된다면 하나의 상품을 추구하기 위해서 80만바이트를 메모리상에서 이동시키고 추가하여야하는 오버헤드(OVER HEAD)가 생기게 되는 것이다.For example, data for one product (called one record) is 80 bytes including the area indicating the characteristics of the product (product code, name, unit price, etc.) and the settlement report files (Z1, Z2, Z3). If that is the case, and if the number of commodity data constructed so far is 10,000, there will be an overhead (OVER HEAD) to move and add 800,000 bytes in memory in order to pursue one commodity.

이와 같은 현상은 삭제시에도 동일하게 일어나며, 상기와 같은 오버 헤드는 상품추가 또는 상품삭제시 효율을 현저히 저하시키는 등과 같은 문제점이 있었던 것이다.This phenomenon occurs in the same manner when deleting, the overhead as described above had a problem such as significantly reducing the efficiency when adding or deleting products.

본 발명은 상기한 문제점을 해결하고자 안출된 것이다.The present invention has been made to solve the above problems.

따라서, 본 발명의 목적은 2진인덱스테이블을 이용하여 상품을 추가하거나 삭제하는 작업의 효율성을 증대시키는 전자식 금전등록기(ECR)에서의 상품관리방법을 제고하는데 있다.Accordingly, an object of the present invention is to improve a product management method in an electronic cash register (ECR) that increases the efficiency of the operation of adding or deleting a product using a binary index table.

상기한 바와 같은 목적을 달성하기 위한 수단으로서의 본 발명은 각 장치를 제어하는 중앙처리자치와, 2진인덱스테이블과 상품데이타파일이 기록된 램과, 프로그램이 기록된 롬과, 상품추가와 수정 및 삭제를 위해 데이터를 입력하는 키보드와, 중앙처리방치의 상품관리상황등을 표시하는 표시부와, 상품관리정보를 출력하는 프린터 및 단말기와 통신을 하기 위한 통신부를 포함하는 전자식 금전등록기(ECR)에서의 상품 관리 방법에 있어서, 상기 키보드로부터의 상품추가, 상품삭제, 수정/검색등의 작업모드를 입력 받아서 수행할 작업을 판별하는 제1단계; 상기 제1단계에서 상품추가모드로 판별되면, 첫 번째 레코드번호 0를 변수 LOW에 대입함과 동시에 마지막 레코드번호 n+1을 High에 대입시킨후 추가하고자하는 상품코드(PLU-Code)를 입력받아서 상품데이타파일의 레코드(#n+2)에 저장하는 제2단계; 상기 제2단계에서의 LOW와 HIGH를 평균하여 중간값인 MID를 구한후 이 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 추가불가에러메세지를 출력하고, 동일하지 않을경우에는 LOW가 HIGH보다 큰지를 비교하는 제3단계; 상기 제3단계에서 LOW가 HIGH보다 크지 않을 경우에는 상기 제3단계에서의 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드보다 작은 지를 비교하여 작지 않을 경우에는 LOW에 MID를 대입시키고, 작은 경우에는 HIGH에 MID를 대입시킨후 제3단계로의 처음으로 진행 하는 제4단계; 상기 제3단계에서의 LOW가 HIGH보다 클 경우에는 2진인덱스테이블의 레코드번지 MID로부터 HIGH방향으로 (n+1-MID+1)만큼 한 레코드씩 이동시킨후 상기 레코드 MID의 위치에 (#n+2)값을 기록하는 제5단계; 상기 제1단계에서 상품삭제모드로 판별되면, 첫 번째 레코드번호 0를 변수 LOW에 대입함과 동시에 마지막 레코드번호 n+1을 High에 대입시킨후 삭제하고자하는 상품코드(PLU-Code)를 입력받는 제6단계; 상기 제6단계에서의 LOW와 HIGH를 평균하여 중간값인 MID를 구한후 이 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일하지 않을 경우에는 LOW가 HIGH보다 큰지를 비교하는 제7단계; 상기 제7단계에서 LOW가 HIGH보다 클 경우에는 삭제불가에러 1메세지를 출력하고, 반면에 LOW가 HIGH보다 크지 않을 경우에는 상기 제7단계에서의 중간레코드MID가 지정한 상품데이타파일 레코드의 상품 코드보다 작은지를 비교하여 작지 않을 경우에는 LOW에 MID를 대입 시키고, 작은 경우에는 HIGH에 MID를 대입시킨후 제7단계로의 처음으로 진행하는 제8단계; 상기 제7단계에서 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 2진인덱스테이블의 레코드번지 MID+1로부터 LOW방향으로(n+1-MID)만큼 한 레코드씩 이동시키는 제9단계; 상기 제1단계에서 수정/검색모드로 판별되면, 제6,7,8단계로 진행되고, 상기 제7단계에서 중간레코드MID가 지정한 상품데이타파일 레코드의 상품 코드와 비교하여 동일한 경우에는 상품데이타테이블의 레코드번지 MID에서 지정한 상품데이타파일 레코더의 내용을 수정/검색하는 제10단계로 이루어 짐을 특징으로한다.The present invention as a means for achieving the above object is the central processing autonomous for controlling each device, the RAM on which the binary index table and the product data file is recorded, the ROM on which the program is recorded, the product addition and modification and The electronic cash register (ECR) includes a keyboard for inputting data for deletion, a display unit for displaying the product management status of the central processing unit, and a communication unit for communicating with a printer and a terminal for outputting the product management information. A merchandise management method comprising: a first step of determining a task to be performed by receiving a task mode such as adding a product, deleting a product, or modifying / searching from the keyboard; In the first step, if the product addition mode is determined, the first record number 0 is assigned to the variable LOW, the last record number n + 1 is assigned to High, and the product code (PLU-Code) to be added is inputted. A second step of storing in a record (# n + 2) of the product data file; If the intermediate MID is obtained by averaging LOW and HIGH in the second step, the intermediate record MID is compared with the product code of the specified product data file record. A third step of comparing whether LOW is greater than HIGH; In the third step, if LOW is not greater than HIGH, the intermediate record MID in the third step is smaller than the product code of the designated product data file record. If not, the MID is assigned to LOW. A fourth step of advancing to the third step after the MID is substituted into the HIGH; If LOW in the third step is greater than HIGH, the record address MID of the binary index table is shifted by one record in the HIGH direction by (n + 1-MID + 1), and then (#n) is positioned at the record MID. A fifth step of recording a value of +2); In the first step, when the product deletion mode is determined, the first record number 0 is assigned to the variable LOW, the last record number n + 1 is assigned to High, and the product code (PLU-Code) to be deleted is received. Sixth step; A seventh average of LOW and HIGH in the sixth step to obtain an intermediate MID, and if the intermediate record MID is not equal to the product code of the specified product data file record, the seventh to compare whether the LOW is greater than HIGH; step; In the seventh step, if LOW is greater than HIGH, an undeletable error 1 message is output. On the other hand, if LOW is not greater than HIGH, the intermediate record MID in the seventh step is greater than the product code of the specified product data file record. Comparing the small one, if it is not small, inserting the MID into the LOW; if the small one inserts the MID into the HIGH, the eighth step proceeds to the first step; If the intermediate record MID is the same as the product code of the product data file record specified in step 7, the record address of the binary index table is shifted by one record in the LOW direction (n + 1-MID) from MID + 1. Ninth step; If it is determined in the correction / search mode in the first step, the process proceeds to steps 6, 7, and 8, and if the intermediate record MID is the same as the product code of the product data file record specified in the step 7, the product data table And a tenth step of correcting / retrieving the contents of the product data file recorder designated by the record address MID.

이하 본 발명을 첨부된 도면을 참조하여 설명한다.Hereinafter, the present invention will be described with reference to the accompanying drawings.

제1도는 본 발명을 수행하기 위한 전자식 금전등록기의 내부 구성을 보이는 블록도이다.1 is a block diagram showing the internal configuration of an electronic cash register for carrying out the present invention.

제1도를 참조하면, 본 발명을 수행하기 위한 전자식 금전등록기는 주요처리동작을 담당하며 각 장치를 제어하는 중앙처리장치(10)와, 2진인덱스 테이블과 상품데이타파일이 기록된 램(11)과, 본 발명에 의한 프로그램이 기록된 롬(12)과, 사용자에 의해서 상품추가와 수정 및 삭제를 위해 데이터등을 입력하는 키보드(13)와, 중앙처리장치(10)에서 이루어지는 상품관리상황이나 중앙처리장치로부터의 데이터를 표시하는 표시부(14)와, 상기 중앙처리자치(10)로부터의 인쇄명령과 상품관리정보등에 관한 출력데이타를 인쇄하는 프린터(15) 및 각각의 단말기와 데이터통신을 하기 위한 통신부(16)로 구성되어 있다.Referring to FIG. 1, an electronic cash register for carrying out the present invention performs a main processing operation and controls a central processing unit 10, a RAM 11 having a binary index table and a product data file recorded therein. ), A ROM 12 in which a program according to the present invention is recorded, a keyboard 13 for inputting data, etc. for adding, modifying, and deleting a product by a user, and a product management situation in the central processing unit 10. Or data communication with the display unit 14 for displaying data from the central processing unit, the printer 15 for printing the print data from the central processing unit 10 and output data relating to product management information, and the like. It consists of the communication part 16 for this.

제2도(a)는 제1도에 도시된 램에 기록될 2진인덱스테이블이며, 제3도는 제1도에 도시된 램에 기록될 상품데이타파일이다. 또한, 제4도는 본 발명에 따른 상품추가 플로우챠트이고, 제5도는 본 발명에 따른 상품검색 및 수정 플로우챠트이며, 제6도는 본 발명에 따른 상품삭제 플로우챠트이다.FIG. 2A is a binary index table to be recorded in the RAM shown in FIG. 1, and FIG. 3 is a product data file to be recorded in the RAM shown in FIG. 4 is a product addition flowchart according to the present invention, FIG. 5 is a product search and modification flowchart according to the present invention, and FIG. 6 is a product deletion flowchart according to the present invention.

이하, 본 발명에 따른 작용 및 효과를 첨부도면을 참조하여 상세히 설명한다.Hereinafter, the operation and effect according to the present invention will be described in detail with reference to the accompanying drawings.

본 발명은 2진인덱스테이블(Binary index table)을 이용하여 상품 추가, 상품삭제 및 상품수정/검색을 수행함에 있어 효율성이 있으며, 특히 상품을 추가하거나 삭제하는 작업의 효율성이 더욱 증대되는데, 하기에 이를 구체적으로 설명한다.The present invention has an efficiency in performing product addition, product deletion, and product modification / retrieval using a binary index table, in particular, the efficiency of adding or deleting a product is further increased. This will be described in detail.

제1단계에서는 상기 키보드로부터의 상품추가, 상품삭제, 수정/검색등의 작업모드를 입력받아서 수행할 작업을 판별한다.In the first step, a task to be performed is determined by receiving a work mode such as adding a product, deleting a product, or modifying / searching from the keyboard.

먼저, 제4도를 참조하여 상품을 추가하는 동작과정을 설명하면, 제2단계(31,32)에서는 상기 제1단계에서 상품추가모드로 판별되면, 첫 번째 레코드번호 0를 변수 LOW에 대입함과 동시에 마지막 레코드번호 n+1을 High에 대입시킨후 추가하고자하는 상품코드(PLU-Code)를 키보드(13)로 입력받아서 램(11)의 상품데이타파일의 레코드(#n+2)에 저장한다.First, referring to FIG. 4, the operation of adding a product is described. In the second steps 31 and 32, when it is determined that the product is added in the first step, the first record number 0 is substituted into the variable LOW. At the same time, the last record number n + 1 is assigned to High, and the product code (PLU-Code) to be added is input to the keyboard 13 and stored in the record (# n + 2) of the product data file of the RAM 11 do.

제3단계(33,34,35)에서는 상기 제2단계에서의 LOW와 HIGH를 평균하여 중간값인 MID를 구한후 이 중간레코드MID가 지정한 제3도에 도시된 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 제1도에 도시된 표시부(14)로 추가불가에러메세지를 출력하고, 동일하지 않을 경우에는 LOW가 HIGH보다 큰지를 비교한다.In the third step (33, 34, 35), the MID is obtained by averaging LOW and HIGH in the second step, and then the product code of the product data file record shown in FIG. In case of comparison, the additional error message is output to the display unit 14 shown in FIG. 1, and if not, it is compared whether LOW is greater than HIGH.

제4단계(35,36,37a,37b)에서는 상기 제3단계에서 LOW가 HIGH보다 크지 않을 경우에는 상기 제3단계에서의 중간레코드MID가 지정한 제3도에 도시된 상품데이타파일 레코드의 상품코드보다 작은지를 비교하여 작지 않을 경우에는 LOW에 MID를 대입시키고, 작은 경우에는 HIGH에 MID를 대입 시킨후 제3단계로의 처음으로 진행한다.In the fourth step (35, 36, 37a, 37b), if LOW is not greater than HIGH in the third step, the product code of the product data file record shown in FIG. 3 designated by the intermediate record MID in the third step If it is smaller, if it is not small, MID is assigned to LOW. If it is small, MID is assigned to HIGH and then proceeds to the first step.

제5단계(38,39)에서는 상기 제3단계에서의 LOW가 HIGH보다 클 경우에는 제2도에 도시된 램(11)의 2진인덱스테이블의 레코드번지 MID로부터 HIGH방향으로 (n+1-MID+1)만큼 한 레코드씩 이동시킨 후 상기 레코드 MID의 위치에 (#n+2)값을 기록한다.In the fifth steps 38 and 39, when LOW in the third step is greater than HIGH, the record address MID of the binary index table of RAM 11 shown in FIG. After moving one record by MID + 1), the value (# n + 2) is recorded at the position of the record MID.

다음으로, 제5도를 참조하여 상품을 삭제하는 동작과정을 설명하면, 제6단계(41)에서는 상기 제1단계에서 상품삭제모드로 판별되면, 첫 번째 레코드번호 0를 변수 LOW에 대입함과 동시에 마지막 레코드번호 n+1을 High에 대입시킨후 삭제하고자하는 상품코드(PLU-Code)를 입력받는다.Next, referring to FIG. 5, the operation of deleting a product is described. In the sixth step 41, if the product deletion mode is determined in the first step, the first record number 0 is substituted into the variable LOW. At the same time, insert the last record number n + 1 into High and receive the PLU-Code to be deleted.

제7단계(42,43,44)에서는 상기 제6단계에서의 LOW와 HIGH를 평균하여 중간값인 MID를 구한후 이 중간레코드MID가 지정한 제3도의 상품데이타파일 레코드의 상품코드와 비교하여 동일하지 않을 경우에는 LOW가 HIGH보다 큰지를 비교한다.In the seventh step (42, 43, 44), the intermediate value MID is obtained by averaging LOW and HIGH in the sixth step, and then the same as the product code of the product data file record of FIG. 3 designated by the intermediate record MID. If not, compare whether LOW is greater than HIGH.

제8단계(45,46a,46b)에서는 상기 제7단계에서 LOW가 HIGH보다 클 경우에는 삭제불가에러메세지를 출력하고, 반면에 LOW가 HIGH보다 크지 않을 경우에는 상기 제7단계에서의 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드보다 작은지를 비교하여 작지 않을 경우에는 LOW에 MID를 대입시키고, 작은 경우에는 HIGH에 MID를 대입시킨 후 제7단계로의 처음으로 진행한다.In the eighth step (45, 46a, 46b), if the LOW is greater than HIGH in the seventh step, an error message that cannot be deleted is output. On the other hand, if the LOW is not greater than HIGH, the intermediate record MID in the seventh step is output. If it is not small, MID is assigned to LOW. If it is small, MID is assigned to HIGH, and then the procedure goes to the first step.

제9단계(47)에서는 상기 제7단계에서 중간레코드MID가 지정한 제3도의 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 2진인덱스테이블의 레코드번지 MID+1로부터 LOW방향으로 (n+1-MID)만큼 한 레코드씩 이동시킨다.In the ninth step 47, when the intermediate record MID is identical with the product code of the goods data file record of FIG. 3 specified in the seventh step, in the LOW direction from the record address MID + 1 of the binary index table (n + 1-MID) by one record.

그 다음으로, 제6도를 참조하여 상품을 수정/검색하는 동작과정을 설명하면, 상기 제1단계에서 수정/검색모드로 판별되면, 제6,7,8단계로 진행되고, 상기 제7단계에서 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 상품데이타테이블의 레코드번지 MID에서 지정한 상품데이타파일 레코더의 내용을 수정/검색하게 된다.Next, referring to FIG. 6, the operation of correcting / searching the product is described. When it is determined as the modification / search mode in the first step, the process proceeds to steps 6, 7, and 8, and the seventh step If the intermediate record MID is the same as the product code of the product data file record specified in the above, the contents of the product data file recorder specified in the record address MID of the product data table are corrected / searched.

상기한 설명은 본 발명의 일실시예에 대한 설명에 불과하며, 본 발명은 그 구성의 범위내에서 다양한 변경 및 개조가 가능하다.The above description is only a description of one embodiment of the present invention, the present invention is capable of various changes and modifications within the scope of the configuration.

상술한 바와 같은 본 발명은 2진인덱스테이블(Binary index table)을 이용하여 상품을 추가하거나 삭제하는 작업의 효율성을 증대시키는 효과가 있다.The present invention as described above has the effect of increasing the efficiency of the operation of adding or deleting a product using a binary index table (Binary index table).

Claims (1)

각 장치를 제어하는 중앙처리장치(10)와 2진인덱스테이블과 상품데이타파일이 기록된 램(11)과, 프로그램이 기록된 롬(12)과, 상품추가와 수정 및 삭제를 위해 데이터등을 입력하는 키보드(13)와, 중앙처리장치(10)의 상품관리상황등을 표시하는 표시부(14)와, 상품관리정보를 출력하는 프린터(15) 및 단말기와 통신을 하기 위한 통신부(16)를 포함하는 전자식 금전등록기(ECR)에서의 상품 관리 방법에 있어서, 상기 키보드로부터의 상품추가, 상품삭제, 수정/검색등의 작업모드를 입력받아서 수행할 작업을 판별하는 제1단계; 상기 제1단계에서 상품추가모드로 판별되면, 첫 번째 레코드번호 0를 변수 LOW에 대입함과 동시에 마지막 레코드번호 n+1을 High에 대입시킨 후 추가하고자하는 상품코드(PLU-Code)를 입력받아서 상품데이타파일의 레코드#n+2에 저장하는 제2단계; 상기 제2단계에서의 LOW와 HIGH를 평균하여 중간값인 MID를 구한 후 이 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 추가불가에러메세지를 출력하고, 동일하지 않을 경우에는 LOW가 HIGH보다 큰지를 비교하는 제3단계; 상기 제3단계에서 LOW가 HIGH보다 크지 않을 경우에는 상기 제3단계에서의 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드보다 작은지를 비교하여 작지 않을 경우에는 LOW에 MID를 대입시키고, 작은 경우에는 HIGH에 MID를 대입 시킨후 제3단계로의 처음으로 진행하는 제4단계; 상기 제3단계에서의 LOW가 HIGH보다 클 경우에는 2진인덱스테이블의 레코드번지 MID로부터 HIGH방향으로 (n+1-MID+1)만큼 한 레코드씩 이동시킨후 상기 레코드 MID의 위치에 (#n+2) 값을 기록하는 제5단계; 상기 제1단계에서 상품삭제모드로 판별되면, 첫 번째 레코드번호0를 변수 LOW에 대입함과 동시에 마지막 레코드번호 n+1을 High에 대입시킨후 삭제하고자하는 상품코드(PLU-Code)를 입력받는 제6단계; 상기 제6단계에서의 LOW와 HIGH를 평균하여 중간값인 MID를 구한 후 이 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일하지 않을 경우에는 LOW가 HIGH보다 큰지를 비교하는 제7단계; 상기 제7단계에서 LOW가 HIGH보다 클 경우에는 삭제불가 에러메세지를 출력하고, 반면에 LOW가 HIGH보다 크지 않을 경우에는 상기 제7단계에서의 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드보다 작은지를 비교하여 작지 않을 경우에는 LOW에 MID를 대입시키고, 작은 경우에는 HIGH에 MID를 대입시킨 후 제7단계로의 처음으로 진행하는 제8단계; 상기 제7단계에서 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 2진인덱스테이블의 레코드 번지 MID+1로부터 LOW방향으로 (n+1-MID)만큼 한 레코드씩 이동시키는 제9단계; 상기 제1단계에서 수정/검색모드로 판별되면, 제6,7,8단계로 진행되고, 상기 제7단계에서 중간레코드MID가 지정한 상품데이타파일 레코드의 상품코드와 비교하여 동일한 경우에는 상품데이타테이블의 레코드번지 MID에서 지정한 상품데이타파일 레코더의 내용을 수정/검색하는 제10단계로 이루어짐을 특징으로 하는 전자식 금전등록기(ECR)에서의 상품관리방법.The central processing unit 10 controlling each device, the RAM 11 which records the binary index table and the product data file, the ROM 12 where the program is recorded, and the data for adding, modifying and deleting the product A keyboard 13 for inputting, a display unit 14 for displaying the product management status of the central processing unit 10, etc., a printer 15 for outputting the product management information, and a communication unit 16 for communicating with the terminal. A method of managing a product in an electronic cash register (ECR), comprising: a first step of determining a job to be performed by receiving a job mode from the keyboard such as adding a product, deleting a product, or modifying / searching; In the first step, if it is determined as the product addition mode, the first record number 0 is assigned to the variable LOW and the last record number n + 1 is assigned to High, and then the product code (PLU-Code) to be added is inputted. A second step of storing in record # n + 2 of the product data file; If the intermediate MID is obtained by averaging LOW and HIGH in the second step, the intermediate record MID is compared with the product code of the specified product data file record. A third step of comparing whether LOW is greater than HIGH; If the LOW is not greater than HIGH in the third step, the intermediate record MID in the third step is smaller than the product code of the specified product data file record. If not, the MID is assigned to the LOW. A fourth step of advancing to the third step after the MID is substituted for HIGH; If LOW in the third step is greater than HIGH, the record address MID of the binary index table is shifted by one record in the HIGH direction by (n + 1-MID + 1), and then (#n) is positioned at the record MID. A fifth step of recording a value; In the first step, when the product deletion mode is determined, the first record number 0 is assigned to the variable LOW, the last record number n + 1 is assigned to High, and the product code (PLU-Code) to be deleted is received. Sixth step; A seventh average of LOW and HIGH in the sixth step to obtain an intermediate value of MID, and if the intermediate record MID is not equal to the product code of the specified product data file record, the seventh to compare whether LOW is greater than HIGH; step; In the seventh step, if LOW is greater than HIGH, an undeletable error message is output. On the other hand, if LOW is not greater than HIGH, the intermediate record MID in the seventh step is smaller than the product code of the specified product data file record. Step 8, if the comparison is not small, the MID is assigned to LOW; if the MID is assigned to the HIGH, the first step proceeds to the seventh step; If the intermediate record MID is the same as the product code of the product data file record specified in step 7, the record address of the binary index table is shifted by one record in the LOW direction from (n + 1-MID) in the LOW direction. Ninth step; If it is determined in the correction / search mode in the first step, the process proceeds to steps 6, 7, and 8, and if the intermediate record MID is the same as the product code of the product data file record designated in the step 7, the product data table And a tenth step of correcting / retrieving the contents of the product data file recorder designated by the record address MID of the electronic cash register (ECR).
KR1019950040596A 1995-11-10 1995-11-10 Article management method in electronic cash register KR0159814B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950040596A KR0159814B1 (en) 1995-11-10 1995-11-10 Article management method in electronic cash register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950040596A KR0159814B1 (en) 1995-11-10 1995-11-10 Article management method in electronic cash register

Publications (2)

Publication Number Publication Date
KR970029227A KR970029227A (en) 1997-06-26
KR0159814B1 true KR0159814B1 (en) 1999-03-20

Family

ID=19433612

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950040596A KR0159814B1 (en) 1995-11-10 1995-11-10 Article management method in electronic cash register

Country Status (1)

Country Link
KR (1) KR0159814B1 (en)

Also Published As

Publication number Publication date
KR970029227A (en) 1997-06-26

Similar Documents

Publication Publication Date Title
US5781896A (en) Method and system for efficiently performing database table aggregation using an aggregation index
US8386435B2 (en) Searchable archive
US6662189B2 (en) Method of performing data mining tasks for generating decision tree and apparatus therefor
US6226634B1 (en) Association rule generation and group-by processing system
US7783855B2 (en) Keymap order compression
US6757675B2 (en) Method and apparatus for indexing document content and content comparison with World Wide Web search service
US5394487A (en) Forms recognition management system and method
EP0304302A2 (en) Data retrieval system
US20030195874A1 (en) Search apparatus and method using order pattern including repeating pattern
KR910001244B1 (en) Cash register
CN100357952C (en) Binary data access method
US7882114B2 (en) Data processing method and data processing program
KR0159814B1 (en) Article management method in electronic cash register
US4751641A (en) Method and apparatus for storing data to facilitate price look-up
CN114185934B (en) Indexing and query method and system based on Tiandun database column storage
JP2770798B2 (en) Product code search method
JP2977377B2 (en) Cash register
KR20010056528A (en) Data tiling method for retrieving and handling large volume of data
JP3245873B2 (en) File processing device
JP2520941B2 (en) How to search the database table
JP3005380B2 (en) Slip transaction data input device and input method
JPH0594452A (en) Plu master simple retrieval system
JPH10134254A (en) Merchandise managing device and pos terminal
JPH06103307A (en) Retrieval speeding-up method for structured data base
JPH04230576A (en) Method for retrieving record

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20030730

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee