CN101419628A - Data general-purpose leading-in method based on excel file format - Google Patents

Data general-purpose leading-in method based on excel file format Download PDF

Info

Publication number
CN101419628A
CN101419628A CNA2008102380048A CN200810238004A CN101419628A CN 101419628 A CN101419628 A CN 101419628A CN A2008102380048 A CNA2008102380048 A CN A2008102380048A CN 200810238004 A CN200810238004 A CN 200810238004A CN 101419628 A CN101419628 A CN 101419628A
Authority
CN
China
Prior art keywords
data
database
importing
time
record
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.)
Pending
Application number
CNA2008102380048A
Other languages
Chinese (zh)
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.)
Inspur Group Shandong General Software Co Ltd
Original Assignee
Inspur Group Shandong General 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 Inspur Group Shandong General Software Co Ltd filed Critical Inspur Group Shandong General Software Co Ltd
Priority to CNA2008102380048A priority Critical patent/CN101419628A/en
Publication of CN101419628A publication Critical patent/CN101419628A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a general data importing method based on an Excel file format, which comprises the following steps: the database is adopted to save a data format definition, the data format definition is uploaded into a web server through a browser and then returned to the front end of the browser through a tabbed way; after the data matching relations are determined through artificial modification, the server verifies the data and returns the verified data, and the data is imported into an appointed form in the database after no abnormal data is determined to exist, and finally, the background business rule verification and treatment of the data are carried out through definable database storage process after the data is imported.

Description

A kind of data general-purpose leading-in method based on the Excel file layout
Technical field
The present invention relates to a kind of Computer Applied Technology, use, can efficiently carry out a technology of business datum typing rapidly, and can utilize general Excel file to carry out the off-line data processing and sorting towards amateur or professional technique terminal operation personnel.
Background technology
At present in the day to day operation of enterprise, needing to collect all kinds of marketing data diseases will be entered in the management system, this class data volume is general bigger, data acquisition cycle is shorter, the mobile work of business personnel is comparatively frequent, so system need provide the data importing function when data W EB input function is provided, to alleviate operating personnel's data typing pressure, carry out off-line data add mode scatter operation personnel's data typing pressure by the Excel file.
Summary of the invention
The objective of the invention is to break through traditional hard coded mode, a kind of general-purpose service data introduction method is provided.
Of the present invention day realize in the following manner, utilize the information description of data hold function realization to the business paper field, upload to Web server putting ground Excel file in order earlier, backstage assembly Excel file on the Web server is saved in the temporary table of database, and returns to browser.The user carries out fields match in the field description information of browser section according to business paper with the data of reality.Submit to the back data to be handled according to the information of coupling by the web server and imported in the corresponding database table by business rule.
Of the present invention have function and a beneficial effect
1. solved the manual typing problem of business paper big data quantity.
2. flexible by the configuration information of database definition obligation document.
3. unique identification and the definable database store process by importing can be made unified business rule to the data that import and handle, and adaptability is strong.
Description of drawings
Fig. 1 is Fig. 1-1 business paper static class figure.
Embodiment
Business paper defined function in the treasure case that provides by system can increase the modification business paper.By the descriptor to business paper, system provides the data importing function of acquiescence.
The data importing function TeledataInport.aspx of system default? BILLID=010, wherein BILLID represents the ID of business paper, can increase and use this function easily by the invoke user to this address.
The main program assembly:
The main functional based method of the TeleDataInport of data importing
public?static?string?GetFileName(string?sPath)
public?static?DataSet?ExcelToDS(string?Path)
public?static?DataSet?ExcelToDS(string?Path,int?pSheetIndex)
public?static?string?GenerateBillNo(string?sLogicTName,string?s_bh,stringsDate,string?flag,string?DJBH,Database?MyDatabase)
The data importing procedure function:
private?void?btnInport_Click(object?sender,System.EventArgs?e)
{ // variable-definition
try
{ // start-of-record time dt1
Whether the inspection of // misdata surpasses the misdata bar number of system's regulation
// obtain the document object
The inspection of // data permission
The correctness of // verifying logic data
The SQL field information that // extraction is inserted
ArrayList inserSQL=new ArrayList (); // insertion SQL
// judge whether data-frozen
// initial statement the information of inserting
// record imports pre-treatment time dt2
Try
{
// obtain the data after the checking
vssql=″select*from″……;
reader=data.RunSqlReturndR(vssql);
while(reader.Read())
{ // insert gauge outfit information // insertion table body information }
reader.Close();}
catch(Exception?ex)
{ // fault processing }
// record import statement generates processing time dt3
// data importing database
try
{for(int?i=0;i<inserSQL.Count;i++)
{ // carry out data parenthesis sentence }
if(MyBill0bject.DREXECUT.Trim()!=″″)
{ // carry out storing process manage business logic }
}
catch(Exception?ex)
{ // fault processing }
// record imports database time dt4
Prompting of // data importing quantity and time prompting
}
catch(Exception?ex)
{ // fault processing }
finally
{ // close data connect }
}。

Claims (1)

1. data general-purpose leading-in method based on the Excel file layout, it is characterized in that, be to adopt the data database storing formal definition, after uploading to the web server by browser, mode by paging turns back to the browser front end, after confirming Data Matching relation by the manual amendment, server is verified data, and return data after the checking, confirming not have behind the abnormal data can be in the table of data importing appointment in the database again, by definable database store process, data are carried out the business rule checking and the processing on backstage after importing, the data importing treatment step is as follows:
// start-of-record time dt1
Whether the inspection of // misdata surpasses the misdata bar number of system's regulation
// obtain the document object
The inspection of // data permission
The correctness of // verifying logic data
The SQL field information that // extraction is inserted
ArrayList inserSQL=new ArrayLi st (); // insertion SQL
// judge whether data-frozen
// initial statement the information of inserting
// record imports pre-treatment time dt2
try
Data after { // the obtain checking
vssql=″select*from″……;
reader=data.RunSqlReturndR(vssql);
while(reader.Read())
{ // insert gauge outfit information // insertion table body information }
reader.Close();
}
catch(Exception?ex)
{ // fault processing }
// record import statement generates processing time dt3
// data importing database
try
{ for(int?i=0;i<inserSQL.Count;i++)
{ // carry out data parenthesis sentence }
if(MyBi?llObject.DREXECUT.Trim()!=″″)
{ // carry out storing process manage business logic }
}
catch(Exception?ex)
{ // fault processing }
// record imports database time dt4
Prompting of // data importing quantity and time prompting.
CNA2008102380048A 2008-12-03 2008-12-03 Data general-purpose leading-in method based on excel file format Pending CN101419628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102380048A CN101419628A (en) 2008-12-03 2008-12-03 Data general-purpose leading-in method based on excel file format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102380048A CN101419628A (en) 2008-12-03 2008-12-03 Data general-purpose leading-in method based on excel file format

Publications (1)

Publication Number Publication Date
CN101419628A true CN101419628A (en) 2009-04-29

Family

ID=40630417

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102380048A Pending CN101419628A (en) 2008-12-03 2008-12-03 Data general-purpose leading-in method based on excel file format

Country Status (1)

Country Link
CN (1) CN101419628A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976236A (en) * 2010-09-26 2011-02-16 用友软件股份有限公司 Method and device for importing floating row data through worksheet
CN102567796A (en) * 2010-12-20 2012-07-11 北大方正集团有限公司 Method and device for importing data
CN102609483A (en) * 2012-01-19 2012-07-25 北京神州数码思特奇信息技术股份有限公司 General Excel import method based on configuration
CN103020089A (en) * 2011-09-27 2013-04-03 深圳市金蝶友商电子商务服务有限公司 Method and device for importing data in EXCEL file to database
CN103034647A (en) * 2011-10-09 2013-04-10 镇江雅迅软件有限责任公司 Excel data import based on multi-threading technology
CN103034479A (en) * 2011-10-09 2013-04-10 镇江雅迅软件有限责任公司 Data generation system based on structural dynamic technology
CN103150647A (en) * 2013-04-10 2013-06-12 中国农业银行股份有限公司 Report file processing method, server and system
CN104536998A (en) * 2014-12-15 2015-04-22 浪潮通用软件有限公司 Data import method and device
CN105302835A (en) * 2014-07-29 2016-02-03 阿里巴巴集团控股有限公司 File processing method and equipment
CN105573965A (en) * 2014-10-13 2016-05-11 曹建卫 Electronic form comparison method based on software
CN105868212A (en) * 2015-01-22 2016-08-17 天津金牛电源材料有限责任公司 VBA(Visual Basic for Applications)-based electrolyte packaging bucket management system and operation method
CN106445962A (en) * 2015-08-10 2017-02-22 北京国双科技有限公司 Data importing method and device
CN106604073A (en) * 2015-10-14 2017-04-26 北京国双科技有限公司 Data processing method and device
CN106855964A (en) * 2015-12-09 2017-06-16 北京神州泰岳软件股份有限公司 A kind for the treatment of method and apparatus of business datum
CN109634661A (en) * 2018-10-26 2019-04-16 深圳壹账通智能科技有限公司 Server bottom data variation, device, computer equipment and storage medium

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976236A (en) * 2010-09-26 2011-02-16 用友软件股份有限公司 Method and device for importing floating row data through worksheet
CN102567796A (en) * 2010-12-20 2012-07-11 北大方正集团有限公司 Method and device for importing data
CN103020089A (en) * 2011-09-27 2013-04-03 深圳市金蝶友商电子商务服务有限公司 Method and device for importing data in EXCEL file to database
CN103034647A (en) * 2011-10-09 2013-04-10 镇江雅迅软件有限责任公司 Excel data import based on multi-threading technology
CN103034479A (en) * 2011-10-09 2013-04-10 镇江雅迅软件有限责任公司 Data generation system based on structural dynamic technology
CN102609483A (en) * 2012-01-19 2012-07-25 北京神州数码思特奇信息技术股份有限公司 General Excel import method based on configuration
CN103150647B (en) * 2013-04-10 2016-01-06 中国农业银行股份有限公司 Report file disposal route, server and system
CN103150647A (en) * 2013-04-10 2013-06-12 中国农业银行股份有限公司 Report file processing method, server and system
CN105302835A (en) * 2014-07-29 2016-02-03 阿里巴巴集团控股有限公司 File processing method and equipment
CN105302835B (en) * 2014-07-29 2019-07-26 阿里巴巴集团控股有限公司 A kind of document handling method and equipment
CN105573965A (en) * 2014-10-13 2016-05-11 曹建卫 Electronic form comparison method based on software
CN104536998A (en) * 2014-12-15 2015-04-22 浪潮通用软件有限公司 Data import method and device
CN105868212A (en) * 2015-01-22 2016-08-17 天津金牛电源材料有限责任公司 VBA(Visual Basic for Applications)-based electrolyte packaging bucket management system and operation method
CN106445962A (en) * 2015-08-10 2017-02-22 北京国双科技有限公司 Data importing method and device
CN106604073A (en) * 2015-10-14 2017-04-26 北京国双科技有限公司 Data processing method and device
CN106604073B (en) * 2015-10-14 2019-12-24 北京国双科技有限公司 Data processing method and device
CN106855964A (en) * 2015-12-09 2017-06-16 北京神州泰岳软件股份有限公司 A kind for the treatment of method and apparatus of business datum
CN109634661A (en) * 2018-10-26 2019-04-16 深圳壹账通智能科技有限公司 Server bottom data variation, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101419628A (en) Data general-purpose leading-in method based on excel file format
CN102810057B (en) A kind of method of log
CN105608088B (en) A kind of database based on configuration file automatically creates and data dynamic recording method
US8666960B2 (en) Schema-based data transfer between a data-based application and a document application
CN109739934A (en) Difference set account checking method, medium, computer equipment and system
US20110161132A1 (en) Method and system for extracting process sequences
CN106776515A (en) The method and device of data processing
CN102999852B (en) The generation method of electronic ticket data and device
EP1344129A1 (en) A system and method supporting configurable object definitions
CN104461531B (en) A kind of implementation method of reporting system SQL
WO2007059469A3 (en) System and method for delivering results of a search query in an information management system
US8224791B2 (en) Information lifecycle cross-system reconciliation
CN106843878B (en) A kind of model generating method and system
JP2007149096A (en) Data element naming system and method
CN108768929A (en) The analytic method and storage medium of electronic device, reference feedback message
US20170228356A1 (en) System Generator Module for Electronic Document and Electronic File
WO2009120003A3 (en) Method of generating connection statistics for each user connected to website
CN102819609A (en) Modeling method for persisting data model
CN104182484A (en) Method and device for realizing mapping of HBase data and Java domain objects
CN101702218B (en) Information sending method applied to enterprise resource planning ERP and device
CN103605639A (en) Method of making e-books based on EPUB format
CN107358525A (en) A kind of account trading method and apparatus
WO2016060550A1 (en) Electronic processing system for electronic document and electronic file
CN102866985B (en) For data formatter and the method for on-line analysing processing system
CN104281584A (en) XML database performance testing system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090429