CN106570117A - Form control system and method based on electric power material distributing system - Google Patents

Form control system and method based on electric power material distributing system Download PDF

Info

Publication number
CN106570117A
CN106570117A CN201610945624.XA CN201610945624A CN106570117A CN 106570117 A CN106570117 A CN 106570117A CN 201610945624 A CN201610945624 A CN 201610945624A CN 106570117 A CN106570117 A CN 106570117A
Authority
CN
China
Prior art keywords
control
data
mobile terminal
xml data
data packet
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
CN201610945624.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.)
MATERIAL SUPPLY COMPANY SHANDONG ELECTRIC POWER Corp
Shandong Luneng Software Technology Co Ltd
Materials Branch of State Grid Shandong Electric Power Co Ltd
Original Assignee
MATERIAL SUPPLY COMPANY SHANDONG ELECTRIC POWER Corp
Shandong Luneng Software Technology 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 MATERIAL SUPPLY COMPANY SHANDONG ELECTRIC POWER Corp, Shandong Luneng Software Technology Co Ltd filed Critical MATERIAL SUPPLY COMPANY SHANDONG ELECTRIC POWER Corp
Priority to CN201610945624.XA priority Critical patent/CN106570117A/en
Publication of CN106570117A publication Critical patent/CN106570117A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a form control system and method based on an electric power material distributing system. The form control system dynamically analyzes an XML data packet to decompose the data packet into controls to be operated for displaying, then stores decomposed data into a stack list and traverses in a display layer to draw a form interface. In order to implement the scheme, a rule is needed to be made first to set the type of each control; when XML data are packaged, the rule is used for packaging the data; the XML data packet analyzing process is also carried out according to the rule; a server assembles the XML data packet according to a service demand, and a mobile terminal carries out classified analysis on the XML data packet after receiving the XML data packet and distinguishes analyzed data items as different control types; and drawing of the controls and displaying of the interface are finally completed.

Description

One kind is based on Power Material mixing system list control system and method
Technical field
The present invention relates to a kind of be based on Power Material mixing system list control system and method.
Background technology
Resources area is responsible for tracking project of transmitting and converting electricity and is applied in Shandong Power project site setup scene material supply project management department Work progress, is responsible for calling fortune, dispensing tracking to engineering material development production, and transfer is checked and accepted, Site Service, participates in evaluation of honouring an agreement Deng work.Wherein to project management, plan of needs, buying (bid) management, contract management, storage dispensing, quality surveillance, emergent Commander, waste and old material dispose the key business data such as management, supplier relationship management to be needed to be examined online, such as:Project shows Management, material supply scheduled maintenance, goods and materials being received and check and accept and Site Service etc., by mobile terminal real-time servicing progress The important informations such as information, arrival situation, for implementation decision foundation is provided.
For the form data item that different business examines class, developer needs to develop different lists to meet actual industry Business demand, because list quantity is excessive and form item form is not enough unified, this can bring huge workload to developer.This In with regard to being badly in need of a solution carrying out dynamic adaptation without the data item of type to list.And Google Android SDK Comprising basic control it is mostly simpler and cruder, it is difficult to meet requirement of the user to software interface.Especially realizing setting for list On meter, although the layout control such as TableLayout, TabRow of offer is needed completing for complicated and diversified list If asked using traditional development scheme, take on stream and laborious so as to system development cycle it is difficult to accurately Assessment so that software development cycle is elongated, reduce for table unitary class functional requirement development efficiency, increased software development into This.
The content of the invention
The present invention is in order to solve the above problems, it is proposed that one kind is based on Power Material mixing system list control system and side Method, the system can carry out list displaying format customization for different business demands, and flexible configuration shortens the construction cycle, and saving is opened Send out cost.
To achieve these goals, the present invention is adopted the following technical scheme that:
One kind is based on Power Material mixing system list control system, including control module, mobile terminal and server end, Wherein, control module includes text control, picture control, button control, input frame control, pop-up box control and selection of time control Part, server end generates XML data bag, and needs are packaged the collection of data items of different controls according to specific business demand, Mobile terminal is transferred to, corresponding control is transferred to after acquisition for mobile terminal to data carries out parsing adaptation, the number after parsing According to being stored in a stack list, then carry out traversal in display layer to draw spreadsheet interface, and carry out in control module Subregion shows, realizes separating title and form.
Based on the method for work of said system, comprise the following steps:
(1) arrange XML data bag data form, be that different control types distribute different data item identifiers;
(2) server end generates XML data bag, and needs are packaged the data of different controls according to specific business demand Item set;
(3) acquisition for mobile terminal XML data bag, and according to the data form of step (1) agreement, the number to packet encapsulation According to parsing, generate discernible data item and the data item of parsing is stored in storehouse;
(4) operation popped is needed when mobile terminal is shown, by the data item in stack according to agreement Mark corresponds on different controls to be shown.
In the step (4), chart attribute information includes but is not limited to pie chart, block diagram, broken line graph, bubble diagram, scatterplot Figure, bar chart, area-graph, radar map, instrument board, constitutional diagram and Gantt chart.
Beneficial effects of the present invention are:
Traditional control layout is mostly laid out using xml modes, and flexible interface configurability is poor.Can using the framework To realize that dynamic adaptation shows, parsing adaptation is carried out using the framework after acquisition for mobile terminal to data, it is possible to carry out subregion Domain shows that title and form are realized separating.Show Styles can be completed to be presented without form interface with automatic adaptation.
Description of the drawings
Fig. 1 is the control module structure chart of the present invention;
Fig. 2 is the schematic flow sheet of the present invention.
Specific embodiment:
Below in conjunction with the accompanying drawings the invention will be further described with embodiment.
As shown in figure 1, carrying out secondary package to basic control using the primary API of Android for this framework of the problems referred to above With integration, the display to realize different type control and adaptation are parsed to form data by SAX modes, it is big so as to meet Part basis control is to use, using Android can on the page shows developer without being concerned about the display type of concrete control, The list that data precession state can be screened using the framework technology and need client now on interface, meet many scenes, The effect of multi-functional demand, assembly function enriches, be easy to configuration uses, and meets most of form design demand.
Software frame is included at present:TextView (text control), ImageView (picture control), Button (button controls Part), EditText (input frame control), Dialog (pop-up box control), the conventional control such as DataPicker (selection of time control) Part, and the framework is easy to extension.Traditional control layout is mostly laid out using xml modes, flexible interface configurability Difference.Can realize that dynamic adaptation shows using the framework, parsing adaptation is carried out using the framework after acquisition for mobile terminal to data, And subregion can be carried out show, title and form are realized separating.
The realization of this programme is that packet is decomposed into needs the control of operation to enter by dynamic parsing XML data bag Row shows.Data after parsing are stored in a stack list, then carry out traversal to draw spreadsheet interface in display layer. The realization of this programme sets the type of every kind of control firstly the need of laying down a regulation, and XML data needs to adopt this when encapsulation Planting rule carries out data encapsulation, and the process of XML data Packet analyzing needs also exist for being operated according to rule.Server end is responsible for pressing Carry out assembling XML data bag according to business demand, and mobile terminal carries out classification parsing after XML data bag is received, and will parse Data item afterwards is screened to carry out on no control type, is finally completed the drafting of control and the presentation at interface.
Realize that function above is comprised the following steps that:
1st, arrange XML data bag data form, be that different control types distribute different data item identifiers.Such as: It is 2 etc. that Button arrange real type to arrange real type for 1, TextView
2nd, server end generates XML data bag.Needs are packaged the data of different controls according to specific business demand Item set.
3rd, acquisition for mobile terminal XML data bag, and according to the data form of step 1 agreement, the data to packet encapsulation It is parsed into discernible data item and the data item of parsing is stored in storehouse.
4th, the operation popped is needed when mobile terminal is shown, by the data item in stack according to the mark arranged Knowledge corresponds on different controls to be shown.
The present invention is primarily implemented in stipulations documentation, program encapsulation and designs, and is eventually entered in the way of jar file Row is issued.The present invention does not functionally embody and is related to any hardware facility.
Only need to introduce the jar APMB packages of response in mobile terminal software projects when implementing, then press Organized data is carried out according to stipulations.
Although the above-mentioned accompanying drawing that combines is described to the specific embodiment of the present invention, not to present invention protection model The restriction enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not Need the various modifications made by paying creative work or deformation still within protection scope of the present invention.

Claims (3)

1. it is a kind of to be based on Power Material mixing system list control system, it is characterized in that:Including control module, mobile terminal kimonos Business device end, wherein, control module include text control, picture control, button control, input frame control, pop-up box control and when Between select control, server end generates XML data bag, and needs are packaged the data of different controls according to specific business demand Item set, is transferred to mobile terminal, and corresponding control is transferred to after acquisition for mobile terminal to data carries out parsing adaptation, parsing Data afterwards are stored in a stack list, then carry out traversal to draw spreadsheet interface in display layer, and in control module In carry out subregion and show, realize separating title and form.
2. the method for work based on the system described in claim 1, is characterized in that:Comprise the following steps:
(1) arrange XML data bag data form, be that different control types distribute different data item identifiers;
(2) server end generates XML data bag, and needs are packaged the item set of different controls according to specific business demand Close;
(3) acquisition for mobile terminal XML data bag, and according to the data form of step (1) agreement, the data solution to packet encapsulation Analysis, generates discernible data item and the data item of parsing is stored in storehouse;
(4) operation popped is needed when mobile terminal is shown, by the data item in stack according to the mark arranged Correspond on different controls to be shown.
3. method of work as claimed in claim 2, is characterized in that:In the step (4), chart attribute information includes but does not limit In pie chart, block diagram, broken line graph, bubble diagram, scatter diagram, bar chart, area-graph, radar map, instrument board, constitutional diagram and gunter Figure.
CN201610945624.XA 2016-11-02 2016-11-02 Form control system and method based on electric power material distributing system Pending CN106570117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610945624.XA CN106570117A (en) 2016-11-02 2016-11-02 Form control system and method based on electric power material distributing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610945624.XA CN106570117A (en) 2016-11-02 2016-11-02 Form control system and method based on electric power material distributing system

Publications (1)

Publication Number Publication Date
CN106570117A true CN106570117A (en) 2017-04-19

Family

ID=58534869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610945624.XA Pending CN106570117A (en) 2016-11-02 2016-11-02 Form control system and method based on electric power material distributing system

Country Status (1)

Country Link
CN (1) CN106570117A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491889A (en) * 2017-08-29 2017-12-19 上海许继电气有限公司 Industrial circle energy consumption analysis system and its method based on dynamic statement

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955688A (en) * 2011-08-23 2013-03-06 上海无戒空间信息技术有限公司 Processing method for user image controls
CN103336691A (en) * 2013-06-29 2013-10-02 安科智慧城市技术(中国)有限公司 Dynamic layout method and system based on Android
CN103577197A (en) * 2013-11-18 2014-02-12 深圳市远行科技有限公司 Method for achieving android application program dynamic form
US9223770B1 (en) * 2009-07-29 2015-12-29 Open Invention Network, Llc Method and apparatus of creating electronic forms to include internet list data
CN105843945A (en) * 2016-04-08 2016-08-10 联动优势科技有限公司 Report generation method and system
CN106021340A (en) * 2016-05-09 2016-10-12 统通信(苏州)有限公司 A method for realizing Android terminal dynamic table controls

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9223770B1 (en) * 2009-07-29 2015-12-29 Open Invention Network, Llc Method and apparatus of creating electronic forms to include internet list data
CN102955688A (en) * 2011-08-23 2013-03-06 上海无戒空间信息技术有限公司 Processing method for user image controls
CN103336691A (en) * 2013-06-29 2013-10-02 安科智慧城市技术(中国)有限公司 Dynamic layout method and system based on Android
CN103577197A (en) * 2013-11-18 2014-02-12 深圳市远行科技有限公司 Method for achieving android application program dynamic form
CN105843945A (en) * 2016-04-08 2016-08-10 联动优势科技有限公司 Report generation method and system
CN106021340A (en) * 2016-05-09 2016-10-12 统通信(苏州)有限公司 A method for realizing Android terminal dynamic table controls

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491889A (en) * 2017-08-29 2017-12-19 上海许继电气有限公司 Industrial circle energy consumption analysis system and its method based on dynamic statement

Similar Documents

Publication Publication Date Title
CN111614775B (en) Industrial Internet cloud platform
CN103019684B (en) A kind of method of the configuration service page based on dynamic template
CN101694618B (en) Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN107729139A (en) A kind of method and apparatus for concurrently obtaining resource
CN103077185A (en) Object-based user-defined information-expanding method
CN109784708A (en) The cloud service system that the coupling of water industry multi-model calculates
CN102647462A (en) Application acquisition and sending method and device
CN108681454A (en) A kind of webpage visualization component development method
US20170169474A1 (en) Internet-based display material system and internet-based display material producing method
CN103198414A (en) Electronic billboard system and interaction method
Duarte et al. Business model, lean and green management and industry 4.0: a conceptual relationship
CN105635464A (en) Message processing method and apparatus
CN109087150A (en) Cost intelligent analysis method and device
CN110297944A (en) Distributed XML data processing method and system
CN114781344A (en) Method for rendering workflow electronic form by adopting reader for safe analysis and reader
CN106570117A (en) Form control system and method based on electric power material distributing system
CN106599216A (en) Computer based training courseware publishing system
CN109146422A (en) Project packet generation method, device and storage medium
CN101714080A (en) Method and system for realizing web multiple language control
CN104965497B (en) Online creation data quickly generates and management method and system
CN108876267A (en) Household building materials shops quick order management system
Ouyang et al. Toward web-scale workflows for film production
CN110032460A (en) A kind of application work platform and its implementation method based on B/S framework
Jin et al. Performing projection in problem frames using scenarios
CN104835236A (en) Queuing and number calling system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170419

RJ01 Rejection of invention patent application after publication