TW201525737A - Method for automatically generating website interactive program - Google Patents

Method for automatically generating website interactive program Download PDF

Info

Publication number
TW201525737A
TW201525737A TW102149379A TW102149379A TW201525737A TW 201525737 A TW201525737 A TW 201525737A TW 102149379 A TW102149379 A TW 102149379A TW 102149379 A TW102149379 A TW 102149379A TW 201525737 A TW201525737 A TW 201525737A
Authority
TW
Taiwan
Prior art keywords
webpage
program
data
database
web
Prior art date
Application number
TW102149379A
Other languages
Chinese (zh)
Other versions
TWI629602B (en
Inventor
Shih-Hsin Chen
Original Assignee
Univ Cheng Shiu
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 Univ Cheng Shiu filed Critical Univ Cheng Shiu
Priority to TW102149379A priority Critical patent/TWI629602B/en
Publication of TW201525737A publication Critical patent/TW201525737A/en
Application granted granted Critical
Publication of TWI629602B publication Critical patent/TWI629602B/en

Links

Landscapes

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

Abstract

A website interactive program comprises web form programs and web service programs. After the tables of a database are created, a developer needs to write interactive programs which are able to handle the data create, read, update, and delete (CRUD in short). Taking a web form program as an example, a form includes an input interface required by a data sheet for filling data in the fields. Furthermore, the data is received by a back-end program after being sent out and written in the corresponding fields of the data sheet. The development process is quite laborious and complicated. Therefore, the objective of the invention is to generate an interactive program capable of operating the CRUD for the database automatically, obtain the field names and the properties provided by the Metadata of the data sheet through a core method, and then generate required web forms and back-end processing programs through programming languages to reduce the development time significantly.

Description

互動式網頁程式自動產生方法 Interactive web page program automatic generation method

本發明係有關於一種互動式網頁程式自動產生方法,尤其是指一種利用關聯式資料庫之詮釋資料(metadata)以獲得其屬性資料,使得無論是程式設計師、網頁開發人員、企劃人員、網路管理人員,只需要於建立資料庫的資料表之後,即可藉由本發明之互動式網頁程式自動產生方法於極短的時間內,輕鬆建立網際網路之的網頁表單與後端處理程式,藉以大幅降低網站所需開發時間者。 The invention relates to an automatic generation method of an interactive webpage program, in particular to a meta-data using an associated database to obtain attribute data, so that it is a programmer, a web developer, a planner, or a web. The road administrator only needs to establish the data table of the database, and the web page form and the back-end processing program of the Internet can be easily established in a very short time by the automatic generation method of the interactive webpage program of the present invention. In order to greatly reduce the development time required by the website.

一般而言,企業尤其是中小企業之資訊服務業,因商務電子化程度較低,在建置網站的工作上,為求整體效率並期望能達到專業水準的要求上,通常會採取委外專案開發的方法;然而,對於日趨複雜、競爭激烈、商品服務變化快速的網路環境下,即時性及彈性往往是各商家決勝於網路虛擬空間的重要關鍵,資訊服務業者在規劃開發上須盡可能快速的建置電子化平台,達到產業電子化的順利整合應用,因此如果每次網頁改版都必須簽約委外處理,不僅增加營運成本外,在網頁建置的討論與溝通上亦花費時間。 Generally speaking, the information service industry of enterprises, especially small and medium-sized enterprises, usually adopts an outsourcing project because of the low degree of e-business. In the work of building a website, in order to achieve overall efficiency and expect to meet professional standards. The method of development; however, for the increasingly complex, highly competitive, rapid changes in commodity services, immediacy and resilience are often the key to the success of businesses in the virtual space of the Internet. Information service providers must plan and develop It is possible to quickly build an electronic platform to achieve a smooth integration and application of the electronic industry. Therefore, if each page revision must be contracted out, it will not only increase the operating cost, but also spend time on the discussion and communication of webpage construction.

再者,目前網頁開發者透過可連結資料庫的網頁編輯系統, 使網頁提供連結資料庫系統查詢資料的功能,使用者藉由一般的網頁瀏覽器即可連結並查詢資料庫,避免了安裝和使用特定軟體的需求;而傳統的可連結資料庫的網頁編輯系統,會提供一網頁編輯模組,網頁開發者可使用網頁編輯介面啟動連結資料庫模組,送出讀取資料庫的資格要求,連結至資料庫並經過權限認證處理後,讀取並顯示一個或多個資料庫之內容,網頁開發者再透過選擇其中的各種資料並進行編輯,編輯系統會依各種設定將資料以表格、圖表或其他型態的表示方法呈現於網頁;然,在製作連結資料庫的網頁時,要產生資料動態連結的功能的工作十分複雜:一般而言,先要定義出在資料庫的資料間傳遞變數的規則指令,接著必須在網頁查詢資料時動態在資料上附加連結,同時要製作可以動態接受連結進行處理後更新資料的網頁;而一般所使用的編碼或編輯工具卻缺乏對應的功能,例如:提供定義傳收連結的規則,使建立、傳送及接收連結的能按一定的標準進行,並在網頁中植入程式碼,使網頁所在的伺服器端可以隨收到的參數進行各種工作;因此,上述工作必須要由熟悉網頁程式語言與資料庫的相關人士進行程式編碼和網頁程式碼編輯的工作;請參閱中華民國發明專利公告第507142號所揭露之『模組化之網頁編輯與即時轉換之網頁顯示系統與方法』,其係提供一種應用於網際網路上之網頁編輯與顯示的系統與方法,使得商家的網頁編輯者或是美編人員可以於伺服器主機下載模組化的檔案,來製作與編輯示意性質的網頁,完成後上傳儲存於伺服器主機;然,由於資料庫係已建置於伺服器主機,使得資料的輸入被限定在由伺服器程式所設定的網站架構下,且欲製作具備複雜查詢功能的網頁亦是十分困難的工作。 Furthermore, web developers currently have a web page editing system that can link to a database. The webpage provides the function of linking the database system to query the data, and the user can link and query the database through a general web browser, thereby avoiding the need to install and use a specific software; and the traditional webpage editing system capable of linking the database A webpage editing module will be provided. The webpage developer can use the webpage editing interface to launch the link database module, send out the qualification requirements for reading the database, link to the database, and after the authority authentication process, read and display one or The content of multiple databases, the web developer then selects various materials and edits them. The editing system will present the data to the webpage in the form of tables, charts or other types according to various settings; When the library's webpage is used, the work of generating the dynamic link function of the data is very complicated: in general, the rule instructions for passing variables between the data of the database are defined first, and then the link must be dynamically added to the data when the webpage queries the data. At the same time, it is necessary to create a web page that can dynamically accept the link for processing and update the data; The coding or editing tools used lack corresponding functions, such as providing rules for defining the collection link, enabling the establishment, transmission and reception of links to be carried out according to certain standards, and embedding the code in the web page to make the webpage The server can perform various tasks with the received parameters; therefore, the above work must be performed by the person familiar with the web programming language and the database, and the program code editing and web page code editing; please refer to the Republic of China Invention Patent Announcement No. 507142 The "Modular Webpage Editing and Instant Conversion Webpage Display System and Method" disclosed by the number, which provides a system and method for webpage editing and display on the Internet, so that the webpage editor of the merchant is beautiful The editor can download the modular file from the server host to create and edit the schematic webpage, and upload and store it on the server host. However, since the database is built into the server host, the data input is enabled. Is limited to the website architecture set by the server program, and is intended to be made with complex query functions. Page is also a very difficult task.

目前,針對網站網頁的編輯製作軟體有例如微軟的Front Page、Visual Studio,以及Adobe推出的Dreamweaver等,其需具備相關操作與程式設計知識,因此並非每個人皆能熟練地進行網頁編輯;而當編輯網頁時,各網頁頁面係皆由設計者從現有之檔案資料中逐一產生,因此傳統之網頁編輯相當耗時;舉例而言,一般的網站互動程式開發包含了網頁表單與網路服務程式(Web Service),開發者在資料庫的資料表建立後,必須撰寫可處理新增、修改、刪除與查詢等互動程式;以網頁表單程式為例,表單中包含了一個資料表所需輸入欄位資料的輸入介面,並在送出後由後端程式接收且將資料寫入資料表中對應的欄位,開發過程相當繁瑣;此外,整個網站應用系統的開發包含了不下上千支的程式在其中,如果無法提供便利的維護方式及產生無Bug的程式碼,那麼開發者花在除錯及維護上的精力與時間會是開發系統的好幾倍,使得公司網站的開發流程往往無法符合在最短時間內滿足需求並配合其成長步調。 At present, the editing software for website pages includes, for example, Microsoft's Front Page, Visual Studio, and Adobe's Dreamweaver, which require relevant operations and programming knowledge, so not everyone can skillfully edit web pages; When editing a web page, each web page page is generated by the designer from the existing file data, so the traditional web page editing is quite time consuming; for example, the general website interactive program development includes the web form and the web service program ( Web Service), after the developer establishes the data table of the database, the developer must write interactive programs that can handle adding, modifying, deleting, and querying. For example, the web form program contains a required input field for the data table. The input interface of the data, and received by the backend program after sending and writing the data to the corresponding field in the data table, the development process is quite cumbersome; in addition, the development of the entire website application system contains no less than a thousand programs in it. If you can't provide convenient maintenance and generate bug-free code, developers will be debugging And the energy and time of maintenance will be several times that of the development system, so the development process of the company's website often fails to meet the needs in the shortest time and with the growth pace.

今,發明人即是鑑於上述之網頁程式開發方法存在有諸多缺失,於是乃一本孜孜不倦之精神,並藉由其豐富之專業知識及多年之實務經驗所輔佐,而加以改善,並據此研創出本發明。 Nowadays, the inventor is in view of the many shortcomings in the above-mentioned webpage development method, so it is a tireless spirit, and it is improved by its rich professional knowledge and years of practical experience. The present invention has been made.

本發明主要目的係為提供一種互動式網頁程式自動產生方法,尤其是指一種利用關聯式資料庫之詮釋資料所提供的欄位名稱與其屬性,再經由程式語言立即產出所要的網頁表單與後端處理程式,而具有可操作資料庫的新增、修改、刪除與查詢的互動程式,藉以免去網頁編輯系統開發者在製作連接至資料庫並具有資料動態連結功能網頁時的編輯工 作,快速地自動產生網頁表單,使得網頁開發者不必逐行地建構連接資料庫程式,就能以最迅速、簡單的方式,來產生存取、更新即時性功能的網頁表單。 The main purpose of the present invention is to provide an automatic generation method of an interactive webpage program, in particular to a field name and its attribute provided by an interpretation data of an associated database, and then immediately generate a desired webpage form and a subsequent language through the programming language. End-processing program, with an interactive program for adding, modifying, deleting, and querying the operational database, so as to avoid the editor of the webpage editing system developer when making a webpage with a data dynamic link function. Quickly and automatically generate webpage forms, so that web developers do not have to construct a connection database program line by line, and can generate webpage forms for accessing and updating instantness functions in the quickest and simplest way.

為了達到上述實施目的,本發明人提出一種互動式網頁程式自動產生方法,係適用於一具有關聯式資料庫之網頁編輯系統,其方法包括有:網頁開發者建立關聯式資料庫之屬性資料檔,其中屬性資料檔包括至少一屬性資料;接著,利用關聯式資料庫之詮釋資料獲得上述屬性資料,並以可存取關聯式資料庫之程式建立出複數網頁程式碼檔案;最後,複數網頁程式碼檔案於網頁編輯系統即可產生相對應之靜態或動態的網頁表單以及網路服務程式;藉此,利用關聯式資料庫之詮釋資料獲得屬性資料,能減少網頁編輯系統開發者在製作連接至資料庫並具有資料動態連結功能網頁時的編輯工作,提供有效率編輯網頁元件及連結的功能,進而製作出讓網頁使用者可以方便使用的網頁表單。 In order to achieve the above-mentioned implementation, the inventor proposes an automatic method for generating an interactive webpage program, which is applicable to a webpage editing system having an associated database, and the method includes the following steps: the webpage developer establishes an attribute data file of the associated database. The attribute data file includes at least one attribute data; then, the attribute data of the associated database is used to obtain the attribute data, and a plurality of webpage code files are created by a program that can access the associated database; and finally, the plurality of webpage programs are The code file can generate corresponding static or dynamic web form and web service program in the webpage editing system; thereby, using the interpret data of the associated database to obtain the attribute data can reduce the webpage editing system developer to make a connection to The database has the editing work when the data is dynamically linked to the function page, and provides the function of efficiently editing the webpage components and links, thereby creating a webpage form that is convenient for the webpage user to use.

在本發明的一個實施例中,其中屬性資料可包括有一欄位名稱參數、一欄位長度參數、一資料型態參數、一主鍵參數、非無參數、唯一參數、二進位參數、無正負號參數、零填充參數,以及自動增號參數。 In an embodiment of the present invention, the attribute data may include a field name parameter, a field length parameter, a data type parameter, a primary key parameter, a non-parameter, a unique parameter, a binary parameter, and an unsigned sign. Parameters, zero-fill parameters, and auto-enlargement parameters.

在本發明的一個實施例中,其中關聯式資料庫可為SQL Server、MySQL、DB2或Oracle等;且可存取關聯式資料庫之程式包括有編譯器和直譯器程式。 In an embodiment of the present invention, the relational database may be SQL Server, MySQL, DB2, or Oracle, and the program that can access the associated database includes a compiler and an interpreter program.

(1)‧‧‧網頁編輯系統 (1) ‧‧‧Web page editing system

(11)‧‧‧關聯式資料庫 (11)‧‧‧Related database

(111)‧‧‧屬性資料檔 (111)‧‧‧Attribute data files

(1111)‧‧‧屬性資料 (1111) ‧ ‧ Attribute data

(12)‧‧‧詮釋資料 (12) ‧ ‧ Interpretation data

(13)‧‧‧可存取關聯式資料庫之程式 (13)‧‧‧Programs that can access the associated database

(14)‧‧‧網頁程式碼檔案 (14)‧‧‧Webpage code file

(15)‧‧‧網頁表單 (15)‧‧‧Web form

(16)‧‧‧網路服務程式 (16)‧‧‧Internet Service Program

(2)‧‧‧網頁開發者 (2) ‧ ‧ web developers

(S1)‧‧‧步驟一 (S1)‧‧‧Step one

(S2)‧‧‧步驟二 (S2)‧‧‧Step 2

(S3)‧‧‧步驟三 (S3) ‧ ‧ Step 3

第一圖:本發明互動式網頁程式自動產生方法較佳實施例之步驟流程圖 The first figure: the flow chart of the steps of the preferred embodiment of the interactive webpage program automatic generation method of the present invention

第二圖:適用於本發明互動式網頁程式自動產生方法之網頁編輯系統方塊示意圖 The second figure: a block diagram of a webpage editing system suitable for the automatic generation method of the interactive webpage program of the present invention

第三圖:本發明之關聯式資料庫介面電腦造影影像圖 The third figure: the computerized image of the associated database interface of the present invention

第四圖:本發明網頁表單於前台網站呈現之網頁示意圖 The fourth figure: a schematic diagram of the webpage presented by the webpage form of the present invention on the front desk website

第五圖:本發明網頁表單輸入完成後,於後台管理系統呈現之網頁示意圖 Figure 5: Schematic diagram of the web page presented in the background management system after the web form input of the present invention is completed

本發明之目的及其結構設計功能上的優點,將依據以下圖面所示之較佳實施例予以說明並清楚呈現,俾使審查委員能對本發明有更深入且具體之瞭解。 The object of the present invention and its structural design and advantages will be apparent from the following detailed description of the preferred embodiments.

首先,本發明之互動式網頁程式自動產生方法係適用於一具有關聯式資料庫(11)之網頁編輯系統(1),其中網頁編輯系統(1)可為習知具網頁編輯模組的網頁編輯系統,網頁開發者(2)可以選擇其中的各種資料並進行編輯,網頁編輯系統(1)則會依各種設定將資料以表格、圖表或其他型態的表示方法呈現於網頁,而關聯式資料庫(11)可例如但不限定為SQL Server、MySQL、DB2或Oracle其中之一,請參閱第一、二圖所示,分別為本發明互動式網頁程式自動產生方法較佳實施例之步驟流程圖以及適用於本發明互動式網頁程式自動產生方法之網頁編輯系統方塊示意圖,互動式網頁程式自動產生方法係包括有:步驟一:網頁開發者(2)建立關聯式資料庫(11)之屬性資料檔(111),所述之屬性資料檔(111)可例如為一般熟知之資料表(Table),而屬性資料檔(111)可包括至少一屬性資料(1111); 請一併參閱第三圖所示,為本發明之關聯式資料庫介面電腦造影影像圖,因無法參照工程製圖方法以墨線繪製圖式的情況下,且能直接再現並符合圖式所適用之其他規定,根據專利審查基準2-1-37頁,以照片取代之;此外,屬性資料(1111)可例如包括有一欄位名稱參數(Column Name)、一資料型態參數(Datatype)、一欄位長度參數(資料型態參數後之數值)、一主鍵參數(primary key,PK)、非無參數(not null,NN)、唯一參數(unique,UQ)、二位元參數(binary,BIN)、無正負號參數(unsigned,UN)、零填充參數(zero fill,ZF),以及自動增號參數(auto increment,AI)等適用於資料欄位之型別;上述之資料型態參數可為整數、正整數僅到255的整數(TINYINT)、字元(VARCHAR)、時戳(TIMESTAMP)等;而於本具體實施例中,欄位名稱參數有idzNanE、Name、Email、Topic、Content、Sex、CreateDate、C1以及C2,且idzNanE欄位名稱參數為INT之資料型態,並適用於主鍵參數、非無參數以及自動增號參數;且吾人應瞭解上述之欄位名稱參數係為了說明方便起見,而非以本例所舉為限,因此,並不限定本具體實施例之欄位名稱參數;且在此值得注意的,上述之屬性資料(1111)所列出之參數係為所屬技術領域已知知識,且亦非本發明重點所在,其詳細機制及程式動作原理於此不再贅述;步驟二:利用關聯式資料庫(11)之詮釋資料(12)以獲得屬性資料(1111),並以可存取關聯式資料庫之程式(13)建立出用以操作關聯式資料庫(11)的新增、修改、刪除與查詢的網頁程式碼檔案(14);其中可存取關聯式資料庫之程式(13)可包括編譯器與直譯器程式,而編譯器程式可例如為C#語言、JAVA語言等,而直譯器程式 可例如但不限定為PHP、JSP或ASP程式等;再者,上述之詮釋資料(12)係用以描述資料的資料(Data about Data),指對數位資訊之內容、格式、結構、使用方式等之說明與描述,以作為電腦系統在存取、使用該數位資訊之依據,網頁開發者(2)藉以檢索到關聯式資料庫(11)適當的屬性資料(1111)(例如:欄位名稱參數、資料型態參數等);此外,關聯式資料庫(11)之詮釋資料(12)亦可例如以結構化文件(如XML)的資料來源取代,亦即關聯式資料庫(11)記錄處理為結構化文件,再針對結構化文件作細部資料指定以擷取屬性值;以及步驟三:步驟二所產生之複數網頁程式碼檔案(14)即可於網頁編輯系統(1)產生相對應之靜態或動態的網頁表單(15)以及網路服務程式(16);其中,網頁表單(15)一般係指具使用者介面(UI)之程式,而網路服務程式(16)是透過Web通訊協定及資料格式的開放式標準(例如HyperText Transfer Protocol,HTTP、eXtensible Markup Language,XML及Simple Object Access Protocol,SOAP等)來為其他的應用程式提供服務,因而可具有良好互通性,在不同平台上可輕易整合;本實施例中係以產生動態的網頁表單(15)為例,如第四圖所示,為本發明網頁表單於前台網站呈現之網頁示意圖,其中值得注意的,網頁表單(15)係利用特定之屬性資料(1111)參數定義規則,自動產生連結所需傳遞之參數,以有效率地進行網頁連結之編輯,並能提供動態結構化查詢語言功能,使網頁開發者(2)能製作出提供資料動態連結功能的網頁;再者,網頁表單(15)係可支援一標準瀏覽器,而標準瀏覽器之格式係選自於由ASP.NET、ASP、JSP、PHP、CFM、Word、Excel及Windows Form 所構成之群組。 First, the interactive webpage program automatic generation method of the present invention is applicable to a webpage editing system (1) having an associated database (11), wherein the webpage editing system (1) can be a webpage of a conventional webpage editing module. The editing system, the web developer (2) can select various materials and edit them, and the webpage editing system (1) presents the data to the webpage in the form of a table, a chart or other type representation according to various settings, and the association The database (11) may be, for example, but not limited to, one of SQL Server, MySQL, DB2, or Oracle. Please refer to the first and second figures, respectively, which are steps of a preferred embodiment of the method for automatically generating an interactive webpage program of the present invention. The flow chart and the block diagram of the webpage editing system applicable to the automatic generation method of the interactive webpage program of the present invention, the interactive webpage program automatic generation method comprises the following steps: Step 1: web developer (2) establish a related database (11) The attribute data file (111), the attribute data file (111) may be, for example, a generally well-known data table (Table), and the attribute data file (111) may include at least one attribute data (1111); Please refer to the third figure as a computer image image of the related database interface of the present invention, which can be directly reproduced and conforms to the drawings because it cannot be drawn by the ink drawing method according to the engineering drawing method. Other provisions are replaced by photographs according to the Patent Examination Benchmarks on pages 2-1-37; in addition, the attribute data (1111) may include, for example, a column name parameter (Column Name), a data type parameter (Datatype), and a column. Bit length parameter (value after data type parameter), primary key parameter (primary key, PK), non-no parameter (not null, NN), unique parameter (unique, UQ), binary parameter (binary, BIN) The unsigned (UN) parameter, the zero-fill parameter (zero fill, ZF), and the auto increment (AI) are applicable to the type of the data field; the above data type parameter can be An integer, a positive integer is only an integer (TINYINT) of 255, a character (VARCHAR), a timestamp (TIMESTAMP), etc.; in this embodiment, the field name parameters are idzNanE, Name, Email, Topic, Content, Sex , CreateDate, C1, and C2, and the idzNanE field name The parameter is the data type of INT, and is applicable to the primary key parameter, the non-no parameter, and the automatic addition number parameter; and we should understand that the above-mentioned field name parameters are for convenience of description, and are not limited to the examples. Therefore, the field name parameter of the specific embodiment is not limited; and it is noted here that the parameters listed in the above attribute data (1111) are knowledge known in the art, and are not the focus of the present invention. The detailed mechanism and the principle of the program action will not be described here. Step 2: Use the interpreter data (12) of the relational database (11) to obtain the attribute data (1111), and use the program that can access the associated database. (13) establishing a webpage code file (14) for operating, adding, deleting, and querying the associated database (11); wherein the program (13) for accessing the associated database may include a compiler And the interpreter program, and the compiler program can be, for example, C# language, JAVA language, etc., and the interpreter program For example, but not limited to PHP, JSP or ASP programs, etc.; further, the above-mentioned interpretation data (12) is used to describe data (Data about Data), refers to the content, format, structure, and usage of digital information. The description and description are used as a basis for the computer system to access and use the digital information, and the web developer (2) retrieves the appropriate attribute data (1111) of the related database (11) (for example: field name) In addition, the interpretation data (12) of the relational database (11) can also be replaced, for example, by a data source of a structured document (such as XML), that is, an associated database (11) record. Processing as a structured file, and then specifying the detailed data for the structured file to retrieve the attribute value; and Step 3: The multiple webpage code file (14) generated in Step 2 can be generated in the webpage editing system (1). a static or dynamic web form (15) and a web service program (16); wherein the web form (15) generally refers to a program with a user interface (UI), and the web service program (16) is via the web. Open standards for communication protocols and data formats ( Such as HyperText Transfer Protocol, HTTP, eXtensible Markup Language, XML and Simple Object Access Protocol, SOAP, etc. to provide services for other applications, so it can have good interoperability, can be easily integrated on different platforms; in this embodiment Taking the dynamic webpage form (15) as an example, as shown in the fourth figure, the webpage form of the present invention is presented on the front-end website, and it is worth noting that the webpage form (15) utilizes specific attribute data (1111). The parameter definition rule automatically generates the parameters required for the link to be efficiently edited, and provides a dynamic structured query language function, so that the web developer (2) can create a dynamic link function. Web page; in addition, the web form (15) supports a standard browser, and the standard browser format is selected from ASP.NET, ASP, JSP, PHP, CFM, Word, Excel, and Windows Form. The group formed.

此外,在使用者填寫如第四圖之前台網頁表單(15)並執行送出,所輸入資料會送至另一程式進行處理,該程式首先是接收資料與建立與關聯式資料庫(11)連線後,指定輸入資料的型態並寫入至指定的欄位,如此完成整個過程,其程式碼如下所示: Driver DriverRecordset1 = (Driver)Class.forName(MM_DRIVER).newInstance(); Connection ConnRecordset1 = DriverManager.getConnection(MM_STRING,MM_USERNAME,MM_PASSW ORD); String sql = "insert into znane (Name,Email,Topic,Content,Sex,CreateDate,C1,C2,isChecked,LanguageID) values (?,?,?,?,?,?,?,?,?,?)"; String Name = request.getParameter("Name"); String Email = request.getParameter("Email"); String Topic = request.getParameter("Topic"); String Content = request.getParameter("Content"); String Sex = request.getParameter("Sex"); String CreateDate = request.getParameter("CreateDate"); String C1 = request.getParameter("C1"); String C2 = request.getParameter("C2"); String isChecked = request.getParameter("isChecked"); String LanguageID = request.getParameter("LanguageID"); java.util.Date date= new java.util.Date(); Timestamp timestamp1 = new Timestamp(date.getTime()); PreparedStatement preparedStatement1 = ConnRecordset1.prepareStatement(sql); //Set the data into the prepare statement preparedStatement1.setString(1, !Name.equa1s("")?Name: ""); preparedStatement1.setString(2, !Emai1.equa1s("")?Email: ""); preparedStatement1.setString(3, !Topic.equals("")?Topic: ""); preparedStatement1.setString(4, !Content.equa1s("")?Content: ""); preparedStatement1.setInt(5, Sex != null?1 : 0); preparedStatement1.setTimestamp(6, timestamp1); preparedStatement1.setString(7, !C1.equals("")?C1: ""); preparedStatement1.setString(8, !C2.equals("")?C2: ""); preparedStatement1.setInt(9, isChecked != null?1 : 0); preparedStatement1.setInt(10, !LanguageID.equals("")?Integer.parseInt(LanguageID): 0); preparedStatement1.executeUpdate(); ConnRecordset1.close();如此,即可在後台管理系統呈現如第五圖之網頁示意圖,其中後台網頁具有新增、修改、刪除以及查詢之功能,例如可在查詢欄位中鍵入手機之前四碼0983,即可列出對應相關之資料欄位,若以習知方式處理完成整個過程,當資料表與欄位眾多時,其撰寫程式的過程勢必相當繁瑣。 In addition, after the user fills in the page form (15) before the fourth picture and executes the delivery, the input data is sent to another program for processing. The program first receives the data and establishes a database with the associated database (11). After the line, specify the type of the input data and write it to the specified field. The code is as follows: Driver DriverRecordset1 = (Driver)Class.forName(MM_DRIVER).newInstance(); Connection ConnRecordset1 = DriverManager.getConnection(MM_STRING,MM_USERNAME,MM_PASSW ORD); String sql = "insert into znane (Name,Email,Topic,Content,Sex,CreateDate,C1,C2,isChecked,LanguageID) values (?,?,?,?, ?,?,?,?,?,?)"; String Name = request.getParameter("Name"); String Email = request.getParameter("Email"); String Topic = request.getParameter("Topic"); String Content = request.getParameter("Content"); String Sex = request.getParameter("Sex"); String CreateDate = request.getParameter("CreateDate"); String C1 = request.getParameter("C1"); String C2 = request.getParameter("C2 "); String isChecked = request.getParameter("isChecked"); String LanguageID = request.getParameter("LanguageID"); java.util.Date date= new java.util.Date(); Timestamp timestamp1 = new Timestamp(date.getTime()); PreparedStatement preparedStatement1 = ConnRecordset1.prepareStatement(sql); //Set the data into the prepare statement preparedStatement1. setString(1, !Name.equa1s("")?Name: ""); preparedStatement1.setString(2, !Emai1.equa1s("")?Email: ""); preparedStatement1.setString(3, !Topic.equals ("")?Topic: ""); preparedStatement1.setString(4, !Content.equa1s("")?Content: ""); preparedStatement1.setInt(5, Sex != null?1 : 0); preparedStatement1. setTimestamp(6, timestamp1); preparedStatement1.setString(7, !C1.equals("")?C1: ""); preparedStatement1.setString(8, !C2.equals("")?C2: ""); preparedStatement1 .setInt(9, isChecked != null?1 : 0); preparedStatement1.setInt(10, !LanguageID.equals("")?Integer.parseInt(LanguageID): 0); preparedStatement1.executeUpdate(); ConnRecordset1.close( In this way, the background management system can present a schematic diagram of the webpage as shown in the fifth figure, wherein the background webpage has a new Modify, delete and query functions, for example, you can type the corresponding data field four times before the phone is typed in the query field. If the process is completed in a conventional way, when there are many data tables and fields At the time, the process of writing a program is bound to be quite cumbersome.

此外,如前所述,本發明之互動式網頁程式自動產生方法可結合應用於硬體或軟體、適當處或其組合,因此本發明之方法,某些觀點或是其部分可能為嵌入實際媒體中之程式碼(亦即指令),例如軟式磁碟、光碟機、硬碟機或是任何其他機器可讀儲存媒體,其中當程式碼被機器(例如一電腦)載入並執行時,此機器會變成一用以執行本發明之裝置,而在程式碼執行於可程式化電腦之情況中,此電腦裝置通常包含一處理器、一處理器可讀之儲存媒體(包含揮發性或非揮發性記憶體及/或儲存元件)、至少一輸入裝置以及至少一輸出裝置。 In addition, as described above, the interactive web page program automatic generation method of the present invention can be applied to hardware or software, where appropriate, or a combination thereof, and thus some aspects or portions thereof may be embedded in actual media. a code (ie, a command), such as a floppy disk, a CD player, a hard disk drive, or any other machine readable storage medium, wherein the machine is loaded and executed by a machine (eg, a computer) It will become a device for carrying out the invention, and in the case where the code is executed in a programmable computer, the computer device usually comprises a processor, a processor-readable storage medium (including volatile or non-volatile a memory and/or storage element), at least one input device, and at least one output device.

由上述之實施說明可知,本發明之互動式網頁程式自動產生方法與現有技術相較之下,本發明具有以下優點: It can be seen from the above description that the interactive webpage program automatic generation method of the present invention has the following advantages compared with the prior art:

1.本發明互動式網頁程式自動產生方法係利用關聯式資料庫之詮釋資料(metadata)以獲得其屬性資料,其能減少網頁編輯系統開發者在製作連接至資料庫並具有資料動態連結功能網頁時的編輯工作,提供有效率編輯網頁元件及連結的功能,進而製作出讓網頁使用者可以方便使用的網頁表單。 1. The automatic generation method of the interactive webpage program of the present invention utilizes the metadata of the associated database to obtain the attribute data, which can reduce the webpage editing system developer to make a webpage with the data dynamic link function connected to the database. The editing work of the time provides efficient editing of web components and links, and then creates web forms that are easy for web users to use.

2.本發明互動式網頁程式自動產生方法利用簡單的屬性資料之設定,即可快速自動產生網頁表單的網頁程式碼檔案,使得網頁開發者不必辛辛苦苦地逐行撰寫程式或逐一表單欄位地建構資料庫結構,就能以最迅速、簡單的方式,來產生存取、更新等即時性功能的網頁應用程式原始碼與資料庫,可簡化網站開發者及程式設計人員的開發流程及時程,大幅的降低研發成本並提升產品競爭力。 2. The automatic generation method of the interactive webpage program of the invention can quickly and automatically generate the webpage code file of the webpage form by using the simple attribute data setting, so that the webpage developer does not have to work hard to write the program line by line or one by one form field. By constructing a database structure, the web application source code and database for instant access and update functions can be generated in the most rapid and simple manner, which simplifies the development process and website of web developers and programmers. Significantly reduce R&D costs and increase product competitiveness.

綜上所述,本發明之互動式網頁程式自動產生方法,的確能 藉由上述所揭露之實施例,達到所預期之使用功效,且本發明亦未曾公開於申請前,誠已完全符合專利法之規定與要求。爰依法提出發明專利之申請,懇請惠予審查,並賜准專利,則實感德便。 In summary, the automatic generation method of the interactive webpage program of the present invention can indeed With the embodiments disclosed above, the intended use efficiency is achieved, and the present invention has not been disclosed before the application, and the company has fully complied with the requirements and requirements of the patent law.爰Issuing an application for a patent for invention in accordance with the law, and asking for a review, and granting a patent, is truly sensible.

惟,上述所揭之圖示及說明,僅為本發明之較佳實施例,非為限定本發明之保護範圍;大凡熟悉該項技藝之人士,其所依本發明之特徵範疇,所作之其它等效變化或修飾,皆應視為不脫離本發明之設計範疇。 The illustrations and descriptions of the present invention are merely preferred embodiments of the present invention, and are not intended to limit the scope of the present invention; those skilled in the art, which are characterized by the scope of the present invention, Equivalent variations or modifications are considered to be within the scope of the design of the invention.

(1)‧‧‧網頁編輯系統 (1) ‧‧‧Web page editing system

(11)‧‧‧關聯式資料庫 (11)‧‧‧Related database

(111)‧‧‧屬性資料檔 (111)‧‧‧Attribute data files

(1111)‧‧‧屬性資料 (1111) ‧ ‧ Attribute data

(12)‧‧‧詮釋資料 (12) ‧ ‧ Interpretation data

(13)‧‧‧可存取關聯式資料庫之程式 (13)‧‧‧Programs that can access the associated database

(14)‧‧‧網頁程式碼檔案 (14)‧‧‧Webpage code file

(15)‧‧‧網頁表單 (15)‧‧‧Web form

(16)‧‧‧網路服務程式 (16)‧‧‧Internet Service Program

(2)‧‧‧網頁開發者 (2) ‧ ‧ web developers

Claims (5)

一種互動式網頁程式自動產生方法,係適用於一具有關聯式資料庫之網頁編輯系統,互動式網頁程式自動產生方法包括下列步驟:步驟一:網頁開發者建立該關聯式資料庫之屬性資料檔,該屬性資料檔包括至少一屬性資料;步驟二:利用該關聯式資料庫之詮釋資料(metadata)獲得該屬性資料,並以可存取該關聯式資料庫之程式建立出以操作該關聯式資料庫的新增、修改、刪除與查詢的網頁程式碼檔案;以及步驟三:該等網頁程式碼檔案於網頁編輯系統即產生相對應之靜態或動態的網頁表單,以及網路服務程式。 An interactive webpage program automatic generation method is applicable to a webpage editing system with an associated database. The automatic webpage program automatic generation method comprises the following steps: Step 1: The webpage developer establishes the attribute data file of the related database. The attribute data file includes at least one attribute data; step 2: obtaining the attribute data by using the metadata of the relational database, and establishing a program by accessing the associated database to operate the association The new, modified, deleted and queried web code files of the database; and step 3: the webpage code files are generated in the webpage editing system to generate corresponding static or dynamic webpage forms, and web service programs. 如申請專利範圍第1項所述之互動式網頁程式自動產生方法,其中該關聯式資料庫係為SQL Server、MySQL、DB2或Oracle其中之一。 For example, the interactive webpage automatic generation method described in claim 1 is one of SQL Server, MySQL, DB2 or Oracle. 如申請專利範圍第1項所述之互動式網頁程式自動產生方法,其中該可存取該關聯式資料庫之程式包括有編譯器和直譯器程式。 The method for automatically generating an interactive webpage program according to the first aspect of the patent application, wherein the program for accessing the associated database includes a compiler and an interpreter program. 如申請專利範圍第1項所述之互動式網頁程式自動產生方法,其中該屬性資料包括有一欄位名稱參數、一欄位長度參數、一資料型態參數、一主鍵參數、非無參數、唯一參數、二位元參數、無正負號參數、零填充參數,以及自動增號參數。 The method for automatically generating an interactive webpage program according to claim 1, wherein the attribute data includes a field name parameter, a field length parameter, a data type parameter, a primary key parameter, a non-parameter, and a unique Parameters, two-bit parameters, unsigned parameters, zero-fill parameters, and auto-enlargement parameters. 如申請專利範圍第1項所述之互動式網頁程式自動產生方法,其中該網頁表單係支援一標準瀏覽器,而該標準瀏覽器之格式係選自於由ASP.NET、ASP、JSP、PHP、CFM、Word、Excel及Windows Form所構成之群組。 The method for automatically generating an interactive webpage program according to claim 1, wherein the webpage form supports a standard browser, and the format of the standard browser is selected from ASP.NET, ASP, JSP, PHP. A group of CFM, Word, Excel, and Windows Forms.
TW102149379A 2013-12-31 2013-12-31 Method for automatically generating website interactive program TWI629602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102149379A TWI629602B (en) 2013-12-31 2013-12-31 Method for automatically generating website interactive program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102149379A TWI629602B (en) 2013-12-31 2013-12-31 Method for automatically generating website interactive program

Publications (2)

Publication Number Publication Date
TW201525737A true TW201525737A (en) 2015-07-01
TWI629602B TWI629602B (en) 2018-07-11

Family

ID=54197658

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102149379A TWI629602B (en) 2013-12-31 2013-12-31 Method for automatically generating website interactive program

Country Status (1)

Country Link
TW (1) TWI629602B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI681303B (en) * 2018-10-19 2020-01-01 國立暨南國際大學 Flexible web data management system and a method thereof
TWI757743B (en) * 2019-09-17 2022-03-11 開曼群島商創新先進技術有限公司 Mini program generation method and device
TWI822602B (en) * 2023-02-24 2023-11-11 呂英璋 Web page editing system and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI796545B (en) * 2020-01-15 2023-03-21 訊光科技系統股份有限公司 Method and apparatus for generating intelligent program using file

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200739370A (en) * 2006-04-04 2007-10-16 Via Tech Inc Corresponding sheets automatic generating database type system and method
US8484663B2 (en) * 2007-04-27 2013-07-09 Microsoft Corporation Method of deriving web service interfaces from form and table metadata
TW200951742A (en) * 2008-06-05 2009-12-16 Chunghwa Telecom Co Ltd Method of automatically managing database storage space
JPWO2011111532A1 (en) * 2010-03-10 2013-06-27 日本電気株式会社 Database system
CN103391301A (en) * 2012-05-09 2013-11-13 龙晟科技有限公司 Method for managing cloud databases

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI681303B (en) * 2018-10-19 2020-01-01 國立暨南國際大學 Flexible web data management system and a method thereof
TWI757743B (en) * 2019-09-17 2022-03-11 開曼群島商創新先進技術有限公司 Mini program generation method and device
TWI822602B (en) * 2023-02-24 2023-11-11 呂英璋 Web page editing system and method

Also Published As

Publication number Publication date
TWI629602B (en) 2018-07-11

Similar Documents

Publication Publication Date Title
CN110325961B (en) Spreadsheet-based software application development
US7305656B2 (en) Content management framework for use with a system for application development
US7720885B2 (en) Generating a word-processing document from database content
US9514115B2 (en) Method for creating form validation program and corresponding form interface according to result set metadata
US20080172608A1 (en) Site builder
CN113076096B (en) Desktop application program development method, device, equipment and storage medium
US20080215621A1 (en) Metamodel-based automatic report generation
US20040216045A1 (en) System and process for gathering recording and validating requirments for computer applications
US10445675B2 (en) Confirming enforcement of business rules specified in a data access tier of a multi-tier application
CN115617327A (en) Low code page building system, method and computer readable storage medium
US20080263142A1 (en) Meta Data Driven User Interface System and Method
US10296505B2 (en) Framework for joining datasets
CN101488086A (en) Software generation method and apparatus based on field model
TWI629602B (en) Method for automatically generating website interactive program
US10776351B2 (en) Automatic core data service view generator
US20080263018A1 (en) Method and System for Mapping Business Objects to Relational Database Tables
Jennings Professional ADO. NET 3.5 with LINQ and the Entity Framework
Mueller Microsoft ADO. NET Entity Framework Step by Step
TWI522824B (en) Method for generating form validation program and corresponding form interface from result set metadata
TWI524197B (en) Method for generating web program and corresponding form interface form annotation of table filed
TWI608406B (en) Method for automatically generate fields of drop-down menu by foreign keys corresponding to data sheet
CN113761040A (en) Database and application program bidirectional mapping method, device, medium and program product
US20170031881A1 (en) Method for creating web program and corresponding table interface according to column comment
WO2010147453A1 (en) System and method for designing a gui for an application program
Belic et al. User‐friendly web application for bibliographic material processing

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees