[go: up one dir, main page]

CN101894133B - Method and device for modifying form data in batches - Google Patents

Method and device for modifying form data in batches Download PDF

Info

Publication number
CN101894133B
CN101894133B CN2010101998322A CN201010199832A CN101894133B CN 101894133 B CN101894133 B CN 101894133B CN 2010101998322 A CN2010101998322 A CN 2010101998322A CN 201010199832 A CN201010199832 A CN 201010199832A CN 101894133 B CN101894133 B CN 101894133B
Authority
CN
China
Prior art keywords
modification
condition
data
elements
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2010101998322A
Other languages
Chinese (zh)
Other versions
CN101894133A (en
Inventor
李正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Up Information Technology Co ltd
Original Assignee
Yonyou Software Co Ltd
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 Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN2010101998322A priority Critical patent/CN101894133B/en
Publication of CN101894133A publication Critical patent/CN101894133A/en
Application granted granted Critical
Publication of CN101894133B publication Critical patent/CN101894133B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

本发明提供了一种用于批量修改表单数据的方法,包括:步骤102,预置一个或多个目标修改要素以及预置一个或多个条件要素;步骤104,从一个或多个目标修改要素中选择一个目标修改要素,以及从一个或多个条件要素中为一个目标修改要素选择至少一个条件要素,并根据至少一个条件要素确定修改条件;步骤106,根据一个目标修改要素和修改条件,在表单中确定修改位置,以及对修改位置中的数据进行修改。本发明还提供了一种用于批量修改表单数据的装置。根据本发明的技术方案,可以实现一种批量修改表单数据的方法和装置,能表单数据的修改更加快捷,且准确度更高。

Figure 201010199832

The present invention provides a method for modifying form data in batches, including: step 102, preset one or more target modification elements and preset one or more conditional elements; step 104, modify the elements from one or more targets Select a target modification element in, and select at least one condition element for a target modification element from one or more condition elements, and determine the modification condition according to at least one condition element; Step 106, according to a target modification element and modification condition, in Determine the modification position in the form, and modify the data in the modification position. The invention also provides a device for modifying form data in batches. According to the technical solution of the present invention, a method and device for modifying form data in batches can be realized, and the form data can be modified more quickly and with higher accuracy.

Figure 201010199832

Description

用于批量修改表单数据的方法和装置Method and device for batch modifying form data

技术领域 Technical field

本发明涉及数据处理技术,具体而言,涉及一种用于批量修改表单数据的方法和装置。The present invention relates to data processing technology, and in particular to a method and device for batch modifying form data.

背景技术 Background technology

在具有行列结构的数据处理中,往往有很多重复的操作,例如,针对表单数据,有如下的业务需求:In the data processing with row and column structure, there are often many repeated operations. For example, for form data, there are the following business requirements:

有一张销售发货单,明细数据可能有上百行,描述信息为产品代码、产品规格及发货日期等。具体发货的时候,明细数据可能根据当前的存货信息来做调整,比如原计划产品代码为A的产品的发货日期为2010-04-23日,现在根据生产情况需要调整发货日期到2010-04-28日,这张表单上产品代码为A的记录可能有40条。There is a sales delivery order, which may have hundreds of lines of detailed data, describing information such as product code, product specifications and delivery date, etc. When the goods are delivered, the detailed data may be adjusted according to the current inventory information. For example, the original delivery date of the product with product code A is 2010-04-23, but now the delivery date needs to be adjusted to 2010-04-28 according to production conditions. There may be 40 records with product code A on this form.

针对如上业务,目前的处理方法是:找到产品代码为A,并且发货日期为2010-04-23的记录,一条一条的手工修改,或者是先将产品记录按照产品代码排序,把产品代码为A的记录集中展示,然后手工修改。For the above business, the current processing method is: find the records with product code A and delivery date 2010-04-23, and modify them manually one by one, or sort the product records by product code, display the records with product code A together, and then modify them manually.

从上面可以看到,针对这种后期带策略的修改任务,常用的操作是手工操作,这种方式存在以下问题:As can be seen from the above, manual operation is commonly used for such post-policy modification tasks. This method has the following problems:

其一:一条一条的方式查找容易丢失需要修改的记录,增加出错的概率;First, searching for records that need to be modified one by one is easy to lose, which increases the probability of error;

其二:操作繁琐,容易导致数据出错,且工作效率低下,易用性和可操作性比较差。Second: The operation is cumbersome, which can easily lead to data errors, low work efficiency, and poor usability and operability.

因此,需要一种使表单数据根据策略进行批量修改的方式,以解决目前通过手工操作逐行修改的方式中存在的操作繁琐、操作工作量大、效率较低、容易出错的问题。Therefore, a method is needed to modify form data in batches according to a policy, so as to solve the problems of complicated operation, large operation workload, low efficiency and easy error in the current method of modifying line by line manually.

发明内容 Contents of the invention

本发明所要解决的技术问题在于,提供一种使表单数据根据策略进行批量修改的方式,以解决目前通过手工操作逐行修改的方式中存在的操作繁琐、操作工作量大、效率较低、容易出错的问题。The technical problem to be solved by the present invention is to provide a method for batch modifying form data according to a strategy, so as to solve the problems of cumbersome operation, large operation workload, low efficiency and easy error in the current method of modifying line by line by manual operation.

有鉴于此,本发明公开了一种用于批量修改表单数据的方法,包括:步骤102,预置一个或多个目标修改要素以及预置一个或多个条件要素;步骤104,从所述一个或多个目标修改要素中选择一个目标修改要素,以及从所述一个或多个条件要素中为所述一个目标修改要素选择至少一个条件要素,并根据所述至少一个条件要素确定修改条件;步骤106,根据所述一个目标修改要素和所述修改条件,在所述表单中确定修改位置,以及对所述修改位置中的数据进行修改。In view of this, the present invention discloses a method for batch modifying form data, including: step 102, presetting one or more target modification elements and presetting one or more conditional elements; step 104, selecting a target modification element from the one or more target modification elements, and selecting at least one conditional element for the one target modification element from the one or more conditional elements, and determining a modification condition based on the at least one conditional element; step 106, determining a modification position in the form based on the one target modification element and the modification condition, and modifying the data in the modification position.

在上述技术方案中,优选地,还包括:步骤108,在所述表单中存在具有与所述修改位置的数据关联的相关数据时,则根据所述数据对所述相关数据进行更新。In the above technical solution, preferably, it further includes: step 108, when there is relevant data associated with the data at the modification position in the form, the relevant data is updated according to the data.

在上述技术方案中,优选地,所述步骤108还包括:在所述数据与所述相关数据之间存在公式计算关系时,通知所述表单的表单控件,以公式计算方式对所述相关数据进行更新。In the above technical solution, preferably, the step 108 further includes: when a formula calculation relationship exists between the data and the related data, notifying the form controls of the form to update the related data in a formula calculation manner.

在上述技术方案中,优选地,所述步骤102还包括:设定所述表单的来源数据格式,其中,所述来源数据格式包括AdoDB.Recordset记录集或XML文档。In the above technical solution, preferably, the step 102 further comprises: setting the source data format of the form, wherein the source data format comprises an AdoDB.Recordset record set or an XML document.

在上述技术方案中,优选地,当所述来源数据格式为AdoDB.Recordset记录集时,所述在所述表单中确定修改位置包括:把所述修改条件转化为符合所述AdoDB.Recordset记录集规范的条件过滤字符串,调用所述AdoDB.Recordset记录集的过滤器属性进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, preferably, when the source data format is an AdoDB.Recordset record set, determining the modification position in the form includes: converting the modification condition into a conditional filter string that conforms to the AdoDB.Recordset record set specification, calling the filter property of the AdoDB.Recordset record set to perform a filtering operation to obtain row records that conform to the modification condition, and then determining the modification position based on the one target modification element.

在上述技术方案中,优选地,当所述来源数据格式为XML文档时,所述在所述表单中确定修改位置包括:把所述修改条件转化为符合所述XML XPath规范的条件过滤字符串,调用XML的过滤方法进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, preferably, when the source data format is an XML document, determining the modification position in the form includes: converting the modification condition into a conditional filter string that complies with the XML XPath specification, calling the XML filtering method to perform a filtering operation to obtain row records that meet the modification condition, and then determining the modification position based on the one target modification element.

在上述技术方案中,优选地,每个所述一个或多个目标修改要素包括所述表单中的可修改的列的栏目信息,每个所述一个或多个条件要素包括所述表单中的可作为条件的列的栏目信息,其中,栏目信息包括关键字、显示名称和数据类型。In the above technical solution, preferably, each of the one or more target modification elements includes column information of a modifiable column in the form, and each of the one or more conditional elements includes column information of a column in the form that can be used as a condition, wherein the column information includes keywords, display names and data types.

本发明还公开了一种用于批量修改表单数据的装置,包括:配置单元,用于预置一个或多个目标修改要素以及预置一个或多个条件要素;批量修改设定单元,用于从所述一个或多个目标修改要素中选择一个目标修改要素,并从所述一个或多个条件要素中为所述一个目标修改要素选择至少一个条件要素,根据所述至少一个条件要素确定修改条件;批量修改单元,用于根据所述批量修改设定单元选择的所述一个目标修改要素和所述修改条件,在所述表单中确定修改位置,以及对所述修改位置中的数据进行修改。The present invention also discloses a device for batch modifying form data, comprising: a configuration unit, used to preset one or more target modification elements and one or more condition elements; a batch modification setting unit, used to select a target modification element from the one or more target modification elements, and select at least one condition element for the one target modification element from the one or more condition elements, and determine a modification condition according to the at least one condition element; a batch modification unit, used to determine a modification position in the form according to the one target modification element and the modification condition selected by the batch modification setting unit, and modify the data in the modification position.

在上述技术方案中,优选地,还包括:修订单元,用于在所述表单上存在具有与所述修改位置的数据关联的相关数据时,根据所述数据对所述相关数据进行更新。In the above technical solution, preferably, it also includes: a revision unit, which is used to update the relevant data according to the data when there is relevant data associated with the data at the modification position on the form.

在上述技术方案中,优选地,所述修订单元还用于在所述数据与所述相关数据之间存在公式计算关系时,通知所述表单的表单控件,以公式计算方式对所述相关数据进行更新。In the above technical solution, preferably, the revision unit is also used to notify the form controls of the form to update the relevant data by formula calculation when a formula calculation relationship exists between the data and the relevant data.

在上述技术方案中,优选地,所述配置单元还用于设定所述表单的来源数据格式,其中,所述来源数据格式包括AdoDB.Recordset记录集或XML文档。In the above technical solution, preferably, the configuration unit is also used to set the source data format of the form, wherein the source data format includes an AdoDB.Recordset record set or an XML document.

在上述技术方案中,优选地,所述来源数据格式为AdoDB.Recordset记录集时,所述批量修改单元在所述表单中确定所述修改位置包括:所述批量修改单元把所述修改条件转化为符合所述AdoDB.Recordset记录集规范的条件过滤字符串,调用所述AdoDB.Recordset记录集的过滤器属性进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, preferably, when the source data format is an AdoDB.Recordset record set, the batch modification unit determines the modification position in the form, including: the batch modification unit converts the modification condition into a conditional filter string that conforms to the AdoDB.Recordset record set specification, calls the filter property of the AdoDB.Recordset record set to perform a filtering operation to obtain row records that conform to the modification condition, and then determines the modification position based on the one target modification element.

在上述技术方案中,优选地,当所述来源数据格式为XML文档时,所述批量修改单元在所述表单中确定所述修改位置包括:所述批量修改单元把所述修改条件转化为符合所述XML XPath规范的条件过滤字符串,调用XML的过滤方法进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, preferably, when the source data format is an XML document, the batch modification unit determines the modification position in the form, including: the batch modification unit converts the modification condition into a conditional filter string that complies with the XML XPath specification, calls the XML filtering method to perform a filtering operation to obtain row records that meet the modification condition, and then determines the modification position based on the one target modification element.

在上述技术方案中,优选地,每个所述一个或多个目标修改要素包括所述表单中的可修改的列的栏目信息,每个所述一个或多个条件要素包括所述表单中的作为条件的列的栏目信息,其中,栏目信息包括关键字、显示名称和数据类型。In the above technical solution, preferably, each of the one or more target modification elements includes column information of a modifiable column in the form, and each of the one or more conditional elements includes column information of a column in the form that serves as a condition, wherein the column information includes keywords, display names and data types.

通过上述技术方案,可以实现一种批量修改表单数据的方法和装置,通过预置修改的条件要素,然后根据用户选定的修改要素来找到符合条件的行记录,以及预置目标修改要素来选择修改的列,以确定修改位置进行自动修改。Through the above technical scheme, a method and device for batch modification of form data can be realized, by presetting the modification condition elements, then finding the row records that meet the conditions according to the modification elements selected by the user, and presetting the target modification elements to select the modified columns, so as to determine the modification position for automatic modification.

附图说明 Description of the attached figure

图1是根据本发明的用于批量修改表单数据的方法的流程图;FIG1 is a flow chart of a method for batch modifying form data according to the present invention;

图2是根据本发明的用于批量修改表单数据的装置的框图;2 is a block diagram of an apparatus for batch modifying form data according to the present invention;

图3至图5是根据本发明的一个实施例的用于批量修改表单数据的装置的截屏示意图。3 to 5 are schematic screenshot diagrams of an apparatus for batch modifying form data according to an embodiment of the present invention.

具体实施方式 Specific implementation method

下面根据附图来详细说明根据本发明的实施例。The embodiments according to the present invention are described in detail below with reference to the accompanying drawings.

图1是根据本发明的用于批量修改表单数据的方法的流程图。FIG. 1 is a flow chart of a method for batch modifying form data according to the present invention.

如图1所示,本发明提供了一种用于批量修改表单数据的方法,包括:步骤102,预置一个或多个目标修改要素以及预置一个或多个条件要素;步骤104,从所述一个或多个目标修改要素中选择一个目标修改要素,以及从所述一个或多个条件要素中为所述一个目标修改要素选择至少一个条件要素,并根据所述至少一个条件要素确定修改条件;步骤106,根据所述一个目标修改要素和所述修改条件,在所述表单中确定修改位置,以及对所述修改位置中的数据进行修改。As shown in Figure 1, the present invention provides a method for batch modifying form data, including: step 102, presetting one or more target modification elements and presetting one or more conditional elements; step 104, selecting a target modification element from the one or more target modification elements, and selecting at least one conditional element for the one target modification element from the one or more conditional elements, and determining a modification condition based on the at least one conditional element; step 106, determining a modification position in the form based on the one target modification element and the modification condition, and modifying the data in the modification position.

在上述技术方案中,还包括:步骤108,在所述表单中存在具有与所述修改位置的数据关联的相关数据时,则根据所述数据对所述相关数据进行更新。The above technical solution further includes: step 108, when there is relevant data associated with the data at the modification position in the form, the relevant data is updated according to the data.

在上述技术方案中,所述步骤108还包括:在所述数据与所述相关数据之间存在公式计算关系时,通知所述表单的表单控件,以公式计算方式对所述相关数据进行更新。In the above technical solution, the step 108 further includes: when a formula calculation relationship exists between the data and the related data, notifying the form controls of the form to update the related data in a formula calculation manner.

在上述技术方案中,所述步骤102还包括:设定所述表单的来源数据格式,其中,所述来源数据格式包括AdoDB.Recordset记录集或XML文档。In the above technical solution, the step 102 further includes: setting the source data format of the form, wherein the source data format includes an AdoDB.Recordset record set or an XML document.

在上述技术方案中,当所述来源数据格式为AdoDB.Recordset记录集时,所述在所述表单中确定修改位置包括:把所述修改条件转化为符合所述AdoDB.Recordset记录集规范的条件过滤字符串,调用所述AdoDB.Recordset记录集的过滤器属性进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, when the source data format is an AdoDB.Recordset record set, determining the modification position in the form includes: converting the modification condition into a conditional filter string that conforms to the AdoDB.Recordset record set specification, calling the filter property of the AdoDB.Recordset record set to perform a filtering operation to obtain row records that conform to the modification condition, and then determining the modification position based on the one target modification element.

在上述技术方案中,当所述来源数据格式为XML文档时,所述在所述表单中确定修改位置包括:把所述修改条件转化为符合所述XML XPath规范的条件过滤字符串,调用XML的过滤方法进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, when the source data format is an XML document, determining the modification position in the form includes: converting the modification condition into a conditional filter string that complies with the XML XPath specification, calling the XML filtering method to perform a filtering operation to obtain row records that meet the modification condition, and then determining the modification position based on the target modification element.

在上述技术方案中,每个所述一个或多个目标修改要素包括所述表单中的可修改的列的栏目信息,每个所述一个或多个条件要素包括所述表单中的可作为条件的列的栏目信息,其中,栏目信息包括关键字、显示名称和数据类型。In the above technical solution, each of the one or more target modification elements includes column information of the modifiable columns in the form, and each of the one or more conditional elements includes column information of the columns in the form that can be used as conditions, wherein the column information includes keywords, display names and data types.

图2是根据本发明的用于批量修改表单数据的装置的框图。FIG. 2 is a block diagram of an apparatus for batch modifying form data according to the present invention.

如图2所示,本发明还提供了一种用于批量修改表单数据的装置200,包括:配置单元202,用于预置一个或多个目标修改要素以及预置一个或多个条件要素;批量修改设定单元204,用于从所述一个或多个目标修改要素中选择一个目标修改要素,并从所述一个或多个条件要素中为所述一个目标修改要素选择至少一个条件要素,根据所述至少一个条件要素确定修改条件;批量修改单元206,用于根据所述批量修改设定单元204选择的所述一个目标修改要素和所述修改条件,在所述表单中确定修改位置,以及对所述修改位置中的数据进行修改。As shown in Figure 2, the present invention also provides an apparatus 200 for batch modifying form data, comprising: a configuration unit 202, for presetting one or more target modification elements and presetting one or more condition elements; a batch modification setting unit 204, for selecting a target modification element from the one or more target modification elements, and selecting at least one condition element for the one target modification element from the one or more condition elements, and determining a modification condition according to the at least one condition element; a batch modification unit 206, for determining a modification position in the form according to the one target modification element and the modification condition selected by the batch modification setting unit 204, and modifying the data in the modification position.

在上述技术方案中,还包括:修订单元,用于在所述表单上存在具有与所述修改位置的数据关联的相关数据时,根据所述数据对所述相关数据进行更新。The above technical solution also includes: a revision unit, which is used to update the relevant data according to the data when there is relevant data associated with the data at the modification position on the form.

在上述技术方案中,所述修订单元还用于在所述数据与所述相关数据之间存在公式计算关系时,通知所述表单的表单控件,以公式计算方式对所述相关数据进行更新。In the above technical solution, the revision unit is further used to notify the form controls of the form to update the related data by formula calculation when a formula calculation relationship exists between the data and the related data.

在上述技术方案中,所述配置单元202还用于设定所述表单的来源数据格式,其中,所述来源数据格式包括AdoDB.Recordset记录集或XML文档。In the above technical solution, the configuration unit 202 is further used to set the source data format of the form, wherein the source data format includes an AdoDB.Recordset record set or an XML document.

在上述技术方案中,所述来源数据格式为AdoDB.Recordset记录集时,所述批量修改单元206在所述表单中确定所述修改位置包括:所述批量修改单元206把所述修改条件转化为符合所述AdoDB.Recordset记录集规范的条件过滤字符串,调用所述AdoDB.Recordset记录集的过滤器属性进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, when the source data format is an AdoDB.Recordset record set, the batch modification unit 206 determines the modification position in the form, including: the batch modification unit 206 converts the modification condition into a conditional filter string that conforms to the AdoDB.Recordset record set specification, calls the filter property of the AdoDB.Recordset record set to perform a filtering operation to obtain row records that conform to the modification condition, and then determines the modification position based on the one target modification element.

在上述技术方案中,当所述来源数据格式为XML文档时,所述批量修改单元206在所述表单中确定所述修改位置包括:所述批量修改单元206把所述修改条件转化为符合所述XML XPath规范的条件过滤字符串,调用XML的过滤方法进行过滤操作,以得到符合所述修改条件的行记录,再根据所述一个目标修改要素,确定所述修改位置。In the above technical solution, when the source data format is an XML document, the batch modification unit 206 determines the modification position in the form, including: the batch modification unit 206 converts the modification condition into a conditional filter string that complies with the XML XPath specification, calls the XML filtering method to perform a filtering operation to obtain row records that comply with the modification condition, and then determines the modification position based on the one target modification element.

在上述技术方案中,每个所述一个或多个目标修改要素包括所述表单中的可修改的列的栏目信息,每个所述一个或多个条件要素包括所述表单中的作为条件的列的栏目信息,其中,栏目信息包括关键字、显示名称和数据类型。In the above technical solution, each of the one or more target modification elements includes column information of the modifiable columns in the form, and each of the one or more conditional elements includes column information of the columns in the form that serve as conditions, wherein the column information includes keywords, display names and data types.

图3至图5是根据本发明的一个实施例的用于批量修改表单数据的装置的截屏示意图。3 to 5 are schematic screenshot diagrams of an apparatus for batch modifying form data according to an embodiment of the present invention.

如图3所示,是本发明实施案例所述的原始销售订单。在本单据的处理过程中,因业务要求需要对存货编码为CPU的产品的预发货日期统一修改为2009-10-29日。As shown in Figure 3, it is the original sales order described in the implementation case of the present invention. During the processing of this document, due to business requirements, the estimated delivery date of the products with inventory code of CPU is uniformly modified to 2009-10-29.

首先,使用配置单元202预置目标修改要素,所述目标修改要素包括可以修改的列的栏目信息。本示例中,可修改的列包括数量、单价、金额等,可修改的列的范围由本装置的使用方根据当前权限或者其他约束条件确定。列的栏目信息包括列的关键字、列的显示名称、列的数据类型,比如数量的栏目信息的示例格式:<quantity显示名称=′数量′数据类型=′小数′小数位=′2′自定义格式=″/>″,预发货日期的栏目信息的示例格式:<predeliverydate显示名称=′预发货日期′数据类型=′日期′小数位=″自定义格式=′YYYY年MM月DD日′″。First, use the configuration unit 202 to preset the target modification element, and the target modification element includes the column information of the modifiable column. In this example, the modifiable columns include quantity, unit price, amount, etc., and the range of the modifiable columns is determined by the user of this device according to the current authority or other constraints. The column information of the column includes the keyword of the column, the display name of the column, and the data type of the column. For example, the example format of the column information of quantity is: <quantity display name = 'quantity' data type = 'decimal' decimal places = '2' custom format = "/>", and the example format of the column information of pre-delivery date is: <predeliverydate display name = 'pre-delivery date' data type = 'date' decimal places = "custom format = 'YYYY year MM month DD day'".

然后,再使用配置单元202预置条件要素,所述条件要素包括可以作为策略条件的列的栏目信息;本示例中,可作为策略条件的列包括存货编码、存货名称、预发货日期等,其中存货编码的栏目信息的示例格式:<cinvcode显示名称=′存货编码′数据类型=′字符串′小数位=″自定义格式=′′/>″,预发货日期的栏目信息的示例格式:<predeliverydate显示名称=′预发货日期′数据类型=′日期′小数位=″自定义格式=′YYYY年MM月DD日′/>″。Then, the configuration unit 202 is used to preset condition elements, and the condition elements include column information of columns that can be used as policy conditions; in this example, the columns that can be used as policy conditions include inventory code, inventory name, pre-delivery date, etc., wherein the example format of the column information of the inventory code is: <cinvcode display name = 'Inventory code' data type = 'String' decimal places = "Custom format = ''/>", and the example format of the column information of the pre-delivery date is: <predeliverydate display name = 'Pre-delivery date' data type = 'Date' decimal places = "Custom format = 'YYYY year MM month DD day'/>".

如图3所示,用户接下来可以使用批量修改设定单元204选择目标列,设置目标列的值,可以增加修改的条件,条件可以是多个单一条件的组合。本示例中选择目标列为“预发货日期”,条件为存货编码等于“CPU”。As shown in Figure 3, the user can then use the batch modification setting unit 204 to select a target column, set the value of the target column, and add a modification condition, which can be a combination of multiple single conditions. In this example, the target column selected is "Estimated Shipping Date" and the condition is that the stock code is equal to "CPU".

根据选择的条件,批量修改单元206找出所有符合条件的行记录,对目标列的值进行更新。批量修改单元206根据来源数据的类别,本示例中为XML,把上述选择的条件转为符合XML XPath(XPath用于在XML文档中查找信息,此为本领域技术人员的公知技术,在此不再赘述)的条件过滤字符串,本例中为(string-compare(cinvcode,′CPU′)=0),并在XML DOM对象使用调用selectNodes方法,传入参数(string-compare(cinvcode,′CPU′)=0),找到所有符合条件的记录,本例为两行(图3中的第二行和第七行)。批量修改单元206更新对应的数据,完成修改。According to the selected conditions, the batch modification unit 206 finds all the row records that meet the conditions and updates the value of the target column. The batch modification unit 206 converts the above selected conditions into conditional filtering strings that meet the XML XPath (XPath is used to find information in XML documents. This is a well-known technology for those skilled in the art and will not be repeated here) according to the category of the source data. In this example, it is XML. In this example, it is (string-compare(cinvcode, 'CPU') = 0), and calls the selectNodes method in the XML DOM object, passing in the parameter (string-compare(cinvcode, 'CPU') = 0) to find all the records that meet the conditions. In this example, there are two rows (the second and seventh rows in Figure 3). The batch modification unit 206 updates the corresponding data and completes the modification.

如图4所示,是修改完毕的结果示意图。本例中修改列为预发货日期,一般情况没有公式计算,如果修改列为数量,作为优选步骤,还要触发值更新事件,修订单元可通知表单控件进行公式计算,比如金额=数量×单价,数量修改,会同步修改金额。As shown in Figure 4, it is a schematic diagram of the modified result. In this example, the modification column is the estimated delivery date. Generally, there is no formula calculation. If the modification column is the quantity, as a preferred step, the value update event is also triggered. The revision unit can notify the form control to perform formula calculations. For example, amount = quantity × unit price. If the quantity is modified, the amount will be modified synchronously.

综上所述,根据本发明的技术方案实现的用于批量修改表单数据的方法和装置,极大的增强了操作人员的工作效率,简单、易懂,且可以设定批量修改的目标列,目标值,以及修改策略条件,条件支持多个条件的组合,使用范围较广。In summary, the method and device for batch modification of form data implemented according to the technical solution of the present invention greatly enhance the work efficiency of operators, are simple and easy to understand, and can set target columns, target values, and modification policy conditions for batch modification. The conditions support a combination of multiple conditions and have a wide range of uses.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (12)

1. a method that is used for modifying form data in batches is characterized in that, comprising:
Step 102 presets one or more target modification elements and presets one or more condition elements;
Step 104, from described one or more target modification elements, select a target modification elements, and from described one or more condition elements, select at least one condition element, and determine the modification condition according to described at least one condition element for a described target modification elements;
Step 106 according to a described target modification elements and described modification condition, is determined location revision, and the data in the described location revision is made amendment in described list,
Wherein, each described one or more target modification elements comprises the column information of the revisable row in the described list, each described one or more condition element comprises the column information of the row of the condition that can be used as in the described list, wherein, column information comprises key word, display Name and data type.
2. method according to claim 1 is characterized in that, also comprises:
Step 108 when having the related data have with the data association of described location revision in described list, is then upgraded described related data according to described data.
3. method according to claim 2 is characterized in that, described step 108 also comprises:
When between described data and described related data, having the formula calculated relationship, notify the form controls of described list, described related data is upgraded with the formula account form.
4. method according to claim 1 is characterized in that, described step 102 also comprises:
Set the source data layout of described list, wherein, described source data layout comprises AdoDB.Recordset record set or XML document.
5. method according to claim 4 is characterized in that, when described source data layout is the AdoDB.Recordset record set, describedly determines that in described list location revision comprises:
Described modification condition is converted into the condition filter character string that meets described AdoDB.Recordset record set standard, call the filter attributes of described AdoDB.Recordset record set and carry out filter operation, to obtain meeting the line item of described modification condition, according to a described target modification elements, determine described location revision again.
6. method according to claim 4 is characterized in that, when described source data layout is XML document, describedly determines that in described list location revision comprises:
Described modification condition is converted into the condition filter character string that meets described XML XPath standard, the filter method of call XML carries out filter operation, to obtain meeting the line item of described modification condition, according to a described target modification elements, determine described location revision again.
7. a device that is used for modifying form data in batches is characterized in that, comprising:
Dispensing unit is used to preset one or more target modification elements and presets one or more condition elements;
The batch modification setup unit, be used for selecting a target modification elements from described one or more target modification elements, and from described one or more condition elements, select at least one condition element for a described target modification elements, determine the modification condition according to described at least one condition element;
The batch modification unit is used for a described target modification elements and described modification condition according to described batch modification setup unit selection, determines location revision in described list, and the data in the described location revision are made amendment,
Wherein, each described one or more target modification elements comprises the column information of the revisable row in the described list, each described one or more condition element comprises the column information as the row of condition in the described list, wherein, column information comprises key word, display Name and data type.
8. device according to claim 7 is characterized in that, also comprises:
The revision unit when being used on described list existing the related data that has with the data association of described location revision, upgrades described related data according to described data.
9. device according to claim 8, it is characterized in that, when described revision unit also is used for having the formula calculated relationship between described data and described related data, notify the form controls of described list, described related data is upgraded with the formula account form.
10. device according to claim 7 is characterized in that, described dispensing unit also is used to set the source data layout of described list, and wherein, described source data layout comprises AdoDB.Recordset record set or XML document.
11. device according to claim 10 is characterized in that, when described source data layout was the AdoDB.Recordset record set, described batch modification unit determined that in described list described location revision comprises:
Described batch modification unit is converted into described modification condition the condition filter character string that meets described AdoDB.Recordset record set standard, call the filter attributes of described AdoDB.Recordset record set and carry out filter operation, to obtain meeting the line item of described modification condition, according to a described target modification elements, determine described location revision again.
12. device according to claim 10 is characterized in that, when described source data layout was XML document, described batch modification unit determined that in described list described location revision comprises:
Described batch modification unit is converted into described modification condition the condition filter character string that meets described XML XPath standard, the filter method of call XML carries out filter operation, to obtain meeting the line item of described modification condition, according to a described target modification elements, determine described location revision again.
CN2010101998322A 2010-06-08 2010-06-08 Method and device for modifying form data in batches Expired - Fee Related CN101894133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101998322A CN101894133B (en) 2010-06-08 2010-06-08 Method and device for modifying form data in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101998322A CN101894133B (en) 2010-06-08 2010-06-08 Method and device for modifying form data in batches

Publications (2)

Publication Number Publication Date
CN101894133A CN101894133A (en) 2010-11-24
CN101894133B true CN101894133B (en) 2011-12-07

Family

ID=43103325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101998322A Expired - Fee Related CN101894133B (en) 2010-06-08 2010-06-08 Method and device for modifying form data in batches

Country Status (1)

Country Link
CN (1) CN101894133B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022722A (en) * 2014-04-18 2015-11-04 珠海金山办公软件有限公司 Electronic form row and column freezing method and electronic form row and column freezing device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970777B (en) * 2013-01-30 2017-07-18 金蝶软件(中国)有限公司 The method and apparatus that batch operation is carried out to list data
CN103744697A (en) * 2013-12-26 2014-04-23 乐视网信息技术(北京)股份有限公司 System file configuration method and device
CN105224531A (en) * 2014-05-28 2016-01-06 腾讯科技(深圳)有限公司 The method and apparatus of localization of XML node
CN104536997B (en) * 2014-12-12 2018-11-09 北京国双科技有限公司 Batch data processing method and processing device for client end interface
CN106446350A (en) * 2016-08-31 2017-02-22 江苏国泰新点软件有限公司 Method and device for modifying parameters of family types of design class platform
CN107679081B (en) * 2017-08-30 2020-06-30 平安科技(深圳)有限公司 Information modification method and device, computer equipment and computer readable storage medium
CN107729447A (en) * 2017-09-30 2018-02-23 杭州迪普科技股份有限公司 The update method and device of mesh object, computer-readable recording medium
CN109102248A (en) * 2018-07-28 2018-12-28 万翼科技有限公司 Amending method, device and the computer readable storage medium of nodal information
CN110795915B (en) * 2018-07-31 2024-07-16 南京中兴新软件有限责任公司 XML file batch modification method, system, device and computer-readable storage medium
CN113239053A (en) * 2021-04-30 2021-08-10 国网江苏省电力有限公司 Intelligent editing method for updating data based on rule matching

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1136918A4 (en) * 1998-08-11 2006-03-29 Shinji Furusho Method and apparatus for retrieving, accumulating, and sorting table-formatted data
CN101398812B (en) * 2007-09-27 2012-05-30 国际商业机器公司 Apparatus and method for generating electric table with service logic

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022722A (en) * 2014-04-18 2015-11-04 珠海金山办公软件有限公司 Electronic form row and column freezing method and electronic form row and column freezing device

Also Published As

Publication number Publication date
CN101894133A (en) 2010-11-24

Similar Documents

Publication Publication Date Title
CN101894133B (en) Method and device for modifying form data in batches
CN107992275B (en) Document printing method and device, computer equipment and storage medium
CN110837366A (en) Form generation method, electronic device and computer-readable storage medium
CN105761007A (en) Information management software design aiding method and information management software design aiding system
CN112258107A (en) LED intelligent material rack management method, system, equipment and storage medium
CN116521265A (en) Index billboard configuration method and device, electronic equipment and storage medium
US11494551B1 (en) Form field prediction service
CN114287018A (en) Purchasing service assisting system, purchasing service assisting device, and purchasing service assisting method
US8521622B2 (en) Computer system for managing part order placement
US20230419361A1 (en) Information processing apparatus and information processing method
JP5395785B2 (en) Manufacturing record management system and manufacturing record management method
JP2017072957A (en) File edition method, file edition device and file edition program
CN114612131A (en) Material management method, device, electronic equipment and storage medium
US20170053354A1 (en) Licensing manager
JP6397657B2 (en) Requirements calculation system, requirements calculation method and program
JP6614565B2 (en) Report creation system
JP2006139760A (en) Operational control system
EP3007118A1 (en) Cooperation server, non-transitory computer-readable storage medium storing cooperation program, and EC system
US20200104938A1 (en) Computer-implemented method of processing an insurance claim
US20050262131A1 (en) Automatic creation of output file from images in database
CN103530748A (en) Ship store management method
US11392869B2 (en) Systems and methods to provide customized product information
JP2018120423A (en) Securities information support system
JP7385423B2 (en) Unit price management device, unit price management method, and unit price management program
JP7574953B2 (en) Information processing device, information processing system, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160217

Address after: 100094 Beijing City, North Road, Haidian District, No. 68, building 2, floor 2

Patentee after: YONYOU UP INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Patentee before: UFIDA SOFTWARE Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111207

CF01 Termination of patent right due to non-payment of annual fee