CN103258015A - Method for dynamically generating questionnaire based on XML - Google Patents

Method for dynamically generating questionnaire based on XML Download PDF

Info

Publication number
CN103258015A
CN103258015A CN2013101415074A CN201310141507A CN103258015A CN 103258015 A CN103258015 A CN 103258015A CN 2013101415074 A CN2013101415074 A CN 2013101415074A CN 201310141507 A CN201310141507 A CN 201310141507A CN 103258015 A CN103258015 A CN 103258015A
Authority
CN
China
Prior art keywords
questionnaire
xml
exercise question
template
generates
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
CN2013101415074A
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 CN2013101415074A priority Critical patent/CN103258015A/en
Publication of CN103258015A publication Critical patent/CN103258015A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method for dynamically generating a questionnaire based the XML. According to the technology, a UI is arranged on the questionnaire, an XML form generating assembly, a data dynamic binding assembly and the questionnaire design UI are called, after a plurality of types of examination problems of the questionnaire are configured, the examination problems are made to generate different XML terms according to the types of the examination problems, preview is conducted through a form generating engine, and the form type and bound data are automatically stored in a data base. Meanwhile, showing in a smart client and in a rich client is supported.

Description

A kind of method that dynamically generates questionnaire based on XML
Technical field
The present invention relates to a kind of Computer Applied Technology field, specifically a kind of method that dynamically generates questionnaire based on XML.
Background technology
Survey is a kind of effective and efficient manner of unit Information Monitorings such as large enterprise and government, by survey, can gather the thought condition as cadre employee, satisfaction, the information of survival state and enterprise marketing etc. aspect, and according to the investigation result of feeding back, take corresponding innovative approach.
Along with the standardization of business administration, various questionnaires arise at the historic moment, as common employee satisfaction survey, Talent Quality test and appraisal, 360 degree examination test and appraisal, the competent test and appraisal of employee's ability, customer satisfaction survey etc.
XML(Chinese: extend markup language, English: be a kind of SGML Extensible Markup language).Mark refers to computing machine information symbol to understand, how to define these marks, namely can select the general SGML of country, as HTML, also can freely determine SGML.XML has opening, mainly shows and platform independence, provides manufacturer irrelevant with technology.
The present invention relates to based on XML and dynamically generate questionnaire, be intended to solve the flexible questionnaire exercise question that arranges, generate questionnaire, support multiple client shows.
Summary of the invention
The present invention has solved the customization issue of all kinds of questionnaires easily, as recruitment questionnaire, training questionnaire, product questionnaire etc.Carry out the questionnaire design with the form of What You See Is What You Get, be convenient to the user and be absorbed in the professional knowledge field, improve software operation personnel's ease for use.Because this technology has adopted general XML form, the questionnaire that design is finished can represent in multiple client easily, has improved the extendability of software.
Technical assignment of the present invention is realized in the following manner: the particular content step is as follows:
1) the dynamic generation of questionnaire is based on XML document template;
Template style design document template according to the hardware and software platform analyzing component, generate the XML template file, fill questionnaire exercise question item according to the XML template when generating questionnaire, the essential information of questionnaire is set, generation has the questionnaire of consolidation form, content outside the questionnaire exercise question item is set in the XML template, enriches the displaying content of questionnaire, improve extendability;
2) provide unified questionnaire exercise question, questionnaire essential information the interface to be set to the Classification Management of questionnaire exercise question, the maintenance of questionnaire exercise question is provided, the class of supporting to fill a vacancy, singly select class, rich text class exercise question, set up questionnaire exercise question storehouse;
Questionnaire is carried out Classification Management, from the exercise question storehouse exercise question is incorporated in the questionnaire, the order of exercise question is set, the exercise question of introducing generates different XML configuration items according to the difference of type;
3) the questionnaire pattern can define flexibly
After questionnaire generates, questionnaire is with the form storage of XML, assembly by calling platformization, questionnaire XML is shown as visual interface, adjust the attribute of interface control, change its size, color pattern, revise the text description of questionnaire exercise question, realize arranging flexibly, after finishing amended content is continued to store with XML;
4) questionnaire represents and supports multi-client to represent
The questionnaire that generates is based on the storage of XML form, and XML can be by the kinds of platform analyzing component as general marking language, and different analyzing components can be used for different clients and represents.
Excellent effect of the present invention: solved the customization issue of all kinds of questionnaires easily, as recruitment questionnaire, training questionnaire, product questionnaire etc.Carry out the questionnaire design with the form of What You See Is What You Get, be convenient to the user and be absorbed in the professional knowledge field, improve software operation personnel's ease for use.Because this technology has adopted general XML form, the questionnaire that design is finished can represent in multiple client easily, has improved the extendability of software.
Description of drawings
Fig. 1 is the schematic diagram that questionnaire generates;
Fig. 2 is that questionnaire is created on use synoptic diagram in the business.
Embodiment
Explain below with reference to Figure of description method of the present invention being done.
Concrete steps the contents are as follows:
A) the dynamic generation of questionnaire is based on XML document template.
Template style design document template according to the hardware and software platform analyzing component generates the XML template file, fills questionnaire exercise question item according to the XML template when generating questionnaire, and the essential information of questionnaire is set, and generates questionnaire.Make the questionnaire of generation have unified format based on the XML template.Content outside the questionnaire exercise question item can be set in the XML template, enrich the displaying content of questionnaire, improve extendability.
B) setting of questionnaire exercise question can define flexibly, provides unified questionnaire exercise question, questionnaire essential information the interface to be set to the Classification Management of questionnaire exercise question, and the maintenance of questionnaire exercise question is provided, and the class of supporting to fill a vacancy, singly selects exercise questions such as class, rich text class, sets up questionnaire exercise question storehouse.
Questionnaire is carried out Classification Management, from the exercise question storehouse, exercise question is incorporated in the questionnaire, the order of exercise question is set.The exercise question of introducing generates different XML configuration items according to the difference of type.
C) the questionnaire pattern can define flexibly
After questionnaire generates, questionnaire is with the form storage of XML, can be by the assembly of calling platformization, questionnaire XML is shown as visual interface, can adjust the attribute of interface control, change patterns such as its size, color, can revise the text description of questionnaire exercise question, realize arranging flexibly, after finishing amended content is continued to store with XML.
D) questionnaire represents and supports multi-client to represent
The questionnaire that generates is based on the storage of XML form, and XML can be by the kinds of platform analyzing component as general marking language.Different analyzing components can be used for different clients and represents.
Questionnaire system basic data structure is described as follows:
Figure 2013101415074100002DEST_PATH_IMAGE001
Figure 2013101415074100002DEST_PATH_IMAGE002
It is as follows that data structure show is provided in the questionnaire design:
Figure 2013101415074100002DEST_PATH_IMAGE003
It is as follows that questionnaire information is collected data structure show:
Figure DEST_PATH_IMAGE005A
Embodiment
Be that the row survey realizes framework with Langchao Genersoft's development platform assembly, generate the XML template of questionnaire:
<?xml?version="1.0"?encoding="utf-16"?>
<GspFormDefinition?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ID/>
<Code/>
<Name/>
<IsConstraintsChanged>false</IsConstraintsChanged>
<DefinitionString><?xml?version="1.0"?encoding="utf-16"?>
<Definition?version="2">
<Object?type="System.Windows.Forms.Form,?System.Windows.Forms,?Version=4.0.0.0,?Culture=neutral,?PublicKeyToken=b77a5c561934e089"?name="a6cf03f1-2c49-445c-a6d3-14bfb0da7cea">
<Properties>
<Property?name="ClientSize">653,?446</Property>
<Property?name="Name">a6cf03f1-2c49-445c-a6d3-14bfb0da7cea</Property>
<Property?name="Controls">
<Item?type="System.Windows.Forms.TableLayoutPanel,?System.Windows.Forms,?Version=4.0.0.0,?Culture=neutral,?PublicKeyToken=b77a5c561934e089">
<Object?type="System.Windows.Forms.TableLayoutPanel,?System.Windows.Forms,?Version=4.0.0.0,?Culture=neutral,?PublicKeyToken=b77a5c561934e089"?name="TableLayoutPanel1">
<Properties>
<Property?name="ColumnCount">1</Property>
<Property?name="RowCount">2</Property>
<Property?name="RowStyles">
<Item?type="System.Windows.Forms.RowStyle,?System.Windows.Forms,?Version=4.0.0.0,?Culture=neutral,?PublicKeyToken=b77a5c561934e089">
<InstanceDescriptor?member="AAEAA">
<Argument>Percent</Argument>
<Argument>50</Argument>
</InstanceDescriptor>
</Item>
<Item?type="System.Windows.Forms.RowStyle,?System.Windows.Forms,?Version=4.0.0.0,?Culture=neutral,?PublicKeyToken=b77a5c561934e089">
<InstanceDescriptor?member="AAE">
<Argument>Percent</Argument>
<Argument>50</Argument>
</InstanceDescriptor>
</Item>
</Property>
<Property?name="ColumnStyles">
<Item?type="System.Windows.Forms.ColumnStyle,?System.Windows.Forms,?Version=4.0.0.0,?Culture=neutral,?PublicKeyToken=b77a5c561934e089">
<InstanceDescriptor?member="AAEAA">
<Argument>Percent</Argument>
<Argument>50</Argument>
</InstanceDescriptor>
</Item>
</Property>
<Property?name="Text">TableLayoutPanel1</Property>
<Property?name="Dock">Top</Property>
<Property?name="Location">0,?0</Property>
<Property?name="Name">TableLayoutPanel1</Property>
<Property?name="Size">653,?256</Property>
<Property?name="TabIndex">18</Property>
</Properties>
<ProvideProperties>
<CellPosition?/>
<ColumnSpan?/>
<RowSpan?/>
<Row?/>
<Column?/>
</ProvideProperties>
</Object>
</Item>
</Property>
</Properties>
</Object>
</Definition></DefinitionString>
<FormString><?xml?version="1.0"?encoding="utf-16"?>
<Form?ID="">
<Header?ID="Header"?Title=""?Creator=""?CreationDate="0001-1-1?0:00:00"?/>
<Model?DefaultInstance="DefaultInstance"?StateMachine="GSPFormTempStateMachine">
<Schemas>
<Schema?ID="DefaultSchema"?DataView="Card"?DataModel=""?/>
</Schemas>
<Instances>
<InstanceData?ID="DefaultInstance"?Schema="DefaultSchema">
<Src?/>
</InstanceData>
</Instances>
<Actions>
</Actions>
<InitConfigs>
</InitConfigs>
<DataCaches?/>
</Model>
<UI?ID="MainUI">
<Menus>
</Menus>
<BarGroup>
<Bars>
</Bars>
<RibbonPages?/>
<BarItemCategorys?/>
<BarItems>
</BarItems>
</BarGroup>
<ContextMenus?/>
<Controls>
<GridLayoutPanel?ID="TableLayoutPanel1"?DockStyle="Top"?AnchorStyles="Top,?Left">
<Controls>
</Controls>
<Columns>
<Column?Width="50%"?/>
</Columns>
<Rows>
<Row?Height="50%"?/>
<Row?Height="50%"?/>
</Rows>
<Layout>
<Size?Width="653"?Height="256"?/>
<MaximumSize?Width="0"?Height="0"?/>
<MinimumSize?Width="0"?Height="0"?/>
<Margin?Left="3"?Right="3"?Top="3"?Bottom="3"?/>
<Padding?Left="0"?Right="0"?Top="0"?Bottom="0"?/>
<Location?X="0"?Y="0"?/>
<Cell?/>
</Layout>
<Appearance?/>
</GridLayoutPanel>
</Controls>
<Layout>
<Size?Width="661"?Height="480"?/>
</Layout>
</UI>
</Form></FormString>
<ModelID/>
<ModelView>Card</ModelView>
</GspFormDefinition>
Call the assembly that generates list
// according to template establishment questionnaire list
GspFormDefinition?form?=?new?FormDefinitionSerializer().DeSerialize(xml)?as?GspFormDefinition;
// obtain the container control of depositing the questionnaire exercise question on the questionnaire list
ComponentBindingItem?bindItem?=?tarBinding.BindingItems[panelID];
TableLayoutPanel?panel?=?(TableLayoutPanel)bindItem.Component;
GridLayoutPanelElement?panelElement?=?(GridLayoutPanelElement)bindItem.Element;
// be filled into template with being saved in after the file exercise question generation that designs, create list
designer.SetFormContent();
designer.DeattachFormFlushing();
MetadataServiceClient.Save(formEx.FormDefintion,?ClientContext.Current.FramworkState);
// resolve the questionnaire XML document at the client call engine, generate form controls.
IFrameControl?frame?=?new?IFrameControl(formID,?string.Empty,?string.Empty);
Wherein formID is that list identified after questionnaire generated list.
Except the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (1)

1. method that dynamically generates questionnaire based on XML is characterized in that concrete steps are as follows:
1) dynamically generates questionnaire based on XML document template;
Template style design document template according to the hardware and software platform analyzing component, generate the XML template file, fill questionnaire exercise question item according to the XML template when generating questionnaire, the essential information of questionnaire is set, generation has the questionnaire of consolidation form, content outside the questionnaire exercise question item is set in the XML template, enriches the displaying content of questionnaire, improve extendability;
2) provide unified questionnaire exercise question, questionnaire essential information the interface to be set to the Classification Management of questionnaire exercise question, the maintenance of questionnaire exercise question is provided, the class of supporting to fill a vacancy, singly select class, rich text class exercise question, set up questionnaire exercise question storehouse;
Questionnaire is carried out Classification Management, from the exercise question storehouse exercise question is incorporated in the questionnaire, the order of exercise question is set, the exercise question of introducing generates different XML configuration items according to the difference of type;
3) the questionnaire pattern can define flexibly
After questionnaire generates, questionnaire is with the form storage of XML, assembly by calling platformization, questionnaire XML is shown as visual interface, adjust the attribute of interface control, change its size, color pattern, revise the text description of questionnaire exercise question, realize arranging flexibly, after finishing amended content is continued to store with XML;
4) questionnaire represents and supports multi-client to represent
The questionnaire that generates is based on the storage of XML form, and XML can be by the kinds of platform analyzing component as general marking language, and different analyzing components can be used for different clients and represents.
CN2013101415074A 2013-04-23 2013-04-23 Method for dynamically generating questionnaire based on XML Pending CN103258015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101415074A CN103258015A (en) 2013-04-23 2013-04-23 Method for dynamically generating questionnaire based on XML

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101415074A CN103258015A (en) 2013-04-23 2013-04-23 Method for dynamically generating questionnaire based on XML

Publications (1)

Publication Number Publication Date
CN103258015A true CN103258015A (en) 2013-08-21

Family

ID=48961932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101415074A Pending CN103258015A (en) 2013-04-23 2013-04-23 Method for dynamically generating questionnaire based on XML

Country Status (1)

Country Link
CN (1) CN103258015A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010031A (en) * 2014-05-21 2014-08-27 华南理工大学 Distributed cooperative method improving application efficiency of Web browser
CN104123399A (en) * 2014-08-19 2014-10-29 南京富士通南大软件技术有限公司 Cross-platform question bank resource structuring method
CN104484318A (en) * 2014-12-09 2015-04-01 南京奥拓电子科技有限公司 Self-service form filling machine capable of quickly customizing receipts on site and self-service form filling method
CN105824887A (en) * 2016-03-11 2016-08-03 深圳市规划国土发展研究中心 Mobile electronic investigation system and method based on intelligent questionnaire generative design
CN105824918A (en) * 2016-03-16 2016-08-03 平安科技(深圳)有限公司 Method for generating questionnaire and terminal
CN107169274A (en) * 2017-05-05 2017-09-15 深圳市心智心理测量技术研究所有限公司 A Si Burger syndrome questionary handles method, device, equipment and storage medium
CN108563384A (en) * 2018-04-17 2018-09-21 泰康保险集团股份有限公司 A kind of exchange method and relevant device based on questionnaire
CN108628609A (en) * 2018-05-03 2018-10-09 山东浪潮通软信息科技有限公司 A kind of method and device using questionary handle business
CN109003117A (en) * 2018-06-14 2018-12-14 万翼科技有限公司 Generation method, device and the computer readable storage medium of questionnaire
CN111209443A (en) * 2020-01-03 2020-05-29 苏州亿歌网络科技有限公司 Questionnaire data storage method, device, server and storage medium
CN112667693A (en) * 2020-11-13 2021-04-16 上海岳蒙设计有限公司 Software for automatically analyzing data and giving result based on investigation
CN117217194A (en) * 2023-09-11 2023-12-12 中教畅享(北京)科技有限公司 Dynamically configured accounting document question setting and rolling method
CN117217194B (en) * 2023-09-11 2024-05-17 中教畅享科技股份有限公司 Dynamically configured accounting document question setting and rolling method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967588A (en) * 2006-04-11 2007-05-23 华为技术有限公司 Interactive custom questionnaire, interactive system and method
CN101877087A (en) * 2009-04-23 2010-11-03 中国科学院地理科学与资源研究所 System and method for monitoring and surveying floating population based on space position

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967588A (en) * 2006-04-11 2007-05-23 华为技术有限公司 Interactive custom questionnaire, interactive system and method
CN101877087A (en) * 2009-04-23 2010-11-03 中国科学院地理科学与资源研究所 System and method for monitoring and surveying floating population based on space position

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶燕招: "校园网动态问卷调查系统的设计与实现", 《中国地质大学(北京)》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010031B (en) * 2014-05-21 2018-01-05 华南理工大学 A kind of distributed cooperative algorithm for improving Web browser application efficiency
CN104010031A (en) * 2014-05-21 2014-08-27 华南理工大学 Distributed cooperative method improving application efficiency of Web browser
CN104123399A (en) * 2014-08-19 2014-10-29 南京富士通南大软件技术有限公司 Cross-platform question bank resource structuring method
CN104123399B (en) * 2014-08-19 2017-12-08 南京富士通南大软件技术有限公司 A kind of cross-platform exam pool resource construction method
CN104484318A (en) * 2014-12-09 2015-04-01 南京奥拓电子科技有限公司 Self-service form filling machine capable of quickly customizing receipts on site and self-service form filling method
CN104484318B (en) * 2014-12-09 2018-04-03 南京奥拓电子科技有限公司 It is a kind of can rapid field customization document self-service bill filling machine and its method
CN105824887A (en) * 2016-03-11 2016-08-03 深圳市规划国土发展研究中心 Mobile electronic investigation system and method based on intelligent questionnaire generative design
CN105824918A (en) * 2016-03-16 2016-08-03 平安科技(深圳)有限公司 Method for generating questionnaire and terminal
CN107169274A (en) * 2017-05-05 2017-09-15 深圳市心智心理测量技术研究所有限公司 A Si Burger syndrome questionary handles method, device, equipment and storage medium
CN108563384A (en) * 2018-04-17 2018-09-21 泰康保险集团股份有限公司 A kind of exchange method and relevant device based on questionnaire
CN108628609A (en) * 2018-05-03 2018-10-09 山东浪潮通软信息科技有限公司 A kind of method and device using questionary handle business
CN109003117A (en) * 2018-06-14 2018-12-14 万翼科技有限公司 Generation method, device and the computer readable storage medium of questionnaire
CN111209443A (en) * 2020-01-03 2020-05-29 苏州亿歌网络科技有限公司 Questionnaire data storage method, device, server and storage medium
CN112667693A (en) * 2020-11-13 2021-04-16 上海岳蒙设计有限公司 Software for automatically analyzing data and giving result based on investigation
CN117217194A (en) * 2023-09-11 2023-12-12 中教畅享(北京)科技有限公司 Dynamically configured accounting document question setting and rolling method
CN117217194B (en) * 2023-09-11 2024-05-17 中教畅享科技股份有限公司 Dynamically configured accounting document question setting and rolling method

Similar Documents

Publication Publication Date Title
CN103258015A (en) Method for dynamically generating questionnaire based on XML
CN105373567B (en) Page generation method and client
CN107451296B (en) A kind of Website Module rendering intent component-based
CN106886418B (en) HTML interface control label
CN105740315B (en) The method of one kind of multiple screen response type page layout adjustment
CN103365855B (en) Method and server for generating web pages
CN108052322A (en) A kind of dragging method based on visual layout&#39;s system
CN109815435A (en) A kind of Website page generation method, device and electronic equipment
CN103136317A (en) Implement method of on-line examination and approval informatization of engineering contracts in engineering management system
CN103678511B (en) The method and device of webpage content extraction is carried out according to visual template
CN101025738A (en) Template-free dynamic website generating method
CN103473068A (en) Customizing system and customizing method for graph real-time monitoring interface based on SVG (Scalable Vector Graphics)
CN104599144A (en) Method and device for generating product details page
CN103927209A (en) FEEBLESS website building engine
CN110413765A (en) A kind of interactive system and its method of mass data set analysis and displaying
Henick HTML & CSS: The Good Parts: Better Ways to Build Websites That Work
Pleuss et al. A case study on variability in user interfaces
AU2009279439A1 (en) System and method for designing and generating online stationery
CN104714802A (en) Method and device for displaying additional information of HTML element
Loudon Developing Large Web Applications: Producing Code That Can Grow and Thrive
CN104715030A (en) Method for printing bills and reports on preprinted form
Plimmer et al. iAnnotate: exploring multi-user ink annotation in web browsers
CN107609050A (en) New page system and its works generation method based on HTML5
CN104462045B (en) A kind of document processing method and device
CN101609559A (en) A kind of method of making the FLASH file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130821

WD01 Invention patent application deemed withdrawn after publication