CN104765720A - Method and device for inputting special transmission point source - Google Patents

Method and device for inputting special transmission point source Download PDF

Info

Publication number
CN104765720A
CN104765720A CN201510136633.XA CN201510136633A CN104765720A CN 104765720 A CN104765720 A CN 104765720A CN 201510136633 A CN201510136633 A CN 201510136633A CN 104765720 A CN104765720 A CN 104765720A
Authority
CN
China
Prior art keywords
longitude
latitude
model
line feed
point resource
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
CN201510136633.XA
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 Communication Information System Co Ltd
Original Assignee
Inspur Communication Information System 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 Communication Information System Co Ltd filed Critical Inspur Communication Information System Co Ltd
Priority to CN201510136633.XA priority Critical patent/CN104765720A/en
Publication of CN104765720A publication Critical patent/CN104765720A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention provides a method and device for inputting a special transmission point source. The method comprises the steps of building longitude and latitude format models and setting an analyzing mode corresponding to each model; analyzing the obtained initial archiving materials; determining the longitude and latitude of the special transmission point source in the initial archiving materials; copying the obtained longitude and latitude of the special transmission point source to a clipboard; reading the content in the clipboard by JavaScript; determining the first longitude and latitude format model meeting the read longitude and latitude of the special transmission point source and the analyzing mode corresponding to the first longitude and latitude format model; analyzing the longitude and latitude information of the special transmission point source in the clipboard by the analyzing mode corresponding to the first model; adhering the analyzed longitude and latitude information of the special transmission point source into a GIS system. With the adoption of the method and the device, the resource inputting efficiency can be increased.

Description

A kind of method and apparatus of typing transmission specialty point resource
Technical field
The present invention relates to pipe network resource management field, particularly a kind of method and apparatus of typing transmission specialty point resource.
Background technology
Telecom operators, for transmission asset management, especially to mute resource managements such as people's well, electric poles, are the tasks that a maintenance is huge always.Mute resource is different from intelligentized transmission equipment, cannot realize automatically gathering by IT means.Mute resource must by a large amount of original document data, and as Word, Excel, drawing, GPS gathers file etc. and completes first hand longitude and latitude file, then file data is entered in IT system by transmission mouth maintainer.
In the asset management system of traditional B/S framework, file data needs the mode uploaded by hand filling or arrangement annex, resolves warehouse-in, thus reduces efficiency of inputting.
Summary of the invention
The invention provides the method and apparatus of a kind of typing transmission specialty point resource, can efficiency of inputting be improved.
To achieve these goals, technical scheme of the present invention comprises:
A method for typing transmission specialty point resource, arranges longitude and latitude form model and each solution to model corresponding analyses mode; Comprise:
The initial file data obtained is resolved, determines the longitude and latitude of transmission specialty point resource in described initial file data;
During the longitude and latitude of the transmission of described acquisition specialty point resource is copied to clipboard;
Read the content in described clipbook by JavaScript, determine the first longitude and latitude form model that the longitude and latitude of the transmission specialty point resource of described reading meets and the analysis mode that this first longitude and latitude form model is corresponding;
The analysis mode using described first model corresponding resolves longitude and the dimensional information of the described transmission specialty point resource in clipbook;
The longitude of the described transmission specialty point resource parsed and dimensional information are pasted in described generalized information system.
Described longitude and latitude form model comprise following in any one or more:
Longitude+comma+latitude+line feed;
Longitude+TAB key+latitude+line feed;
Longitude+space+latitude+line feed;
With the MS Excel file form of longitude and latitude.
When described longitude and latitude form model comprises described first model of the MS Excel file form of band longitude and latitude, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude/t dimension/n;
Longitude and the dimensional information of the described transmission specialty point resource in the analysis mode parsing clipbook that described first model of described use is corresponding comprise: according to the form of longitude/t and dimension/n, parse longitude and the dimensional information of described transmission professional some resource from clipbook.
When described longitude and latitude form model comprises: during described first model of longitude+comma+latitude+line feed, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude+comma+latitude+line feed;
When described longitude and latitude form model comprises described first model of longitude+TAB key+latitude+line feed, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude+TAB key+latitude+line feed;
When described longitude and latitude form model comprises described first model of longitude+space+latitude+line feed form, the analysis mode that described first model is corresponding comprises: resolve with longitude+space+latitude+line feed form.
Longitude and the dimensional information of the described transmission specialty point resource in the analysis mode parsing clipbook that described first model of described use is corresponding comprise: use analysis mode corresponding to described first model the longitude of the described transmission professional some resource in clipbook and dimensional information to be resolved and be identified as XML document form, and by XML document object transfer in the as variable of JavaScript method;
Describedly the described transmission specialty point longitude of resource parsed and dimensional information are pasted described generalized information system comprise: the longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
A device for typing transmission specialty point resource, comprising:
Setting unit, for arranging longitude and latitude form model and each solution to model corresponding analyses mode;
Baseline file processing unit, for resolving the initial file data obtained, determines the longitude and latitude of transmission specialty point resource in described initial file data;
Pretreatment unit, in copying to clipboard the longitude and latitude of the transmission of described acquisition specialty point resource;
Browser processing unit, for being read the content in described clipbook by JavaScript, determines the first longitude and latitude form model that the longitude and latitude of the transmission specialty point resource of described reading meets and the analysis mode that this first longitude and latitude form model is corresponding; The analysis mode using described first model corresponding resolves longitude and the dimensional information of the described transmission specialty point resource in clipbook; The longitude of the described transmission specialty point resource parsed and dimensional information are pasted in described generalized information system.
It is any one or more that described setting unit comprises in following subelement:
First arranges subelement, for arranging the input model of longitude+comma+latitude+line feed;
Second arranges subelement, for arranging the input model of longitude+TAB key+latitude+line feed;
3rd arranges subelement, for arranging the input model of longitude+space+latitude+line feed;
4th arranges subelement, for arranging the input model of the MS Excel file form of band longitude and latitude.
When described setting unit comprise the described 4th subelement is set time, the 4th arrange subelement be further used for arrange resolve with the form of longitude/t dimension/n;
Described browser processing unit, according to the form of longitude/t and dimension/n, parses longitude and the dimensional information of described transmission specialty point resource from clipbook.
When described setting unit comprise described first subelement is set time, this first arrange subelement be further used for arrange resolve with the form of longitude+comma+latitude+line feed;
When described setting unit comprise described second subelement is set time, this second arrange subelement be further used for arrange resolve with the form of longitude+TAB key+latitude+line feed;
When described setting unit comprise the described 3rd subelement is set time, the 3rd arrange subelement be further used for arrange resolve with longitude+space+latitude+line feed form.
Described browser processing unit, use analysis mode corresponding to described first model the longitude of the described transmission specialty point resource in clipbook and dimensional information to be resolved and be identified as XML document form, and by XML document object transfer in the as variable of JavaScript method; The longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
Embodiments provide the method and apparatus of a kind of typing transmission specialty point resource, pre-specification can be carried out to the form of the longitude and latitude of various file data, namely longitude and latitude form model is set, and be provided with each solution to model further and analyse mode, like this, when follow-up typing, if the longitude and latitude of transmission specialty point resource meets call format, then only can need the process simply copying to Clipboard and obtain from clipbook this longitude and latitude, therefore, realize simple, improve efficiency of inputting.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for typing transmission specialty point resource in one embodiment of the invention.
Fig. 2 is the process flow diagram of the method for typing transmission specialty point resource in another embodiment of the present invention.
Fig. 3 is the schematic diagram determining latitude and longitude information in one embodiment of the invention in MS Excel formatted file.
Fig. 4 is the schematic diagram importing latitude and longitude information in one embodiment of the invention in generalized information system.
Fig. 5 is the numbering of Clipboard format and the schematic diagram of title in one embodiment of the invention.
Fig. 6 is the schematic diagram of latitude and longitude information in MS Excel formatted file in one embodiment of the invention.
Fig. 7 is the schematic diagram of the device of typing transmission specialty point resource in one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
One embodiment of the invention proposes the method for a kind of typing transmission specialty point resource, see Fig. 1, comprising:
Step 101: longitude and latitude form model is set and each solution to model corresponding analyses mode;
Step 102: resolve the initial file data obtained, determines the longitude and latitude of transmission specialty point resource in described initial file data;
Step 103: during the longitude and latitude of the described transmission specialty point resource determined is copied to clipboard;
Step 104: read the content in described clipbook by JavaScript;
Step 105: determine the first longitude and latitude form model that the longitude and latitude of the transmission specialty point resource of described reading meets and the analysis mode that this first longitude and latitude form model is corresponding;
Step 106: the analysis mode using described first model corresponding resolves longitude and the dimensional information of the described transmission specialty point resource in clipbook;
Step 107: the longitude of the described transmission specialty point resource parsed and dimensional information are pasted in described Geographic Information System (GIS, geographic information system) system.
In one embodiment of the invention, the described longitude and latitude form model of pre-specification can comprise following in any one or more:
Longitude+comma+latitude+line feed;
Longitude+TAB key+latitude+line feed;
Longitude+space+latitude+line feed;
With the MS Excel file form of longitude and latitude.
Visible, first three plants the specification for pair warp and weft degree form model under text formatting.
In an embodiment of the invention, when the first model in described longitude and latitude form model is the MS Excel file form of band longitude and latitude, the analysis mode corresponding at described first model comprises: resolve with the form of longitude/t dimension/n, that is, under this kind of form, longitude and latitude is stored in clipbook with the form of longitude/t dimension/n, correspondingly, then can carry out corresponding parsing according to this kind of storage mode, namely according to the form of longitude/t and dimension/n, from clipbook, longitude and the dimensional information of described transmission specialty point resource is parsed.The manner ensure that automatically simply can copy the latitude and longitude information of MS Excel file form, resolve, the operation of pasting to be to complete typing transmission specialty point resource.
In an embodiment of the invention, when the first model in described longitude and latitude form model is longitude+comma+latitude+line feed, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude+comma+latitude+line feed; That is, under this kind of form, longitude and latitude is stored in clipbook with the form of longitude+comma+latitude+line feed, correspondingly, then can carry out corresponding parsing according to this kind of storage mode, namely according to the form of longitude+comma+latitude+line feed, from clipbook, longitude and the dimensional information of described transmission specialty point resource is parsed.The manner ensure that automatically simply can copy the latitude and longitude information of the longitude+comma+latitude+line feed form of text, resolve, the operation of pasting to be to complete typing transmission specialty point resource.
In an embodiment of the invention, when the first model in described longitude and latitude form model is longitude+TAB key+latitude+line feed, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude+TAB key+latitude+line feed; That is, under this kind of form, longitude and latitude is stored in clipbook with the form of longitude+TAB key+latitude+line feed, correspondingly, then can carry out corresponding parsing according to this kind of storage mode, namely according to the form of longitude+TAB key+latitude+line feed, from clipbook, longitude and the dimensional information of described transmission specialty point resource is parsed.The manner ensure that automatically simply can copy the latitude and longitude information of the longitude+TAB key+latitude+line feed of text, resolve, the operation of pasting to be to complete typing transmission specialty point resource.
In an embodiment of the invention, when the first model in described longitude and latitude form model is longitude+space+latitude+line feed form, the analysis mode that described first model is corresponding comprises: resolve with longitude+space+latitude+line feed form.That is, under this kind of form, longitude and latitude is stored in clipbook with the form of longitude+space+latitude+line feed, correspondingly, then can carry out corresponding parsing according to this kind of storage mode, namely according to the form of longitude+space+latitude+line feed, from clipbook, longitude and the dimensional information of described transmission specialty point resource is parsed.The manner ensure that automatically simply can copy the latitude and longitude information of the longitude+space+latitude+line feed of text, resolve, the operation of pasting to be to complete typing transmission specialty point resource.
In an embodiment of the invention, when the longitude of the described transmission specialty point resource in the analysis mode parsing clipbook using described first model corresponding and dimensional information, feasible implementation comprises: use analysis mode corresponding to described first model the longitude of the described transmission specialty point resource in clipbook and dimensional information to be resolved and be identified as an XML document form, and by XML document object transfer in the as variable of JavaScript method;
Describedly the described transmission specialty point longitude of resource parsed and dimensional information are pasted described generalized information system comprise: the longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
See Fig. 2, another embodiment of the present invention proposes the method for a kind of typing transmission specialty point resource, comprising:
Step 201: pre-set longitude and latitude form model.
Here, specification follow-up the longitude and latitude form and the analysis mode thereof that need identification and parsing can be gone out in advance.Can be that pre-specification is resolved to the longitude and latitude in the file of text formatting and Excel form.Particularly, longitude and latitude form model can comprise:
Model one: longitude+comma+latitude+line feed;
Model two: longitude+TAB key+latitude+line feed;
Model three: longitude+space+latitude+line feed;
Model four: the MS Excel file form of band longitude and latitude.
Visible, first three plants the specification for pair warp and weft degree form model under text formatting.
Step 202: pre-set the analysis mode that each longitude and latitude form model is corresponding.
For above-mentioned model four, the MS Excel file form of band longitude and latitude, the analysis mode of its correspondence comprises: resolve with the form of longitude/t dimension/n.
For above-mentioned model one, longitude+comma+latitude+line feed, the analysis mode of its correspondence comprises: resolve with the form of longitude+comma+latitude+line feed.
For above-mentioned model two, longitude+TAB key+latitude+line feed, the analysis mode of its correspondence comprises: resolve with the form of longitude+TAB key+latitude+line feed.
For above-mentioned model three, longitude+space+latitude+line feed form, the analysis mode of its correspondence comprises: resolve with longitude+space+latitude+line feed form.
Step 203: user opens the initial file data comprising original latitude and longitude information is such as a MS Excel formatted file.
Step 204: user resolves the initial file data obtained, finds the longitude and latitude of transmission specialty point resource in described initial file data.
Such as see Fig. 3, in MS Excel formatted file, longitude and latitude is deposited respectively in adjacent two row.
Step 205: whether the form of the longitude and latitude of the transmission specialty point resource found described in judgement meets the described longitude and latitude form model pre-set; If met, perform step 206, otherwise, terminate current process;
Step 206: during the longitude and latitude of the transmission found specialty point resource is copied to clipboard.
Step 207: read the content in described clipbook by JavaScript.
Step 208: determine that the form of longitude and latitude of the transmission specialty point resource in clipbook be model 1 in described longitude and latitude form model is such as the MS Excel file form of band longitude and latitude, and the analysis mode of this model 1 correspondence is such as resolve with the form of longitude/t dimension/n.
Step 209: according to the form of longitude/t and dimension/n, parses longitude and the dimensional information of described transmission specialty point resource from clipbook.
Step 210: the longitude of the described transmission specialty point resource in clipbook and dimensional information are resolved and is identified as XML document form.
Step 211: by XML document object transfer in the as variable of JavaScript method.
Step 212: the longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
Here, see Fig. 4, can select in the graphic user interface of GIS " importing data from clipbook ", thus trigger in this step the described transmission specialty point longitude of resource of as variable format and dimensional information are pasted in described generalized information system.
It should be noted that, in an embodiment of the present invention, the data layout of clipbook refers to for the ease of the mode of putting data stored, analyze, exchange and show data and specify.In a computer, all data are all that the position formed with 0 or 1 is formed, in most programming language, the least unit of data is bytes, it is made up of 8 positions, it can represent 256 numerical value between 0-255, by these 256 various information of numeric representation, such as word, figure, audio frequency, video etc., just need to specify a fixing structure and placement regulation to a string byte of representative often kind of information, just all data are enumerated together else if, the difficulty in parsing will be brought.If this structure Sum fanction is universally accepted, it will become a kind of general data layout.Usually often kind of data layout all can comprise a byte feature being simply easy to identify, various files in such as our disk, just there is text formatting, bitmap format, the hundreds and thousands of kinds of forms such as hypertext format, if open with UltraEdit and so on sexadecimal editing machine the file that does not have suffix name, if find that its front four bytes are 47 49 4638 (" GIF8 "), it is probably a gif format picture, if we have comprehensive understanding to the regulation of gif form, that not only 100% can judge the effective gif format picture of its yes or no one, figure representated by it can also be shown on screen.For user, corresponding program can be used to open the file of different-format, for program, corresponding analysis mode can be used to be understood to the data of different-format, thus excavate the information of wherein carrying.
The data of multiple format can be deposited in clipbook simultaneously, they are referred to as Clipboard format (Clipboard Formats).In order to distinguish various form, windows is assigned with a distinctive long numeral to often kind of Clipboard format, we are called Clipboard format numbering (Clipboard FormatNumber), simultaneously, for the ease of people's memory and use, except the standard format that a few is general, major part data layout is a corresponding English name also, be called Clipboard format title (Clipboard FormatName), this title is case sensitive, namely CSV and Csv represents two kinds of different forms in clipbook, their Clipboard format numbering also can not be identical.The numbering of Clipboard format and title are by Windows system assignment and management, for conventional form, windows has carried out predefine to their numbering, these forms are called as standard format or predefined format (Standard/PredefinedClipboard Formats), see Fig. 5.
From the latitude and longitude information of the cell that MS Excel copies, its form in clipbook is Const_CF_UNICODETEXT (Unicode text formatting).
The cell that such as Fig. 6 copies, the form in clipbook is
100.23133/t25.588923/n100.231765999999/t25.58849/n100.221279999999/t25.5748/n100.21323/t25.59411/n
Namely form is longitude/t dimension/n form, therefore above-mentioned embodiment illustrated in fig. 2 in, based on the longitude of this Const_CF_UNICODETEXT (Unicode text formatting)/t dimension/n form, can resolve.
In addition, the character string that text copies, form is the Const_CF_TEXT (text formatting, using chr (0) as end of string mark) shown in Fig. 5.Form in clipbook is identical with the form of text-string, therefore, above-mentioned embodiment illustrated in fig. 2 in, analyze based on this.
In an embodiment of the invention, the process realizing typing transmission specialty point resource can comprise following code sample:
<SCRIPT>
var bResult;
// choose the text that will shear.Cause cutting in the space of trailing of shear event Chinese version selected areas
// cut and select shortcut menu project to keep invalid.
function fnLoad(){
var r=document.body.createTextRange();
r.findText(oSource.innerText);
r.select();
}
// to enable and shear shortcut menu project, it is invalid to be defaulted as when this project is on DIV
function fnBeforeCut(){
event.returnValue=false;
}
// give data with text formatting to window.clipboardData object.
// result (Boolean) of setData method is presented in input frame below.
function fnCut(){
event.returnValue=false;
bResult=window.clipboardData.setData("Text",oSource.innerText);
oSource.innerText="";
tText.innerText+=bResult;
}
// to enable and paste shortcut menu project, when this project is on DIV, acquiescence is also invalid
function fnBeforePaste(){
event.returnValue=false;
}
// in onpaste, cancel returnValue so that input text, this operation has acquiescence
// behavior.
function fnPaste(){
event.returnValue=false;
oTarget.innerText=window.clipboardData.getData("Text");
}
</SCRIPT>
</HEAD>
<BODY onload="fnLoad()"TOPMARGIN=0 LEFTMARGIN=0BGPROPERTIES="fixed"BGCOLOR="#FFFFFF"
LINK="#000000"VLINK="#808080"ALINK="#000000">
<DIV CLASS=" clsSource " ID=" oSource " onbeforecut=" fnBeforeCut () " oncut=" fnCut () " > chooses and shears this text </DIV>
Text is pasted onto </DIV><BRGreatT. GreaT.GT here by <DIV CLASS=" clsTarget " ID=" oTarget " onbeforepaste=" fnBeforePaste () " onpaste=" fnPaste () " >
<SPAN CLASS=" clsData " >setData result: </SPAN>
<INPUT CLASS="clsText"ID="tText"TYPE="text"READONLYVALUE=""SIZE="6"TABINDEX="-1">
</BODY>
One embodiment of the invention proposes the device of a kind of typing transmission specialty point resource, see Fig. 7, comprising:
Setting unit 701, for arranging longitude and latitude form model and each solution to model corresponding analyses mode;
Baseline file processing unit 702, for resolving the initial file data obtained, determines the longitude and latitude of transmission specialty point resource in described initial file data;
Pretreatment unit 703, during the professional longitude and latitude putting resource of the transmission for being determined by described baseline file processing unit 702 copies to clipboard;
Browser processing unit 704, for being read the content in described clipbook by JavaScript, the first longitude and latitude form model that the longitude and latitude of the transmission specialty point resource of described reading meets and the analysis mode that this first longitude and latitude form model is corresponding is determined according to setting unit 701; The analysis mode using described first model corresponding resolves longitude and the dimensional information of the described transmission specialty point resource in clipbook; The longitude of the described transmission specialty point resource parsed and dimensional information are pasted in described generalized information system.
In an embodiment of the invention, what setting unit comprised in following subelement is any one or more:
First arranges subelement, for arranging the input model of longitude+comma+latitude+line feed;
Second arranges subelement, for arranging the input model of longitude+TAB key+latitude+line feed;
3rd arranges subelement, for arranging the input model of longitude+space+latitude+line feed;
4th arranges subelement, for arranging the input model of the MS Excel file form of band longitude and latitude.
In an embodiment of the invention, when described setting unit comprise the described 4th subelement is set time, the 4th arrange subelement be further used for arrange resolve with the form of longitude/t dimension/n;
Described browser processing unit, according to the form of longitude/t and dimension/n, parses longitude and the dimensional information of described transmission specialty point resource from clipbook.
In an embodiment of the invention, when described setting unit comprise described first subelement is set time, this first arrange subelement be further used for arrange resolve with the form of longitude+comma+latitude+line feed;
When described setting unit comprise described second subelement is set time, this second arrange subelement be further used for arrange resolve with the form of longitude+TAB key+latitude+line feed;
When described setting unit comprise the described 3rd subelement is set time, the 3rd arrange subelement be further used for arrange resolve with longitude+space+latitude+line feed form.
In an embodiment of the invention,
Described browser processing unit, use analysis mode corresponding to described first model the longitude of the described transmission specialty point resource in clipbook and dimensional information to be resolved and be identified as XML document form, and by XML document object transfer in the as variable of JavaScript method; The longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
Visible, each embodiment of the present invention has following beneficial effect:
1, pre-specification can be carried out to the form of the longitude and latitude of various file data, namely longitude and latitude form model is set, and be provided with each solution to model further and analyse mode, like this, when follow-up typing, if the longitude and latitude of transmission specialty point resource meets call format, then only can need simply to copy latitude and longitude information in initial file data in clipbook, from clipbook, this longitude and latitude is read with by JavaScript, and under user triggers, JavaScript to be read from clipbook and latitude and longitude information that subsequent solves goes out directly pastes in generalized information system, therefore, realize simple, improve efficiency of inputting.
2, because first hand initial file data source is extensive, source may be multiple department such as maintenance company, designing institute of district branch office of districts and cities, outsourcing, and the form of document information is varied.If mode conventionally, when can cause importing document information, latitude and longitude information is first arranged the document format to system requirements by needs, carries out annex is conducted into after having arranged.The process time and effort consuming of data compilation.The process that embodiments of the invention can avoid user to arrange form and upload with attachment version, therefore, enormously simplify the operation of user.
3, owing to easily makeing mistakes when arraying data by hand in prior art, especially for the maintenance personnel that geographical knowledge lacks, be easy to longitude and latitude be filled out instead, data inputting mistake can be caused.And each embodiment of the present invention analyses mode according to the longitude and latitude form model of pre-specification and each solution to model, the latitude and longitude information of actual typing is resolved, thus automatically can identify longitude and latitude data, avoid the people of artificial treatment for typing mistake.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a method for typing transmission specialty point resource, is characterized in that, arranges longitude and latitude form model and each solution to model corresponding analyses mode; Comprise:
The initial file data obtained is resolved, determines the longitude and latitude of transmission specialty point resource in described initial file data;
During the longitude and latitude of the transmission of described acquisition specialty point resource is copied to clipboard;
Read the content in described clipbook by JavaScript, determine the first longitude and latitude form model that the longitude and latitude of the transmission specialty point resource of described reading meets and the analysis mode that this first longitude and latitude form model is corresponding;
The analysis mode using described first model corresponding resolves longitude and the dimensional information of the described transmission specialty point resource in clipbook;
The longitude of the described transmission specialty point resource parsed and dimensional information are pasted in described generalized information system.
2. method according to claim 1, is characterized in that, described longitude and latitude form model comprise following in any one or more:
Longitude+comma+latitude+line feed;
Longitude+TAB key+latitude+line feed;
Longitude+space+latitude+line feed;
With the MS Excel file form of longitude and latitude.
3. method according to claim 2, is characterized in that, when described longitude and latitude form model comprises the MS Excel file form of band longitude and latitude; And described first model be band longitude and latitude MS Excel file form time, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude/t dimension/n;
Longitude and the dimensional information of the described transmission specialty point resource in the analysis mode parsing clipbook that described first model of described use is corresponding comprise: according to the form of longitude/t and dimension/n, parse longitude and the dimensional information of described transmission professional some resource from clipbook.
4. method according to claim 2, is characterized in that, when described longitude and latitude form model comprises longitude+comma+latitude+line feed; And described first model is when being longitude+comma+latitude+line feed, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude+comma+latitude+line feed;
When described longitude and latitude form model comprises longitude+TAB key+latitude+line feed, and when described first model is longitude+TAB key+latitude+line feed, the analysis mode that described first model is corresponding comprises: resolve with the form of longitude+TAB key+latitude+line feed;
When described longitude and latitude form model comprises longitude+space+latitude+line feed form; And described first model is when being longitude+space+latitude+line feed form, the analysis mode that described first model is corresponding comprises: resolve with longitude+space+latitude+line feed form.
5. according to described method arbitrary in Claims 1-4, it is characterized in that, longitude and the dimensional information of the described transmission specialty point resource in the analysis mode parsing clipbook that described first model of described use is corresponding comprise: use analysis mode corresponding to described first model the longitude of the described transmission professional some resource in clipbook and dimensional information to be resolved and be identified as XML document form, and by XML document object transfer in the as variable of JavaScript method;
Describedly the described transmission specialty point longitude of resource parsed and dimensional information are pasted described generalized information system comprise: the longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
6. a device for typing transmission specialty point resource, is characterized in that, comprising:
Setting unit, for arranging longitude and latitude form model and each solution to model corresponding analyses mode;
Baseline file processing unit, for resolving the initial file data obtained, determines the longitude and latitude of transmission specialty point resource in described initial file data;
Pretreatment unit, in copying to clipboard the longitude and latitude of the transmission of described acquisition specialty point resource;
Browser processing unit, for being read the content in described clipbook by JavaScript, determines the first longitude and latitude form model that the longitude and latitude of the transmission specialty point resource of described reading meets and the analysis mode that this first longitude and latitude form model is corresponding; The analysis mode using described first model corresponding resolves longitude and the dimensional information of the described transmission specialty point resource in clipbook; The longitude of the described transmission specialty point resource parsed and dimensional information are pasted in described generalized information system.
7. device according to claim 6, is characterized in that, it is any one or more that described setting unit comprises in following subelement:
First arranges subelement, for arranging the input model of longitude+comma+latitude+line feed;
Second arranges subelement, for arranging the input model of longitude+TAB key+latitude+line feed;
3rd arranges subelement, for arranging the input model of longitude+space+latitude+line feed;
4th arranges subelement, for arranging the input model of the MS Excel file form of band longitude and latitude.
8. device according to claim 7, is characterized in that, when described setting unit comprise the described 4th subelement is set time, the 4th arrange subelement be further used for arrange resolve with the form of longitude/t dimension/n;
Described browser processing unit, according to the form of longitude/t and dimension/n, parses longitude and the dimensional information of described transmission specialty point resource from clipbook.
9. device according to claim 7, is characterized in that, when described setting unit comprise described first subelement is set time, this first arrange subelement be further used for arrange resolve with the form of longitude+comma+latitude+line feed;
When described setting unit comprise described second subelement is set time, this second arrange subelement be further used for arrange resolve with the form of longitude+TAB key+latitude+line feed;
When described setting unit comprise the described 3rd subelement is set time, the 3rd arrange subelement be further used for arrange resolve with longitude+space+latitude+line feed form.
10., according to described device arbitrary in claim 6 to 9, it is characterized in that,
Described browser processing unit, use analysis mode corresponding to described first model the longitude of the described transmission specialty point resource in clipbook and dimensional information to be resolved and be identified as XML document form, and by XML document object transfer in the as variable of JavaScript method; The longitude of the described transmission specialty point resource of as variable format and dimensional information are pasted in described generalized information system.
CN201510136633.XA 2015-03-26 2015-03-26 Method and device for inputting special transmission point source Pending CN104765720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510136633.XA CN104765720A (en) 2015-03-26 2015-03-26 Method and device for inputting special transmission point source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510136633.XA CN104765720A (en) 2015-03-26 2015-03-26 Method and device for inputting special transmission point source

Publications (1)

Publication Number Publication Date
CN104765720A true CN104765720A (en) 2015-07-08

Family

ID=53647558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510136633.XA Pending CN104765720A (en) 2015-03-26 2015-03-26 Method and device for inputting special transmission point source

Country Status (1)

Country Link
CN (1) CN104765720A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009074974A1 (en) * 2007-12-10 2009-06-18 E-Glue Software Technologies Ltd. System and process for producing a two-layer document, and a two-layer document produced accordingly
CN102024039A (en) * 2010-12-01 2011-04-20 北京神州泰岳软件股份有限公司 Form generating method based on electric operation maintenance system (EOMS)
CN102254005A (en) * 2011-07-15 2011-11-23 苏州阔地网络科技有限公司 Method for transforming and displaying document on webpage
CN103646016A (en) * 2013-12-30 2014-03-19 金蝶软件(中国)有限公司 Implementation method of user-defined financial statement and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009074974A1 (en) * 2007-12-10 2009-06-18 E-Glue Software Technologies Ltd. System and process for producing a two-layer document, and a two-layer document produced accordingly
CN102024039A (en) * 2010-12-01 2011-04-20 北京神州泰岳软件股份有限公司 Form generating method based on electric operation maintenance system (EOMS)
CN102254005A (en) * 2011-07-15 2011-11-23 苏州阔地网络科技有限公司 Method for transforming and displaying document on webpage
CN103646016A (en) * 2013-12-30 2014-03-19 金蝶软件(中国)有限公司 Implementation method of user-defined financial statement and server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEIDEDONG: "如何拆分剪贴板中复制的Excel数据到数组,并赋值到下方的table中?", 《HTTP://BBS.CSDN.NET/TOPICS/100140977》 *
弯弯专栏: "将Excel单元格复制后,通过剪切板然后粘贴到页面上的table表中", 《HTTP://BLOG.CSDN.NET/ZOU_HAILIN226/ARTICLE/DETAILS/8129452》 *

Similar Documents

Publication Publication Date Title
CN106933862B (en) Method and device for generating mail report
CN104133772B (en) Automatic test data generation method
CN111178027A (en) Report generation system and method based on online creation template and online specified data
CN108491205A (en) A kind of front end web development methods and system based on component tree
CN108509658A (en) A kind of analysis method and device of XML file
CN102609252B (en) Based on the logic menu resource intelligent configuration method measuring instrument
CN110543303B (en) Visual service platform
CN106155652A (en) A kind of generation method and system of multi-language data file
CN109977383A (en) A kind of form information extracting method based on Excel
CN103473056A (en) Automatic generation method for telemetering configuration files
CN110765402A (en) Visual acquisition system and method based on network resources
CN114036183A (en) Data ETL processing method, device, equipment and medium
CN110660461B (en) Cross-platform medical data information uploading system based on artificial intelligence
CN105224420A (en) A kind of analytical approach of automatic parsing terminal abnormal and system
CN105183500A (en) Method and system for configuring webpage language
CN104765720A (en) Method and device for inputting special transmission point source
KR100457428B1 (en) Web sitre constructing and administration method
CN103135991B (en) The customization implementation method of embedded device web interface
CN106648618B (en) Text information generation method and device for virtual application
CN115454382A (en) Demand processing method and device, electronic equipment and storage medium
CN114218105A (en) UI automatic regression testing system based on configuration application mode
CN114281797A (en) Method for quickly creating basic level data aggregation warehouse based on agile low-code platform
CN112507677A (en) Method and device for inputting and displaying electronic form
CN107562462B (en) Method for constructing complex system project by multiple persons in parallel
CN109543122B (en) Content synchronization method, device, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150708

WD01 Invention patent application deemed withdrawn after publication