4.7. < AppML > case study-prototype

发布时间 : 2025-10-25 13:33:38 UTC      

Page Views: 9 views

This case study demonstrates how to build a complete < AppML > Internet application with the ability to enumerate, edit, and search for information against several tables in the database.

4.7.1. Prototype

In this chapter, we will build a prototype model for each table in the database.

Prototypes are the starting point for developing applications that are very easy to use.

4.7.2. Prototype model

First, create a folder for the prototype. The folder is named Prototypes.

Then, create a prototype model for each table in the database.

Use SELECT* from each table and save the model as a XML file:

模型:Proto_Customers.xml

<appml> <datasource> <database> <connection>Democonnection> <sql>SELECT \* FROM Customerssql> database> datasource> appml>     

模型:Proto_Suppliers.xml

<appml> <datasource> <database> <connection>Democonnection> <sql>SELECT \* FROM Supplierssql> database> datasource> appml>     

模型:Proto_Products.xml

<appml> <datasource> <database> <connection>Democonnection> <sql>SELECT \* FROM Productssql> database> datasource> appml>      

4.7.3. Prototype view

Create a prototype view, save it as Demo_Prototype.html, and give it a try:

视图:Demo_Prototype.htm

<h1>Customersh1> <div id="List01">div> <script src="appml.js">script> <script> customers=new AppML("appml.php","Prototypes/Customers"); customers.run("List01"); script>    

尝试一下 »

4.7.4. Now put it all together.

Finally, create a simple prototype page for all prototype models with a small amount of JavaScript coding:

Demo_Prototype_Views.htm

      

Demo Applications



显示结果 »

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。