SYSTEM FOR CHANGING COMMON CARD MODE DATA IN A CARD IMAGE DATA PROCESSING SYSTEM

Abstract: A system for changing common card mode data a plurality of card images comprising: a memory area (421, 422) for old card mode data; a memory area (423) for old card data; a memory area (424, 425) for fresh card mode data; a memory area (426) for fresh card data; and a memory area (427) for the field corres­ pondence between the old and fresh card mode data. In accord­ ance with the content of the corresponding memory area, all or part of the old card data can bei transmitted from the old card data memory area to the fresh card data memory area. This avoids the need to re-write a card completely each time the card nedds to be altered.

Description: The present invention relates to a card image data processing system in which a plurality of cards, i.e. card images, share common card mode data. More particularly, it relates to a system for changing common card mode data for a plurality of card images. In usual offices, office workers store information in physical card systems. That is, they write the information on to cards and store the cards in filing boxes. The development of word processing, however, has made possible electronic card systems wherein information is stored on card images in a floppy disk or other memory medium, thereby enhancing office efficiency. In such a system, a card image is displayed on a display unit and information is added thereon. A card image is comprised of common card mode data for a plurality of card images, such card images with common card mode data being considered a "box", and individual card data for each card image. When adding new form items (fields) or changing a field, thus changing the card mode data, it is necessary for an office worker to reinput all old, individual card data for the new card mode data so as to create new card images. This considerably increases work and may result in errors in the card data due to reinput. It is desirable to provide a method for making a common blank form for a plurality of card images grouped into a "box", in which the preparation of a blank form is made simple and the defined blank form is visually determined. An article entitled "The System for Business Automation (SBA): a unified application development system" by S. Peter de Jong, in Information Processing 80, IFIP, 1980, pages 469 to 473, North Holland Publishing Co., discloses a system which employs a Query-by-Example relational database language (QBE). QBE is said to be a two dimensional language consisting of tables and boxes, with which a screen manager deals directly. Fig. 1 of the article gives an example of a table (INVENTORY) and boxes (the COMMAND box and the CONDITION box) in relation to QBE. The article also refers to the SBA system and says that, unlike QBE, SBA does not contain a preferred set of objects. It is said that the SBA system is constructed out of abstract objects called BOXes. Each box is independent and can execute concurrently. Each box contains the operations necessary to support the object and the object's data. It is said that the SBA box is a general container which can represent data, programs, people, locations, etc. The SBA box is said to have four sections:- IDENTIFIER, INPUT, OUTPUT and CONTENTS. An article "Query-by-Example: The invocation and definition of tables and forms", from Proceedings of the International Conference on very large databases, Boston, Mass., U.S.A., September 22, 1975, pages 1 to 24, discloses a relational database which can be defined and queried using the Query-by-Example (QBE) relational query language. In this database a relation is basically a table with columns which correspond to respective different attributes (e.g. name, salary, manager, department) associated with each entry in the table. Each row in the table corresponds to a different entry. The data in each column, i.e. the data about each attribute, is constrained to conform to the data field format specified for the column (e.g. field size, field type, etc.). Each column, i.e. each attribute, is given a name (e.g. "name", "salary", etc.). Thus entries having a common set of attributes are grouped into a so-called table. To define a table the operator constructs a skeleton of the table, with columns and column names. The operator then defines the formats of the data fields corresponding to each column. The definitions are accomplished by entering symbols, which indicated the length and type of each field example. A secondary table can be defined which has columns already defined in another table. Using a link function, columns in the secondary table are related to columns in the other table. The columns in the secondary table take the same data field definitions as in the other table. According to the present invention there is provided a data processing system in which card mode data common for a plurality of card images can be changed from a first card mode to a second card mode, said card mode data comprising for display fixed information including field names and field definition information including start coordinates of the fields in which individual card data may be inserted; said system comprising: a display unit; a first means for storing the card mode data belonging to a first card mode; a second means for storing individual card data belonging to said first card mode; a third means for storing the card mode data belonging to a second card mode; a fourth means for storing individual card data belonging to said second card mode; and further comprising: a fifth means for searching for the correspondence of field definition information between said first and second card mode data and storing the serial numbers of corresponding fields in a table means; a sixth means for showing the correspondence of field definition information by displaying said first card mode data of said first storing means and said second card mode data of said third storing means together with said serial numbers on said display unit; and a seventh means for transferring all or part of said first card data of said second storing means to said fourth storing means in accordance with the correspondence of the serial numbers stored in said table means. Reference will now be made, by way of example, to the accompanying drawings, wherein: Fig. 1 shows examples of boxes to which the present invention may be applied, Fig. 2 is an example of a card image to which the present invention may be applied, Figs. 3A and 3B are display pictures for explaining embodiments of the invention; Fig. 4 is a block diagram of a card image data processing system embodying the present invention, Fig. 5 is a detailed block diagram of a random access memory (RAM) of Fig. 4; Figs. 6 through 12 are flow diagrams of the operation of the system of Fig. 4; Figs. 13A through 13C are examples of the content of a field correspondence table area of Fig. 5; Fig. 14 is a detailed flowchart of a step of Fig. 6; and Fig. 15 is a detailed flowchart of a step of Fig. 14. In Fig. 1, reference numeral 1 designates a memory medium, such as a floppy disk, for storing a plurality of boxes such as 2a and 2b. Ten boxes, for example, can be accommodated in the floppy disk 1. Each box contains a large number of card images 3a-1, 3a-2 --- (or 3b-1, 3b-2,---),for example, 3,000. Such card images are displayed on a display unit. Retrieval operations, sort operations, statistical operations, and the like are performed upon the card data corresponding to the card image displayed on the display unit. As illustrated in Fig. 2, each card image is comprised of common card mode data (blank form data) for all the card images belonging to a box and individual card data (field data). The common card mode data is comprised of, for example, a title "CUSTOMER CARD", field names "CUSTOMER NO.", "CUSTOMER'S NAME", "ADDRESS", "PHONE", "AGE", "NAME", lines 21, and the like, while the individual card data is inserted in the places indicated by marks "····" and Note that the common card mode data is stored once in one memory area for all the card images, and that the plurality of individual card data, to which page numbers are given, are stored in separate memory areas so as to save memory space. When displaying a card image on the display unit, the common card mode data and the selected individual card data are merged. In Figs. 3A and 3B, which illustrate the principle of an embodiment of the invention, reference numeral 31 designates a display picture. The display picture 31 of Fig. 3A shows an old card mode, while the display picture of Fig. 3B shows a fresh card mode and the old card mode in upper and lower regions 31a and 31b ("windows" 31a and 31b), respectively. In making a fresh card mode, the old card mode is displayed as display picture 31 of Fig. 3A. In this state, the worker adds, changes, or deletes field names and/or field indicating marks such as "┌", "┘", and After this, the fresh card mode and the old card mode are simultaneously displayed on the upper and lower windows 31a and 31b, respectively, as illustrated in Fig. 3B. In the old card mode of the window 31b, serial numbers 00, 01, 02, and 03 are given to the fields. The same serial numbers are given to any corresponding fields in the fresh card mode of the window 31a. Fields in the fresh card mode changed from the old card mode have no serial numbers. Note that separate serial numbers may be given to new fields of the fresh card mode by a worker. For example, a serial number "04" may be given to the field "OCCUPATION" of the fresh card mode. Fields of the old card mode having serial numbers not in the fresh card mode are deleted. Then, all or part of the individual card data of fields with corresponding fields in the fresh card mode of the old card mode are transferred to the fields of the fresh card mode. In Fig. 4, which illustrates a card image data processing system embodying the present invention, reference numeral 41 designates a microprocessor unit (MPU); 42 a RAM for storing temporary data; 43 a read-only memory (ROM) for storing programs, constants and, the like; 44 a keyboard; 45 a keyboard control circuit; 46 a display unit (36 rows x 48 columns); 47 an image buffer for storing the content of the display unit 46; 48 a character generator; 49 a display control circuit; 50 floppy disks; 51 a floppy disk control circuit; 52 an address bus; 53 a data bus; and 54 a clock generator for supplying clock signals to the MPU 41 and the like. In Fig. 5, which is a detailed block diagram of the RAM 42, seven memory areas 421 through 427 are provided. Reference numeral 421 designates an old mode image code area, 422 an old field definition information area, 423 an old card data area, 424 a fresh mode image code area, 425 a fresh field definition information area, 426 a fresh card data area, and 427 a field correspondence table area between the field definition information areas 422 and 425. The mode image code areas 421 and 424 are used for storing fixed information such as titles, frame lines, and field names. The field definition information areas 422 and 425 are used for storing the location and length of each field. The card data areas 423 and 426 are used for storing individual card data, i.e., variable field data. The operation of card image data processing system of Fig. 4 will be explained with reference to Figs. 6 through 12. First, at step 601, the MPU 41 selects and opens a box which is, in this case, an old box. That is, the MPU 41 loads mode image codes, including box profile information, and field definition information from the floppy disks 50 to the mode image code area 421 and the field definition information area 422, respectively, of the RAM 42. At step 602, the card mode loaded on the areas 421 and 422 is displayed on the display unit 46 (See Fig. 3A). At step 603, the office worker makes a fresh card mode by using the old card mode displayed on the display unit 46, i.e., adds, changes, or deletes field definition information, field names, and other mode image codes. Alternatively, he may make a fresh card mode from the beginning. At step 604, the MPU 41 opens two windows on the display picture. At step 605, the fresh card mode is displayed in the upper window, and at step 606 the old card mode is displayed in the lower window (See Fig. 3B). Then, at step 607, a field correspondence table is made in the field correspondence table area 427, later explained in more detail. At step 608, the MPU 41 opens a fresh box. That is, the MPU 41 registers fresh mode image codes including fresh field definition information and fresh field names in the floppy disks 50. Then, at step 609, the MPU 41 transfers all or part of the individual card data stored in the old card data area 423 to the fresh card data area 426 in accordance with the content of the field correspondence table area 427, also later explained in more detail. The operation at step 609 is performed upon all individual card data in the old box. Then, at step 610, the MPU 41 closes both the old and fresh boxes, thereby completing the routine of Fig. 6. Step 607 of Fig. 6 for making the field correspondence table will now be explained in more detail with reference to Figs. 7 through 12. First, at step 701, the MPU 41 gives serial numbers such as 00, 01, 02, and 03 to old fields of the old card mode, as shown in Fig. 13A, which mode also corresponds to the lower window 31b of Fig. 3B. At step 702, the MPU 41 searches for a fresh field which has the same start coordinates as one of the old fields. For example, in Fig. 3B, the "ADDRESS" field of the fresh card mode has the same start coordinates as that of the old card mode. Therefore, in this case, at steps 703 and 704, the MPU 41 writes "00" into entry 1 of the fresh fields, in the field correspondence table, as shown in Fig. 13A. Otherwise, control is transferred to step 705 in which the MPU 41 determines whether or not an old field is ended. Thus, the operation at steps 703, 704, and 702 is performed repeatedly upon all the old fields. If the determination at step 705 is affirmative, control is transferred to step 801 of Fig. 8. The flow of Fig. 8 shows how the office worker corrects the field correspondence table area 427. At step 801, the office worker moves the cursor to the upper window 31a of Fig. 3B, in which the fresh card mode is displayed. Then, at step 802, a key or keys are pushed. As a result, a next operation will be performed in accordance with the pushed keys. At step 802, the MPU determines whether or not a numeric key or keys are pushed. If pushed, control is transferred to step 901 of Fig. 9, which determines whether or not the cursor is located on a fresh field. If located on a fresh field, at step 902, the MPU 41 displays the inputted figures on the head of this fresh field. For example, as shown in Fig. 13B, "01" and "02" are added to entries 2 and 3 of the fresh fields in the field correspondence table. Note that, in this case, the cursor is controlled to be located on any one of the fresh fields. If the determination at step 901 is negative, control returns to step 802 of Fig. 8. Also, control from step 902 returns to step 802 of Fig. 8. Note that, in this state, the office worker can correct the table. For example, the number "00" of the entry 1 of the fresh fields can be deleted by pushing a deletion key, as illustrated in Fig. 13C, which corresponds to Fig. 3B. If the determination at step 803 is negative, control is transferred to step 804, in which the MPU 41 determines whether or not the cursor key is pushed. If pushed, control is transferred to step 1001 of Fig. 10, in which the cursor is moved. Thus, control returns to step 802 of Fig. 8. If the determination at step 804 is negative, control is transferred to step 805, in which the MPU 41 determines whether or not a next row key is pushed. If so, control is transferred to step 1101 of Fig. 11, in which the MPU 41 performs an up-scrolling operation upon the image buffer 47, i.e., the content of the display unit 46. Then, control returns to step 802 of Fig. 8. If the determination at step 805 is negative, control is transferred to step 806, in which the MPU 41 determines whether or not a previous row key is pushed. If so, control is transferred to step 1201 of Fig. 12, in which the MPU 41 performs a down-scrolling operation upon the image buffer 47, i.e., the content of the display unit 46. Then, control returns to step 802 of Fig. 8. If the determination at step 806 is negative, control is transferred to step 807, in which the MPU 41 determines whether or not an execution key is pushed. If so, control is transferred to step 808, in which the MPU 41 makes a new field correspondence table. In this table, the MPU 41 gives serial numbers such as 00, 01, 02, 03, and 04 to the entries 1 through 5, respectively, of fresh fields, and the MPU 41 gives the numbers 01 and 02 to the entries 2 and 3, respectively, of old fields, in accordance with the table of Fig. 13C. Thus, the routine of Fig. 8, is completed. The card data transferring step 609 of Fig. 6 will be explained in more detail with reference to Fig. 14. At step 1401, the MPU 41 loads a page of card data belonging to an old box from the floppy disks 50 to the old card data area 423 of the RAM 42. Next, at step 1402, the MPU 41 searches for a fresh field of the fresh mode and, as a result, at step 1403, determines whether or not the searched fresh field is registered in the field correspondence table area 427. If registered, control is transferred to step 1405, in which the MPU 41 transmits the card data of the corresponding old field of the area 423 to the fresh field of the area 426. Otherwise, control is transferred to step 1406, in which the MPU 41 fills the searched fresh field with field marks. In this case, if this fresh field is a character field, this field is filled with "······", and if the fresh field is a numeric field, the field is filled with Then, at step 1407, the MPU 41 determines whether or not the searched fresh field is an end field of the fresh card data. If the determination at step 1407 is negative, control returns to step 1402. Therefore, the operation at steps 1402 through 1406 is performed repeatedly upon all the fields of the fresh card data belonging to one page. Next, control is transferred to step 1408, in which the MPU 41 transfers the fresh card data from the card data area 426 to the floppy disks 50. At step 1409, the MPU 41 determines whether or not all the cards (pages) belonging to the old box are processed. If the determination at step 1409 is negative, control returns to step 1401 so as to repeat the above-mentioned steps 1402 through 1408. If the determination at step 1409 is affirmative, this routine is completed. The card data transferring step 1405 of Fig. 14 will be explained in more detail with reference to Fig. 15. At step 1501, the MPU 41 determines whether the searched fresh field is a character field or a numeric field. If the searched fresh field is a character field, control is transferred to step 1502. At step 1502, the MPU 41 compares the fresh field length with the corresponding old field length. If the fresh field length is greater than the old field length, control is transferred to step 1503, in which the MPU 41 transfers all the card data of the old field to the left side within the fresh field. Then, at step 1504, the MPU 41 clears the remaining space of the fresh field. At step 1502, if the fresh field length is equal to the corresponding old field length, control is transferred to step 1505, in which the MPU 41 transfers all the card data of the old field to the fresh field. At step 1502, if the fresh field length is less than the corresponding old field length, control is transferred to step 1506, in which the MPU 41 transmits the head part of the card data of the old field, which has the same length as the fresh field, to the fresh field. At step 1501, if the searched fresh field is a numeric field, control is transferred to step 1507. At step 1507, the MPU 41 determines whether or not there is overflow above the decimal point. At step 1508, the MPU 41 determines whether there is an overflow below the decimal point. If there is no overflow above and below the decimal point, control is transferred to step 1509, in which the MPU 41 transfers the numeric card data from the old field to the fresh field. In this case, if the old field is associated with commas or a decimal point, such commas or decimal point are also transferred to the fresh field. If there is an overflow below the decimal point, control is transferred to step 1510, in which the MPU 41 rounds the overflowed part of the card data (numeric data). At step 1511, the MPU 41 transfers the rounded numeric data to the fresh field. Also, in this case, if the old field is associated with commas or a decimal point, such commas or decimal point are also transferred to the fresh field. If there is an overflow above the decimal point, control is transferred to step 1512, in which the MPU 41 fills the fresh field with "???", which indicates that it is impossible to transmit meaningful numeric data from the old field to the fresh field. As explained above, the operator can change a card mode by using a table of field correspondence between an old card mode and a fresh card mode.

Claims: A data processing system in which card mode data common for a plurality of card images can be changed from a first card mode to a second card mode, said card mode data comprising for display fixed information including field names and field definition information including start coordinates of the fields in which individual card data may be inserted; said system comprising: a display unit (46); a first means (421, 422) for storing the card mode data belonging to a first card mode; a second means (423) for storing individual card data belonging to said first card mode; a third means (424, 425) for storing the card mode data belonging to a second card mode; a fourth means (426) for storing individual card data belonging to said second card mode; and further comprising: a fifth means (607) for searching for the correspondence of field definition information between said first and second card mode data and storing the serial numbers of corresponding fields in a table means (427); a sixth means (605, 606) for showing the correspondence of field definition information by displaying said first card mode data (31b) of said first storing means and said second card mode data (31a) of said third storing means together with said serial numbers on said display unit; and a seventh means (609; 1503-1506, 1509-1511) for transferring all or part of said first card data of said second storing means to said fourth storing means in accordance with the correspondence of the serial numbers stored in said table means. A system as set forth in claim 1, further comprising a means for making said second card mode data by displaying said first card mode data on said display unit and correcting it.

Inventors: IKEGAMI, YOSHIKI, SATO, YASUAKI
Applicants: FUJITSU LIMITED
Application year: 1983
Main classification: G06F15
IPC codes: G06F17, G06F12, G06F3, G06K17, G06Q10