Operation information migration method and device, electronic equipment and storage medium
By automatically processing data changes in adapted orders and original orders in the production management system, the problem of low production efficiency caused by frequent order data adjustments is solved, and more efficient and accurate production process management is achieved.
Patent Information
- Application Number
- CN202510668652.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-08-15
AI Technical Summary
In the existing production and manufacturing technology, due to design changes or material shortage, order data is frequently adjusted, and manual comparison and search for configuration changes before and after modification are required, resulting in low production efficiency and error-prone.
By obtaining the adaptation order and the original order, determining the type of the adaptation material number, and extracting and migrating the corresponding operation information from the original order to the adaptation order, the production management system is used to automatically process the order data changes.
Improve production efficiency, reduce the need for manual comparison and search, reduce error rates, and ensure the accuracy and quality control of the production process.
Smart Images

Figure CN120494937A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of production technology, and in particular to an operation information migration method, device, electronic device and storage medium. Background Art
[0002] In the field of manufacturing technology, the accuracy and timeliness of order data directly impacts production efficiency and product quality. During the production process, order data often needs to be adjusted due to design changes or material shortages. Typically, technicians must manually identify configuration changes before and after the order is modified during the process, resulting in low production efficiency. Summary of the Invention
[0003] The present application provides an operation information migration method, device, electronic device, storage medium, and program product to solve the problem of low production efficiency.
[0004] This application provides an operation information migration method, which includes:
[0005] Obtaining a reconfiguration order and an original order for a target product, wherein the reconfiguration order includes at least one reconfiguration material number and reconfiguration configuration information corresponding to each reconfiguration material number;
[0006] determining a target reconfiguration type of the target reconfiguration material number according to the target reconfiguration material number, the target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order, wherein the target reconfiguration material number is any one of the at least one reconfiguration material number;
[0007] When the target reconfiguration type is determined to be the preset reconfiguration type, the operation information matching the target reconfiguration material number is extracted from the original order according to the target reconfiguration material number;
[0008] The operation information is migrated to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order, so that the target object can perform process operations on the material corresponding to the target reconfiguration material number based on the operation information in the process flow of the target product.
[0009] The present application also provides an operation information migration device, which includes:
[0010] An acquisition module is used to acquire a reconfiguration order and an original order of a target product, wherein the reconfiguration order includes at least one reconfiguration material number and reconfiguration configuration information corresponding to each reconfiguration material number;
[0011] a determination module, configured to determine a target reconfiguration type of the target reconfiguration material number based on the target reconfiguration material number, target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order, wherein the target reconfiguration material number is any one of the at least one reconfiguration material number;
[0012] An extraction module is used to extract operation information matching the target reconfiguration material number from the original order based on the target reconfiguration material number when determining that the target reconfiguration type is a preset reconfiguration type;
[0013] The migration module is used to migrate the operation information to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order, so that the target object can perform process operations on the material corresponding to the target reconfiguration material number based on the operation information in the process flow of the target product.
[0014] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned operation information migration methods when executing the computer program.
[0015] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned operation information migration methods are implemented.
[0016] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned operation information migration methods when executed by a processor.
[0017] Through this application, first, the reconfiguration order and original order of the target product are obtained. For any reconfiguration material number included in the reconfiguration order, the reconfiguration type of the reconfiguration material number can be determined based on the reconfiguration material number and its corresponding reconfiguration configuration information, as well as the original order. Then, if the reconfiguration type is a preset reconfiguration type, the corresponding operation information can be extracted from the original order based on the reconfiguration material number and migrated to the reconfiguration configuration information corresponding to the reconfiguration material number. In this way, the target object can perform process operations based on this operation information, without the need for manual comparison and search, which can improve product production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1A schematic diagram of the architecture of a production management system provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of an operation information migration method provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of a display interface provided in an embodiment of the present application;
[0022] Figure 4 A flowchart of a method for adding an installation location diagram provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of the structure of an operation information migration device provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0026] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0027] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0028] The operation information migration method provided in this application can be implemented by a production management system, such as Figure 1 As shown, a production management system can include a server and a client. Both the server and the client are equipped with a Manufacturing Execution System (MES) to manage production data. The server can be a server or server cluster, and the client can be a terminal device.
[0029] During the production management process, due to design changes, material shortages, and other reasons, existing production orders need to be adjusted, for example, the Bill of Materials (BOM) needs to be adjusted. However, in the current production management system, the reconfiguration order only saves the changed material information, but does not retain the material information of the original order. This means that when the production process needs to be maintained or inspected, it is impossible to directly compare the configuration changes before and after the reconfiguration. For example, if it is necessary to confirm whether a certain process is executed in accordance with the latest reconfiguration requirements, or to evaluate the impact of the reconfiguration on the production plan, the staff can only rely on manual on-site inspection and memory to manually identify which parts have been modified. This method is not only time-consuming and labor-intensive, but also prone to errors, which seriously affects the operational efficiency and quality control of the production process.
[0030] The embodiment of the present application provides an operation information migration method, which can be applied to the above-mentioned production management system and executed by a server or a client (the following description will take the server as an example), such as Figure 2 As shown, the specific processing steps of the operation information migration method may include:
[0031] Step S201: Obtain the re-order and original order of the target product.
[0032] The reconfiguration order may include at least one reconfiguration material number and the reconfiguration configuration information corresponding to each reconfiguration material number. The original order may include at least one original material number and the original configuration information corresponding to each original material number. The reconfiguration configuration information may include multiple elements such as the reconfiguration quantity, reconfiguration component specifications, reconfiguration component type, and reconfiguration operation information for the material corresponding to the reconfiguration material number. The original configuration information may include multiple elements such as the original quantity, original component specifications, original component type, and original operation information for the material corresponding to the original material number. The material number may be a part number (PN) code. Both the original operation information and the reconfiguration operation information may include operational instructions for assembling the material. The operational instructions may include information about the port to which the material is connected and the connection method. For example, "install in port 1 using a type A cable." Operational information is also generally referred to as process maintenance content. The component type and specifications may be presented as component names, for example, "Power Manager - Type A," where "Power Manager" indicates the component type and "Type A" indicates the specifications.
[0033] Specifically, when the staff determines that a certain material in the original order is currently missing, or that the design of the target product has been changed, a new re-allocation order can be issued. Since the re-allocation order generally only saves the changed information, and does not retain the detailed data of the original order. Therefore, in order to avoid the problem of manually comparing relevant information during the production process, the staff can upload the re-allocation order of the target product to the server (for example, the staff can complete the upload operation by adding the re-allocation order on the display interface and then clicking the Save button). The server can extract the order identification information from the re-allocation order, and based on the order identification information, determine the original order corresponding to the order identification information in the pre-built order database (the original order can also be uploaded to the server in a similar manner to the re-allocation order), and extract it for subsequent comparison and analysis operations with the re-allocation order point. For example, the order identification information can be the machine serial number.
[0034] In some optional implementations, each time the server receives an order, it can determine each original order corresponding to that order, as well as the version number of each original order. Based on the version number of each original order, it then determines the original order with the largest version number as the original order for comparison with the currently uploaded reconfigured order. This way, regardless of which reconfigured order, after subsequent migration operations, operational information for all modified versions can be recorded, facilitating comparison and analysis during subsequent process operations, helping staff understand the entire change process. This can significantly improve production efficiency, especially for situations where materials are frequently changed.
[0035] Step S202 : determining the target reconfiguration type of the target reconfiguration material number according to the target reconfiguration material number, the target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order.
[0036] The target re-allocation material number may be any re-allocation material number among the at least one re-allocation material number.
[0037] Specifically, the server can traverse each reconfiguration material number in the reconfiguration order. For each reconfiguration material number traversed, the server determines the reconfiguration type for the reconfiguration material number. The following describes the specific steps for determining the reconfiguration type using the target reconfiguration material number as an example:
[0038] Step 1: According to the target reconfiguration material number, target reconfiguration configuration information corresponding to the target reconfiguration material number is determined in the reconfiguration order.
[0039] Step 2: When it is determined that the original order contains a first original material number that is consistent with the target reconfigured material number, first original configuration information corresponding to the first original material number is determined in the original order based on the first original material number.
[0040] Step three: extracting the original quantity from the first original configuration information, and extracting the reconfigured quantity from the target reconfigured configuration information.
[0041] Step 4: When it is determined that the original quantity and the re-allocated quantity are consistent, the first type is determined as the re-allocation type of the target re-allocated material number.
[0042] The first type is used to indicate that the material corresponding to the target re-allocation material number is a material whose specifications and quantity have not changed.
[0043] Step 5: When it is determined that the original quantity and the re-allocated quantity are inconsistent, the second type is determined as the re-allocation type of the target re-allocated material number.
[0044] The second type is used to indicate that the material corresponding to the target re-allocation material number is a material whose quantity has changed.
[0045] Step 6: When it is determined that the original order does not have the first original material number, the component type is extracted from the target reconfiguration configuration information.
[0046] Step seven: when it is determined that the original order contains the second original configuration information including the component type, the third type is determined as the reconfiguration type of the target reconfiguration material number.
[0047] Among them, the third type is used to indicate that the material corresponding to the target reconfigured material number is a substitute material for the material corresponding to the second original material number, and the second original material number is the original material number corresponding to the second original configuration information in the original order.
[0048] Step eight: when it is determined that the second original configuration information does not exist in the original order, the fourth type is determined as the reconfiguration type of the target reconfigured material number.
[0049] The fourth type is used to indicate that the material corresponding to the target re-allocation material number is a difference material.
[0050] Specifically, first, the server may determine the target reconfiguration configuration information corresponding to the target reconfiguration material number in the reconfiguration order according to the target reconfiguration material number.
[0051] Then, the service end can determine whether there is a first original material number that is consistent with the target re-allocated material number in the original order. If it is determined that the first original material number exists, it means that the original order also uses the material corresponding to the target re-allocated material number. Further, the service end can search for the corresponding first original configuration information in the original order based on the first original material number. The service end can extract the original quantity from the first original configuration information, extract the re-allocated quantity from the first re-allocated configuration information, and compare whether the original quantity and the re-allocated quantity are consistent. If the original quantity and the re-allocated quantity are consistent, it means that the quantity of the material corresponding to the target re-allocated material number has not changed. At this time, the first type can be determined as the re-allocation type of the target re-allocated material number. If the original quantity and the re-allocated quantity are inconsistent, it can be determined that the quantity of the material corresponding to the target re-allocated material number has changed. At this time, the second type can be determined as the re-allocation type of the target re-allocated material number.
[0052] If it is determined that there is no first original material number in the original order that is consistent with the target reconfigured material number, the component type can be further extracted from the target reconfigured configuration information (i.e., the reconfigured component type is extracted). Afterwards, the service end can traverse each original configuration information in the original order. Each time an original configuration information is traversed, the component type can be extracted from the traversed original configuration information (i.e., the original component type is proposed), and it is determined whether the extracted reconfigured component type is consistent with the original component type. If the extracted reconfigured component type is consistent with the original component type, the traversed original configuration information is determined to be the second original configuration information including the reconfigured component type. If the extracted reconfigured component type is inconsistent with the original component type, the traversed original configuration information can be continued to traverse the next original configuration information, and so on, until the second original configuration information including the reconfigured component type is determined, or, after traversing all the original configuration information in the original order, the traversal operation is stopped. When the second original configuration information is determined, it means that the material corresponding to the target reconfigured material number has replaced the original material of the same component type. At this time, the third type can be determined as the reconfiguration type of the target reconfigured material number. Alternatively, when the second original configuration information has not been determined after traversing all the original configuration information, it means that the material corresponding to the target reconfiguration material number is a difference material, that is, a material that was not used in the original order. At this time, the fourth type can be determined as the reconfiguration type of the target reconfiguration material number.
[0053] By analogy, the reconfiguration type of each reconfigured material number can be determined.
[0054] Through the above comparison process, the reconfiguration type of each reconfigured material number can be accurately determined, thereby enabling subsequent accurate migration of operational information. Furthermore, as technology evolves, alternative materials are constantly being updated. However, alternative materials generally indicate materials with the same function. Therefore, by extracting the component type from the configuration information, this solution can more accurately and comprehensively determine whether the material corresponding to the reconfigured material number is an alternative material.
[0055] In some optional implementations, when it is determined that the first original material number does not exist in the original order, the server can determine the alternative material number corresponding to the first original material number in a pre-built alternative material table. It can then determine whether an original material number that matches any of the alternative material numbers exists in the original order. If so, the third type can be determined as the reconfiguration type for the target reconfiguration material number. If not, the fourth type can be determined as the reconfiguration type for the target reconfiguration material number. In this way, the reconfiguration type can be determined simply by comparing the material numbers, which can improve efficiency.
[0056] Step S203: When it is determined that the target reconfiguration type is the preset reconfiguration type, operation information matching the target reconfiguration material number is extracted from the original order according to the target reconfiguration material number.
[0057] The preset reconfiguration type may be the first type or the third type.
[0058] Specifically, for replacement materials or materials whose specifications and quantities have been modified, since the original operation information is already indicated in the original order, in order to determine whether there is a difference with the reconfigured operation information, the original material's operation information can be directly migrated to the reconfigured order. Taking the target reconfigured material number as an example, when the server determines that the corresponding target reconfiguration type is the first type, it can extract the original configuration information corresponding to the target reconfigured material number from the original order based on the target reconfigured material number, that is, the first original configuration information. Further, the original operation information is extracted from the first original configuration information, that is, the operation information that matches the target reconfigured material number.
[0059] Alternatively, when the server determines that the target reconfiguration type is the third type, it can obtain the original material number that has been replaced determined in step S202, that is, the above-mentioned second original material number, based on the target reconfiguration material number, and based on the second original material number, extract the second original material configuration information corresponding to the second original material number from the original order, and then extract the original operation information from the second original material configuration information, that is, extract the operation information that matches the target reconfiguration material number.
[0060] Step S204 , migrating the operation information to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order, so that the target object can perform process operations on the material corresponding to the target reconfiguration material number based on the operation information in the process flow of the target product.
[0061] The target object may be a staff member.
[0062] Specifically, the server can transfer the extracted operation information to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order. In this way, the staff can perform process operations on the terminal device based on the operation information transferred to the target reconfiguration configuration information.
[0063] In some optional implementations, the server may perform a marking operation corresponding to the reconfiguration type on each reconfigured material number and the reconfiguration configuration information corresponding to each reconfigured material number according to the reconfiguration type of each reconfigured material number.
[0064] Specifically, taking the target reconfiguration material number as an example, the server can mark the target reconfiguration material number and target reconfiguration configuration information according to the target reconfiguration type. This way, when a staff member views the reconfiguration order on a terminal device, the terminal device can display each reconfiguration material number and its corresponding reconfiguration configuration information based on the mark in the reconfiguration order, allowing the staff member to more intuitively see the reconfiguration type of the material corresponding to the reconfiguration material number.
[0065] In some optional implementations, the server may also perform a marking operation on the original material number and the original configuration information. Accordingly, the server may first determine the reconfiguration type of the original material number. The specific steps may be as follows:
[0066] When the server determines that the reconfiguration type of the target reconfigured material number is the first type, the reconfiguration type of the first original material number can also be determined as the first type (here, it means that the quantity and specifications of the material corresponding to the first original material number have not changed). When the server determines that the reconfiguration type of the target reconfigured material number is the second type, the reconfiguration type of the first original material number can also be determined as the second type (here, it means that the quantity of the material corresponding to the first original material number has changed). When the server determines that the reconfiguration type of the target reconfigured material number is the third type, the reconfiguration type of the second original material number can be determined as the third type (here, it means that the material corresponding to the second original material number has been replaced). Similarly, after traversing all the reconfigured material numbers in the reconfiguration order, it can be determined which original material numbers have not yet determined the reconfiguration type, and the reconfiguration type of the original material numbers that have not yet determined the reconfiguration type can be determined as the fourth type (here, it means that the material corresponding to the original material number is not used in the reconfiguration order). In this way, the server can perform marking operations corresponding to the reconfiguration type on each original material number and the reconfiguration configuration information corresponding to each original material number according to the reconfiguration type of each original material number.
[0067] When the staff views the re-matching order on the terminal device, the terminal device can display each original material number and its corresponding original configuration information according to the mark in the original order, so that the staff can compare the re-matching order and the original order more intuitively.
[0068] In some optional implementations, after the staff clicks the comparison button on the terminal device, the terminal device detects the click operation and sends a comparison notification to the server. After receiving the comparison notification, the server performs the comparison and marking operations between the re-allocation order and the original order, and sends the re-allocation order and the original order obtained after the comparison and marking operations to the terminal device, which then performs the display operation. The display interface can be as follows: Figure 3 As shown, the re-matching order is on the left side of the display interface, and the original order is on the right side of the display interface. The second and fourth types can be displayed in red font or background color. Figure 3 In bold font, that is Figure 3 The second and fourth lines in the , third type can be used for green font or background display, Figure 3 Indicated by a bold frame, that is Figure 3 The third line in .
[0069] In some optional implementations, after the staff clicks the one-click copy button on the terminal device, the interrupt device can detect the click operation and send a copy notification to the server. After receiving the copy notification, the server then executes the above steps S203 to S204.
[0070] The execution of related operations is triggered by staff, which is more flexible.
[0071] It should be noted that the above-mentioned related operations performed by the server can also be performed by the terminal device. The specific steps are similar to those executed by the server and will not be repeated here.
[0072] The operation information migration method of the embodiment of the present application first obtains the reconfiguration order and the original order of the target product. For any reconfiguration material number included in the reconfiguration order, the reconfiguration type of the reconfiguration material number can be determined based on the reconfiguration material number and its corresponding reconfiguration configuration information, as well as the original order. Then, if the reconfiguration type is a preset reconfiguration type, the corresponding operation information can be extracted from the original order based on the reconfiguration material number, and migrated to the reconfiguration configuration information corresponding to the reconfiguration material number. In this way, the target object can perform process operations based on this operation information without manual comparison and search, which can improve product production efficiency. In addition, manual comparison is more prone to errors, and this solution can avoid such problems through automation.
[0073] In order to more intuitively display the operation information after the reconfiguration, the corresponding three-dimensional model can be generated so that the target object can perform work operations based on the three-dimensional model. Accordingly, the embodiment of the present application also provides a method for adding an installation location diagram, which can be executed by the server or terminal device, such as Figure 4 As shown, the specific processing steps of the method for adding the installation location diagram may include:
[0074] Step S401: Obtain an initial three-dimensional model corresponding to the re-allocation order.
[0075] Specifically, the staff can upload the initial three-dimensional model corresponding to the re-matching order to the server, for example, it can be a three-dimensional model of the motherboard.
[0076] Step S402: According to each reconfigured material number, a three-dimensional structure diagram corresponding to each reconfigured material number is obtained.
[0077] Specifically, the server can pre-build a three-dimensional structure library. In this step, according to each reconfiguration material number included in the reconfiguration order, the three-dimensional structure diagram corresponding to each reconfiguration material number can be determined in the three-dimensional structure library and extracted.
[0078] Step S403 : generating an installation position diagram corresponding to each reconfigured material number according to the reconfigured configuration information, the three-dimensional structure diagram, and the initial three-dimensional model corresponding to each reconfigured material number.
[0079] Specifically, taking the target re-allocation material number as an example, the server can determine the target port diagram corresponding to the target operation information in the initial three-dimensional model based on the target operation information of the material corresponding to the target re-allocation material number, and then combine the target port diagram with the three-dimensional structure diagram corresponding to the target material number to generate an installation position schematic diagram corresponding to the target re-allocation material number.
[0080] Step S404: Add the installation position diagram corresponding to each reconfigured material number to the reconfiguration configuration information corresponding to the reconfigured material number.
[0081] Specifically, taking the target reconfiguration material number as an example, the server may add the installation location diagram corresponding to the target reconfiguration material number to the target reconfiguration information.
[0082] In this way, for each reconfigured material number, the corresponding installation location diagram can be determined in the above manner and added to the corresponding reconfiguration information in the reconfiguration order.
[0083] In some optional embodiments, when a worker scans the first material number through a terminal device, the first material number can be sent to the server. The server can then determine, based on the first material number, first configuration information corresponding to the first material number in the re-allocation order and send the first configuration information to the terminal device. After receiving the first configuration information, the terminal device can display it so that the worker can perform a process operation on the material corresponding to the first material number based on this operation information. Alternatively, the terminal device can also display the product file, standard operating procedure (SOP) document, technical instructions, and process card information of the target product.
[0084] In some optional embodiments, upon obtaining the original order or the initial 3D model corresponding to the original order, the server may obtain the 3D structure diagram corresponding to each original material number included in the original order based on the original configuration information corresponding to each original material number in the original order, and assemble the 3D structure diagram corresponding to each original material number with the initial 3D model to obtain the original 3D model of the target product. The reconfigured 3D model of the target product may also be generated in a similar manner and stored on the server.
[0085] The method for adding an installation position schematic diagram in the embodiment of the present application obtains the initial three-dimensional model corresponding to the reconfiguration order and the three-dimensional structure diagram corresponding to each reconfiguration material number, and then generates an installation position schematic diagram corresponding to each reconfiguration material number based on the reconfiguration configuration information, three-dimensional structure diagram, and initial three-dimensional model corresponding to each reconfiguration material number. The staff can intuitively see the specific location and connection method of the material installation, avoiding misinstallation or rework due to misunderstanding.
[0086] For example, the relevant codes displayed after comparing the original order and the re-allocated order can be as follows:
[0087] using System;
[0088] using System.Collections;
[0089] using System.Collections.Generic;
[0090] using System.Drawing;
[0091] using System.Windows.Forms;
[0092] using tengyuesoft.DataImp;
[0093] using tengyuesoft.Model;
[0094] using XPTable.Models;
[0095] using System.Linq;
[0096] namespace LCMESMg.0rderMg
[0097] This part of the code is to allow you to directly use the types in the specified namespace in the code file without having to provide the complete naming path each time.
[0098] Public Partial class FrmIE0rderDb:Frm_Base
[0099] {
[0100] IList <colclass>collistMain=new List <colclass>();
[0101] IList <colclass>collist=new List <colclass>();
[0102] public int fmaxorder = 0;
[0103] / / Compare the data and save it for analysis
[0104] IList<PP_OrderDuibiInfo> f_listDb1;
[0105] IList<PP_OrderDuibiInfo> f_listDb2;
[0106] public FrmIE0rderDb(string producenol,string produceno2)
[0107] {
[0108] InitializeConponent();
[0109] 1b1produceno1.Text=produceno1;
[0110] 1b1produceno2.Text=produceno2;
[0111] }
[0112] private void Frm_IE0rderDb_Load(object sender,EventArgs e)
[0113] {
[0114] Page initialization
[0115] }
[0116] private void InitLeftGrid()
[0117] {
[0118] Initialize the grid
[0119] }
[0120] private void GetData()
[0121] {
[0122] / / Order comparison processing
[0123] PP_IESpecialRemarksInfoImp=new PP_IESpecialRemarksInfoImp();
[0124] f_listDb1=imp.Get0rderDuibiList(1b1producenol.Text,1b1produceno2.Text);
[0125] LoadLeftData(f_listDb1);
[0126] f_listDb2=imp.Get0rderDuibiList(1b1produceno2.Text,1b1produceno1.Text);
[0127] LoadLeftData(f_listDb2);
[0128] }
[0129] This code defines a partial class called FrmIEOrderDb, which inherits from a base class called Frm_Base. It primarily handles the business logic for order comparison, including initializing the interface, retrieving data, and displaying it.
[0130] public void LoadLeftData(IList<PP_0orderDuibiInfo> list)
[0131] {
[0132] Loading data into the grid
[0133] }
[0134] public void InitGrid()
[0135] {
[0136] / / Initialize the grid
[0137] }
[0138] public void LoadData(IList<PP_0orderDuibiInfo> list)
[0139] {
[0140] #region loads data into the grid
[0141] this.table_data.BeginUpdate();
[0142] this.table_data.TableModel.Rows.Clear();
[0143] int i = 1;
[0144] / / Define the style of special cells
[0145] CellStyle cellStyle = new CellStyle();
[0146] cellStyle.ForeColor = Color.Red;
[0147] cellStyle.Font = new Font("SimSun", 9, FontStyle.Bold);
[0148] / / Loop through the dataset to load data
[0149] foreach (PP_0rderDuibiInfo info in list)
[0150] {
[0151] #region Dynamically load data for each column
[0152] Type type = info.GetType();
[0153] Row row = new Row();
[0154] foreach (ColClass colinfo in collist)
[0155] {
[0156] Cell cellnew = new Cell();
[0157] if (colinfo.fcolstyle == "btn")
[0158] {
[0159] / / For buttons, directly get the ffield variable
[0160] cellnew.Text = colinfo.ffield;
[0161] cellnew.ForeColor=ColorTranslator.FromHtml("#0052b3");
[0162] }
[0163] else
[0164] {
[0165] if(colinfo.ffield=="xuhao")
[0166] {
[0167] / / The serial number is generated by the front desk
[0168] cellnew.Text=i.ToString();
[0169] cellnew.ForeColor=ColorTranslator.FromHtml("#0052b3");
[0170] }
[0171] else
[0172] {
[0173] / / Database fields
[0174] string fvalue=type.GetProperty(colinfo.ffield).GetValue(info,null).ToString();
[0175] cellnew.Text = fvalue;
[0176] }
[0177] }
[0178] row.Cells.Add(cellnew);
[0179] }
[0180] if(info.fflag=="0")
[0181] {
[0182] row.ForeColor = Color.Red;
[0183] }
[0184] if(info.isReplace=="yes")
[0185] {
[0186] row.BackColor=Color.PaleGreen;
[0187] }
[0188] this.table_data.TableModel.Rows.Add(row);
[0189] i=i+1
[0190] #endregion
[0191] / / / <summary>
[0192] / / / Save the order (replacement order or original order)
[0193] / / / < / summary>
[0194] / / / <param name="sender">
[0195] / / / <param name="e">
[0196] private void button_save_Click(object sender,EventArgse)…
[0197] This code is used to load order comparison information into the table and initialize the table.
[0198] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0199] The embodiment of the present application also provides an operation information migration device, such as Figure 5 Shown, including:
[0200] An acquisition module 510 is configured to acquire a reconfiguration order and an original order for a target product, wherein the reconfiguration order includes at least one reconfiguration material number and reconfiguration configuration information corresponding to each reconfiguration material number;
[0201] a determination module 520 for determining a target reconfiguration type of the target reconfiguration material number based on the target reconfiguration material number, the target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order, wherein the target reconfiguration material number is any one of the at least one reconfiguration material number;
[0202] An extraction module 530 is configured to extract, from the original order, operation information that matches the target reconfiguration material number based on the target reconfiguration material number when the target reconfiguration type is determined to be a preset reconfiguration type;
[0203] The migration module 540 is used to migrate the operation information to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order, so that the target object can perform process operations on the material corresponding to the target reconfiguration material number based on the operation information in the process flow of the target product.
[0204] In some optional implementations, the original order includes at least one original material number and original configuration information corresponding to each original material number; the determination module 520 is specifically configured to:
[0205] According to the target re-allocation material number, the target re-allocation configuration information corresponding to the target re-allocation material number is determined in the re-allocation order;
[0206] When it is determined that the original order has a first original material number that is consistent with the target reconfigured material number, first original configuration information corresponding to the first original material number is determined in the original order based on the first original material number;
[0207] Extracting the original quantity from the first original configuration information and extracting the reconfigured quantity from the target reconfigured configuration information;
[0208] When it is determined that the original quantity and the re-allocated quantity are consistent, the first type is determined as the re-allocation type of the target re-allocated material number, wherein the first type is used to indicate that the material corresponding to the target re-allocated material number is a material whose specifications and quantity have not changed.
[0209] In some optional implementations, the determination module 520 is specifically configured to:
[0210] When it is determined that the original quantity and the re-allocated quantity are inconsistent, the second type is determined as the re-allocation type of the target re-allocated material number, wherein the second type is used to indicate that the material corresponding to the target re-allocated material number is a material with a changed quantity.
[0211] In some optional implementations, the determination module 520 is specifically configured to:
[0212] When it is determined that the original order does not have the first original material number, extracting the component type from the target reconfiguration configuration information;
[0213] When it is determined that the original order contains second original configuration information including a component type, the third type is determined as the reconfiguration type of the target reconfiguration material number, wherein the third type is used to indicate that the material corresponding to the target reconfiguration material number is a substitute material for the material corresponding to the second original material number, and the second original material number is the original material number corresponding to the second original configuration information in the original order.
[0214] In some optional implementations, the determination module 520 is specifically configured to:
[0215] When it is determined that the second original configuration information does not exist in the original order, the fourth type is determined as the reconfiguration type of the target reconfiguration material number, wherein the fourth type is used to indicate that the material corresponding to the target reconfiguration material number is a difference material.
[0216] In some optional embodiments, the apparatus further includes a generating module 550 and an adding module 560;
[0217] The acquisition module 510 is further configured to acquire an initial three-dimensional model corresponding to the reconfiguration order; and based on each reconfiguration material number, acquire a three-dimensional structure diagram corresponding to each reconfiguration material number;
[0218] A generating module 550 is configured to generate an installation position diagram corresponding to each reconfigured material number based on the reconfigured configuration information, the three-dimensional structure diagram, and the initial three-dimensional model corresponding to each reconfigured material number;
[0219] The adding module 560 is configured to add the installation position diagram corresponding to each reconfigured material number to the reconfiguration configuration information corresponding to the reconfigured material number.
[0220] In some optional embodiments, the device further includes a marking module 570 for:
[0221] According to the reconfiguration type of each reconfigured material number, a marking operation corresponding to the reconfiguration type is performed on each reconfigured material number and the reconfiguration configuration information corresponding to each reconfigured material number.
[0222] For the description of the features in the embodiment corresponding to the operation information migration device, please refer to the relevant description of the embodiment corresponding to the operation information migration method, and no further details will be given here.
[0223] The embodiment of the present application also provides an electronic device, such as Figure 6 As shown, it includes a memory 10 and a processor 20. The memory 10 stores a computer program, and the processor 20 is configured to run the computer program to execute the steps in any of the above-mentioned operation information migration method embodiments.
[0224] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned operation information migration method embodiments when running.
[0225] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0226] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned operation information migration method embodiments are implemented.
[0227] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned operation information migration method embodiments.
[0228] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0229] The above is a detailed introduction to the operation information migration method, device, electronic device, storage medium, and program product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.< / colclass> < / colclass> < / colclass> < / colclass>
Claims
1. A method for migrating operation information, characterized in that: include: Obtaining a reconfiguration order and an original order for a target product, wherein the reconfiguration order includes at least one reconfiguration material number and reconfiguration configuration information corresponding to each reconfiguration material number; determining a target reconfiguration type of the target reconfiguration material number according to the target reconfiguration material number, the target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order, wherein the target reconfiguration material number is any one of the at least one reconfiguration material numbers; When it is determined that the target reconfiguration type is a preset reconfiguration type, extracting operation information matching the target reconfiguration material number from the original order according to the target reconfiguration material number; The operation information is migrated to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order, so that the target object can perform process operations on the material corresponding to the target reconfiguration material number based on the operation information in the process flow of the target product.
2. The operation information migration method according to claim 1, characterized in that: The original order includes at least one original material number and original configuration information corresponding to each original material number; determining the target reconfiguration type of the target reconfiguration material number based on the target reconfiguration material number, the target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order includes: According to the target re-allocation material number, determining the target re-allocation configuration information corresponding to the target re-allocation material number in the re-allocation order; When it is determined that the original order contains a first original material number that is consistent with the target reconfigured material number, first original configuration information corresponding to the first original material number is determined in the original order based on the first original material number; extracting an original quantity from the first original configuration information, and extracting a reconfigured quantity from the target reconfigured configuration information; When it is determined that the original quantity and the re-allocated quantity are consistent, the first type is determined as the re-allocation type of the target re-allocated material number, wherein the first type is used to indicate that the material corresponding to the target re-allocated material number is a material whose specifications and quantity have not changed.
3. The operation information migration method according to claim 2, characterized in that: The method further comprises: When it is determined that the original quantity and the re-allocated quantity are inconsistent, a second type is determined as the re-allocation type of the target re-allocated material number, wherein the second type is used to indicate that the material corresponding to the target re-allocated material number is a material with a changed quantity.
4. The operation information migration method according to claim 2 or 3, characterized in that: The method further comprises: When it is determined that the original order does not have the first original material number, extracting a component type from the target reconfiguration configuration information; When it is determined that the original order contains second original configuration information including the component type, the third type is determined as the reconfiguration type of the target reconfiguration material number, wherein the third type is used to indicate that the material corresponding to the target reconfiguration material number is a substitute material for the material corresponding to the second original material number, and the second original material number is the original material number corresponding to the second original configuration information in the original order.
5. The operation information migration method according to claim 4, characterized in that: The method further comprises: When it is determined that the second original configuration information does not exist in the original order, the fourth type is determined as the reconfiguration type of the target reconfiguration material number, wherein the fourth type is used to indicate that the material corresponding to the target reconfiguration material number is a difference material.
6. The operation information migration method according to any one of claims 1 to 3 or 5, characterized in that: The method further comprises: Obtaining an initial three-dimensional model corresponding to the reconfiguration order; According to each of the reconfigured material numbers, obtaining a three-dimensional structure diagram corresponding to each of the reconfigured material numbers; Generate an installation position diagram corresponding to each reconfigured material number based on the reconfigured configuration information, the three-dimensional structure diagram, and the initial three-dimensional model; The installation position diagram corresponding to each of the reconfigured material numbers is added to the reconfiguration configuration information corresponding to the reconfigured material number.
7. The operation information migration method according to any one of claims 1 to 3 or 5, characterized in that: The method further comprises: According to the reconfiguration type of each reconfigured material number, a marking operation corresponding to the reconfiguration type is performed on each reconfigured material number and the reconfiguration configuration information corresponding to each reconfigured material number.
8. An operation information migration device, characterized in that: include: an acquisition module, configured to acquire a reconfiguration order and an original order of a target product, wherein the reconfiguration order includes at least one reconfiguration material number and reconfiguration configuration information corresponding to each reconfiguration material number; a determination module, configured to determine a target reconfiguration type of the target reconfiguration material number based on the target reconfiguration material number, the target reconfiguration configuration information corresponding to the target reconfiguration material number, and the original order, wherein the target reconfiguration material number is any one of the at least one reconfiguration material numbers; An extraction module, configured to extract, from the original order, operation information matching the target reconfiguration material number according to the target reconfiguration material number when determining that the target reconfiguration type is a preset reconfiguration type; A migration module is used to migrate the operation information to the target reconfiguration configuration information corresponding to the target reconfiguration material number included in the reconfiguration order, so that the target object can perform process operations on the material corresponding to the target reconfiguration material number based on the operation information in the process flow of the target product.
9. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the operation information migration method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the operation information migration method according to any one of claims 1 to 7 are implemented.